Error when try to pay to affiliate

  • Posts: 411
  • Thank you received: 22
  • Hikashop Business
7 months 2 weeks ago #367628

-- HikaShop version -- : 5.1.6
-- PHP version -- : 8.2

When trying to pay/reset affiliate partner via Pay now button, I get error Attempt to modify property "related" on null in popup.

Last edit: 7 months 2 weeks ago by mojweb.

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

  • Posts: 85046
  • Thank you received: 13867
  • MODERATOR
7 months 2 weeks ago #367640

Hi,

Could you provide the full error message ? It is important to understand where the problem is coming from.

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

  • Posts: 411
  • Thank you received: 22
  • Hikashop Business
6 months 3 weeks ago #367817

That is all I get in popup.

Maybe this is related (admin error log):
PHP Warning: preg_replace(): Compilation failed: quantifier does not follow a repeatable item at offset 1 in public_html/administrator/components/com_hikashop/helpers/helper.php on line 1481
PHP Warning: foreach() argument must be of type array|object, bool given in /public_html/administrator/components/com_hikashop/views/order/tmpl/listing.php on line 325

Attachments:
Last edit: 6 months 3 weeks ago by mojweb.

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

  • Posts: 85046
  • Thank you received: 13867
  • MODERATOR
6 months 3 weeks ago #367826

Hi,

Can you access the popup again after activating the "debug" setting of the Joomla configuration ? That way, it will display the full error message and we'll be able to understand what's going on.

Regarding the warnings from your log, they are not related. However, thanks for providing them. We'll be adding modifications to the next version of HikaShop so that they do not happen in the future.

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

  • Posts: 411
  • Thank you received: 22
  • Hikashop Business
1 day 15 hours ago #370280

Call stack
# Function Location
1 () JROOT/administrator/components/com_hikashop/classes/product.php:1360
2 hikashopProductClass->getProducts() JROOT/media/com_hikashop/mail/order_creation_notification.preload.php:109
3 include() JROOT/administrator/components/com_hikashop/classes/mail.php:366
4 hikashopMailClass->loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:31
5 hikashopMailClass->get() JROOT/administrator/components/com_hikashop/classes/order.php:2102
6 hikashopOrderClass->loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:441
7 hikashopOrderClass->save() JROOT/administrator/components/com_hikashop/controllers/user.php:280
8 UserController->pay_confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:693
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2614
10 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
18 require_once()

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

  • Posts: 85046
  • Thank you received: 13867
  • MODERATOR
1 day 2 hours ago #370281

Hi,

We'll need more context. Is it still the Attempt to modify property "related" on null error ?
The line numbers on my end for the 6.3.0 or the 5.1.6 are not the same with what I can see in the call stack you provided, if we're talking about this error. Can you provide the version of HikaShop on the website with that issue ?

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

Time to create page: 0.057 seconds
Powered by Kunena Forum