I’m having the same issue.(using wamp and joomla 2.5.9) Did any one ever find a fix, other than setting the Global Configuration to None?
Yes
line 123:
if (!$params)
$params = class_exists('JParameter') ? new JParameter(null) : new JRegistry(null);
This check will never be true because $params is passed (by address) as an object and if it's null it will cause $params to become a JRegistry object without data. Ie. $params will always be an object without data and has no purpose in this function
All parameters can be found in the var $plugin->params which are used on line 127:
$pluginParams = class_exists('JParameter') ? new JParameter($plugin->params) : new JRegistry($plugin->params);The rest of the code in the function are using $pluginParams as fallback when $params is empty so it works but generates a Notice on line 129:
$galleries_rootfolder = ($params->get('galleries_rootfolder')) ? $params->get('galleries_rootfolder') : $pluginParams->get('galleries_rootfolder', $defaultImagePath);The reason is that
$defaultImagePath is undefined.
To get rid of the Notice remove
$defaultImagePath on line 129:
$galleries_rootfolder = ($params->get('galleries_rootfolder')) ? $params->get('galleries_rootfolder') : $pluginParams->get('galleries_rootfolder');This is completly safe since 'galleries_rootfolder' is set to 'images' if saved empty in the plugin-manager
Tip! 'Root folder for image galleries' may be set to
. (dot) and gives the uportunity to have images in multiple root-folders (use absolute paths in {gallery})