Jump to content

SOLVED Error autoupgrade module modules/autoupgrade/AdminSelfUpgrade.php on line 497 [TypeError 0]


Recommended Posts

Posted (edited)

Hello

After updating the module to the latest version v5.0.2, the following error appears. How to solve this problem? Regards

PrestaShop\Module\AutoUpgrade\UpgradeSelfCheck::__construct(): Argument #2 ($prestashopConfiguration) must be of type PrestaShop\Module\AutoUpgrade\PrestashopConfiguration, string given, called in /.../modules/autoupgrade/AdminSelfUpgrade.php on line 497

[TypeError 0]

Edited by sylwekb (see edit history)
Link to comment
Share on other sites

Posted (edited)

php version 8.1. Version module 1 click autoupgrade v5.0.1 it worked properly. The problem occurred after updating to module version v5.0.2

I rolled back the module to a previous version 5.0.1 from the location below and everything works fine without error.

https://addons.prestashop.com/en/data-migration-backup/5496-1-click-upgrade.html

Edited by sylwekb (see edit history)
  • Like 1
Link to comment
Share on other sites

  • sylwekb changed the title to SOLVED Error autoupgrade module modules/autoupgrade/AdminSelfUpgrade.php on line 497 [TypeError 0]
Posted (edited)
On 6/6/2024 at 9:46 AM, sylwekb said:

php version 8.1. Version module 1 click autoupgrade v5.0.1 it worked properly. The problem occurred after updating to module version v5.0.2

I rolled back the module to a previous version 5.0.1 from the location below and everything works fine without error.

https://addons.prestashop.com/en/data-migration-backup/5496-1-click-upgrade.html

HI?

How did you download it? i only see the 5.0.2 Version.

Have the same Error Message

 

EDIT: Ok I found a File named "autoupgrade.zip" on following Page

https://github.com/PrestaShop/autoupgrade/releases/tag/v5.0.1

After that i used the "Module Upload" Function in the Modulmanager from the Shop.

Now i can configure the Module "1 Click Upgrade"  again.

Instead of showing the old Version of 5.0.1 in the Modulemanager, it show still the new Version 5.0.2?  Confusing me.

 

Edited by 2waq (see edit history)
Link to comment
Share on other sites

Just yesterday, version 5.0.1 was available for download here. Today I downloaded version 5.0.2 from this website and the same errors appear on all installations of Prestashop 8.1.6, php version 8.1 and Prestashop 1.7.8.11 php 7.4. So this is not a random or one-time problem. I rolled back the module to version 5.0.1 again. Attached from yesterday.

v5.0.1-autoupgrade.zip

  • Thanks 1
Link to comment
Share on other sites

2 minutes ago, sylwekb said:

Just yesterday, version 5.0.1 was available for download here. Today I downloaded version 5.0.2 from this website and the same errors appear on all installations of Prestashop 8.1.6, php version 8.1 and Prestashop 1.7.8.11 php 7.4. So this is not a random or one-time problem. I rolled back the module to version 5.0.1 again. Attached from yesterday.

v5.0.1-autoupgrade.zip 1012.65 kB · 0 downloads

Thx for quickly reply. Have a look to my edit above  🤷

Do you also See Version 5.0.2 in the Modulemanager after downgrading manually to 0.1?

Link to comment
Share on other sites

  • 3 months later...
On 6/7/2024 at 5:17 PM, Prestashop Addict said:

A quick fix in the meantime is to delete the "AdminSelfUpgrade.php" file at the root of the module which normally should have been deleted during the module upgrade.

It will be fixed in next version.

thx!! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...