500 Error with Affiliate

  • Posts: 280
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
2 weeks 1 day ago #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:

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

We changed line 269 from:
if(!emtpy($user->user_params->affiliation_category_restriction)) {

to
if (!empty($user->user_params->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 or Create an account to join the conversation.

  • Posts: 84939
  • Thank you received: 13835
  • MODERATOR
2 weeks 1 day ago #369860

Hi,

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

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

Time to create page: 0.054 seconds
Powered by Kunena Forum