Help with parse and undefined errors

Reply

Join Date: Jan 2008
Posts: 18
Reputation: mexaros is an unknown quantity at this point 
Solved Threads: 0
mexaros mexaros is offline Offline
Newbie Poster

Help with parse and undefined errors

 
0
  #1
Mar 12th, 2008
I am updating a site for a company. The site was at one time working, and has since been pulled offline. All the php, js and .sql files were sent to me and I should have just been able from the beginning to load and run the site. unfortunately this is not the case. I continuously get the following errors just trying to load(again i havent touched the code yet):


Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: A session had already been started - ignoring session_start() in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 2, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant listing - assumed 'listing' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 17, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 101, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: file_name in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 101, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 118, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant fld_emailid - assumed 'fld_emailid' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\contactus.php on line 72, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\contactus.php on line 72, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '=' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\left.php on line 67, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:05 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '=' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\user_register.php on line 419, referer: http://localhost/neighbours/contactus.php




I am at a loss on how to correct this. I recompiled the database using the .sql files, which is where "listing", "fld_emailid" and "file_name" are all fields that were created in the database. I imagine the parse error is caused by the assignment of these "undefined fields" to another variable. But why if the fields exist in the database am i getting these undef errors.
Last edited by mexaros; Mar 12th, 2008 at 10:59 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Re: Help with parse and undefined errors

 
0
  #2
Mar 13th, 2008
please post the codes that are referenced in the above error. We can't help you with out seeing the scripts.
Look at the lines that are giving you the error to see what the code contains.
I keep hitting "escape", but I'm still here!!!!
:}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC