Jump to content

[SOLVED] What does this error mean?


psquillace

Recommended Posts

Hello All:

 

I have this error at this page - http://www.kardwelldev.com/wristbands/catalog.htm

 

and I am not sure what it means. I am new to php and did not write this program but I need to get it working.

 

I am assuming that it is trying to check something twice in my include. ::)

 

grrr, so frustrating being a newb.  >:(

 

Thanks for any help or advice anyone can give.

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/
Share on other sites

Ok,

 

From lines 38-42 I have this

 

if (isset($_SERVER['HTTP_REFERER'])) {

$user_data['ref'] = $_SERVER['HTTP_REFERER'];

} else {

$user_data['ref'] = '';

}

 

So, what you are saying is that I have this again somewhere else?

 

Thanks guys for all your help,

 

Paul

Yeh your doing the same thing twice some where... if you have an include and something similar is in the include then it will still count as occurring twice. Also check if you have an include with an include .... so make sure you check every include till there are no more left and find that function.

the function is already defined in:

/includes/email_validate.inc  started at line 63

 

you probably won't have to define that function again in the catalog.php.

 

simply remove the function from catalog.php and you'll be fine.

i guess two members answer that way  ;D ???

Ok, I found a 'function check_referer'  in the email_validate.inc

 

but the only check referer that I found is in an IF ELSE......

 

when I take it out of the IF ELSE, nothing changes in the error message.

 

I have to be looking at the wrong one or something

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.