• Resolved vitalifehealth

    (@vitalifehealth)


    HI there

    I’m getting the following error when I click on ‘add feed’:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home3/vitalife/cheapdrills.co.uk/wp-includes/category.php on line 360

    I cannot create a new feed due to this error.

    Do you know what could be causing this and how I can fix it?

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hello @vitalifehealth,

    Sorry to hear you’re having issues with our plugin.

    What version of our plugin are you using and what version of WordPress?

    Thread Starter vitalifehealth

    (@vitalifehealth)

    Thanks for coming back so soon Michel – great plugin by the way, I’ve used it on other sites, just doesn’t seem to want to work on this one.

    Wordpress version 5.0.2

    Plugin version 1.12.2

    Would welcome any thoughts or suggestions.

    Thanks again

    Gavin

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Thanks! I’m happy you like it.

    So everything on the server seems to be up-to-date. The strange thing is that if I open the wp-includes/category.php from that version of WordPress, line 360 is the last line of code. So I’m not sure what part of the code has been called by our plugin.

    Could you checkout the three options on this page: https://www.hostinger.com/tutorials/how-to-fix-maximum-execution-time-exceeded-error-wordpress#gref and see if that solves the issue?

    Thread Starter vitalifehealth

    (@vitalifehealth)

    Thanks Michel.

    I’ve installed the plugin that should prevent the error, and it seemed to rectify the problem, to the extent I could actually go in and fill in all details to generate the feed, then after a long wait after hitting ‘save and generate’, it reverted back to the ‘add feed’ page with the error:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home3/vitalife/cheapdrills.co.uk/wp-includes/taxonomy.php on line 1437

    I know you stated that line 360 was the final line of code, so I’ve no idea why it’s referencing line 1437 now, any ideas?

    Anyway, the feed I generated appeared to be sat in processing, then I checked back one minute later and it said the processing had failed, please try again.

    I’m assuming this is still related to the execution time error?

    Any thoughts?

    Gavin

    Thread Starter vitalifehealth

    (@vitalifehealth)

    Just realised, it’s referencing a different file, hence the different line number.

    I’ve checked line 1437 on the taxonomy file and it’s:

    $int_fields = array( ‘parent’, ‘term_id’, ‘count’, ‘term_group’, ‘term_taxonomy_id’, ‘object_id’ );

    Not quite sure of the relevance of this line, or why it’s causing the issue. Any thoughts?

    Gavin

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Gavin, if you look on your WooCommerce -> Status page, what value does it show for the “PHP time limit”? Is that much different from your other servers?

    If it differs, could you try to increase it to the same value as on the other servers?
    If it’s the same, could you try what happens if you increase this value to lets say 60? You can do that by following step 2 or 3 of the linked article.

    Thread Starter vitalifehealth

    (@vitalifehealth)

    It still shows 30 seconds here, despite me changing the htaccess file timing to 1000 seconds.

    How do I increase this value for woocommerce? I’ve Googled it but nothing comes up specific to this

    Thread Starter vitalifehealth

    (@vitalifehealth)

    I’ve spoken to my host and they have advised we cannot lift the 30 second limit on our current hosting package.

    Any workaround this without changing the php time limit?

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    There might be. Are you a bit confident in working in the code of the plugin? Please only work through FTP (not the edit plugin function of wp-admin) so you can always remove the plugin should your wp-admin fail after the change.

    Assuming you have the free version of the plugin installed and on version 1.12.2, please open the ‘wp-content/plugins/wp-product-feed-manager/includes/libraries/wppfm-background-process.php’ file and navigate to line 498. That line should show the following code:

    $finish = $this->start_time + apply_filters( 'wppfm_default_time_limit', 30 );

    Decrease the 30 seconds time limit to 25, save the file and check again.

    If that does not work, open the same file again and go to line 320. That line should show this code:

    $lock_duration = ( property_exists( $this, 'queue_lock_time' ) ) ? $this->queue_lock_time : 30; // 30 seconds

    Increase the 30 seconds value to 60 seconds and try again.

    Let me know the results

    Thread Starter vitalifehealth

    (@vitalifehealth)

    Hey Michel

    Thanks for the detailed guidance.

    I’ve gone ahead and tried both those things this evening, and it’s unfortunately still showing the error (except it has an issue with a different line each time):

    Fatal error: Maximum execution time of 30 seconds exceeded in /home3/vitalife/cheapdrills.co.uk/wp-includes/taxonomy.php on line 1444

    This shows when I go to the ‘add feed’ page, so doesn’t generate the other necessary fields once the channel and file name are completed.

    Any other thoughts? Sorry to keep bothering you with this.

    Gavin

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    The strange thing is that it only seem to show errors in wordpress files and not in our plugin files. So it’s a bit difficult to trace down where in our plugin it goes wrong.

    Can you find any error logging files with tracing information? Could you please check for any error logging files in the following places:
    1) On WooCommerce -> Status -> Logs
    2) In the root folder of your server
    3) In the “wp-content” folder on your server
    4) In the “wp-content/plugins/wp-product-feed-manager” folder

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hello @vitalifehealth,

    Where you able to solve the issue? If not, could you please check for error loggings in the folders I mentioned in my previous reply?

    Thread Starter vitalifehealth

    (@vitalifehealth)

    Hi Michel

    Really sorry but had to switch to another plugin in the end as I couldn’t get it fixed.

    Hope too many other people don’t have the same issue.

    Thanks again for all your help

    Gavin

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    OK Gavin, sorry to hear we weren’t able to help you.

    I have not heard this issue before but I also hope other users will report it should they have this issue as well.

    Good luck with the other plugin.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Fatal error when going to ‘add feed’’ is closed to new replies.