Scssc not found error in OpenCart

If you are getting error like the one mentioned below when you attempted to clear cache, it is mostly because the storage folder location is not setup properly.

Fatal error: Uncaught Error: Class 'Scssc' not found in /home/www/estore.mydomain.com/admin/controller/startup/sass.php:9 Stack trace: #0 /home/www/estore.mydomain.com/system/engine/action.php(79): ControllerStartupSass->index()

Solution

  1. Edit the config.php and admin/config.php
  2. Update the storage directory location to the default one, i.e public_html/system/storage/
  3. Now you will be able to access the admin. You will be prompted to update the storage location path.
  4. Choose the location outside public_html, add a name for example, storage3032

Reference: https://github.com/opencart/opencart/issues/6890

Leave a Reply