Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Public Galleries not displaying

I have tried to add public galleries each time I create one upload images and all appears to look ok.

When I try to view them as a member of the public they are not listed, also if I go back in as admin and select Public Galleries they are not there all I get is Create a Gallery.

How do I get them to display, I have seen earlier posts with regards .htaccess files in the directory, none exist.

Regards,

Sandy
1 person has
this problem
+1
Reply
  • Hi Sandy,

    I'm very sorry for this error, I believe a dev configuration file was placed in the public repository by accident.

    In system/application/config/dx_auth.php there should be a line that has something like public_user = something

    Change that value to 2 and it should work properly.

    If that doesn't fix it, can you please email me your dx_auto file and I'll look into it. Once again, very sorry.

    Cheers,

    Luke
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi Luke,

    Still the same:

    dx_auth->register_uri in controller.
    |
    */

    // Registration
    $config['DX_allow_registration'] = FALSE;
    $config['DX_captcha_registration'] = FALSE;

    // Login
    $config['DX_captcha_login'] = FALSE;

    // URI Locations
    $config['DX_logout_uri'] = '/auth/logout/';
    $config['DX_register_uri'] = '/auth/register/';
    $config['DX_forgot_password_uri'] = '/auth/forgot_password/';
    $config['DX_change_password_uri'] = '/auth/change_password/';
    $config['DX_cancel_account_uri'] = '/auth/cancel_account/';

    // Forms view
    $config['DX_login_view'] = 'auth/login_form';
    $config['DX_register_view'] = 'admin/new_client';
    $config['DX_forgot_password_view'] = 'auth/forgot_password_form';
    $config['DX_change_password_view'] = 'auth/change_password_form';
    $config['DX_cancel_account_view'] = 'auth/cancel_account_form';

    // Pages view
    $config['DX_deny_view'] = 'auth/general_message';
    $config['DX_banned_view'] = 'auth/general_message';
    $config['DX_logged_in_view'] = 'auth/general_message';
    $config['DX_logout_view'] = 'auth/general_message';

    $config['DX_register_success_view'] = 'auth/general_message';
    $config['DX_activate_success_view'] = 'auth/general_message';
    $config['DX_forgot_password_success_view'] = 'auth/general_message';
    $config['DX_reset_password_success_view'] = 'auth/general_message';
    $config['DX_change_password_success_view'] = 'auth/general_message';

    $config['DX_register_disabled_view'] = 'auth/general_message';
    $config['DX_activate_failed_view'] = 'auth/general_message';
    $config['DX_reset_password_failed_view'] = 'auth/general_message';

    ?>
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Most humble apologies Luke I think I may have found the problem. I had deleted the public user, I ran a test and set the:
    $config['public_user'] = 5: UID of another user and the gallery for this user showed up as being public.

    What do I have to do to re-instate the public user?

    Sorry for the hastle.

    Sandy
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi Sandy,

    To make a new public user, make a new user with first name "Public" and last name "Galleries". You can put in any password and email, it doesn't matter.

    Then, get the user id of that user and set $config['public_user'] to be that id.

    That should fix it!

    Cheers,

    Luke
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • I had same problem and changing $config['public_user'] = 66; to $config['public_user'] = 2; worked for me. Thanks Luke.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited