Error message on Myparcel plugin

  • Posts: 85
  • Thank you received: 5
  • Hikashop Business
1 year 2 months ago #347865

Hi, i have this error message while Myparcel seems to function good still:

Error Code 0
Error Type TypeError
Message preg_match() expects parameter 2 to be string, bool given
File /home/u126019p121985/domains/[my domain]/public_html/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Helper/MyParcelCurl.php
Line 309
Request /je-bestelling-status
Referrer https://[my domain]/contact
Remote ip address (ip address)
User AJorna (1466)


Type Function Class Line File
N/A preg_match N/A 309 /plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Helper/MyParcelCurl.php
S extractCode MyParcelNL\Sdk\src\Helper\MyParcelCurl 147 /plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Helper/MyParcelCurl.php
D read MyParcelNL\Sdk\src\Helper\MyParcelCurl 332 /plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php
D setResult MyParcelNL\Sdk\src\Model\MyParcelRequest 159 /plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php
D sendRequest MyParcelNL\Sdk\src\Model\MyParcelRequest 236 /plugins/hikashopshipping/myparcelpickup/myparcelpickup.php
D getPickupPoints plgHikaShopshippingMyparcelpickup 124 /plugins/hikashopshipping/myparcelpickup/myparcelpickup.php
D onShippingDisplay plgHikaShopshippingMyparcelpickup 70 /libraries/joomla/event/event.php
D update JEvent 160 /libraries/joomla/event/dispatcher.php
D trigger JEventDispatcher 108 /libraries/src/Application/BaseApplication.php
D triggerEvent Joomla\CMS\Application\BaseApplication 434 /administrator/components/com_hikashop/classes/shipping.php
D getShippings hikashopShippingClass 1373 /administrator/components/com_hikashop/classes/cart.php
D getFullCart hikashopCartClass 2385 /components/com_hikashop/views/product/view.html.php
D cart ProductViewProduct 28 /components/com_hikashop/views/product/view.html.php
D display ProductViewProduct 872 /administrator/components/com_hikashop/helpers/helper.php
N/A hikashop_getLayout N/A 70 /modules/mod_hikashop_cart/mod_hikashop_cart.php
N/A include N/A 200 /libraries/src/Helper/ModuleHelper.php
S renderModule Joomla\CMS\Helper\ModuleHelper 98 /libraries/src/Document/Renderer/Html/ModuleRenderer.php
D render Joomla\CMS\Document\Renderer\Html\ModuleRenderer 175 /plugins/content/loadmodule/loadmodule.php
D _load PlgContentLoadmodule 81 /plugins/content/loadmodule/loadmodule.php
D onContentPrepare PlgContentLoadmodule 70 /libraries/joomla/event/event.php
D update JEvent 160 /libraries/joomla/event/dispatcher.php
D trigger JEventDispatcher 41 /libraries/cms/html/content.php
S prepare JHtmlContent N/A N/A
N/A call_user_func_array N/A 239 /libraries/src/HTML/HTMLHelper.php
S call Joomla\CMS\HTML\HTMLHelper 111 /libraries/src/HTML/HTMLHelper.php
S _ Joomla\CMS\HTML\HTMLHelper 15 /modules/mod_custom/mod_custom.php
N/A include N/A 200 /libraries/src/Helper/ModuleHelper.php
S renderModule Joomla\CMS\Helper\ModuleHelper 98 /libraries/src/Document/Renderer/Html/ModuleRenderer.php
D render Joomla\CMS\Document\Renderer\Html\ModuleRenderer 47 /libraries/src/Document/Renderer/Html/ModulesRenderer.php
D render Joomla\CMS\Document\Renderer\Html\ModulesRenderer 499 /libraries/src/Document/HtmlDocument.php
D getBuffer Joomla\CMS\Document\HtmlDocument 791 /libraries/src/Document/HtmlDocument.php
D _renderTemplate Joomla\CMS\Document\HtmlDocument 565 /libraries/src/Document/HtmlDocument.php
D render Joomla\CMS\Document\HtmlDocument 1140 /libraries/src/Application/CMSApplication.php
D render Joomla\CMS\Application\CMSApplication 778 /libraries/src/Application/SiteApplication.php
D render Joomla\CMS\Application\SiteApplication 231 /libraries/src/Application/CMSApplication.php
D execute Joomla\CMS\Application\CMSApplication 49 /index.php

Is there something to do about this, or what can be the issue?
Thanks.

Last edit: 1 year 2 months ago by NicoW.

Please Log in or Create an account to join the conversation.

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
1 year 2 months ago #347872

Hi,

Thank you for your feedback.
This error happens because of a bug in the MyParcel SDK on PHP 8 when it can't connect to MyParcel's server for one reason or another.
I've made a patch so that instead of a PHP error, it properly handle the issue and returns a nice cURL error with the real issue.
I've made a new version for the both MyParcel plugins. You'll have to update both to get the patch.
For that, download again their install package via the download link in the order and install them on your website again.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum