Site pages down after PHP server upgrade

Discussion in 'PHP' started by ian_ok, Feb 20, 2007.

  1. #1
    My sites database pages are down after being upgraded to php 4.4.5 (yet 6 months ago I tested on a version of 5.x and it worked fine)

    From a search it may be that:
    _REQUEST["PHPSESSID"]
    PHP:
    Isn't shown on phpinfo anymore.

    Any ideas of what I can try?

    Thanks Ian
     
    ian_ok, Feb 20, 2007 IP
  2. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #2
    What error you are getting exactly?
     
    designcode, Feb 20, 2007 IP
  3. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    None what so ever, so blank pages on anything related to the d/b

    Ian
     
    ian_ok, Feb 20, 2007 IP
  4. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    These are what the upgrade effects in php

    * Fixed possible safe_mode & open_basedir bypasses inside the session extension.
    * Fixed unserialize() abuse on 64 bit systems with certain input strings.
    * Fixed possible overflows and stack corruptions in the session extension.
    * Fixed an underflow inside the internal sapi_header_op() function.
    * Fixed possible overflows inside zip & imap extensions.
    * Fixed non-validated resource destruction inside the shmop extension.
    * Fixed a possible overflow in the str_replace() function.
    * Fixed possible clobbering of super-globals in several code paths.
    * Fixed a possible information disclosure inside the wddx extension.
    * Fixed a possible string format vulnerability in *print() functions on 64 bit systems.
    * Fixed a possible buffer overflow inside ibase_{delete,add,modify}_user() function.
    * Fixed a string format vulnerability inside the odbc_result_all() function.
    * Fixed a possible buffer overflow inside mail() function on Windows.
     
    ian_ok, Feb 20, 2007 IP
  5. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #5
    A shot in the dark: check out that session.auto_start (or anything else related to sessions) is set to "on" in your php.ini file
    http://php.net/session

    Cheers! :)
     
    picouli, Feb 20, 2007 IP
  6. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Maybe the database connection script is unable to connect and your error message has an exit(); in it?

    Can you try echoing something right at the start of the page before and after the DB connection?
     
    mad4, Feb 20, 2007 IP
  7. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    session.auto_start is set to OFF

    As is this:
    session.use_trans_sid

    In my htaccess I already had this:
    php_value session.use_trans_sid 0

    Any idea about how to turn back on?

    Also nothing is returned when you try to echo something

    Thanks Ian
     
    ian_ok, Feb 20, 2007 IP
  8. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #8
    To turn on those two sessions settings just change this in your .htaccess:
    php_value session.use_trans_sid 1
    and add
    php_value session.auto_start 1
     
    picouli, Feb 20, 2007 IP
  9. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Have tried that and a mixture to NO avail.
     
    ian_ok, Feb 20, 2007 IP
  10. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #10
    If you are getting blank pages, then I think mad4 is right, you are unable to connect to db, and there may be a check which is exits script on connection failure.
     
    designcode, Feb 20, 2007 IP
    ian_ok likes this.
  11. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I've tried this and still get a blank page:

    <?
    // hostname or ip of server
    $servername='localhost';
    
    // username and password to log onto db server
    $dbusername='REMOVED';
    $dbpassword='REMOVED';
    
    // name of database
    $dbname='REMOVED';
    
    ////////////// Do not  edit below/////////
    
    connecttodb($servername,$dbname,$dbusername,$dbpassword);
    function connecttodb($servername,$dbname,$dbuser,$dbpassword)
    {
    global $link;
    $link=mysql_connect ("$servername","$dbuser","$dbpassword");
    if(!$link){die("Could not connect to MySQL");}
    mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error());
    }
    ?>
    PHP:
     
    ian_ok, Feb 20, 2007 IP
  12. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #12
    Try changing
    $link=mysql_connect ("$servername","$dbuser","$dbpassword");

    to
    $link=mysql_connect ($servername,$dbuser,$dbpassword);

    And double check username, password, dbname, and host
     
    designcode, Feb 20, 2007 IP
  13. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Nothing, still just blank pages - have seen another site using same software on same HOST that has the same problem, so has to be a php upgrade issue from 4.4.4 to 4.4.5
     
    ian_ok, Feb 20, 2007 IP
  14. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #14
    My host has finally said it is a major problem with PHP 4.4.5 and will be reverting back to 4.4.4
     
    ian_ok, Feb 20, 2007 IP
  15. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #15
    Yeh, the only thing problematic in open source is version compatibility. The comes issues if you upgrade to new versions.
     
    designcode, Feb 20, 2007 IP