I have a script in perl, and I use php virtual() function to include it in my site.
Everything works perfect, but I keep getting this error at the top of my page. The weird part is that I only get this error after I navigate to a webpage on my website. So, if I go to [www.mysite.com, there is no error, and when I click on "news" that navigates me to [URL="http://www.mysite.com/news"]www.mysite.com/news, the error message appears. However, if I go directly to [URL="http://www.mysite.com/news"]www.mysite.com/news](http://www.mysite.com) from my browser, I do not get the error message.
The script runs properly everywhere, just this annoying message makes my website look bad.
Does anyone knows why the error message only appears when I navigate to a 2nd webpage on my website? Also, the script works so the page is actually included, just this weird error message...
Warning: virtual() [function.virtual]: Unable to include '/cgi-bin/script/l' - request execution failed in /home/mysite/public_html/index.php on line 2
Either sort out the problem ( the /cgi-bin/script/ value may not be added to your include_path in your php.ini file)
Change your php.ini to not show errors ( display_errors = 0 )
at the top of the offending page add:
ini_set( "display_errors", 0);
In descending order of the best way to do it.
Your solution works! Thank you so much
This topic is now closed. New replies are no longer allowed.