I am sometimes getting the below warnings when adding a new listing. It doesn’t always happen but occasionally does. The listing goes through but this warning message pops up. I am still on DT version 6.6.3. Is there a fix? I plan to upgrade in the near future. Just getting things ready to make a seamless transition.
Warning: Invalid argument supplied for foreach() in /home/servic19/public_html/wp-content/themes/DT/tpl-add.php on line 338
Warning: Cannot modify header information – headers already sent by (output started at /home/servic19/public_html/wp-content/themes/DT/tpl-add.php:338) in /home/servic19/public_html/wp-content/themes/DT/tpl-add.php on line 571
Maybe its this https://www.premiumpress.com/forums/topic/php-error-message-when-adding-new-coupons/#post-64469 ?
Thanks M, but no because I had multiple categories selected 🙁
So you’ve tried the code then?
I’m only asking because your using the word HAD. Can you confirm you’ve tried adding a listing with and without a category selected and your getting the error message on both instances.
No I didn’t try the code because the error occurred WITH categories selected. And the warning message has only appeared randomly, so it seems. I offer the option to set up listings for users and I always create the listings in the same way with description, categories, details, attachments, map. Most of the time they set up just fine but occasionally the above warning messages come up. I’m almost wondering if it has to do with the attachments? But not sure
Start your new website today!