Post by asifkhan » Tue Aug 18, 2020 1:54 am

Hi there,
I try to upgrade opencart from version 3.0.3.3 to version 3.0.3.6, First I download zip file for 3.0.3.6.
I take backup of the existing version and then I upload the files in upload directory except config.php
I run the www.website.com/install/ and I found that all goes good. However, admin panel does not run successfully. I got the following error

Fatal error: Uncaught Error: Class 'ScssPhp\ScssPhp\Compiler' not found in /homepages/17/d285512468/htdocs/website.com/admin/controller/startup/sass.php:14 Stack trace: #0 /homepages/17/d285512468/htdocs/website.com/storage/modification/system/engine/action.php(79): ControllerStartupSass->index() #1 /homepages/17/d285512468/htdocs/website.com/system/engine/router.php(67): Action->execute(Object(Registry)) #2 /homepages/17/d285512468/htdocs/website.com/system/engine/router.php(46): Router->execute(Object(Action)) #3 /homepages/17/d285512468/htdocs/website.com/system/framework.php(165): Router->dispatch(Object(Action), Object(Action)) #4 /homepages/17/d285512468/htdocs/website.com/system/startup.php(104): require_once('/homepages/17/d...') #5 /homepages/17/d285512468/htdocs/website.com/admin/index.php(19): start('admin') #6 {main} thrown in /homepages/17/d285512468/htdocs/website.com/admin/controller/startup/sass.php on line 14


Anybody please help, thanks in advance.

Newbie

Posts

Joined
Tue Aug 18, 2020 1:31 am

Post by sw!tch » Tue Aug 18, 2020 4:28 am

Guessing the storage folder path is wrong or the storage folder didn't get copied over from the updated install. Its probably using your original storage folder. hence missing the class.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by asifkhan » Tue Aug 18, 2020 1:06 pm

I have 2 storage folders, one is system/storage and another one is on root directory. Which one is correct and what should I do next?

Newbie

Posts

Joined
Tue Aug 18, 2020 1:31 am

Post by sw!tch » Tue Aug 18, 2020 1:28 pm

asifkhan wrote:
Tue Aug 18, 2020 1:06 pm
I have 2 storage folders, one is system/storage and another one is on root directory. Which one is correct and what should I do next?
Depends on where your storage path is pointing in your config. Assuming its the root storage folder, so if that's the case try below.

Backup your current root storage folder first. Then copy the one from system/storage to the root.

The problem is likely on upgrade, it fails to update the "moved" or existing storage folder with the updated vendor packages, which is why you get the missing class error.

Again.. Make sure you backup first.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by asifkhan » Tue Aug 18, 2020 9:00 pm

Yes it works for me. Thanks alot :)

Newbie

Posts

Joined
Tue Aug 18, 2020 1:31 am

Post by khnaz35 » Tue Aug 18, 2020 11:32 pm

asifkhan wrote:
Tue Aug 18, 2020 9:00 pm
Yes it works for me. Thanks alot :)
Great!
Kindly add the word [SOLVED] in the beginning of your post title.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by rumani007 » Wed Jul 14, 2021 2:36 pm

sw!tch wrote:
Tue Aug 18, 2020 1:28 pm
asifkhan wrote:
Tue Aug 18, 2020 1:06 pm
I have 2 storage folders, one is system/storage and another one is on root directory. Which one is correct and what should I do next?
Depends on where your storage path is pointing in your config. Assuming its the root storage folder, so if that's the case try below.

Backup your current root storage folder first. Then copy the one from system/storage to the root.

The problem is likely on upgrade, it fails to update the "moved" or existing storage folder with the updated vendor packages, which is why you get the missing class error.

Again.. Make sure you backup first.
This worked for me as well, Thank you

Newbie

Posts

Joined
Wed Jul 14, 2021 2:34 pm

Post by Antique-Centre » Thu Dec 30, 2021 4:12 pm

Great help worked for me too, thanks.
PS. I didn't back up the root file, I just renamed it "_old"


Posts

Joined
Sun Jun 23, 2019 1:18 am

Post by pjdm » Fri Jul 15, 2022 11:00 pm

The problem is likely on upgrade, it fails to update the "moved" or existing storage folder with the updated vendor packages, which is why you get the missing class error.
wasted a few days tracking 500 error until I realized the root/storage folders had not been updated when it was moved from public_html/storage. This topic pointed me to the problem. Thanks.

Newbie

Posts

Joined
Thu Jan 25, 2018 10:38 am
Who is online

Users browsing this forum: No registered users and 132 guests