Results 1 to 6 of 6
  1. #1

    Default Empty delimiter error

    Hello Zenners,

    First, I hope that is the right place to ask this question...

    But I am dealing with an error message on my zen site. It's not systematic but occurs frequently :

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/WwwBSD/sapapaya.com/includes/functions/functions_general.php on line 983
    I found this is about the HTTP referer and i guess this must be linked with buttons (maybe CSS buttons) but I cannot find a way to resolve it. (I know that I'm limited in PHP coding ...)

    Has anyone experienced this matter or any idea to get it work fine.

    Thanks a lot in advance

  2. #2
    Join Date
    Sep 2004
    Posts
    1,390
    Plugin Contributions
    4

    Default Re: Empty delimiter error

    As you probably know, $_SESSION is a predefined variable, which means PHP always takes care of the values set therein. The following comes from the PHP manual describing the specific variable $_SERVER['HTTP_REFERER']...
    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
    Quote originally found on this page. Obviously it's an issue with your browser, but does raise a good concern, namely should we not trust this variable. My gut says no, most main line browsers have no problem providing this information. However, an error condition might be worth considering.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3

    Default Re: Empty delimiter error

    Hi BlindSide,

    Thanks a lot for the explanations & the link.

    The problem is that i had this error message with 3 different browsers (FF 1.5, IE 6 and Opera 9.1) ...

    So I guess there might be something else. I noticed that the error often occurs with pages such as "Members cart" (when returning) or EZ pages.

    Maybe there is a connection ?

  4. #4
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,611
    Plugin Contributions
    13

    Default Re: Empty delimiter error

    What version you use?
    replace this
    PHP Code:
    if (strstr(HTTP_SERVER$_SERVER['HTTP_REFERER'])) { 
    by
    PHP Code:
    if (isset($_SERVER['HTTP_REFERER']) && strstr(HTTP_SERVER$_SERVER['HTTP_REFERER'])) { 
    Good luck,
    Andrew
    Russian Zen-Cart forum

  5. #5
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Empty delimiter error

    Andrew's right -- that's the fix.
    You're using an old version of Zen Cart -- the current version has this fix in it already.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6

    Default Re: Empty delimiter error

    Hello guys,

    I am on v. 1.3.0.2.

    Thanks for the fix, but I replaced the code and I am still having the same message when i am returning to my member's cart.

    (If you wanna have a look, here is a test account: test@test.com / 123456. after logging, go to the shopping cart).

    Any idea ?

    Thx in advance

 

 

Similar Threads

  1. HELP! Big problems
    By wakenine in forum Installing on a Linux/Unix Server
    Replies: 12
    Last Post: 24 May 2007, 05:19 AM
  2. PHP Warning: Empty Delimiter
    By ioancuza in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Dec 2006, 04:47 AM
  3. Getting strstr(): Empty delimiter error on third instalation page
    By spacemandc in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 28 Aug 2006, 08:59 PM
  4. I can’t any longer install any SQL-patches.
    By PeterBKK in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2006, 06:22 PM
  5. Internal Server Error
    By newbieone in forum Upgrading from 1.2 to 1.3.x
    Replies: 9
    Last Post: 10 May 2006, 11:15 PM

Bookmarks

Posting Permissions

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