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

#   500 Error with Affiliate

##

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

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

10 months 3 weeks ago [\#369855](#369855) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[500 Error with Affiliate](/forum/27-checkout/909996-500-error-with-affiliate#369855 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.1 -- PHP version -- : 8.2.30 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : hikashop error 0 call to undefined function empty () plugins/system/hikashopaffiliate/hikashopaffiliate.php:269  Took a bit to figure out why only some customers were experiencing checkout issues (500 error).  It happens only when an affiliate is assigned to the customer's account.  Once we turned on Joomla debug and used a customer with an affiliate (other than themselves) we saw this:  We changed line 269 from:  to  Just a typo with the word &quot;empty&quot; from the looks of it  It appears to have resolved the issue")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.2.30
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : hikashop error 0 call to undefined function empty () plugins/system/hikashopaffiliate/hikashopaffiliate.php:269

Took a bit to figure out why only some customers were experiencing checkout issues (500 error).

It happens only when an affiliate is assigned to the customer's account.

Once we turned on Joomla debug and used a customer with an affiliate (other than themselves) we saw this:
Code:

hikashop error 0 call to undefined function empty () plugins/system/hikashopaffiliate/hikashopaffiliate.php:269

We changed line 269 from:
Code:

if(!emtpy($user-&gt;user_params-&gt;affiliation_category_restriction)) {

to
Code:

if (!empty($user-&gt;user_params-&gt;affiliation_category_restriction)) {

Just a typo with the word "empty" from the looks of it

It appears to have resolved the issue

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwOTk5Ni01MDAtZXJyb3Itd2l0aC1hZmZpbGlhdGU/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: 86581
- Thank you received: 14322
-
-

10 months 3 weeks ago [\#369860](#369860) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[500 Error with Affiliate](/forum/27-checkout/909996-500-error-with-affiliate#369860 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.1 -- PHP version -- : 8.2.30 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : hikashop error 0 call to undefined function empty () plugins/system/hikashopaffiliate/hikashopaffiliate.php:269  Took a bit to figure out why only some customers were experiencing checkout issues (500 error).  It happens only when an affiliate is assigned to the customer's account.  Once we turned on Joomla debug and used a customer with an affiliate (other than themselves) we saw this:  We changed line 269 from:  to  Just a typo with the word &quot;empty&quot; from the looks of it  It appears to have resolved the issue")*

Hi,

Thank you for your feedback. That's indeed a typo.
We've included the fix on our end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwOTk5Ni01MDAtZXJyb3Itd2l0aC1hZmZpbGlhdGU/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.041 seconds

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