SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Apr 2002
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to hide php's warning message?

    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 www.mysite.com/news, the error message appears. However, if I go directly to www.mysite.com/news 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

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Either sort out the problem ( the /cgi-bin/script/ value may not be added to your include_path in your php.ini file)

    OR

    Change your php.ini to not show errors ( display_errors = 0 )

    OR

    at the top of the offending page add:
    PHP Code:
    <?php

    ini_set
    "display_errors"0);
    In descending order of the best way to do it.

  3. #3
    SitePoint Addict
    Join Date
    Apr 2002
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your solution works! Thank you so much


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •