PHP, MySQL, IIS7 issue

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mlungisi
Forum Newbie
Posts: 15
Joined: Wed Apr 04, 2012 9:45 am

PHP, MySQL, IIS7 issue

Post by mlungisi »

Hi

We moved a site that was developed by outsource company from old to new server and seem to be experiencing some issues on the new server. The products don’t show up anymore and no changes have been done on the code. When I turn errors on like http://mlungisi-001-site1.smarterasp.net/products.php there are some notices but surprisingly it worked on the old server.

Windows 2008, IIS7 Server

Errors turned on

Notice: A session had already been started - ignoring session_start() in H:\root\home\mlungisi-001\www\site1\libs\products.php on line 27

Code: Select all

session_start();
Notice: Undefined variable: iAUID in H:\root\home\mlungisi-001\www\site1\libs\users.php on line 73

Code: Select all

GetAU($iAUID, $AUID, $Email, $Firstname, $Surname, $COID, $CellNo, $PWord, $Active_Tag);
Notice: Undefined offset: 0 in H:\root\home\mlungisi-001\www\site1\libs\users.php on line 74

Code: Select all

GetAU($iAUID, $AUID, $Email, $Firstname, $Surname, $COID, $CellNo, $PWord, $Active_Tag);
Notice: Undefined offset: 0 in H:\root\home\mlungisi-001\www\site1\libs\users.php on line 75

Code: Select all

$_SESSION['uSurName'] = $Surname[0];
Notice: Undefined index: uUserTypeID in H:\root\home\mlungisi-001\www\site1\libs\products.php on line 1244

Code: Select all

if ($_SESSION['uUserTypeID'] == 2)
I have tried to kill sessions before starting a new one but that didn’t help either. I am caught between a latch and a door, don’t know whether its code issue or PHP configurations or MySQOL. Please share ideas
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP, MySQL, IIS7 issue

Post by requinix »

The session_start(), undefined offset, and undefined index warnings are bad (they're "warnings" after all) but probably not causing any particular problems. Until you can fix the code, if you can't already, you'll have to resort to just hiding those. Odds are the warnings were happening on the old server too - you just weren't aware of them.

The one that might cause problems is about the undefined variables. What URL are you visiting? Does it include iAUID and such in the URL?
Post Reply