Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-06-09 05:08:32

rsamco
Member
From: Bend, Oregon
Registered: 2012-12-20
Posts: 177
Website

BL3's Search timing out

After updating to BL3, many searches on my website are now timing out with:
    Something went wrong
    Unexpected error: Maximum execution time of 30 seconds exceeded in PdoExtended.php on line 540
    Please report error at http://community.theturninggate.net

For example, this search "http://rick.samcos.com/backlight/search/?q=steens" sometimes succeeds but has been failing >50% of the time today.

Previously, searches on my website often took >20 seconds, so they appear to always have been on the cusp of a 30 sec timeout. Appears that BL3 now has pushed many of them over that limit!


Rick

Offline

#2 2020-06-09 05:26:13

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: BL3's Search timing out

Ben will have to chime in on this. But I'm curious, are you able to estimate how many images are on your site?


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2020-06-10 04:47:39

rsamco
Member
From: Bend, Oregon
Registered: 2012-12-20
Posts: 177
Website

Re: BL3's Search timing out

Just over 8700 (=17 years of travelog galleries)

Although I'd love a faster search, what I really need is a way to relax the 30 sec. hard search cutoff time.


Rick

Offline

#4 2020-06-10 08:56:25

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: BL3's Search timing out

Hi Rick, the execution time is set in the php.ini file using the variable max_execution_time.  If you have access to the php.ini file, or your own file somewhere under your html directory, then try changing that to a higher value.

Another option would be to edit the file backlight/.htaccess and add a line like this:

php_value max_execution_time 60

Where 60 should double the allowed time.  In either case, setting it to 31 would be a good start to verify that the timeout has been changed.  If successful then the message would read '...Maximum execution time of 31 seconds exceeded…'.

Can you email me the file backlight/data/publisher/master.sq3?  I'll see whether there are any optimisations that can be made to speed up that query.

Offline

#5 2020-06-10 09:44:52

rsamco
Member
From: Bend, Oregon
Registered: 2012-12-20
Posts: 177
Website

Re: BL3's Search timing out

Thanks, Ben -- I changed php.ini max_execution_time and that worked. I'm seeing some searches take over 40 seconds so it sure seems like something changed in BL3, since I never had a search take over 30 secs. before (i.e., never saw the 30 sec. timeout).

I'll email you link to my master.sq3 file (34MB).


Rick

Offline

Board footer

Powered by FluxBB