A
A
Artuha2014-07-08 16:46:32
PHP
Artuha, 2014-07-08 16:46:32

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

helper.php:
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);

modules.php:
function modChrome_none($module, &$params, &$attribs)
        {
16	         echo $module->content;
        }

The admin panel works, $log_path and $tmp_path are correct in configuration.php, $live_site is present. What else could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Push Pull, 2014-07-10
@deadbyelpy

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 question

Ask a Question

731 491 924 answers to any question