Skip Navigation

[Resolved] Slow backend and maximum execution time of 30 seconds

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user is getting the error, MAXIMUM EXECUTION TIME

Solution:

This is usually caused by your server timing out before the process has finish running.

To increase the max execution time take a look at the link below.
https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 20 replies, has 3 voices.

Last updated by filippoC-2 6 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#674319

Hi,
It's been a while since we're using Toolset Types & View and the backend is getting slower and slower every day and after some research and testing, we came up with this error:

Maximum execution time of 30 seconds exceeded in C:\xampp70\htdocs\genio\wp-content\plugins\types\vendor\toolset\types\embedded\functions.php on line 21

This exception is throwed in a test environment, we used duplicator (hidden link) to clone the site.

What can i do?

#674912

Hi,

Thanks for contacting support. I'll do my bes to help you with your question.

There are several factors that can affect the page load in the WP admin pages.
I suggest you increase max_execution_time on your XAMMP server as outlined on this article:
hidden link

Let me know if that helps,
Ricardo

#674936

Hi Ricardo,
Thanks for the reply!
As i said before, it's a test environment. The site in production is running on a LAMP stack.
Honestly, i don't think it's a solution incrementing the execution time: 30 seconds it's already a LOT of time, especially in the backend. Moreovers, it causes wp to lose connection during the write of an article.

#675737

Another thing you can do is upgrade to PHP 7. It improves overall performance. Other than that there isn't much we can help if you are running on localhost.

#679698

The test environment is in local, the production site is located here: hidden link, it's indicated in the "Support for site" during the creation of the ticket. As i said before, is a LAMP stack.

#680359

Thanks for the info. The debug information you provided for your development site indicates you are using an older version of PHP. Can you update to PHP 7 and see if that improves the performance of your site. If not, can you upload a Duplicator package to a service like Dropbox or Google Drive and post the link in the private field below? That way we can run some tests.

Thanks,
Ricardo

#686101

We cannot modify the PHP version in production as it was nothing.
We've done it in the test environment (moved to PHP 7.2) and the problems persist, event the timeout. I'm going to upload the duplicator package and give you the link.

Edito: i'm sorry, where do i put the link? In a reply to this thread?

#686796

There's a private field below.

#698241

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filippo,

As Ricardo is unavailable, i'll be handling this ticket moving forward.

I'm currently downloading the duplicator package.

The error you're experiencing is it only appearing on your Local XAMPP server ? The site on the LAMP Stack does not have this issue correct?

Please let me know.
Thanks,
Shane

#700821

Hi Shane,
They both have the problem 🙂 The difference is the WP_DEBUG setted to true and display_error setted to 1.
On the production server (the one who's hosting hidden link) it just crashes.

#717403

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filippo,

I was able to setup the duplicator but haven't noticed any issues at all. The backend displays quite quickly.

Is there any exact steps to replicate the issue that you can recommend that I try ?

Thanks,
Shane

#740525

Strange, it gives that error very often on our backend.
We just get it doing some navigation between the backend's pages.

#743526

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filippo,

No issue on my end and it runs quite smoothly.

Maybe something in the php logs can let us know what is happening on your end?

Could you send me the php logs so that I can take a look.

Thanks,
Shane

#766345

Hi Shane,
Sorry for the late reply. Here's the log of April:
hidden link

#772911

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filippo,

I'm not able to see anything thats pointing to why its running slow so I just believe your server is just being slow for lack of resources.

Is there anyway I can have a look at the live site ?

Thanks,
Shane