Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upgrade Open Cart 3.0.3.6 from 3.0.3.3 #8098

Closed
jameswill opened this issue Jul 21, 2020 · 5 comments
Closed

Unable to upgrade Open Cart 3.0.3.6 from 3.0.3.3 #8098

jameswill opened this issue Jul 21, 2020 · 5 comments
Labels
3.0.x.x Affects the 3.0.x.x maintenance version

Comments

@jameswill
Copy link

3.0.3.6

Describe the bug
While upgrading Open cart from 3.0.3.3 to 3.0.3.6 I am getting following error.

**Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in {PATH}/system/library/template/twig.php:31

Stack trace: #0 {PATH}/system/library/template.php(51): Template\Twig->render('common/header', '...')**

To Reproduce
Steps to reproduce the behavior:

  1. Download the latest version
  2. Update the new package onto existing package (backing up your config files)
  3. Visit opencart installer
  4. I am facing above said error.

Expected behavior
OpenCart upgrade should start on visiting installer.

Server / Test environment (please complete the following information):

  • PHP version 7.3
@chongshengdz
Copy link
Contributor

no database changed, upgrade is easy, just copy back 2 cofig files and third-party (custom) extensions.

@danielkerr
Copy link
Member

danielkerr commented Jul 21, 2020

ahh maybe u need to move the vendor folder from system/storage/vendor to ../../storage/vendor

@condor2
Copy link
Contributor

condor2 commented Jul 21, 2020

@danielkerr reupload another 3.0.3.6 zip file. In the current one is not this fix

e0986ea

@reetp
Copy link

reetp commented Aug 6, 2020

Happened to me using git.

Found I had to:

git clone
git checkout tags/3.0.3.6
mv upload/system/storage/vendor upload/system/storage/vendor.old

I am using PHP SCL so have to use php73 :

curl -sS https://getcomposer.org/installer | php73 -d allow_url_fopen=On
php73 -d allow_url_fopen=On  -f composer.phar install

That pulled in the correct vendor files.

Move the /upload files to your working dir.

Run install.

Once it is finished, move the contents of system/storage to opencartTmp

Carry on.

I have no idea why this works.

If you copy the temp dirs to opencartTmp first you can't run install (or upgrade)
fopen/flock/fwrite errors on system/storage/session

If you don't copy the files to the opencartTmp AFTER the upgrade you get errors from library/cache/file.php

Something odd going on.

@WebkulOpencart WebkulOpencart added the 3.0.x.x Affects the 3.0.x.x maintenance version label Dec 23, 2020
@prabhat-webkul
Copy link
Contributor

fixes are already there for https://github.com/opencart/opencart/tree/3.0.x.x_Maintenance. a new release will be there soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0.x.x Affects the 3.0.x.x maintenance version
Projects
None yet
Development

No branches or pull requests

7 participants