Don’t really know as my provider doesn’t show native settings. In any case this is not just an error showing problem. The code really breaks. Maybe I’m not fully understanding what you mean. I’m gonna dig a little more into into it. Thanks anyway.
Problem is that in the second case your server does not populate the $_SERVER[‘SCRIPT_FILENAME’] variable try to see with your hosting provider if they can give you any explanation about it.