psquillace Posted October 13, 2007 Share Posted October 13, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/ Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 means your calling a function more than once Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-368326 Share on other sites More sharing options...
True`Logic Posted October 13, 2007 Share Posted October 13, 2007 check_referer() is defined more than once, either in that page or in an include() {my guess is in /var/www/vhosts/kardwelldev.com/httpdocs/catalog.php, line 39} Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-368335 Share on other sites More sharing options...
psquillace Posted October 15, 2007 Author Share Posted October 15, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369560 Share on other sites More sharing options...
SirChick Posted October 15, 2007 Share Posted October 15, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369568 Share on other sites More sharing options...
teng84 Posted October 15, 2007 Share Posted October 15, 2007 use include once or require once Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369575 Share on other sites More sharing options...
hvle Posted October 15, 2007 Share Posted October 15, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369577 Share on other sites More sharing options...
teng84 Posted October 15, 2007 Share Posted October 15, 2007 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 ??? Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369578 Share on other sites More sharing options...
psquillace Posted October 15, 2007 Author Share Posted October 15, 2007 Well, This is what is confusing.... this same exact php fle works fine on the live site. http://www.wrist-bands.com/catalog.htm So how is that possible? Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369593 Share on other sites More sharing options...
psquillace Posted October 15, 2007 Author Share Posted October 15, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369597 Share on other sites More sharing options...
psquillace Posted October 15, 2007 Author Share Posted October 15, 2007 Grrrrrrrrr, I now took out the include all together and I still got that same error. Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369603 Share on other sites More sharing options...
teng84 Posted October 15, 2007 Share Posted October 15, 2007 maybe your function is inside the loop Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369635 Share on other sites More sharing options...
psquillace Posted October 15, 2007 Author Share Posted October 15, 2007 I am going to chalk this one up under stupidity. LOL Ok, there was a JS function that was throwing it all off that was not properly set. sheesh anyway, it seems to be working now.... tanks everyone for all your help. Paul Quote Link to comment https://forums.phpfreaks.com/topic/73031-solved-what-does-this-error-mean/#findComment-369643 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.