Имам Joomla! 1.7.2 Стабилен и когато се опитам да вляза в административната област, получавам тази грешка
Fatal error: Call to a member function load() on a non-object in /home/shomos1/public_html/portal/libraries/joomla/user/user.php on line 822
това е редът за грешка в моя user.php
public function load($id)
{
// Create the user table object
$table = $this->getTable();
var_dump($table);
// Load the JUserModel object based on the user id or throw a warning.
if (!$table->load($id)) {
JError::raiseWarning('SOME_ERROR_CODE', JText::sprintf('JLIB_USER_ERROR_UNABLE_TO_LOAD_USER', $id));
return false;
}
// Set the user parameters using the default XML file. We might want to
// extend this in the future to allow for the ability to have custom
// user parameters, but for right now we'll leave it how it is.
$this->_params->loadString($table->params);
// Assuming all is well at this point lets bind the data
$this->setProperties($table->getProperties());
return true;
}
}
Не съм добър в Joomla и не мога да разбера какъв е проблемът там, моля, имам нужда от помощ, какво мога да направя, за да разреша този проблем Благодаря
$table
в този момент? - person bwoebi   schedule 16.06.2013var_dump($table);
преди реда за грешка и ми дайте върнатата стойност. - person bwoebi   schedule 16.06.2013false
. Струва ми се, че този код трябва да проверява!empty($table)
, ако това е така. - person kuujo   schedule 16.06.2013