[wp-trac] [WordPress Trac] #57500: Plugin update results in mixing files of old and new versions
WordPress Trac
noreply at wordpress.org
Thu Jan 19 08:47:32 UTC 2023
#57500: Plugin update results in mixing files of old and new versions
-------------------------------------------------+-------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: needs-testing needs-testing-info | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Comment (by Chouby):
I'll try to collect more informations from users reporting the issue.
@afragen We are using a similar modules structure as Jetpack. Our modules
are automatically loaded by the line you pointed. We just need a file
`load.php` in a subdirectory of `modules/` to load it. That explains why a
file from the old version is loaded by the new plugin. The fatal itself is
due to the fact that and old class from an old file is loaded and is not
in the composer autoloader classmap as the class has been removed from the
new version.
We can manually reproduce the error by:
1. install the version 3.3
2. overwrite the files with the version 3.3.1 without deleting the version
3.3
So we don't need an addon to attempt to load a non existing file. When we
examine the backtrace provided by the users, it's all internal to
Polylang. Reinstalling properly the plugin solved the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57500#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list