Support » Plugin: Infinite Uploads - Offload Your Media to Cloud Storage » PHP Fatal error whith wp cli

  • Resolved dgagnonradiox

    (@dgagnonradiox)


    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

    (@uglyrobot)

    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)
  • You must be logged in to reply to this topic.