Was running OC 3.0.3.8. Host forced upgrade to PHP 8.1. I updated OC to Maintenance 3.0.x.x. Now I cannot access the admin page ("This page is not working, error 500")
Also getting the following error message on some of the website pages. Perhaps its related?:
Unknown: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/paumaz3/storage/vendor/twig/twig/src/Node/Node.php on line 161Unknown: Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/paumaz3/storage/vendor/twig/twig/src/Node/Node.php on line 166
Hopefully someone can help. Thanks a lot.
Also getting the following error message on some of the website pages. Perhaps its related?:
Unknown: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/paumaz3/storage/vendor/twig/twig/src/Node/Node.php on line 161Unknown: Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/paumaz3/storage/vendor/twig/twig/src/Node/Node.php on line 166
Hopefully someone can help. Thanks a lot.
Last edited by mazman on Sat Feb 11, 2023 5:29 am, edited 1 time in total.
Move storage content from 3.0.x.x maintenance to /home/paumaz3/storage/.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
You need to look in your server/PHP error log (not the OpenCart one) for the cause of 500 errors.
Thank you for your response. I realize this may not be a OC issue, but below is the PHP log error received after attempting admin login. Perhaps you could shed some light? Much appreciated.ADD Creative wrote: ↑Fri Feb 10, 2023 10:12 pmYou need to look in your server/PHP error log (not the OpenCart one) for the cause of 500 errors.
[10-Feb-2023 11:50:47 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined method ScssPhp\ScssPhp\Compiler::compileString() in /home/paumaz3/mazcrafters.com/admin/controller/startup/sass.php:17
Stack trace:
#0 /home/paumaz3/storage/modification/system/engine/action.php(79): ControllerStartupSass->index()
#1 /home/paumaz3/mazcrafters.com/system/engine/router.php(67): Action->execute(Object(Registry))
#2 /home/paumaz3/mazcrafters.com/system/engine/router.php(46): Router->execute(Object(Action))
#3 /home/paumaz3/mazcrafters.com/system/framework.php(169): Router->dispatch(Object(Action), Object(Action))
#4 /home/paumaz3/mazcrafters.com/system/startup.php(104): require_once('/home/paumaz3/m...')
#5 /home/paumaz3/mazcrafters.com/admin/index.php(19): start('admin')
#6 {main}
thrown in /home/paumaz3/mazcrafters.com/admin/controller/startup/sass.php on line 17
I don't think that a Subdirectory should be named/called like /mazcrafters.com/, but rather like /mazcrafters_com/ or /mazcrafters/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Also fix your https redirect.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
The Compiler compileString method should be in the <your storage folder>/vendor/scssphp/scssphp/src/Compiler.php file. So check this file.
I have 2 storage folders (that I know of). One is in my root directory and the other is in my SYSTEM folder. That path and file exist in both locations but the files are not the same. The files exist. Other than that, I really don't know how to "check this file". What should I be looking for, and which one should I be looking at??ADD Creative wrote: ↑Sat Feb 11, 2023 2:51 amThe Compiler compileString method should be in the <your storage folder>/vendor/scssphp/scssphp/src/Compiler.php file. So check this file.
Your storage folder will be the one defined in your config.php. Check against the files in a clean download of 3.0.x.x_Maintenance.
I unzipped a fresh version of 3.0.x.x_Maintenance, copied the entire STORAGE folder over and everything works! I sure do appreciate everyone's assistance in this. Thanks a million!ADD Creative wrote: ↑Sat Feb 11, 2023 4:19 amYour storage folder will be the one defined in your config.php. Check against the files in a clean download of 3.0.x.x_Maintenance.
Who is online
Users browsing this forum: No registered users and 6 guests