Problem after upgrading from php4 to php5

A place for users and developers of the Xataface to discuss and receive support.

Postby yusif » Tue Aug 21, 2007 10:25 am

Hi Steve,
I just installed zendoptimized php for oracle which installed the most current version of php i.e. php 5.2.3. I use to have php 4.3.x . However, when I launch my application i get these errors

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 12

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 112

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 178

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 244

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 310

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 376

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 442

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 508

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 574

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 640

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 706

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 772

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 838

Notice: Undefined index: -table in C:\Program Files\Apache Group\Apache2\htdocs\adsl\index.php on line 907


The application use to load well without errors until I installed the php 5. Could help me out ?
Regards
yusif
 
Posts: 28
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Aug 22, 2007 9:08 am

The problem is that throughout your index.php file you are making references to the '-table' key (probably in the $_GET or $_REQUEST array, when none is specified. Your new version of PHP is just set to display notices when this was probably suppressed in your old version.

Solutions:

1. You could suppress these notices by adding the following to the beginning of your index.php file:
error_reporting(E_ALL^E_NOTICE);

2. Better solution is to actually make sure that the key exists before accessing it.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 3 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved