• When posting a bug keep in mind to provide all the steps and context required to replicate the alleged bug. We will reject bug reports not compiling with our guidelines.

Reviewing Unable to connect to Google account

Version
3.19.0.beta.2
Website URL
https://resbeta.com/
PHP version
8.0.3
Database driver
MariaDB
Database version
10.4.15
Web browser
Chrome

QSong

Chevereto Member
Beta tester
▶ 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]
 

Rodolfo

⭐ Chevereto Godlike
Chevereto Staff
Administrator
Check your php cache, demo works fine login with Google.
 

QSong

Chevereto Member
Beta tester
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
 
Top