Skip to content

Call tu undefined function Utils\report_batch_operation_results #55

@nasri-lab

Description

@nasri-lab

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 check please and inform me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions