• M. NASRI

    (@mohammednasri)


    I am using wp cli php library and this class Widget-command is thrwing an error when calling :

    Utils\report_batch_operation_results( ‘widget’, ‘delete’, count( $args ), $count, $errors );

    The exact error is :
    PHP Fatal error: Uncaught Error: Call to undefined function WP_CLI\Utils\report_batch_operation_results() in …\vendor\wp-cli\widget-command\src\Widget_Command.php:364

    I do have the Util namespace, with the function report_batch_operation_results, I suspect the call to the namespace which may cause the issue.

    Could you help please.

    • This topic was modified 3 years, 8 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function WP_CLI\Utils\report_batch_operation_results’ is closed to new replies.