Jump to content


Photo

error_log reports, 'categories is not an object'


Have a bunch of these filling up my error_log file currently:

[12-Apr-2012 02:53:09 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'categories is not an object' in /home/***user***/public_html/***admin***/sources/base/ipsRegistry.php:1079
Stack trace:
#0 /home/***user***/public_html/***admin***/sources/base/ipsRegistry.php(1177): ipsRegistry::getClass('categories')
#1 /home/***user***/public_html/***admin***/applications_addon/ips/downloads/extensions/furlRedirect.php(182): ipsRegistry->__get('categories')
#2 /home/***user***/public_html/***admin***/applications_addon/ips/downloads/extensions/furlRedirect.php(138): furlRedirect_downloads->_fetchSeoTitle_cat()
#3 /home/***user***/public_html/***admin***/sources/base/ipsRegistry.php(1721): furlRedirect_downloads->fetchSeoTitle()
#4 /home/***user***/public_html/***admin***/sources/base/ipsRegistry.php(679): ipsRegistry::_fUrlComplete()
#5 /home/***user***/public_html/***admin***/sources/base/ipsController.php(77): ipsRegistry::init()
#6 /home/***user***/public_html/***admin***/sources/base/ipsController.php(64): ipsController->init()
#7 /home/***user***/public_html/index.php in /home/***user***/public_html/***admin***/sources/base/ipsRegistry.php on line 1079

Status: Fixed
Version: 2.5.0
Fixed In: 2.5.1


2 Comments

I can't readily reproduce the error, but try changing extensions/furlRedirect.php

/* Query the cat */
            $cat    = $this->registry->categories->cat_lookup[ $this->_id ];

to

/* Query the cat */
            ipsRegistry::getAppClass( 'downloads' );
            $cat    = $this->registry->categories->cat_lookup[ $this->_id ];
the code change above fixed this for me. thx