Title: PHP Fatal error whith wp cli
Last modified: April 13, 2022

---

# PHP Fatal error whith wp cli

 *  Resolved [dgagnonradiox](https://wordpress.org/support/users/dgagnonradiox/)
 * (@dgagnonradiox)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-whith-wp-cli/)
 * Hi, I got this error once in a while when executing the wp-cli syncing command:
 *     ```
       PHP Fatal error:  Uncaught Error: Call to undefined method LogicException::getAwsErrorCode() in /var/www/html/wp-content/plugins/infinite-uploads/inc/class-infinite-uploads-wp-cli-command.php:305
       Stack trace:
       #0 [internal function]: Infinite_Uploads_WP_CLI_Command->sync()
       #1 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
       #2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
       #3 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
       #4 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(399): WP_CLI\Dispatcher\Subcommand->invoke()
       #5 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(422): WP_CLI\Runner->run_command()
       #6 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1194): WP_CLI\Runner->run_command_and_exit()
       #7 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #8 phar:///usr/bin/wp/vendor/wp-cli/wp-cli in /var/www/html/wp-content/plugins/infinite-uploads/inc/class-infinite-uploads-wp-cli-command.php on line 305
       Fatal error: Uncaught Error: Call to undefined method LogicException::getAwsErrorCode() in /var/www/html/wp-content/plugins/infinite-uploads/inc/class-infinite-uploads-wp-cli-command.php:305
       Stack trace:
       #0 [internal function]: Infinite_Uploads_WP_CLI_Command->sync()
       #1 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
       #2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
       #3 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
       #4 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(399): WP_CLI\Dispatcher\Subcommand->invoke()
       #5 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(422): WP_CLI\Runner->run_command()
       #6 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1194): WP_CLI\Runner->run_command_and_exit()
       #7 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #8 phar:///usr/bin/wp/vendor/wp-cli/wp-cli in /var/www/html/wp-content/plugins/infinite-uploads/inc/class-infinite-uploads-wp-cli-command.php on line 305
       ```
   
 * Is it something from my side?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Aaron Edwards](https://wordpress.org/support/users/uglyrobot/)
 * (@uglyrobot)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-whith-wp-cli/#post-15555767)
 * I believe we replied to your ticket via our site. Just dropping this here for
   posterity:
 *     ```
       It seems like your site is triggering an error type that we haven't seen before, which is causing the error message handler to fail ungracefully. It's most likely related to the max open files restriction in linux and too many parallel connections.
   
       We've crafted yet another beta version of the plugin that should hopefully handle those error types gracefully, displaying the message and retrying.
       https://infiniteuploads.com/wp-content/uploads/2022/03/infinite-uploads.1.1.6-beta-5.zip
   
       Note it's fairly common for some files in the sync to error, normally this is handled gracefully retrying each up to 3 times per sync and displaying a list of any that failed at the end.
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error whith wp cli’ is closed to new replies.

 * ![](https://ps.w.org/infinite-uploads/assets/icon-256x256.png?rev=2470531)
 * [Infinite Uploads - Offload Media and Video to Cloud Storage](https://wordpress.org/plugins/infinite-uploads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-uploads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-uploads/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-uploads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-uploads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-uploads/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aaron Edwards](https://wordpress.org/support/users/uglyrobot/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-whith-wp-cli/#post-15555767)
 * Status: resolved