PHP pages showing as blank white page

Discussion in 'PHP' started by Valdor, Mar 19, 2008.

  1. #1
    Hello.
    I have installed ADSX script on my desktop (running apache2triad).
    The php setup worked perfectly for this script but when accessing the admin or home page it shows up as a blank white page.

    All other php scripts and html and cgi and javascript work perfectly on this system.

    Its just this one script showing white pages.

    Any ideas anyone.

    Thanks.
     
    Valdor, Mar 19, 2008 IP
  2. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #2
    It looks like you have some errors and php is configured not to show them.
    Try change
    error_reporting()
    PHP:
    or look in apache logs, usually errors are shown there, too.
     
    AsHinE, Mar 19, 2008 IP
  3. Valdor

    Valdor Well-Known Member

    Messages:
    450
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    185
    #3

    Do i change this in php config then restart apache
     
    Valdor, Mar 19, 2008 IP
  4. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #4
    You can do this in two ways:
    1. edit your php.ini file as described here and restart apache. But this changes will affect all scripts.
    2. put a line of code
    error_reporting(1015)
    PHP:
    at the begining of the script that shows you blank page. You can try different values or constants from the link in the first way. In this case you don't need to restart apache and this will not affect other scripts.
     
    AsHinE, Mar 19, 2008 IP
  5. Valdor

    Valdor Well-Known Member

    Messages:
    450
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    185
    #5
    I checked the php error log and got this:
    This is the line it refers to:
    config.php is:
    config.php includes this php file:
    Any ideas.
     
    Valdor, Mar 19, 2008 IP
  6. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #6
    Try putting an absolute path here include('config.php');
    Or just echo something in config.php so see weather it is included or not.
     
    AsHinE, Mar 19, 2008 IP
  7. Valdor

    Valdor Well-Known Member

    Messages:
    450
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    185
    #7
    I did this before you answered
    changed include('config.php'); to include('./include/config.php');
    It now works so it must have been a path problem.
    Thanks for your time and help as without you i would not have thought to check the php error log.
    Thanks i will add to your reputation for your help
     
    Valdor, Mar 19, 2008 IP