Jump to content

Archived

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

skyway

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
thanks but thats not it. I just did a search in my source code and empty does not come up at all.

Share this post


Link to post
Share on other sites
Post the code from casestudies.php on lines 96 through to 100 here

Share this post


Link to post
Share on other sites

×

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.