• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Wordpress Cron: Unknown named parameter $interval

floh

Basic Pleskian
Server operating system version
Debian GNU/Linux 10 \n \l
Plesk version and microupdate number
Obsidian 18.0.54
Hi,

I have a issue and I get daily an email with following subject:
Code:
Cron <***.**_********@***> (/opt/plesk/php/8.0/bin/php -f 'httpdocs/wp-cron.php')  > /dev/null

And following content:
Code:
PHP Fatal error:  Uncaught Error: Unknown named parameter $interval in /var/www/vhosts/***.**/httpdocs/wp-includes/class-wp-hook.php:308
Stack trace:
#0 /var/www/vhosts/***.**/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#1 /var/www/vhosts/***.**/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
#2 /var/www/vhosts/***.**/httpdocs/wp-cron.php(188): do_action_ref_array()
#3 {main}
  thrown in /var/www/vhosts/***.**/httpdocs/wp-includes/class-wp-hook.php on line 308
Unfortunately I don't have an idea how to narrow down the problem. Any hints? I'm not sure if this is Plesk/WP-Toolkit related, maybe not.

Best regards
Floh
 
This does not seem to be a Plesk or WP Toolkit issue. It migh be better asked in a Wordpress specific forum, because wp-cron.php is the Wordpress script to execute scheduled jobs (for affairs that need to be cared for within Wordpress).
 
Thank you for your quick reply. Will ask in Wordpress forum. I just want to be sure if it's not related to WP-Toolkit.

Best regards
Floh
 
I agree with @Maarten. that it's probably a PHP compatibility issue. Although I'd recommend first switching to previous PHP version of the version you're currently running. So if you are currently running PHP 8.2, switch to 8.1, if that doesn't solve the issue try 8.0 and otherwise try PHP 7.4.

Edit: I just noticed from the cron job that you're running PHP 8.0, so switching directly to PHP 7.4 makes sense as already Maarten suggested.
 
Last edited:
Hi everybody. That is a good hint, it was running with 8.0, now I installed 8.2 on Plesk and switched to that version. I hope the error is gone now if not I'll try different PHP-Version. In meanwhile I'll also try to find out where I can find logs from Wordpress.
 
Switch to PHP 8.2 fixed the issue. Thank you! :)

(Where can I mark this thread as resolved?)
 
Back
Top