More bugs than Beetle Juice (Scream louder and then you describe 1 bug, lol)

Started by bigfishtools, May 06, 2012, 02:00:08 AM

Previous topic - Next topic

bigfishtools

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


jenkinhill

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?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

bigfishtools

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->

bigfishtools


ereallstaff

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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ì
Try out our new joomla background rotator ( for joomla 1.x or 2.x), for only 14,99 eur @ innovailweb.it

ereallstaff

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ì
Try out our new joomla background rotator ( for joomla 1.x or 2.x), for only 14,99 eur @ innovailweb.it

jenkinhill

ereallstaff are you using Joomla 1.5?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

ereallstaff

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ì
Try out our new joomla background rotator ( for joomla 1.x or 2.x), for only 14,99 eur @ innovailweb.it