I am trying to:
Edit a loop template for an archive page for a custom type
Link to a page where the issue can be seen:
N/A
I expected to see:
WP Admin editor to load and enable me to edit the loop template.
Instead, I got:
Request times out
Fatal error: Maximum execution time of 180 seconds exceeded in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-includes\l10n.php on line 250
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
Further information, upon deactivating a different plugin that was obscuring the error a bit, I now get this when the page times out:
Fatal error: Maximum execution time of 180 seconds exceeded in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\types\application\models\field\abstract.php on line 75
To clarify, I have block editor enabled for my custom types in all available places, including for the loop content template, I am guessing this error is being generated because of something gutenblock related.
I have made every effort to keep the content clean and simple of course and I have only a very simple layout of 2 columns (using an Otter > Section block).
Column 1: a TB Image (showing a featured image and with a custom field as a link)
Column 2: I only have a Heading, and a TB Field (showing the post content)
Hello,
The problem you mentioned above is abnormal, according to the debug logs you provided above, in Types plugin file
\types\application\models\field\abstract.php, line 75, it is:
It is a simple line, it should not conduct the "Maximum execution time" problem.
please check these in your website:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again
2) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
Not going to switch themes unless I create a new throwaway version of the site, I am close to releasing and can't afford to recreate style customisations in the theme and don't have time to do too many backup and restores.
Now getting Fatal error: Maximum execution time of 180 seconds exceeded in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-includes\l10n.php on line 250
Also received this automatic error notification from wordpress (before I de-activated GDPR Framework Plugin):
Error Details
=============
An error of type E_ERROR was caused in line 20 of the file C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gutenberg\lib\widgets.php. Error message: Uncaught Error: Call to a member function is_block_editor() on null in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gutenberg\lib\widgets.php:20
Stack trace:
#0 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gutenberg\lib\widgets.php(28): gutenberg_is_block_editor()
#1 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-includes\class-wp-hook.php(286): gutenberg_block_editor_admin_print_styles('')
#2 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-includes\plugin.php(465): WP_Hook->do_action(Array)
#4 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gdpr-framework\views\installer\header.php(10): do_action('admin_print_sty...')
#5 C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gdpr-framework\src\View.php(44): require('C:\\Inetpub\\vhos...')
#6 C:\Inetpub\vhosts\woolloff.com\staging
Hello Luo Yang, thanks for answering this, I appreciate your support.
According to your debug logs:
An error of type E_ERROR was caused in line 20 of the file C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gutenberg\lib\widgets.php. Error message: Uncaught Error: Call to a member function is_block_editor() on null in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\gutenberg\lib\widgets.php:20
This error message came from another plugin "gutenberg", so there should be some compatibility problem in your website as I suggest above:
you can deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets,
if the problem is fixed, then activate them one by one, try to locate the problem plugin/theme.
As I say, not going to switch themes, but I will do a selective plugin check to scope out any incompatibilities or conflicts.
Do you know if toolset have an active list of compatible/incompatible plugins?
Could it be an issue with the content passed in on that line not having been error checked or validated? I am wondering whether there is an error condition that is not accounted for due to the output of the otter section block being part of the content?
Since plugins will be changed/upgraded sometimes, so we don't have an active list of compatible/incompatible plugins.
But there is a known issue list, see here:
https://toolset.com/known-issues/
And I don't see similar problem as this thread:
https://toolset.com/known-issues/?wpv-pr-child-of-download%5B%5D=1223743&wpv_aux_current_post_id=399043&wpv_view_count=401205-TCPID399043
Now this:
Fatal error: Maximum execution time of 180 seconds exceeded in C:\Inetpub\vhosts\woolloff.com\staging.woolloff.com\wp-content\plugins\types\vendor\toolset\toolset-common\lib\auryn\lib\Injector.php on line 184
There might be other plugins in your website are producing the "Maximum execution time" problem, please try as I mentioned above:
https://toolset.com/forums/topic/unable-to-edit-loop-template-for-archives-page-page-request-times-out/#post-1284539
Try to locate the problem plugin/theme
Since it is a compatibility problem, if you need more assistance for it, you can also provide a copy of your website in below private message box(You can put it in your own google drive disk, and share the link), also point out the problem page URL, I need to test and debug it in my localhost, thanks
So, now I just get a completely white screen, doesn't timeout and doesn't produce an error.
If you see white screen, that means there are PHP errors in your website, since the problem only exists in your website, please prepare the duplicator package, then update this thread.
I have enabled the private message box again.
That seems a bit extreme to provide an entire copy of the site, I can potentially give you access to the site but can you verify you actually work for Toolset first please.
I have done further investigation - I can de-link, deactivate and remove from trash the Archive page, then create a new one for the custom type, then create a new loop content template. This allows me to save (Once). then it seems to get stuck in a perpetually save loop and when I refresh the page I get the white screen or an internal server error 500 screen.
I have also confirmed it has nothing to do with Otter plugin, I used a Kadence block for the columns and got the exact same result.
I will try disabling more plugins to see if it is a straightforward conflict.