Ajeh:
This is most likely causes by going to php 5.x on your server ...
In the two sessions.php functions, you can try adding:
function _sess_write($key, $val) {
global $db;
[B] if (!is_object($db)) {
//PHP 5.2.0 bug workaround ...
$db = new queryFactory();
$db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
}[/B]
Hi Ajeh:
I have had the same problem when my hoster changed to PHP 5.2.
I've tried the solution you said and all work perfect again- :clap:
But I have a doubt, you are talking of 2 sessions.php. I got the message in public_html/cart/includes/functions/session.php, that was where I got the error into admin panel, but I was having the same error every time than an user tried to log, apparently no errors on login, but the user couldn't get into, so no possiblity to purchase either.
I changed also the public_html/cart/admin/includes/functions/sessions.php case that this one were the other file.
Really, with only the first change all back to work again(adminn panel and users login , but I have the doubt if more sessions.php are affected for the PHP5.2 bug.
Any ideas?
Thanks for your help
:cool: