Answer the question
In order to leave comments, you need to log in
What to do with errors after updating Joomla to 2.5?
Hello!
After updating the site to Joomla 1.5.26 using jUpgrade to version 2.5 , errors appeared at the address of the new site site.ru/jupgrade :
Notice: Trying to get property of non-object in /home/g/site/site.ru/public_html/jupgrade/libraries/joomla/application/module/helper.php on line 152
Notice: Trying to get property of non-object in /home/g/site/site.ru/public_html/jupgrade/libraries/joomla/application/module/helper.php on line 156
Notice: Trying to get property of non-object in /home/g/site/site.ru/public_html/jupgrade/libraries/joomla/application/module/helper.php on line 159
Warning: Creating default object from empty value in /home/g/site/site.ru/public_html/jupgrade/libraries/joomla/application/module/helper.php on line 159
Notice: Undefined property: stdClass::$content in /home/g/site/site.ru/public_html/jupgrade/templates/system/html/modules.php on line 16
152 $app->scope = $module->module;
// Get module parameters
$params = new JRegistry;
156 $params->loadString($module->params);
// Get module path
159 $module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
function modChrome_none($module, &$params, &$attribs)
{
16 echo $module->content;
}
Answer the question
In order to leave comments, you need to log in
var_dump'om THEM!
Just look what's wrong there. Joomla is never fun.
I'm pretty sure 152 - $module is not an object, etc. considering all notes.
I would add checks for such chunks. For example
if(!isset($module->module) ) {
return false;
}
Something like that.
Read notes - get rid of them. As a last resort, you can do this:
error_reporting(E_ERROR | E_PARSE);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question