• Resolved cpurrin1

    (@cpurrin1)


    I can’t seem to get photos within a single Zenfolio gallery to display. I get the following error:

    Zenfolio returned an error: An unexpected error has occurred. Please try again later. If this problem persists, contact Support.

    A Photonic gallery of Zenfolio galleries shows up just fine.

    I turned on Performance logging in case useful. (I’m not sure it’s related, but when I click on the Photonic gallery to edit there is a 5-sec pause before next screen is displayed. Seems a tad long. I’m thinking I might need to use only shortcodes so that a minor edit doesn’t take several minutes.)

    Thanks for any help.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Which of your galleries are you trying to show in the first instance? I will try to fetch it at my end. Also, what is your Zenfolio user name?

    (I’m not sure it’s related, but when I click on the Photonic gallery to edit there is a 5-sec pause before next screen is displayed. Seems a tad long. I’m thinking I might need to use only shortcodes so that a minor edit doesn’t take several minutes.)

    To be honest the net gain is likely to be negligible, since once you have set your pages up you wouldn’t be editing them too frequently. The benefits of using the shortcode builder are a lot higher though – it tends to sanitize inputs and does a lot more behind the scenes, minimizing the scope for error.

    Thread Starter cpurrin1

    (@cpurrin1)

    Here are the photographs I was hoping to display:

    https://photography.colinpurrington.com/insects

    My Zenfolio name = colinpurrington

    Thank you!

    Thread Starter cpurrin1

    (@cpurrin1)

    I see there’s an error:

    Uncaught ReferenceError: jQuery is not defined at plants:116

    Which is strange. Is that a problem caused by the permalink name I gave page? One of the galleries (that successfully displays) is “plants”.

    Plugin Author Sayontan Sinha

    (@sayontan)

    The JQuery errors are from a different plugin – I believe you are using something to “Protect contents”. That is the one causing the error.

    In looking at your site / galleries, it seems like Zenfolio is returning gallery ids such as “insects” for your galleries, which is causing this issue. Ordinarily it should be giving me a “non-intelligent” id such as p12345678. Let me investigate a bit more and get back to you.

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – investigation complete.

    It does look like my hypothesis was correct. This may be a recent change put in by Zenfolio, but the page URL returned by Zenfolio seems to be having a “smart name” for most of your galleries, while in all other cases I have seen so far it has an indecipherable name (that is the case for some of your galleries too, e.g. Plants).

    This requires a code change that I have done at my end. You can wait for the next release, which will unfortunately take a couple of days. If you wish to make the change yourself, this is what you will require:

    1. Go to wp-content/plugins/photonic/admin/flow/Photonic_Flow_Manger.php, line 1625. You will see this:
      if (count($page_url) > 1) {
      	$page_url = $page_url[1];
      }
    2. Right after the above put in the following:
      if (!is_array($page_url) && preg_match('/^p\d{9}/', $page_url) === 0) {
      	$page_url = array();
      }
    3. Save the file.

    Now the gallery creation will work fine.

    Regardless of whether you wait for me or make the change yourself, you will need to delete and recreate the galleries that are failing.

    Let me know how you would like to proceed.

    Thread Starter cpurrin1

    (@cpurrin1)

    I can wait. Thanks so much for looking into it. It’s odd that I’m having a problem for only the “photos in a gallery” gallery. The “display all galleries” gallery works fine even though they have the same type of names. I think Zenfolio has had the option for custom gallery names for a long time, or at least since I joined in 2012 or so. So it seems that others would have had the same problem before me … but maybe it only appeared with Gutenberg.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hi,
    This change has been incorporated into version 2.16 (released today).

    Please let me know if you still face issues.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Zenfolio gallery contents don’t show up’ is closed to new replies.