Forum
Free shipping error in admin panel
I get an error in admin panel, when I try to set a promotion for a free shipping. This happens when I select Shipping methods just below "Apply to shipping" and when I try to save it. Can someone suggest me how I can fix it?
Thanks
Warning: trim() expects parameter 1 to be string, array given in .../public_html/perch/addons/apps/perch_shop/fieldtypes.php on line 151
Warning: PDO::quote() expects parameter 1 to be string, array given in .../public_html/perch/core/lib/PerchDB_MySQL.class.php on line 382
Warning: Cannot modify header information - headers already sent by (output started at .../public_html/perch/addons/apps/perch_shop/fieldtypes.php:151) in .../public_html/perch/core/lib/PerchUtil.class.php on line 1211
Warning: Cannot modify header information - headers already sent by (output started at .../public_html/perch/addons/apps/perch_shop/fieldtypes.php:151) in .../public_html/perch/core/lib/PerchUtil.class.php on line 1212
Warning: Cannot modify header information - headers already sent by (.../public_html/perch/addons/apps/perch_shop/fieldtypes.php:151) in .../public_html/perch/core/lib/PerchUtil.class.php on line 1213
Warning: Cannot modify header information - headers already sent by (.../public_html/perch/addons/apps/perch_shop/fieldtypes.php:151) in .../public_html/perch/core/lib/PerchUtil.class.php on line 1219
Warning: Cannot modify header information - headers already sent by (output started at .../public_html/perch/addons/apps/perch_shop/fieldtypes.php:151) in .../public_html/perch/core/inc/top.php on line 17
debug
Is this in Shipping or Promotions?
Can we see your Diagnostics Report please?
This is in Promotions, when I try to set a new promo code for free shipping and when I try to select "Shipping methods" for "Apply to shipping" set to "yes"
Diagnostics
How many shipping methods do you have defined? Have you picked one from the list?
I have 6 shipping methods in general. And I picked 2 shipping methods for this promotion, but when I try to save happens this what I posted above.
Does it work if you pick just one?
No. Only when shipping checkboxes are empty I get no errors. If I select any or just one checkbox I get this error.
We'll see if we can reproduce it.
Did You manage to find any solution?
No, but I have it logged to look into.