Jump to content

Help!!


Recommended Posts

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..

Link to comment
https://forums.phpfreaks.com/topic/19160-help/
Share on other sites

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:
[code=php:0]if(isset($empty))
{
    // now work with the empty variable as it exists
}[/code]


Or define $empty with no value [code=php:0]$empty = '';[/code]


Another option is to turn down error reporting to ignore notices
Link to comment
https://forums.phpfreaks.com/topic/19160-help/#findComment-82880
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.