Post by arhatron » Fri May 27, 2022 8:07 pm

I just installed 4.0.0.0, login to admin. It asks to move /system/storage outside upload folder. There is a red button says "move". I pressed that button. After a while, there is storage folder created under project root.

I thought this storage thing is done. But next time I login the admin, it says again, I need to move my storage folder. I see that /system/storage still exists. And /storage exists, too. Then I delete /system/storage, error happens. Cannot login.

Code: Select all

Warning: require_once(C:/Codes/Opencart/opencart-4.0.0.0/upload/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in C:\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php on line 11

Fatal error: Uncaught Error: Failed opening required 'C:/Codes/Opencart/opencart-4.0.0.0/upload/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.;C:\php\pear') in C:\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php:11 Stack trace: #0 C:\Codes\Opencart\opencart-4.0.0.0\upload\system\framework.php(8): require_once() #1 C:\M\Codes\Opencart\opencart-4.0.0.0\upload\system\startup.php(66): require_once('C:\\Codes\\Open...') #2 C:\Codes\Opencart\opencart-4.0.0.0\upload\admin\index.php(17): require_once('C:\\Codes\\Open...') #3 {main} thrown in C:\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php on line 11
I think a link may solve this problem:

Code: Select all

mklink /d C:\Codes\Opencart\opencart-4.0.0.0\upload\system\storage C:\Codes\Opencart\opencart-4.0.0.0\storage
Now I can login. But after submit, it says:

Code: Select all

Error: Class "Twig\Node\Expression\Binary\GreaterBinary" not found in C:\Codes\Opencart\opencart-4.0.0.0\storage\vendor\twig\twig\src\ExpressionParser.php on line 85
I tried another way, add a Alias in httpd vhosts.conf

Code: Select all

Alias /system/storage "C:/Codes/Opencart/opencart-4.0.0.0/storage"
Then I cannot login again!

Code: Select all

Warning: require_once(C:/M/Codes/Opencart/opencart-4.0.0.0/upload/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in C:\M\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php on line 11

Fatal error: Uncaught Error: Failed opening required 'C:/Codes/Opencart/opencart-4.0.0.0/upload/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.;C:\php\pear') in C:\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php:11 Stack trace: #0 C:\Codes\Opencart\opencart-4.0.0.0\upload\system\framework.php(8): require_once() #1 C:\Codes\Opencart\opencart-4.0.0.0\upload\system\startup.php(66): require_once('C:\\Codes\\Open...') #2 C:\Codes\Opencart\opencart-4.0.0.0\upload\admin\index.php(17): require_once('C:\\Codes\\Open...') #3 {main} thrown in C:\Codes\Opencart\opencart-4.0.0.0\upload\system\vendor.php on line 11
Almost the same as first error.

How can I do it right?

New member

Posts

Joined
Wed Sep 07, 2016 12:38 pm

Post by arhatron » Fri May 27, 2022 9:56 pm

I used the zip file from opencart official site https://www.opencart.com/index.php?route=cms/download

Now I tried another way, not to use the zip file. I clone the opencart project from github.

It ask me to delete install folder, move storage folder, rename the folder. And it woks!! I logout, then login, it doesn't ask me again!!

The system/storage folder still exists. But it really doesn't ask me anymore.

New member

Posts

Joined
Wed Sep 07, 2016 12:38 pm

Post by Qphoria » Fri May 27, 2022 10:26 pm

This has been addressed here:
viewtopic.php?f=211&t=228495

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 38 guests