• Resolved Denis Pintilie

    (@denisflorin197)


    Hello,

    Do you know why I see this error when running the cron via wp-cli?

    /app/web$ wp cron event run wpseo_permalink_structure_check
    Executed the cron event 'wpseo_permalink_structure_check' in 0.059s.
    PHP Recoverable Error: Uncaught exception 'Error' with message 'Unknown named parameter $uniqid' in /app/web/wp-includes/class-wp-hook.php on line 308, request: GET 
    Error: Ooops! Something went wrong.. This site is currently experiencing some problems. Please try again later
    
    
    /app/web$ wp cron event run wp_site_health_scheduled_check
    Executed the cron event 'wp_site_health_scheduled_check' in 1.099s.
    Success: Executed a total of 1 cron event.
    

    As you can see above, if I run another cron I get the success message.

    Best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Denis,

    Thanks for using the Yoast SEO plugin.

    We’re unfamiliar with the error and couldn’t replicate it locally in PHP 8.1.9. In this screenshot, the cron event was successfully executed on our test site.

    Please ensure you’re running the latest version of WordPress, your theme and other plugins. If they’re already updated, try to run the cron event on a staging site where all non-Yoast plugins are disabled and a default WordPress theme is being used.

    If the problem persists, it may be related to the permalink structure. Please share a screenshot of what you have in WordPress > Settings > Permalinks.

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP8 error when trying to run cron’ is closed to new replies.