• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

After updating to version 4.2.1, an error occurred while uploading images using Google Cloud Storage as external storage.

lars1243

Chevereto Member
Currently, I have disabled Google Cloud Storage and switched to using S3 compatible storage on Cloudflare R2, which is working without any issues.

The error:
Code:
DomainException thrown in /var/www/html/app/vendor/google/apiclient/src/Client.php:285

# Message
set the JSON service account credentials using Google\Client::setAuthConfig or set the path to your JSON file with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable and call Google\Client::useApplicationDefaultCredentials to refresh a token with assertion.

# Time
2024-11-04T13:39:25+00:00 [1730727565]

# Incident 6728ce8d5888b

# Backtrace
------------------------------------------------------------
0 /var/www/html/app/vendor/google/apiclient/src/Client.php:285
{main}()
------------------------------------------------------------
1 /var/www/html/app/src/Legacy/Classes/Storage.php:665
Google\Client->fetchAccessTokenWithAssertion()
------------------------------------------------------------
2 /var/www/html/app/src/Legacy/Classes/Storage.php:126
Chevereto\Legacy\Classes\Storage::requireAPI()
------------------------------------------------------------
3 /var/www/html/app/src/Legacy/Classes/Storage.php:432
Chevereto\Legacy\Classes\Storage::uploadFiles()
------------------------------------------------------------
4 /var/www/html/app/src/Legacy/Classes/Storage.php:553
Chevereto\Legacy\Classes\Storage::test()
------------------------------------------------------------
5 /var/www/html/app/legacy/routes/json.php:776
Chevereto\Legacy\Classes\Storage::update()
------------------------------------------------------------
6 /var/www/html/app/src/Legacy/G/Handler.php:455
Chevereto\Legacy\G\Handler->{closure}()
------------------------------------------------------------
7 /var/www/html/app/src/Legacy/G/Handler.php:179
Chevereto\Legacy\G\Handler->processRequest()
------------------------------------------------------------
8 /var/www/html/app/legacy/load/web.php:662
Chevereto\Legacy\G\Handler->__construct()
------------------------------------------------------------
9 /var/www/html/app/legacy/entrypoints/index.php:43
require_once(string(length=37))
------------------------------------------------------------
10 /var/www/html/index.php:12
require_once(string(length=46))
------------------------------------------------------------

Storage setting:

1730728671859.png
The functionality was working normally before the update. However, we encountered a syntax error in:/var/www/html/app/vendor/google/apiclient/src/Http/REST.php
with the line [get_class(), 'doExecute']
It should be:
PHP:
[self::class, 'doExecute']

PHP:
$runner = new Runner(
        $config,
        sprintf('%s %s', $request->getMethod(), (string) $request->getUri()),
        [get_class(), 'doExecute'], <--------------- This line
        [$client, $request, $expectedClass]
    );"


Code:
# Message [Code #8192]
Calling get_class() without arguments is deprecated

# Incident ID:6715fa320ca1e

# Time
2024-10-21T06:52:34+00:00 [1729493554]

# Stack trace
------------------------------------------------------------
#0 /var/www/html/app/vendor/google/apiclient/src/Http/REST.php:58
{main}()
------------------------------------------------------------
#1 /var/www/html/app/vendor/google/apiclient/src/Http/REST.php:58
get_class()
------------------------------------------------------------
#2 /var/www/html/app/vendor/google/apiclient/src/Client.php:917
Google\Http\REST::execute()
------------------------------------------------------------
#3 /var/www/html/app/vendor/google/apiclient/src/Service/Resource.php:238
Google\Client->execute()
------------------------------------------------------------
#4 /var/www/html/app/vendor/google/apiclient-services/src/Storage/Resource/Objects.php:296
Google\Service\Resource->call()
------------------------------------------------------------
#5 /var/www/html/app/src/Legacy/Classes/Storage.php:197
Google\Service\Storage\Resource\Objects->insert()
------------------------------------------------------------
#6 /var/www/html/app/src/Legacy/Classes/Storage.php:393
Chevereto\Legacy\Classes\Storage::uploadFiles()
------------------------------------------------------------
#7 /var/www/html/app/src/Legacy/Classes/Storage.php:454
Chevereto\Legacy\Classes\Storage::test()
------------------------------------------------------------
#8 /var/www/html/app/legacy/routes/json.php:787
Chevereto\Legacy\Classes\Storage::insert()
------------------------------------------------------------
#9 /var/www/html/app/src/Legacy/G/Handler.php:255
Chevereto\Legacy\G\Handler->{closure}()
------------------------------------------------------------
#10 /var/www/html/app/src/Legacy/G/Handler.php:171
Chevereto\Legacy\G\Handler->processRequest()
------------------------------------------------------------
#11 /var/www/html/app/legacy/load/web.php:515
Chevereto\Legacy\G\Handler->__construct()
------------------------------------------------------------
#12 /var/www/html/app/legacy/entrypoints/index.php:35
require_once(string(length=37))
------------------------------------------------------------
 
Hello,

Thanks for reporting this.

Chevereto v4.2.1 uses google/apiclient v2.14.0. The bug you mentioned was resolved by the upstream in commit 8c66021. I've updated the dependencies, and Chevereto v4.2.2 now uses google/apiclient v2.18.0, which includes this fix.
 
Back
Top