Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / PHP Warning: Empty Delimiter

PHP Warning: Empty Delimiter

Locked

Views: 3,924

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
9 Dec 2006, 2:57 AM
#1
ioancuza avatar

ioancuza

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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

9 Dec 2006, 3:12 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

9 Dec 2006, 3:18 AM
#3
ioancuza avatar

ioancuza

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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.

9 Dec 2006, 3:20 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

9 Dec 2006, 3:27 AM
#5
ioancuza avatar

ioancuza

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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.

9 Dec 2006, 3:31 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: PHP Warning: Empty Delimiter

Was it blank?

Did filling it in fix it?

Enquiring minds want to know ... :smile:

Note: if that did fix it for you, what hosting site are you with? unix or windows?

9 Dec 2006, 3:38 AM
#7
ioancuza avatar

ioancuza

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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. :D
I wonder why that got around it?

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

9 Dec 2006, 3:41 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :unsure:

9 Dec 2006, 3:47 AM
#9
ioancuza avatar

ioancuza

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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