• Resolved Jon Bromell

    (@jonb1987)


    Hi Guys,

    I’m helping a client sort out some bugs on her site, one of which is that when she adds a gallery with more than 1 page, the link for page 2 simply refreshes the site back to the homepage.

    Any ideas what could be causing this?

    Thanks,

    Jon

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @jonb1987,

    I have checked the browser’s console and it looks like your theme throws a couple of JS errors and that breaks NextGen Gallery’s pagination.

    Please contact your hosting provider and ask them to fix the JS errors or switch to a different theme in order to get this issue solved.

    Mihai

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Mihai,

    I have fixed the two JS errors that the site was throwing out, but the problem with the gallery still stands. Any other ideas?

    Regards,

    Jon

    Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi Jon,

    Sorry for the delays. Can you please switch to a different permalink setting from “Settings -> Permalinks” then wait for 15 minutes and try again to see if that will change anything?

    Also, please make sure that you aren’t using any redirects or .httaccess rewrites that would affect NextGen’s pagination.

    Mihai

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Mihai,

    No problem at all. Ok I have changed the permalink settings back to plain and waited, but to no effect.

    I can also confirm that there is only 1 redirect in place (http > https) and that .htaccess is default.

    Any other ideas? If it helps, I have now been advised that everything works fine on posts and on pages, it is only on this modified category page where the pagination isn’t working.

    Regards,

    Jon

    Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @jonb1987,

    Thanks for trying the suggestions from above.

    This makes me think that it could somehow conflict with the theme’s pagination for the category archive.

    I hope that you wouldn’t mind trying to temporarily activate Twenty Seventeen theme to see if the pagination will work.

    Please let us know,
    Mihai

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Mihai,

    I’ve checked your theory, and you are correct. The Ngallery pagination is missing the category directory. Could you point me in the direction of where the pagination is written, and I’ll have a look see if I can correct it?

    Thanks,

    Jon

    Thread Starter Jon Bromell

    (@jonb1987)

    From what I can tell, I need to add an additional check for a get_the_category ID, between the check for a post ID, and the final url = permalink. What do you think?

    Hi @jonb1987

    Sorry about the late response.
    We were wondering if you could share with us your current shortcode so we can try to replicate that in our end.

    Are you currently using “Ajax Pagination”? (Enable AJAX pagination option under “Customize display settings” tab)
    https://monosnap.com/file/vi5MkuPDHSTeRaLaLyH6RKAfale5TW

    – Gaby, Customer Support.

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Gaby,

    No worries at all, current shortcode is;

    [ngg_images source=”galleries” container_ids=”24″ display_type=”photocrati-nextgen_basic_thumbnails” override_thumbnail_settings=”1″ thumbnail_width=”240″ thumbnail_height=”160″ thumbnail_crop=”1″ images_per_page=”20″ number_of_columns=”0″ ajax_pagination=”0″ show_all_in_lightbox=”0″ use_imagebrowser_effect=”0″ show_slideshow_link=”1″ template=”default” order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]

    I have turned on AJAX pagination as thought is may help, but it had no effect, so it is currently off (as you can see in the shortcode).

    Thanks,

    Jon

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Guys,

    Any more thoughts on how I can implement a get_category_ID line into the plugins code so that the pagination works correctly within a category page?

    Thanks,

    Jon

    Hi @jonb1987

    Let’s try something.
    Remove the gallery and re-insert the gallery display.
    Does that work for you?

    If the problem persists, could you please check your permalinks settings and see if changing those will fix the issue?
    https://codex.www.ads-software.com/Settings_Permalinks_Screen

    Please, keep us posted.

    – Gaby, Customer Support.

    Thread Starter Jon Bromell

    (@jonb1987)

    Hi Gaby,

    Yes we’ve tried the above. As mentioned in my previous posts, the problem seems to be that the plugin’s pagination code does not have a line for retrieving the category ID, only post ID, and failing that it searches for a page permalink.

    I’m looking for a solution whereby I can insert a line of code in the pagination IF query whereby it checks for a category ID before resorting to looking for a permalink.

    Thanks,

    Jon

    Hi @jonb1987

    We want to take a closer look at this problem you are currently experiencing with NextGen Gallery’s pagination. We may need to deactivate plugins and switch the theme while troubleshooting temporarily. Would you feel OK with that? If so, please send us a bug report here: https://www.imagely.com/report-bug, refer back to this forum thread and let them know Gaby referred you.

    Note: Please include the URL to this forum.

    Thanks!

    Because it has been a month or more since your last reply, I am going to mark this as resolved as I assume you have found a solution. Please feel free to reply again if you still have questions.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Page 2 link in gallery links to refreshes site to homepage’ is closed to new replies.