-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fix problem load ExtensionPackage from cache #12359
Conversation
I've seen this error quite a bit with MoreGallery (which loads an extension package for the custom resource), but I can't seem to recreate it on a clean install.. maybe the error has something to do with upgrades? Your commit mentions the cache, maybe you remember the steps needed to trigger the issue? If you don't remember, I don't blame you, this PR has been here for a while.. |
@Mark-H Maybe fixed in last version. After 2.3.3 publishing many people reports this. http://modxclub.ru/topics/oshibka-podgruzki-klassov-1566.html |
Yes, it seems. |
Problem exists after update from modx2.2 to modx2.3 |
I understood. Problem exists when setted serviceName and serviceClass, for example: {"shopModx":{"serviceName":"shopModx","serviceClass":"shopModx","path":"[[++core_path]]components/shopmodx/model/"}} Try to install shopModx. It`s actual for latest version of MODX. |
@Mark-H, hi! |
I have an extension package specified with serviceName and serviceClass in a project and I don't get those error messages. So maybe there's something wrong with your configuration anywhere @Fi1osof? This is my example:
…and the class file is located at |
@christianseel MODX version? |
@Fi1osof 2.4.2-pl |
@christianseel i use 2.4.2 too. It`s happens only on MODX init. Then OK. |
What do you mean by "MODX init"? Loading frontend with an empty cache? Could you provide full steps to reproduce the bug? Because for me it looks like #11927 should have fixed those issues. I remember I had similar issues with my phpconsole package, was that was because of incorrect paths and configs and not a bug in MODX. |
@christianseel @Mark-H i finded mistake. modX::_loadExtensionPackages() get modExtensionPackages, and if got, load them. And those have broken pathes. @opengeek, why this for? |
Great! Maybe @rtripault can clarify here, since he was also doing #11927 which dealed with extension packages in the database. |
I unfortunately won't be able to provide more details on why the extension packages are stored in a dedicated table (besides it's happening when migrating from Revo 2.2, see https://github.com/modxcms/revolution/blob/2.x/setup/includes/upgrades/common/2.3-extension-packages.php). In fact, i feel like the current implementation of Hope that will help a bit anyway |
I wrote this too almost 3 years ago http://joxi.ru/DrlaPn9i4nQodm It`s sad that ExtensionPackages functionality is not centralized |
This PR is over two years old. Can it be closed? |
What does it do ?
Fix problem load ExtensionPackage from cache
Why is it needed ?
Because we have errors: Problem getting service basket, instance of class Basket, from path