Skip to main content

500 Error with Affiliate

More
8 months 3 weeks ago #369855 by jazzmang
-- 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->user_params->affiliation_category_restriction)) {

to
Code:
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.

More
8 months 3 weeks ago #369860 by nicolas
Replied by nicolas on topic 500 Error with Affiliate
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.215 seconds
Powered by Kunena Forum