-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[-] CORE : Fix bad dependency injection on module upgrade #4570
[-] CORE : Fix bad dependency injection on module upgrade #4570
Conversation
…n-upgrade [-] CORE : Fix bad dependency injection on module upgrade
Hi @Nobodaddy, Thanks for your feedback. I'm not sure to get what you mean by this fix "does not refresh module page". These return values are filled with this: You can see here the call to |
In theory, maybe. In point of fact there is currently a 500 reported, or a blank page, because the database table ps_module is not updated (e.g. to 2.0.0 for AdvancedEuCompliance). And you know from the French and American forum that I'm not the only one who can reproduce this error. The other misbehaviour (page not refreshed) may have other reasons, because I copied the whole php file of the dev version of AdminModulesController.php into my release 1.6.1.3. |
Hi @Nobodaddy, Thanks for your feedback, another point in favor of not using To avoid any error once you applied my fix on |
Maybe you can avoid errors by previously deleting the modules you want to update, but this cannot be the solution of the problem. We're talking about module updates, not fresh installations! |
@Nobodaddy I cannot reproduce this error, maybe try to edit advancedeucompilant.php, change version to 1.5.1, enable developer mode and try to update module from back-office again? It should show some errors if there will be some, I successfully updated module without any issues so I think that problem can be somewhere else |
This is not what I'm saying here. I give this advice only for AdvancedEUCompliance since it has dependencies injection directly in its constructor, and this is the root of the issue here. (no other module but this one works that way, it was a prequel to new architecture changes) And no, you shouldn't advice users to avoid automatic updates, it was a bug that is now fixed with this patch, no need to do so in the future. But you should advice only users that don't have applied this fix yet and already had auto-updated or manually updated AvancedEUCompliance. Hope this is a clearer answer :) Best regards, |
Yes, it is! ;) |
For cloud, we take care of upgrading core files ourselves for all our users. Your pic isn't related to this issue. The picture is just a warning about untrusted modules, which is another bug we recently discovered and we are working on it. Best regards, |
Just a hint for your search: In the cloud PrestaShop displays this warning even when you try to install a native module. When you switch Disable all overrides to yes, this does the trick. |
No description provided.