Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Looking for some help with a PHP Warning

    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.

    Mez

  • #2
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    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?
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Dec 2007
    Location
    Nebraska
    Posts
    113
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.
    Deliver yesterday, code today, think tomorrow.

  • #5
    New Coder
    Join Date
    Jan 2007
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •