• One of my front end users reports that they couldn’t see their photos in WP-Stateless version 4.4.1:

    The error in the backend-media uploader indicated that it was a server problem.

    I didn’t have this problem on another site with basically the same configuration.

    I downgraded to 4.3 and the problem went away.

    My server reports this error over and over again whenever someone tries an upload with the latest version.

    PHP Fatal error: Uncaught TypeError: Cannot assign int to property Monolog\Handler\AbstractHandler::$level of type Monolog\Level in /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:60 Stack trace: #0 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php(38): Monolog\Handler\AbstractHandler->setLevel(250) #1 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(53): Monolog\Handler\AbstractHandler->__construct(250, true) #2 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/src/Client.php(1191): Monolog\Handler\StreamHandler->__construct(‘php://stderr’, 250) #3 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/src/Client.php(1179): Google\Client->createDefaultLogger() #4 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/src/Service/Resource.php(190): Google\Client->getLogger() #5 /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/google/apiclient-services/src/Storage/Resource/Objects.php(302): Google\Service\Resource->call(‘insert’, Array, ‘Google\\Service\\…’) #6 /srv/htdocs/wp-content/plugins/wp-stateless/lib/classes/class-gs-client.php(269): Google\Service\Storage\Resource\Objects->insert(‘jungle-flower-w…’, Object(Google\Service\Storage\StorageObject), Array) #7 /srv/htdocs/wp-content/plugins/wp-stateless/lib/classes/class-utility.php(343): wpCloud\StatelessMedia\GS_Client->add_media(Array) #8 /wordpress/core/6.9/wp-includes/class-wp-hook.php(341): wpCloud\StatelessMedia\Utility::add_media(Array, 3030) #9 /wordpress/core/6.9/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #10 /wordpress/core/6.9/wp-includes/post.php(6952): apply_filters(‘wp_update_attac…’, Array, 3030) #11 /wordpress/core/6.9/wp-admin/includes/image.php(395): wp_update_attachment_metadata(3030, Array) #12 /wordpress/core/6.9/wp-admin/includes/image.php(169): wp_create_image_subsizes(‘/srv/htdocs/wp-…’, 3030) #13 /wordpress/core/6.9/wp-admin/includes/ajax-actions.php(2545): wp_update_image_subsizes(3030) #14 /wordpress/core/6.9/wp-includes/class-wp-hook.php(341): wp_ajax_media_create_image_subsizes(”) #15 /wordpress/core/6.9/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(”, Array) #16 /wordpress/core/6.9/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #17 /wordpress/core/6.9/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_media-c…’) #18 {main} thrown in /srv/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php on line 60

    Thanks for creating this plugin. It works great most of the time

Viewing 3 replies - 1 through 3 (of 3 total)
  • @idougal You possibly have another plugin or functionality that uses a different version of the Monolog library than the Google API client, which is included in wp-stateless.

    Thread Starter BERJAYAidougal

    (@idougal)

    We haven’t changed any plugins or configurations (except for updates) for over a year and stateless has worked fine up until we upgraded stateless to 4.4.1.

    Stateless still works with 4.3 without any other changes, so it seems that something changed in the the latest Stateless release.

    • This reply was modified 3 months, 1 week ago by BERJAYAidougal.

    @idougal Yes, the Monolog version shipped with wp-stateless has changed and your error message points to it now conflicting with some other plugin’s different Monolog version

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.