[Skip to main content](#vessel-content)

#   Error when try to pay to affiliate

##

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 432
- Thank you received: 22
-

1 year 5 months ago -  1 year 5 months ago [\#367628](#367628) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#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 &quot;related&quot; on null in popup.")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

-- 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 5 months ago by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

1 year 5 months ago [\#367640](#367640) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#367640 "-- 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 &quot;related&quot; on null in popup.")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 432
- Thank you received: 22
-

1 year 4 months ago -  1 year 4 months ago [\#367817](#367817) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#367817 "-- 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 &quot;related&quot; on null in popup.")*

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&#124;object, bool given in /public_html/administrator/components/com_hikashop/views/order/tmpl/listing.php on line 325

- [ ![aff-error.png](/forum/attachment/60660) ](/forum/attachment/60660 "aff-error.png") [ ](/forum/attachment/60660?download=1 "aff-error.png")

Last edit: 1 year 4 months ago by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

1 year 4 months ago [\#367826](#367826) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#367826 "-- 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 &quot;related&quot; on null in popup.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 432
- Thank you received: 22
-

9 months 3 weeks ago [\#370280](#370280) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#370280 "-- 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 &quot;related&quot; on null in popup.")*

Call stack
\# Function Location
1 () JROOT/administrator/components/com_hikashop/classes/product.php:1360
2 hikashopProductClass-&gt;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-&gt;loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:31
5 hikashopMailClass-&gt;get() JROOT/administrator/components/com_hikashop/classes/order.php:2102
6 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:441
7 hikashopOrderClass-&gt;save() JROOT/administrator/components/com_hikashop/controllers/user.php:280
8 UserController-&gt;pay_confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:693
9 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2614
10 hikashopController-&gt;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-&gt;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-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
16 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
17 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/includes/app.php:61
18 require_once()

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 months 3 weeks ago [\#370281](#370281) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#370281 "-- 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 &quot;related&quot; on null in popup.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 432
- Thank you received: 22
-

9 months 2 weeks ago [\#370321](#370321) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#370321 "-- 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 &quot;related&quot; on null in popup.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 432
- Thank you received: 22
-

9 months 2 weeks ago [\#370323](#370323) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#370323 "-- 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 &quot;related&quot; on null in popup.")*

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

- [ ![layout.jpg](/forum/attachment/61198) ](/forum/attachment/61198 "layout.jpg") [ ](/forum/attachment/61198?download=1 "layout.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 months 2 weeks ago [\#370324](#370324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when try to pay to affiliate](/forum/39-affilation/909519-error-when-try-to-pay-to-affiliate#370324 "-- 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 &quot;related&quot; on null in popup.")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTA5NTE5LWVycm9yLXdoZW4tdHJ5LXRvLXBheS10by1hZmZpbGlhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.087 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
