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

#   Errors with affiliation plugin

##

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 9 months ago [\#138767](#138767) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#138767 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")* was created by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")*

Hi

I recently purchased the Business addition

I am having a few problems with the affiliation program though
I get the following errors

1 - If you click on an affiliate Link
Warning: Creating default object from empty value in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88

2 - If you register an account

Warning: Creating default object from empty value in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263

Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279

3 - If you **check out** an order

Warning: Creating default object from empty value in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179

What could be causing this and how do I solve it.
For now I have disabled the affiliation plugin

Thank you

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 9 months ago [\#138813](#138813) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#138813 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi,

These warnings should not cause any problems on your website.
Changing the error reporting level in joomla will remove these warnings.

We will solve these warnings for the next release of HikaShop.
Thanks to give us the corresponding lines, it will help us to correct that.

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 8 months ago [\#142412](#142412) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142412 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi Xavier

I changed the error reporting settings and the messages disappeared, so I assumed that the problem was solved.
But clearly these warnings are causing problems.
For the past few weeks I have been trying to figure out why people when they register an account they don't activate it and why I don't receive mails telling me some one has registered on my site.
I have now register some demo users and then noticed that if some one registers they simply get a blank white screen which means they are never told to activate there account, and since I don't receive a mail I am unaware of the fact that some one has registered.

I now disabled the affiliation plugin and as soon as I did that the blank screen after registration disappeared and the correct registration message was displayed, I even received an email once again stating that a new user just registered .

Unfortunately this leads me to only one conclusion, that being that there is something seriously wrong with the plugin, which is a pity as the affiliation program is the main reason I upgraded to business version now it seems that instead of boosting sales it has cost me thousands in lost sales.

Please help I would like to use the plugin, if I can get it to work properly

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODY0ODA0LWVycm9ycy13aXRoLWFmZmlsaWF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

12 years 8 months ago [\#142449](#142449) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142449 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi,
Please turn on the "debug mode" and "error reporting" options of the joomla configuration and try a registration again with the affiliate plugin activated.
It should display an error message which will help us understand your problem.

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 8 months ago [\#142455](#142455) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142455 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi

Thanks for the quick response

If error reporting is on, and affiliation plugin is active I receive the following errors when registering an account

Warning: Creating default object from empty value in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263

Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279

So basically all the same errors as in my initial post

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODY0ODA0LWVycm9ycy13aXRoLWFmZmlsaWF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

12 years 8 months ago [\#142549](#142549) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142549 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi,

I think I found the problem.

Please replace the code: Code:

if(empty($user-&gt;user_params-&gt;user_custom_fee)){ $partner-&gt;user_params-&gt;partner_lead_fee = $config-&gt;get('partner_lead_fee',0); $partner-&gt;user_params-&gt;partner_fee_currency = $config-&gt;get('partner_currency',1); }else{ $user-&gt;user_params-&gt;partner_lead_fee = $user-&gt;user_params-&gt;user_partner_lead_fee; }

with the code: Code:

if(empty($partner-&gt;user_params-&gt;user_custom_fee)){ $partner-&gt;user_params-&gt;partner_lead_fee = $config-&gt;get('partner_lead_fee',0); $partner-&gt;user_params-&gt;partner_fee_currency = $config-&gt;get('partner_currency',1); }else{ $partner-&gt;user_params-&gt;partner_lead_fee = $partner-&gt;user_params-&gt;user_partner_lead_fee; }

in the file plugins/system/hikashopaffiliate/hikashopaffiliate.php and that should make it work properly.

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 8 months ago [\#142563](#142563) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142563 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi Nicolas

Thanks, I replaced the coding in the hikashopaffiliate.php file with the new coding and saved it, I then reactivated the plugin and error reporting and Unfortunately the problem has not gone away I still get the same errors and if error reporting is off still the same blank screen

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODY0ODA0LWVycm9ycy13aXRoLWFmZmlsaWF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

12 years 8 months ago [\#142581](#142581) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142581 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi,

Please also replace the code: Code:

$user = $userClass-&gt;get($user['id'],'cms'); $user-&gt;user_cms_id = $user['id']; $user-&gt;user_partner_id = $partner_id; $user-&gt;user_partner_price = @$partner-&gt;user_params-&gt;partner_lead_fee; $user-&gt;user_partner_currency_id = $partner-&gt;user_currency_id; $userClass-&gt;save($user);

to: Code:

$userData = $userClass-&gt;get($user['id'],'cms'); $userData-&gt;user_cms_id = $user['id']; $userData-&gt;user_partner_id = $partner_id; $userData-&gt;user_partner_price = @$partner-&gt;user_params-&gt;partner_lead_fee; $userData-&gt;user_partner_currency_id = $partner-&gt;user_currency_id; $userClass-&gt;save($userData);

in that same file. Then it will be ok.

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 8 months ago [\#142756](#142756) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142756 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi Nicolas

I replaced the coding with the new coding, If I try to register a account, I now get this

Error

Unknown column 'id' in 'field list' SQL=UPDATE &#96;tflwc_hikashop_user&#96; SET &#96;user_cms_id&#96;='1037',&#96;user_email&#96;='test@abcdef2.com',&#96;user_partner_email&#96;='',&#96;user_params&#96;='',&#96;user_partner_id&#96;='141',&#96;user_partner_price&#96;='5',&#96;user_partner_paid&#96;='0',&#96;user_created_ip&#96;='41.151.222.192',&#96;user_unpaid_amount&#96;='0.00000',&#96;user_partner_currency_id&#96;='144',&#96;user_created&#96;='1391706145',&#96;user_partner_activated&#96;='0',&#96;id&#96;='1037',&#96;name&#96;='abcdef2',&#96;username&#96;='abcdef2',&#96;email&#96;='test@abcdef2.com',&#96;password&#96;='f2341fa89c3d136e10413817a8046b87:5VGrgEw2YEfpK8cfVLAIYODHgTmJtbQC',&#96;block&#96;='1',&#96;sendEmail&#96;='0',&#96;registerDate&#96;='2014-02-06 17:02:25',&#96;lastvisitDate&#96;='0000-00-00 00:00:00',&#96;activation&#96;='3bb7259c2d1bc421d4bcb22e7928187e',&#96;params&#96;='{\"site_language\"![:&#92;](/irritated.gif ":&#92;")"en-GB\",\"language\"![:&#92;](/irritated.gif ":&#92;")"en-GB\"}',&#96;lastResetTime&#96;='0000-00-00 00:00:00',&#96;resetCount&#96;='0' WHERE &#96;user_id&#96;='193'

Warning: Creating default object from empty value in /home/m4706240/public_html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263

Please advise

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODY0ODA0LWVycm9ycy13aXRoLWFmZmlsaWF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

12 years 8 months ago [\#142760](#142760) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142760 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Change that same code to Code:

$userDataInDb = $userClass-&gt;get($user['id'],'cms'); $userData = new stdClass(); $userData-&gt;user_id = $userDataInDb-&gt;user_id; $userData-&gt;user_cms_id = $user['id']; $userData-&gt;user_partner_id = $partner_id; $userData-&gt;user_partner_price = @$partner-&gt;user_params-&gt;partner_lead_fee; $userData-&gt;user_partner_currency_id = $partner-&gt;user_currency_id; $userClass-&gt;save($userData);

in order to avoid that new error.

The following user(s) said Thank You: [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

12 years 8 months ago [\#142792](#142792) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142792 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Hi Nicolas

Thank it seems to now be fixed, the only error that now remains is the one when you click an affiliation link, but as for the rest it works perfectly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODY0ODA0LWVycm9ycy13aXRoLWFmZmlsaWF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

12 years 8 months ago [\#142974](#142974) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Errors with affiliation plugin](/forum/39-affilation/864804-errors-with-affiliation-plugin#142974 "Hi  I recently purchased the Business addition  I am having a few problems with the affiliation program though I get the following errors  1 - If you click on an affiliate Link Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 88  2 - If you register an account  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 263  Fatal error: Cannot use object of type stdClass as array in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 279  3 - If you check out an order  Warning: Creating default object from empty value in /home/m4706240/public&#95;html/plugins/system/hikashopaffiliate/hikashopaffiliate.php on line 179  What could be causing this and how do I solve it. For now I have disabled the affiliation plugin  Thank you")*

Yes, it's not really an error. Just a warning. If you deactivate the error reporting option of the joomla configuration you won't see it. We'll fix it for next version.

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

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

[](#top)
