Fatal error after jupgrade in external menu link

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17439
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Fatal error after jupgrade in external menu link

Post by toivo » Fri Dec 28, 2012 3:57 am

Ref. http://forum.joomla.org/viewtopic.php?f ... &p=2965740

The user reports a fatal error on her upgraded site after she has gone to an external link where the option 'New Without Navigation' produces a popup window. I am unable to reproduce the error in my 2.5.7 test site, installed from scratch, even though the code in line 36 of modules/mod_menu/temp/default_url.php is identical, but it looks like get() is called on a non-object.

Here is a fix which makes sure that get() is performed on an object:

Code: Select all

// $options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params->get('window_open');
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$item->params->get('window_open');
I do not see what purpose the parameter 'window_open' could serve.

Even though this behavior could be a by-product of the upgrade, should I still report it?
Toivo Talikka, Global Moderator

Locked

Return to “Joomla! 2.5 Bug Reporting”