Error In Affiliate Add-On "core/fn.catalog.php"

We have set up an affiliate plan, with affiliate banners and so on



everything works quite OK, except:





when a user clicks on the “Affiliate plan” link, there's an error



called page is: http://test.mysite.com/index.php?dispatch=affiliate_plans.list





error is as follows





Warning: reset() [function.reset]: Passed variable is not an array or object in /home/folder003/public_html/core/fn.catalog.php on line 308



Warning: Invalid argument supplied for foreach() in /home/folder/public_html/core/fn.catalog.php on line 4069



Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/folder/public_html/core/fn.catalog.php on line 4079



any hints? is there a bug or are we missing something?

i discovered that by simply adding a “Coupon” in the affiiate plan the error disappears…

why? what if I don't want to add a Coupn to the affiliate plan?

Hello AntonioGrazioli,



Could you please clarify which version of CS-Cart are you using?



Also, please visit the following topic:



Affiliate, Gift Registry, Product Configurator, Recurring Billing, Statistics Addons. - Third-Party Services - CS-Cart Community Forums



Thanks

this error is on CS-Cart 2.1.4

Hello AntonioGrazioli,



Thank you for the information. I have examined the code and did not found such functions on the lines you presented. It looks like the fn.catalog.php file was customized. Unfortunately it is hard to say where is the problem without debugging the code. Perhaps the problem in customization?