This shows only when making a menu to a product. All other menus are ok. No admin css and this error shows in the parameter
Parameters (Basic)
Fatal error: Cannot access empty property in /home/bigswin/public_html/libraries/joomla/registry/registry.php on line 194
Thank in advance for any help.
Version 2.0.6
Same issue here: https://forum.virtuemart.net/index.php?topic=101121.0
JRegistry class issues have been reported for various Joomla components. Mostly with Joomla 1.5 and PHP5.3+ Some have rewritten registry.php so it works with recent PHP versions but this is not recommended by Joomla devs
Which versions do you have?
Joomla1.5.25 - php 5.2.17
Interesting it only throws the error on the one page, and when looking at the vmproductsmenu.php page in Dreamweaver it has an invalid markup and highlights this and does not do it on the other menu pages. It would be ok if it did this on any other menu link but the products page? :
<?php defined('_JEXEC') or die();
/**
*
* @package VirtueMart
* @subpackage Plugins - Elements
* @author Valérie Isaksen
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: $
*/
if (!class_exists('VmConfig'))
require(JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php');
if (!class_exists('ShopFunctions'))
require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php');
if (!class_exists('TableCategories'))
require(JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'categories.php');
if (!class_exists('VmElements'))
require(JPATH_VM_ADMINISTRATOR . DS . 'elements' . DS . 'vmelements.php');
/*
* This element is used by the menu manager for J15
* Should be that way
*/
class JElementVmproductsmenu extends JElement {
var $_name = 'productsmenu';
function fetchElement($name, $value, &$node, $control_name) {
return JHTML::_('select.genericlist', $this->
Any help? Anyone?
I have solved simply and manually but I can't see how to report to joomla this.
The problem is that all values to be set in registry are coupled, but sometimes empty values return inside $nodes variable.
A quick solution but not obviously fully tested is the following. But should see also if the variable is needed after, or it causes disgraces
//@Giuseppe
if(!$nodes[$i]) continue;
For Mine reason I have to reset all my local system
With php 5.3.10 the error is not here anymore, at least in my side. Should see if there is something else.
Will post the complete code to at least don't have the error visualized!
Thanks
ereallstaff are you using Joomla 1.5?
Sorry for late repli
Joomla! 2.5.4 Stable [ Ember ] 2-April-2012 14:00 GMT
Versione piattaforma Joomla! Joomla Platform 11.4.0 Stable [ Brian Kernighan ]
Virtuemart 2.0.6
But the error I had in a module I am developing