View Full Version : Looking for some help with a PHP Warning

04-25-2008, 04:57 AM
These warnings just appeared today from out of nowhere. I have looked at the chunk of code in my WP-shopping-cart.php file and nothing looks out of place at all.
This shopping cart has been working fine for a year and then today this popped up.

Do you think I would be better off just upgrading my shopping cart plugin and hoping this clears up the problem. Here's the warnings:

Warning: stristr() [function.stristr]: Empty delimiter. in /homepages/37/d193440522/htdocs/knockout/wp-content/plugins/wp-shopping-cart/wp-shopping-cart.php on line 2094

Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d193440522/htdocs/knockout/wp-content/plugins/wp-shopping-cart/wp-shopping-cart.php:2094) in /homepages/37/d193440522/htdocs/knockout/wp-content/plugins/www-redirect.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d193440522/htdocs/knockout/wp-content/plugins/wp-shopping-cart/wp-shopping-cart.php:2094) in /homepages/37/d193440522/htdocs/knockout/wp-content/plugins/www-redirect.php on line 20

Thank you in advance for your help.


04-25-2008, 05:28 AM
Did you make ANY changes to the code at all? Or did anybody else make any changes to the code? Was there an update that you installed?

04-25-2008, 07:39 AM
If no one made a change to the code then someone may have changed the default error reporting settings. In any event, this error should be easy to correct if you know a little about PHP. You might want to report it to the plugin's author for help or a possible fix, though.

04-25-2008, 05:54 PM
The first error is causing the last two to occur. strstr could be receiving a delimiter argument from just about anywhere depending on how it is used. If the value used in that argument is not being set for any reason and no checks were done to determine that it was blank, then you will get that error.

It really depends on where that value is getting set. A link that doesn't have the correct query string values, a configuration change, something else that isn't working. Without the code it would be difficult to determine.

04-25-2008, 11:28 PM
Good luck with that plugin. I had used it in a few different applications and I had nothing but problems with it. If they could get their act together, they would have one killer Wordpress plugin.