sylwekb Posted June 6 Share Posted June 6 (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 June 6 by sylwekb (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6 Share Posted June 6 Hi, what is your PHP version? Link to comment Share on other sites More sharing options...
sylwekb Posted June 6 Author Share Posted June 6 (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 June 6 by sylwekb (see edit history) 1 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6 Share Posted June 6 Great, don't forget to add [Solved] to your subject 😉 Link to comment Share on other sites More sharing options...
2waq Posted June 7 Share Posted June 7 (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 June 7 by 2waq (see edit history) Link to comment Share on other sites More sharing options...
sylwekb Posted June 7 Author Share Posted June 7 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 1 Link to comment Share on other sites More sharing options...
2waq Posted June 7 Share Posted June 7 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 More sharing options...
sylwekb Posted June 7 Author Share Posted June 7 Exactly the same. I suspect this is some module error. I hope the module creator will fix this. 1 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 7 Share Posted June 7 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. 4 Link to comment Share on other sites More sharing options...
D4NI3L Posted October 4 Share Posted October 4 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now