-
Notifications
You must be signed in to change notification settings - Fork 4.8k
-
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
IMPROVE [BO]: improve error msg on (install\uninstall) module in case of dirty Override files #29393
Comments
Hello @ramtin2025 Thanks for reporting the issue! Thanks! |
I attach a sample simple module with one overrided method in "Product.php" file.
|
Hello @ramtin2025 Thanks for the module 🙏 issue_29393.mp4While with PS1778, the module has been uninstalled without any error, so it's a regression on 1.7.8.0! Please be aware that due to the high number of reported issues, some bugs might take a very long time to be resolved. If this issue is important to you and you cannot wait for it to be fixed on the project’s own time, we strongly suggest you consider hiring a specialist to help you. If you manage to get the problem fixed, then please contribute the fix back to the project as a Pull Request. Remember that the more people contribute, the better PrestaShop becomes for everyone. Thank you |
Thank you. |
Hello @ramtin2025
I confirm that while retesting the issue on a newly created shop 1.7.7.0, I reproduce the issue. So it's an old bug! Thanks! |
Prerequisites
Describe the bug and add screenshots
The methods inside the overridden classes has special comments for identification.
If, for any reason, these comments are deleted or changes are made in them that cause identification problems, the installation or uninstallation process will have the following error:
"Exception thrown by module on "ModuleName" reset. Error when resetting module "ModuleName". Notice: Undefined offset: -1"
This error is completely incomprehensible and does not suggest any path to identify the problem.
Putting a condition before this line can help identify this error:
If ($line_number<5) { // some code to display error about override conflict }
PrestaShop github
Expected behavior
Exception thrown by module on "ModuleName" reset. Error when resetting module "ModuleName". Notice: Override/Classes/Product.php is dirty
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.8.5
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
No response
The text was updated successfully, but these errors were encountered: