• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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