Callum MacGregor Posted December 1, 2023 Posted December 1, 2023 (edited) I have an application that creates a custom commerce package, extending \IPS\nexus\Invoice\Item\Charge. Up until the latest update it worked fine, but since the latest update the ItemsIterator expects all extensions to be in the 'nexus' application, and therefore cannot load the class of my package object. How it works now, I don't think its possible any more to create custom chargable items, but I desperately need this functionality. Edited December 1, 2023 by Callum MacGregor
teraßyte Posted December 1, 2023 Posted December 1, 2023 (edited) I don't recall anything being changed in that class recently. 🤔 The best option is to ask the developer who made it for assistance. Since you're posting here I assume they're no longer available? Edited December 1, 2023 by teraßyte
Callum MacGregor Posted December 1, 2023 Author Posted December 1, 2023 Its my own application. For a bit more information, in the admincp the extension does show up as expected: However, I logged what ItemsIterator collects from \IPS\Application::allExtensions call, and my extension is no longer listed there:
Stuart Silvester Posted December 1, 2023 Posted December 1, 2023 Is your extension listed in your /applications/<app>/data/extensions.json file? If not, adding a dummy extension and deleting it will recreate that file with the correct extensions. teraßyte 1
Adriano Faria Posted December 1, 2023 Posted December 1, 2023 32 minutes ago, teraßyte said: I don't recall anything being changed in that class recently. 🤔 The best option is to ask the developer who made it for assistance. Since you're posting here I assume they're no longer available? 4.7.12: You will have to add an extension, anyone, just to the system create the extension.json for you. teraßyte 1
Callum MacGregor Posted December 1, 2023 Author Posted December 1, 2023 9 minutes ago, Stuart Silvester said: Is your extension listed in your /applications/<app>/data/extensions.json file? If not, adding a dummy extension and deleting it will recreate that file with the correct extensions. I don't have an extensions.json file, its an old application. I'll try and create it myself.
Adriano Faria Posted December 1, 2023 Posted December 1, 2023 Attach the app folder downloaded via FTP on a private message. I’ll make it within a couple of minutes for you, if that’s the only problem.
Callum MacGregor Posted December 1, 2023 Author Posted December 1, 2023 I got it working now. Thanks @Adriano Faria for offering to help. I had to create a dummy extension in admincp, then the extensions.json was created correctly. This is exactly why I am so reluctant to upgrade Invision to newer versions. Adriano Faria 1
Recommended Posts