Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default PHP Warning: Empty Delimiter

    Hi everybody. I'm fairly new to PHP and to Zen-Cart. I'm currently setting up my example store, for advertising. Things have been going well except with the log-in and log-off pages. I get the following warning on the log-in page:

    Warning: strstr(): Empty delimiter. in /nfs/cust/3/05/72/727503/web/zen-cart/includes/init_includes/init_customer_auth.php on line 15

    Then on log-off, I get the following warning:

    Warning: strstr(): Empty delimiter. in /nfs/cust/3/05/72/727503/web/zen-cart/includes/init_includes/init_customer_auth.php on line 15

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/3/05/72/727503/web/zen-cart/includes/init_includes/init_customer_auth.php:15) in /nfs/cust/3/05/72/727503/web/zen-cart/includes/functions/functions_general.php on line 44

    But then when I refresh the same log-off page, it goes directly to the "log off" page.

    If you'd like to try here is the site:

    http://danieldubeisdesigns.com/zen-cart

    I appreciate any help in fixing this problem.

    Thank you

    Dan

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP Warning: Empty Delimiter

    What are your Down for Maintenance IP Addresses? Blank or something there?

    If blank, if you put something there ... anything would do, does this stop happening?

    Usually this should have "something" there even if you did not set anything to begin with ...

    The default is: your IP (ADMIN)

    Then you would replace that with your IP when you set the site to Down for Maintenance ...

    A blank, could be triggering the issue ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: PHP Warning: Empty Delimiter

    Ajeh,

    The following is what line 15 looks like:

    if (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])){

    So what I need to do is replace "Admin_IP" with the actual IP, right?

    Dan

    UPDATE: I got it figured out. At least it is working. I replaced the 'REMOTE_ADDR' with my IP address, and now those warnings are not coming up. That's all that I needed to do right?

    I appreciate your help.
    Last edited by ioancuza; 9 Dec 2006 at 04:22 AM.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP Warning: Empty Delimiter

    In your Admin ...

    Configuration ... Website Maintenance ...
    Down For Maintenance (exclude this IP-Address)
    This IP Address is able to access the website while it is Down For Maintenance (like webmaster)
    To enter multiple IP Addresses, separate with a comma. If you do not know your IP Address, check in the Footer of your Shop.
    Do you have this set to anything or is it blank?

    If blank, and you set it to something, such as your IP address in the menubar or the default setting: your IP (ADMIN)

    ... does the error stop?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: PHP Warning: Empty Delimiter

    Ah I see what you are talking about. I'm going to put it there. Thank you for your help.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP Warning: Empty Delimiter

    Was it blank?

    Did filling it in fix it?

    Enquiring minds want to know ...

    Note: if that did fix it for you, what hosting site are you with? unix or windows?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: PHP Warning: Empty Delimiter

    what seemed to work was going into the includes/init_includes/init_customer_auth.php file and replacing 'REMOTE_ADDR' in line 15 with my IP address.

    I went to the Down For Maintenance section, but it actually was defaulted to be off. With 'REMOTE_ADDR' still in line 15, placing the IP address in Down For Maintenance still brought up the warning message. I went back and replaced again the 'REMOTE_ADDR' in line 15 and the warning message went away.

    As a test, I just changed 'REMOTE_ADDR' to 'blah blah blah' and no warning came up.
    I wonder why that got around it?

    if (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['blah blah blah'])){

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP Warning: Empty Delimiter

    Weird ... something on your server or browser is stripping that to not being set ...

    I haven't had that one before ... kind of curious about it now ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: PHP Warning: Empty Delimiter

    oh I'm sorry, I didn't tell you the server. I believe it is a Unix server. My site is hosted at Gate.com

 

 

Similar Threads

  1. v139h PHP Warning: strstr() Empty delimiter HELP
    By Enpeek in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Apr 2012, 09:43 AM
  2. v139h PHP Warning: strstr() Empty delimiter HELP
    By Enpeek in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Apr 2012, 02:21 AM
  3. PHP Warning: Empty delimiter. in Server Error Log
    By skipwater in forum General Questions
    Replies: 6
    Last Post: 30 Nov 2009, 10:18 PM
  4. Warning notice at top of admin: empty delimiter. in .../easypopulate_functions.php
    By hitechcomputerdesign in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Oct 2009, 06:39 PM
  5. Warning: strpos Empty Delimiter
    By OJM in forum Installing on a Windows Server
    Replies: 2
    Last Post: 12 Nov 2007, 09:18 PM

Posting Permissions

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