skyway Posted August 30, 2006 Share Posted August 30, 2006 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 98Has anyone else run into any kind of issue like this? any help anyone can offer would be hugely appreciated.. Quote Link to comment https://forums.phpfreaks.com/topic/19160-help/ Share on other sites More sharing options...
wildteen88 Posted August 30, 2006 Share Posted August 30, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/19160-help/#findComment-82880 Share on other sites More sharing options...
skyway Posted August 30, 2006 Author Share Posted August 30, 2006 thanks but thats not it. I just did a search in my source code and empty does not come up at all. Quote Link to comment https://forums.phpfreaks.com/topic/19160-help/#findComment-82935 Share on other sites More sharing options...
wildteen88 Posted August 30, 2006 Share Posted August 30, 2006 Post the code from casestudies.php on lines 96 through to 100 here Quote Link to comment https://forums.phpfreaks.com/topic/19160-help/#findComment-82944 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.