No results found

Try a different search query

Popular searches:

Add to Cart

Cart

You have no purchases yet

Browse Marketplace
Original Subtotal:
Product discounts:
Quantity Discount:
Total:
View Cart
Solved

Error "Class not found" after updating OpenCart 4

A
admin4eg Member Topic author
#1

Після оновлення до останньої версії OC4 з'явилась помилка:

Fatal error: Class 'Opencart\System\Engine\Controller' not found

Кеш очищено, права перевірено. Що може бути?

Solution by Олексій Коваленко Jump to solution ↓ Here's a solution that works for me in production: Step 1: Check PHP version php -v # Need 8.0 or higher Step 2: Clear cache completely rm -rf storage/cache/* rm -rf system/storage/cache/* Step 3: Check permissions chmod...

1 post

Solution #2

Here's a solution that works for me in production:

Step 1: Check PHP version

php -v
# Need 8.0 or higher

Step 2: Clear cache completely

rm -rf storage/cache/*
rm -rf system/storage/cache/*

Step 3: Check permissions

chmod -R 755 storage/
chmod -R 755 system/storage/

Step 4: Check namespace in controller

namespace Opencart\Admin\Controller\Module;
// Must match the file path

After these steps, the problem usually resolves!

Reply to this topic

Log in to reply

Log in

Report

We use cookies

We use cookies and similar technologies to improve your experience, analyse traffic, and show personalised ads. Read our Cookie Policy for details.