myparcelnl / magento

The Magento 2 MyParcel plugin
https://developer.myparcel.nl/nl/documentatie/13.magento2.html
MIT License
19 stars 27 forks source link

Upgrade issue after 4.6.0 #705

Open Ylmzef opened 2 years ago

Ylmzef commented 2 years ago

Plugin version

4.6.0

Magento version

2.4.4

PHP version

8.1

What went wrong?

I'm getting following issue on product edit page after upgrading to the 4.6.0

Reproduction steps

Upgrade to the latest version with composer then check the product edit page

Relevant log output

{"0":"Class \"MyParcelBE\\Magento\\Model\\Source\\DropOffDelayDays\" does not exist","1":"#1 Magento\\Framework\\Code\\Reader\\ClassReader->getConstructor() called at [vendor\/magento\/framework\/ObjectManager\/Definition\/Runtime.php:54]\n#2 Magento\\Framework\\ObjectManager\\Definition\\Runtime->getParameters() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php:100]\n#3 Magento\\Framework\\ObjectManager\\Factory\\Compiled->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n#4 Magento\\Framework\\ObjectManager\\ObjectManager->create() called at [vendor\/magento\/framework\/Validator\/UniversalFactory.php:36]\n#5 Magento\\Framework\\Validator\\UniversalFactory->create() called at [vendor\/magento\/module-eav\/Model\/Entity\/Attribute\/AbstractAttribute.php:642]\n#6 Magento\\Eav\\Model\\Entity\\Attribute\\AbstractAttribute->getSource() called at [generated\/code\/Magento\/Catalog\/Model\/ResourceModel\/Eav\/Attribute\/Interceptor.php:824]\n#7 Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute\\Interceptor->getSource() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav.php:690]\n#8 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->setupAttributeMeta() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#9 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#10 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#11 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav\/Interceptor.php:23]\n#12 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav\\Interceptor->setupAttributeMeta() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav.php:404]\n#13 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->getContainerChildren() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav.php:379]\n#14 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->addContainerChildren() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav.php:355]\n#15 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->getAttributesMeta() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/Modifier\/Eav.php:315]\n#16 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->modifyMeta() called at [vendor\/magento\/module-catalog\/Ui\/DataProvider\/Product\/Form\/ProductDataProvider.php:73]\n#17 Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\ProductDataProvider->getMeta() called at [vendor\/magento\/framework\/View\/Element\/UiComponentFactory.php:330]\n#18 Magento\\Framework\\View\\Element\\UiComponentFactory->mergeMetadata() called at [vendor\/magento\/framework\/View\/Element\/UiComponentFactory.php:231]\n#19 Magento\\Framework\\View\\Element\\UiComponentFactory->create() called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:140]\n#20 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->generateComponent() called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:103]\n#21 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->process() called at [vendor\/magento\/framework\/View\/Layout\/GeneratorPool.php:93]\n#22 Magento\\Framework\\View\\Layout\\GeneratorPool->process() called at [vendor\/magento\/framework\/View\/Layout.php:365]\n#23 Magento\\Framework\\View\\Layout->generateElements() called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:68]\n#24 Magento\\Framework\\View\\Layout\\Interceptor->generateElements() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:129]\n#25 Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Page\/Builder.php:65]\n#26 Magento\\Framework\\View\\Page\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:65]\n#27 Magento\\Framework\\View\\Layout\\Builder->build() called at [vendor\/magento\/framework\/View\/Layout.php:271]\n#28 Magento\\Framework\\View\\Layout->build() called at [vendor\/magento\/framework\/View\/Layout.php:896]\n#29 Magento\\Framework\\View\\Layout->getBlock() called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:293]\n#30 Magento\\Framework\\View\\Layout\\Interceptor->getBlock() called at [vendor\/magento\/module-backend\/Model\/View\/Result\/Page.php:26]\n#31 Magento\\Backend\\Model\\View\\Result\\Page->setActiveMenu() called at [vendor\/magento\/module-catalog\/Controller\/Adminhtml\/Product\/Edit.php:82]\n#32 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit->execute() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#33 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#34 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#35 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Catalog\/Controller\/Adminhtml\/Product\/Edit\/Interceptor.php:23]\n#36 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->execute() called at [vendor\/magento\/framework\/App\/Action\/Action.php:111]\n#37 Magento\\Framework\\App\\Action\\Action->dispatch() called at [vendor\/magento\/module-backend\/App\/AbstractAction.php:151]\n#38 Magento\\Backend\\App\\AbstractAction->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#39 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#40 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php:145]\n#41 Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#42 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#43 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Catalog\/Controller\/Adminhtml\/Product\/Edit\/Interceptor.php:32]\n#44 Magento\\Catalog\\Controller\\Adminhtml\\Product\\Edit\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/FrontController.php:245]\n#45 Magento\\Framework\\App\\FrontController->getActionResponse() called at [vendor\/magento\/framework\/App\/FrontController.php:212]\n#46 Magento\\Framework\\App\\FrontController->processRequest() called at [vendor\/magento\/framework\/App\/FrontController.php:147]\n#47 Magento\\Framework\\App\\FrontController->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#48 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#49 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#50 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:23]\n#51 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:116]\n#52 Magento\\Framework\\App\\Http->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:264]\n#53 Magento\\Framework\\App\\Bootstrap->run() called at [pub\/index.php:30]\n","url":"\/xxx\/catalog\/product\/edit\/id\/10142\/key\/xxxxxxx\/","script_name":"\/index.php","report_id":"xxxxxx"}

Additional context

No response

joerivanveen commented 2 years ago

Hi Ylmzef do you need the Dutch or the Belgian version of the plugin?

Ylmzef commented 2 years ago

Hi, Belgian version.

joerivanveen commented 2 years ago

The newest Belgian version is 4.1.8, on github: https://github.com/myparcelbe/magento/releases/tag/4.1.8 or for composer: https://packagist.org/packages/myparcelbe/magento (require myparcelbe/magento). 4.6.0 is only available as Dutch version, which can not work as Belgian plugin. This probably accounts for the incorrect namespace in the error that you receive. This cannot be fixed: only the Belgian plugin works for Belgian websites at the moment.

Ylmzef commented 2 years ago

I see that it has been not updated to support PHP 8.1, but i already updated Magento to 2.4.4. I removed MyParcelBE package from composer but i'm getting still same error from product edit page. How can i completely remove this extension from Magento?

joerivanveen commented 2 years ago

After you removed the extension from composer, have you run composer update, and all the commands to have Magento understand that it has gone, such as clearing the cache, setup:di:compile, setup:static-content:deploy? Are both MyParcel plugins (MyParcelNL and MyParcelBE) fully gone from your composer.json file?

Ylmzef commented 2 years ago

Yes, of course i run the commands to get it removed but i'm getting still same error from the reports.

RichardPerdaan commented 2 years ago

Hi @Ylmzef, Would you like to send an email to support@myparcel.nl, then it will be possible for us to investigate this further.

Ylmzef commented 2 years ago

I see that the extension attributes are not removed from database. Schermafbeelding 2022-08-08 om 12 12 01

RichardPerdaan commented 2 years ago

Hi @Ylmzef, Did you manage to get the plugin working?

Ylmzef commented 2 years ago

No, i want to delete it completely.

RichardPerdaan commented 2 years ago

Hi @Ylmzef, Would you like to send an email to support@myparcel.nl, then it will be possible for us to investigate this further.

RichardPerdaan commented 2 years ago

Hi @Ylmzef, Is it possible to close the issue or is our help on removing the plugin still needed?