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
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.
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!
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?
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
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
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.
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:
Try changing $link=mysql_connect ("$servername","$dbuser","$dbpassword"); to $link=mysql_connect ($servername,$dbuser,$dbpassword); And double check username, password, dbname, and host
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
Yeh, the only thing problematic in open source is version compatibility. The comes issues if you upgrade to new versions.