• Resolved srumery

    (@srumery)


    Running the WP CLI command wp cron test shows the following error:

    PHP Fatal error: Uncaught TypeError: Return value of NF_Admin_Metaboxes_Calculations::registerReactMetabox() must be an instance of void, none returned in /home/public_html/wp-content/plugins/ninja-forms/includes/Admin/Metaboxes/Calculations.php:37

    When the plugins is deactivated the command runs just fine. The site is running WP v5.8.2 with PHP 7.4. Hopefully you can reproduce this and address the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I get the exact same error when attempting a command in WP-CLI for any website running Ninja Forms. Have you been able to figure it out?

    Hi, not a fix for the issue, but you could run WP-CLI with the –skip-plugins flag and then add ninja-forms.

    Like this:
    wp cron test --skip-plugins=ninja-forms

    That should allow the command to run while this issues gets addressed. You could also just use –skip-plugins and skip loading any plugin, if that works best for your use case.

    wp cron test

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using WP CLI Commands Causes Critical Error’ is closed to new replies.