943,532 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 755
  • PHP RSS
Mar 12th, 2008
0

Help with parse and undefined errors

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mexaros is offline Offline
18 posts
since Jan 2008
Mar 13th, 2008
1

Re: Help with parse and undefined errors

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.
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
JeniF is offline Offline
52 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Multiple search
Next Thread in PHP Forum Timeline: Please help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC