• Resolved dougienisbet

    (@dougienisbet)


    I see there’s another post regarding a critical error and I’m not sure if it’s related. I should say this is pretty minor (for me) as it was something I was trying out of curiosity and appears to be when I use a particular form of the shortcode.

    Normally things run fine, I tend to stick with the classic editor and use shortcodes when possible.

    I decided to try using the text search (based on example at https://aquoid.com/plugins/photonic/zenfolio/photosets/#text) but found it returned a critical error.

    Here is the shortcode I tried:

    [djngal type='zenfolio' view='photosets' photoset_type='Gallery' text='garden' login_name='dougienisbet']

    I’ve tried a few variations on this and I suspect it’s the ‘text’ clause that is the problem.

    I was looking for ways of returning a top-level hierarchy of galleries in a particular group.

    This is not urgent but I’m running WordPress fully up to date on a self-installed virtual machine so I can get check anything you like.

    Dougie

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

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

    (@sayontan)

    Thanks – this is something I am unable to replicate (as you can see, it works fine on the demo site).

    Do you have access to your PHP error logs? The log can shed more light on the exact error.

    Thread Starter dougienisbet

    (@dougienisbet)

    It looks like a timeout error. The apache error log shows:

    [Tue May 12 13:48:03.059583 2020] [php7:error] [pid 12099] [client 93.93.129.174:45626] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/katsura.uk/wp-inclu
    des/Requests/Transport/cURL.php on line 236

    and a visit to the University of Google suggests it’s connected with max_execution_time. Mine was at the default (30) and I’ve increased it to 300. And now it works ok, usually, but it takes a very long time. Presumably it’s doing a text search on zenfolio and that could be where the problem is.

    Dougie

    Plugin Author Sayontan Sinha

    (@sayontan)

    It isn’t generally very bad, but Zenfolio is normally slower than other sources for various reasons. In your case this seems to be exacerbated by a UK server calling an API on a US server.

    One of the main factors for the slowness is that Zenfolio’s API, while comprehensive, is severely lacking in user-specific APIs. So it is not possible to do native searches in Zenfolio for a user’s albums by text. As a result, the searching has to happen offline, in the code, after the API has returned results.

    I would say, if you have specific photoset ids, use those – that is likely to be faster.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Critical Error reported for zenfolio’ is closed to new replies.