Hi,
it seems that you have set your max_execution_time a little to low and thus this is causing the error, as probably the script takes more than 2 seconds to execute, so you should probably try to vhasnge that limit
I will try to encrise the max execution time.
Setting the max execution time to 30 seconds i recive another error. I suspect an infinite loop:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 944164 bytes) in /var/www/site.it/htdocs/wp-includes/taxonomy.php on line 1331
Hi can you check for plugin/theme conflicts?what version are you using?We had this error with Visual Composer
I’m using sahifa theme 4.3.2 and All in 1 event calendar 2.1.8 and extended views 1.1.1 but i got this with 2.1.5 and 1.1.0 too. Why you have renamed this post like “resolved”? I think that this is not a VC conflict? I don’t use VC.
Sorry for the resolved status probably got confused with threads π
Can you check for plugin conflicts or theme conflicts?
In the first post i have written about this problem.
The conflict is with a self-made plugin that inject the ai1ec code in the content on rendering with add_filter(‘the_content’,’mod_post_content’) but the error happens only if there is a widget somewhere(sidebar or footer) otherwise the ai1ec injected works well.
If i put the same ai1ec code injected directly in the description box of a post and i update it removing the injection, the rendering works everytime well.
So, the problem is the redering of a ai1ec injected when there in another calendar.
If you add a filter like add_filter(‘the_content’,’mod_post_content’) it will run for every single post.
That’s why it’s probably using lot’s of memory or taking long to execute, you should probably work on that filter to make it more speedy
It run in the single post page with some category:
if ($isTag===false && $isCat===false &&
$isAttivita===false && $isEvent === false && $isHome==0 ){
if(!inArrayAtLeastOne($postCats,getExcludeCats())){
$is=true;
}
}
If i put the calendar in the normal way(in the post description field), all work well. The content hijack too(without calendar).
If i remove the other 2 calendar widgets, the hijack content work too (with calendar).
I have tryed 30 sec of execution time and it goes in memory exhausted.
So there is another problem.
I really can’t understand the scenario where things go out of memory. Anyway debugging out of memory error is difficult because…there is no memory left for the debugger to run π
You should do as suggested here and use xDebug to understand where the memory error happens. It will probably be just one function which is called too many times
I’m marking this as solved. Reopen in case