HELP: Blank PHP pages, display_errors = On... safe_mode = Off

Discussion in 'PHP' started by ybjp, Sep 1, 2007.

  1. #1
    I've searched the internet from top to bottom trying to fix this problem! I can't see error message on php pages!

    In the php.ini file the display_errors is on. safe_mode is off. error_reporting is E_ALL ^ E_NOTICE (meaning all errors except notices, this works I've used it on other LAMP servers.)

    Here are two files i've created:

    http://www.ybhosting.com/test.php

    source code:

    <?php

    phpinfo();

    ?>


    http://www.ybhosting.com/test2.php

    <?php

    d

    phpinfo();

    ?>


    The second one does not spit an error message about the character
    "d". It just results in a blank page.

    I am using virtual server from media-temple. I've restarted the server several times.

    Please help! Thanks.
     
    ybjp, Sep 1, 2007 IP
  2. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Your first page seems to be working fine now.

    Brew
     
    Brewster, Sep 1, 2007 IP
  3. ybjp

    ybjp Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is suppose to work. I want errors to appear on test2.php

    but none are! Please help :)
     
    ybjp, Sep 1, 2007 IP
  4. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #4
    Open test2.php in your favorite text editor and after
    <?php
    add this
    
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    
    PHP:
    to show all errors
    Edit:
    The test2.php is Currently showing me
    " Parse error: parse error, unexpected T_STRING in /var/www/vhosts/ybhosting.com/httpsdocs/test2.php on line 5"

    make sure you have not left any line unterminated .
     
    killerj, Sep 2, 2007 IP