Title: Call to undefined function WP_CLI\Utils\report_batch_operation_results
Last modified: October 4, 2022

---

# Call to undefined function WP_CLI\Utils\report_batch_operation_results

 *  [M. NASRI](https://wordpress.org/support/users/mohammednasri/)
 * (@mohammednasri)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_cliutilsreport_batch_operation_results/)
 * 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](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcall-to-undefined-function-wp_cliutilsreport_batch_operation_results%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_cliutilsreport_batch_operation_results/#post-16081064)
 * Have a look at the manual, there you can see the necessary call in full: [https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-report-batch-operation-results/](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-report-batch-operation-results/)

Viewing 1 replies (of 1 total)

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

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_cliutilsreport_batch_operation_results/#post-16081064)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
