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

"Applying patches..." for end fo word #13832

Closed
hermannmisi opened this issue Apr 2, 2024 · 11 comments
Closed

"Applying patches..." for end fo word #13832

hermannmisi opened this issue Apr 2, 2024 · 11 comments

Comments

@hermannmisi
Copy link

I can see this in the error.log:
[28-Mar-2024 14:30:18 Europe/Budapest] PHP Fatal error: Uncaught Error: Failed opening required '/home/listazoe/shop/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/listazoe/shop/system/vendor.php:6
Stack trace:
#0 /home/listazoe/shop/system/framework.php(8): require_once()
#1 /home/listazoe/shop/install/index.php(42): require_once('/home/listazoe/...')
#2 {main}
thrown in /home/listazoe/shop/system/vendor.php on line 6

vendor.php on line 6:
require_once(DIR_STORAGE . 'vendor/aws/aws-sdk-php/src/functions.php');

What version of OpenCart are you reporting this for?
4.0.2.1

Describe the bug
I click on the Upgrade button and I can see "coping files..." and then "applying patches" and no changes

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'System'
  2. Click on 'Maintenance'
  3. Click on 'Upgrage'
  4. See neverending upgrade process

Screenshots / Screen recordings
Uploading image.png…

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

  • Operating system: Linux (Cpanel surface)
  • PHP version: 8.3
  • Browser(s) tested with [e.g. chrome, safari - if applicable]: Chrome
@hermannmisi
Copy link
Author

image

@danielkerr
Copy link
Member

danielkerr commented Apr 2, 2024

go to the console so u can see any errors

@hermannmisi
Copy link
Author

SyntaxError: Unexpected token '<', "

"... is not valid JSON
parsererror


Warning: require_once(/home/.../shop/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in /home/.../shop/system/vendor.php on line 6



Fatal error: Uncaught Error: Failed opening required '/home/.../shop/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/.../shop/system/vendor.php:6
Stack trace:
#0 /home/.../shop/system/framework.php(8): require_once()
#1 /home/.../shop/install/index.php(42): require_once('/home/.../...')
#2 {main}
thrown in /home/.../shop/system/vendor.php on line 6

@mhcwebdesign
Copy link
Collaborator

You shouldn't use OC 4.0.2.1, at least go with 4.0.2.3, or later (if testing)! Besides, you are using wrong or corrupted files, because line 6 in system/vendor.php contains this:

$autoloader->register('AWS/CRT/IO', DIR_STORAGE . 'vendor/aws/aws-crt-php/src/AWS/CRT/IO/', true);

and not this:

require_once(DIR_STORAGE . 'vendor/aws/aws-sdk-php/src/functions.php');

@hermannmisi
Copy link
Author

Ok, but I install it this version because it was the newest.
Now on the console have this message:
SyntaxError: Unexpected token '<', "

"... is not valid JSON
parsererror


Warning: require_once(/home/listazoe/shop/system/storage/vendor/guzzlehttp/guzzle/src/functions_include.php): Failed to open stream: No such file or directory in /home/listazoe/shop/system/vendor.php on line 10



Fatal error: Uncaught Error: Failed opening required '/home/.../shop/system/storage/vendor/guzzlehttp/guzzle/src/functions_include.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/.../shop/system/vendor.php:10
Stack trace:
#0 /home/.../shop/system/framework.php(8): require_once()
#1 /home/.../shop/install/index.php(42): require_once('/home/listazoe/...')
#2 {main}
thrown in /home/.../shop/system/vendor.php on line 10

vendor.php line 10:
require_once(DIR_STORAGE . 'vendor/guzzlehttp/guzzle/src/functions_include.php');

How can I install the newest version if I have more wrong lines? At the Backup & Restore menu point can I upload the 4.0.2.1.zip file?

@mhcwebdesign
Copy link
Collaborator

Don't bother with 4.0.2.1, it has too many bugs. Go at least with 4.0.2.3. Please also read this: https://forum.opencart.com/viewtopic.php?p=868703

@hermannmisi
Copy link
Author

I downloaded the 4.0.2.3 and upzipped and then uploaded to the folder and Opened the install "file" and I have this question:
image

And I checked the file:
image

I cannot overwrite it because in the zip file doesn't contain the admin/config.php

@osworx
Copy link
Contributor

osworx commented Apr 12, 2024

I cannot overwrite it because in the zip file doesn't contain the admin/config.php

Such questions should be made in the forum > https://forum.opencart.com/
Next: you will never find any config.php because you have to rename first both config-dist.php before you start the installation!

@danielkerr
Copy link
Member

read the INSTALL.md

@hermannmisi
Copy link
Author

Yeah, I tried the upgrade.md. Now in cpanel I can see the newest version but on the upgrage surface 4.0.2.1. Must be remember this in the future.
And everything is deleted but not problem I can write again the SW details. I have just one.

Thanks!

@danielkerr
Copy link
Member

i think missing some files when it was uploaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants