| | |
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 |
.htaccess ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login loop mail matching menu mlm mod_rewrite multiple mysql oop oracle paypal pdf php problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tutorial update upload url validation validator variable video web xml youtube





