Post by mazman » Fri Feb 10, 2023 8:07 am

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.
Last edited by mazman on Sat Feb 11, 2023 5:29 am, edited 1 time in total.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by xxvirusxx » Fri Feb 10, 2023 4:31 pm

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by mazman » Fri Feb 10, 2023 9:57 pm

xxvirusxx wrote:
Fri Feb 10, 2023 4:31 pm
Move storage content from 3.0.x.x maintenance to /home/paumaz3/storage/.
This appears to have solved the "Twig" error. Thank you!
However, I still am unable to access the admin page. "This Page is Not Working" Error 500. Any ideas?

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by ADD Creative » Fri Feb 10, 2023 10:12 pm

You need to look in your server/PHP error log (not the OpenCart one) for the cause of 500 errors.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mazman » Sat Feb 11, 2023 12:57 am

ADD Creative wrote:
Fri Feb 10, 2023 10:12 pm
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.

[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

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by IP_CAM » Sat Feb 11, 2023 2:03 am

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by xxvirusxx » Sat Feb 11, 2023 2:19 am

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by ADD Creative » Sat Feb 11, 2023 2:51 am

The Compiler compileString method should be in the <your storage folder>/vendor/scssphp/scssphp/src/Compiler.php file. So check this file.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mazman » Sat Feb 11, 2023 2:52 am

IP_CAM wrote:
Sat Feb 11, 2023 2:03 am
I don't think that a Subdirectory should be named/called like /mazcrafters.com/, but rather like /mazcrafters_com/ or /mazcrafters/
It's the way Dreamhost (hosting service) set it up.
Any other thoughts?

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by mazman » Sat Feb 11, 2023 4:01 am

ADD Creative wrote:
Sat Feb 11, 2023 2:51 am
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??

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by ADD Creative » Sat Feb 11, 2023 4:19 am

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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mazman » Sat Feb 11, 2023 5:29 am

ADD Creative wrote:
Sat Feb 11, 2023 4:19 am
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!

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am
Who is online

Users browsing this forum: No registered users and 6 guests