Jump to content


Photo

Help!!


  • Please log in to reply
3 replies to this topic

#1 skyway

skyway
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 August 2006 - 02:55 PM

Help!!

Hello all...our company has recently moved to a new VPS running linux and plesk 7.5. Our e-mail is working fine ...but we have run into a problem with our website that we cannot figure out. Seems to be some kind of php error, but the same site on our old server work perfect. This is the error we get:

Notice: Undefined variable: empty in /var/www/vhosts/ourhost/httpdocs/casestudies.php on line 98

Has anyone else run into any kind of issue like this? any help anyone can offer would be hugely appreciated..



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 August 2006 - 03:00 PM

That is not an error. That is just a notice. Basically you are using a variable called $empty which doesnt exist, thus you get the above message. You should do something like the folloowing to prevent the notice:
if(isset($empty))
{
    // now work with the empty variable as it exists
}


Or define $empty with no value
$empty = '';


Another option is to turn down error reporting to ignore notices

#3 skyway

skyway
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 August 2006 - 03:52 PM

thanks but thats not it. I just did a search in my source code and empty does not come up at all.

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 August 2006 - 04:09 PM

Post the code from casestudies.php on lines 96 through to 100 here




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users