WooCommerce icon indicating copy to clipboard operation
WooCommerce copied to clipboard

Issues caused by Packeta plugin

Open uhlhosting opened this issue 3 years ago • 10 comments

WordPress verze 6.0 Active theme: Mighty Lions (version 1.0) Aktuální plugin: Packeta (verze 1.3.2) Verze PHP 7.4.29

Podrobnosti chyby

Na řádku č. 73 v souboru /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Controller.php došlo k chybě typu E_ERROR. Chybová zpráva: Uncaught ArgumentCountError: Too few arguments to function Packetery\Module\Order\Controller::__construct(), 4 passed in /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_de0590739c.php on line 365 and exactly 5 expected in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Controller.php:73 Stack trace: #0 /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_de0590739c.php(365): Packetery\Module\Order\Controller->__construct(Object(Packetery\Module\Order\Modal), Object(Packetery\Module\Order\ControllerRouter), Object(Packetery\Module\Order\PacketSubmitter), Object(Packetery\Module\Order\Repository)) #1 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(205): Container_de0590739c->createService031() #2 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(121): PacketeryNette\DI\Contain

uhlhosting avatar Jun 15 '22 16:06 uhlhosting

Plugin could not be activated because it triggered a fatal error.

Fatal error: Uncaught ArgumentCountError: Too few arguments to function Packetery\Module\Order\Controller::__construct(), 4 passed in /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_de0590739c.php on line 365 and exactly 5 expected in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Controller.php:73 Stack trace: #0 /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_de0590739c.php(365): Packetery\Module\Order\Controller->__construct(Object(Packetery\Module\Order\Modal), Object(Packetery\Module\Order\ControllerRouter), Object(Packetery\Module\Order\PacketSubmitter), Object(Packetery\Module\Order\Repository)) #1 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(205): Container_de0590739c->createService031() #2 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(121): PacketeryNette\DI\Contain in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Controller.php on line 73

uhlhosting avatar Jun 15 '22 16:06 uhlhosting

The weirdest part is that it seems we are unable to remove the plugin either: Deletion failed: There has been a critical error on this website.

image

Update: in the end managed to remove it, will try to reinstall, yet looking into the above issue is a must.

uhlhosting avatar Jun 15 '22 17:06 uhlhosting

I can confirm that deleting the plugin and reinstalling works, yet maybe something can be done to avoid this in future to crash entire site. Like it happened for one of our customers today.

uhlhosting avatar Jun 15 '22 17:06 uhlhosting

Hello @uhlhosting , this definitely looks as if something went wrong during the installation, since even the uninstall was not working properly. Did you make an upgrade to the 1.3.2 version, or did you make a clean install? If you were upgrading the plugin, from which version did you upgrade? We have tested the current version of the plugin in terms of installation etc. and we have not run into this issue, so we would like to try and pinpoint the cause of this error.

Best regards, Matyáš Kovaľ - E-Commerce Support

MatyasKoval avatar Jun 20 '22 06:06 MatyasKoval

@MatyasKoval the issue returned this time maybe a bit different error message:

image
WordPress verze 6.0.3
Aktuální šablona: Mighty Lions (verze 1.0)
Aktuální plugin: Packeta (verze 1.4)
Verze PHP 7.4.32

Podrobnosti chyby
=================
Na řádku č. 145 v souboru /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/component-model/src/ComponentModel/Container.php došlo k chybě typu E_ERROR. Chybová zpráva: Uncaught PacketeryNette\InvalidArgumentException: Component with name 'packetery_original_weight' does not exist. in /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/component-model/src/ComponentModel/Container.php:145
Stack trace:
#0 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/component-model/src/ComponentModel/ArrayAccess.php(40): PacketeryNette\ComponentModel\Container->getComponent('packetery_origi...')
#1 /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/view/template-order-modal-template.latte--591defa085.php(50): PacketeryNette\Forms\Container->offsetGet('packetery_origi...')
#2 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/latte/latte/src/PacketeryLatte/Runtime/Template.php(173): Template591defa085->main()
#3 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/latte/latte/src/PacketeryLatte/Engine.php(101): PacketeryLatte\Runtime\Template->render(NULL)
#4 /home/mightyl
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Packetery\Module\Order\Metabox::__construct(), 7 passed in /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_395786b730.php on line 173 and exactly 8 expected in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Metabox.php:115 Stack trace: #0 /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_395786b730.php(173): Packetery\Module\Order\Metabox->__construct(Object(PacketeryLatte\Engine), Object(Packetery\Module\MessageManager), Object(Packetery\Core\Helper), Object(PacketeryNette\Http\Request), Object(Packetery\Module\Options\Provider), Object(Packetery\Module\FormFactory), Object(Packetery\Module\Order\Repository)) #1 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(205): Container_395786b730->createService012() #2 /home/mightylions/public_html/wp-content/plugins/packeta/ in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/Metabox.php on line 115

