• 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

Unable to connect to Google account

QSong

Chevereto Member
▶ Reproduction steps
  1. Use Google Account Link to my Chevereto account
😢 Unexpected result

Can't link with Google account, web page can't be accessed.

PHP 7.4 No problems😆

📃 Error log message

[CODE title="error log"]Aw, snap! Internal Server Error [debug @ print,error_log] - https://v3-docs.chevereto.com/setup/debug.html

Fatal error [0]: Trying to access array offset on value of type bool
Triggered in /app/lib/classes/class.login.php:452

Stack trace:
#0 /app/lib/classes/class.login.php(452): G\errorsAsExceptions()
#1 /app/lib/classes/class.login.php(127): CHV\Login::validateCookie()
#2 /app/lib/classes/class.login.php(109): CHV\Login::loginCookie()
#3 /app/lib/classes/class.login.php(77): CHV\Login::tryCookies()
#4 /app/web.php(68): CHV\Login::tryLogin()
#5 /lib/G/classes/class.handler.php(125): CHV\{closure}()
#6 /app/web.php(471): G\Handler->__construct()
#7 /app/loader.php(296): require_once('/app/web.php')
#8 /index.php(20): include_once('/app/loader.php')[/CODE]
 
Check your php cache, demo works fine login with Google.
 
It seems that the syntax of PHP 8.0 is more rigorous. for example:
I use VK to link to my account and I get the following error

[CODE title="vk error log"]Aw, snap! Internal Server Error [debug @ print,error_log] - https://v3-docs.chevereto.com/setup/debug.html

Fatal error [0]: Undefined array key "return"
Triggered in /app/routes/route.connect.php:38

Stack trace:
#0 /app/routes/route.connect.php(38): G\errorsAsExceptions()
#1 /lib/G/classes/class.handler.php(230): G\Handler->{closure}()
#2 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#3 /app/web.php(471): G\Handler->__construct()
#4 /app/loader.php(296): require_once('/app/web.php')
#5 /index.php(20): include_once('/app/loader.php')[/CODE]

Just because the variable is undefined and needs to be initialized
 
I can't confirm this bug, it seems that it was just a PHP 8 syntax issue. Dear @QSong can you confirm it? Is this still a problem for you?
 
I tested it again, and PHP 8.0 seems to have the same problem. The application environment I use is BaoTa (https://github.com/aaPanel/BaoTa). Maybe there is a problem with this integrated environment?

A digression, BaoTa panel is very popular in China, it is a popular Linux server management software

Code:
Aw, snap! Internal Server Error [debug @ print,error_log] - https://chevereto.com/go/debug

** errorId #14495b87ac787e38 **
>> ErrorException [0]: Undefined array key "return"
At /app/routes/route.connect.php:38

Stack trace:
#0 /app/routes/route.connect.php(38): G\errorsAsExceptions()
#1 /lib/G/classes/class.handler.php(230): G\Handler->{closure}()
#2 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#3 /app/web.php(411): G\Handler->__construct()
#4 /app/loader.php(230): require_once('/app/web.php')
#5 /index.php(20): include_once('/app/loader.php')
 
I'm sorry but V3.20 was designed for PHP 7.4, it is not guaranteed for PHP 8.
 
Back
Top