I'm using OC 3.0.3.8 with PHP 7.4 without any problem for 2 years. Yesterday my website suddenly stop working with this error:
Unknown: Creation of dynamic property Request::$request is deprecated in /home/ABC/XYZ/system/library/request.php on line 26
Below is the content of error_log file:
Code: Select all
[06-Feb-2025 16:33:11 UTC] PHP Fatal error: Uncaught Error: Class "MySQLi" not found in /home/ABC/XYZ/system/library/db/mysqli.php:8
Stack trace:
#0 /home/ABC/XYZ/system/library/db.php(31): DB\MySQLi->__construct('localhost', 'ABC_ocar19...', 'ak92s@3oHkX', 'ABC_ocar19...', '3306')
#1 /home/ABC/XYZ/system/framework.php(80): DB->__construct('mysqli', 'localhost', 'ABC_ocar19...', 'ak92s@3oHkX', 'ABC_ocar19...', '3306')
#2 /home/ABC/XYZ/system/startup.php(104): require_once('/home/ABC/...')
#3 /home/ABC/XYZ/index.php(19): start('catalog')
#4 {main}
thrown in /home/ABC/XYZ/system/library/db/mysqli.php on line 8
I spend 4 hours to fix with editing request.php, changing PHP extensions, upgrading to PHP 8.2. I also install fresh OC 3.0.4.0 and the demo working fine but my website still show that error. I really get stuck now. Hope anyone can help or show me the way to fix it.
Thank you in advanced. I really appreciate it.