uhlhosting avatar Oct 27 '22 14:10 uhlhosting

Hello @uhlhosting, thank you for the update on the situation. May I ask, are you installing new versions of our plugin from GitHub or directly from the wp.org installer? When updating, are you updating manually by installing the newest version from GitHub or are you updating automatically in WordPress?

The issue may be in the fact, that GitHub and wp.org versions may not be crosscompatible - a version from GitHub can cause issues when being updated directly in Wordpress.

Best regards, Matyáš Kovaľ - E-Commerce Support

MatyasKoval avatar Oct 31 '22 08:10 MatyasKoval

Hello @uhlhosting,

thank you for the update on the situation.

May I ask, are you installing new versions of our plugin from GitHub or directly from the wp.org installer?

When updating, are you updating manually by installing the newest version from GitHub or are you updating automatically in WordPress?

The issue may be in the fact, that GitHub and wp.org versions may not be crosscompatible - a version from GitHub can cause issues when being updated directly in Wordpress.

Best regards,

Matyáš Kovaľ - E-Commerce Support

Hi

It was always latest releases since issue were installed from wp repo.

uhlhosting avatar Oct 31 '22 13:10 uhlhosting

so we hit this again, I am afraid you folks really need to look into this:

Aktuální šablona: Mighty Lions (verze 1.0)
Aktuální plugin: Packeta (verze 1.4.1)
Verze PHP 7.4.33



Podrobnosti chyby
=================
Na řádku č. 72 v souboru /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/PacketSubmitter.php došlo k chybě typu E_ERROR. Chybová zpráva: Uncaught ArgumentCountError: Too few arguments to function Packetery\Module\Order\PacketSubmitter::__construct(), 4 passed in /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_94dac333fd.php on line 375 and exactly 5 expected in /home/mightylions/public_html/wp-content/plugins/packeta/src/Packetery/Module/Order/PacketSubmitter.php:72
Stack trace:
#0 /home/mightylions/public_html/wp-content/plugins/packeta/temp/cache/nette.configurator/Container_94dac333fd.php(375): Packetery\Module\Order\PacketSubmitter->__construct(Object(Packetery\Core\Api\Soap\Client), Object(Packetery\Core\Validator\Order), Object(Packetery\Module\Log\DbLogger), Object(Packetery\Module\Order\Repository))
#1 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(205): Container_94dac333fd->createService029()
#2 /home/mightylions/public_html/wp-content/plugins/packeta/packetery_vendor/nette/di/src/DI/Container.php(121): PacketeryNette\DI\Containe```

uhlhosting avatar Dec 08 '22 12:12 uhlhosting

Hello @uhlhosting , thank you for the information.

Just so we are on the same page, the issue is still happening when you try to update the plugin version by using the update plugin action directly in the WordPress administration?

Best regards, Matyáš Kovaľ - Packeta E-Commerce Support

MatyasKoval avatar Dec 12 '22 07:12 MatyasKoval

@MatyasKoval it seems the occurrences were quite random. Was not able until now to figure out the cause. I have migrated the client to a new server and another hosting panel.

it seems at first Packeta had issues, I disabled and reenabled it seemed to have helped at least for now.

Will update this thread in case it reoccurs, if not will close it.

uhlhosting avatar Feb 13 '23 08:02 uhlhosting