• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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