Reputation: 314
After migrating my local server to remote i get the above error. I have upgraded the joomla with the latest 2.5.10, am still getting the same error. Please How can i resolve this? Below is the code on line 71
public function write($id, $data)
{
// Get the database connection object and verify its connected.
$db = JFactory::getDbo();//Line 71
if (!$db->connected())
{
return false;
}
try
{
$query = $db->getQuery(true);
$query->update($db->quoteName('#__session'))
->set($db->quoteName('data') . ' = ' . $db->quote($data))
->set($db->quoteName('time') . ' = ' . $db->quote((int) time()))
->where($db->quoteName('session_id') . ' = ' . $db->quote($id));
// Try to update the session data in the database table.
$db->setQuery($query);
if (!$db->execute())
{
return false;
}
/* Since $db->execute did not throw an exception, so the query was successful.
Either the data changed, or the data was identical.
In either case we are done.
*/
return true;
}
catch (Exception $e)
{
return false;
}
}
Upvotes: 0
Views: 940
Reputation: 314
The only solution to this problem is to install a fresh joomla and start again. I tried to upgrade, even download the new 2.5.10 upgrade file, because at that time my old joomla was 2.5.9 still nothing happened.
All i did was to create a new database and install joomla afresh.
Upvotes: 1