Php time limit wordpress12/30/2023 ![]() (As a test I changed the value in the database and the new value did pull through).Īlso is was strange to see that the max_execution_time was getting overridden on every page load and not just when WP All Export was actually running an export! And there is no way to edit that value in the free version of the plugin. The default value for max_execution_time in the plugin is 0. $ma圎xecutionTime = PMXE_Plugin::getInstance()->getOption('max_execution_time') The problematic code was in this plugin file: \wp-all-export\actions\wp_loaded.php WP All Export plugin has default values built into the plugin that get inserted into the options table under this entry: PMXE_Plugin_Options It wasn’t pulling the max_execution_timefrom a editable field, but it was pulling it from the database. On further investigation I was slightly wrong. If you have any further guidance, that would be great. So I’m at a loss as to how to explain Query Monitor reporting a problem on one of the sites when WP All Export is activated, and not on another site with the same settings in place. I’ve checked, and the version of the plugin is the same on both sites, and the settings are the same. All the other sites get the php.ini value for max_execution_time when WP All Export is activated. And secondly, we use that plugin on a number of other sites, and Query Monitor doesn’t give that error on any of the other sites. So it would seem to be fixed, however it seems very strange to me! For two reasons:įirstly because WP All Export is a very robust and well-known plugin. I decided to test it anyway by deactivating the plugin and Query Monitor now says that the max_execution_time is 150 (which is the value set in php.ini). However, the settings field was set to 120. ![]() I searched all code on the site and found that WP All Export plugin had a max_execution_time override in the code that pulled in a settings field value. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |