Skip to main content

Error when try to pay to affiliate

More
1 year 3 months ago - 1 year 3 months ago #367628 by mojweb
-- 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: 1 year 3 months ago by mojweb.

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

More
1 year 3 months ago #367640 by nicolas
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.

More
1 year 2 months ago - 1 year 2 months ago #367817 by mojweb
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
Last edit: 1 year 2 months ago by mojweb.

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

More
1 year 2 months ago #367826 by nicolas
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.

More
7 months 2 weeks ago #370280 by mojweb
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.

More
7 months 2 weeks ago #370281 by nicolas
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.

More
7 months 2 weeks ago #370321 by mojweb
Sorry, that is old post. Since then I updated to 6.1.1. So that is now version with the same problem.
Yes, error is An error has occurred. 0 Attempt to modify property "related" on null

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

More
7 months 2 weeks ago #370323 by mojweb
OK, now I updated to latest 6.3 and error is gone. Aff partner unpaid amount is reset. So it seems that is working.
But there is slight layout issue

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

More
7 months 2 weeks ago #370324 by nicolas
Hi,

Thank you for your feedback. We'll be fixing this in the next version of HikaShop.

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

Time to create page: 0.326 seconds
Powered by Kunena Forum