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.. 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 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. 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 Link to comment https://forums.phpfreaks.com/topic/19160-help/#findComment-82944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.