| | |
Help with parse and undefined errors
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 18
Reputation:
Solved Threads: 0
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.
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
- GTKpod (*nix Software)
- Please Help (C++)
- Variable scope/declaration/assignment query (PHP)
Other Threads in the PHP Forum
- Previous Thread: Multiple search
- Next Thread: Please help
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube





