Ok I upgraded the 5.2.11 and i have tried all the option on the forum changing cubecart.class.php editing
$content = $GLOBALS['smarty']->fetch('templates/content.homepage.php');
to
'content' => $home['doc_content']
and also removed
$old_sessionid = $this->getId();
session_regenerate_id(true);
//Use the instance because the global might be gone already
Database::getInstance()->update('CubeCart_sessions', array('session_id' => session_id()), array(