After upgrade - site locked down

This board for support questions on Joomla 1.6 RC (= Release Candidate - which should NOT be used on a production server) is NO longer active because Joomla 1.6.0 has been released.

>> For Joomla! 1.6 Support Questions, please use viewforum.php?f=614 instead <<
Forum rules
Please use the Forum Post Assistant to give your server setting details which are necessary to determine the problem.
iftrueelsefalse
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Feb 10, 2010 1:55 pm

After upgrade - site locked down

Postby iftrueelsefalse » Sun Nov 14, 2010 2:51 am

Hi just installed the new beta, I know it comes with no warrenties, but now I get this error on my site:
Fatal error: Call to a member function getPath() on a non-object in ***\htdocs\libraries\joomla\application\categories.php on line 434

it comes from this function:

Code: Select all

   function setParent(&$parent)
   {
      if ($parent instanceof JCategoryNode || is_null($parent)) {
         if (!is_null($this->_parent)) {
            $key = array_search($this, $this->_parent->_children);
            unset($this->_parent->_children[$key]);
         }
         if (!is_null($parent)) {
            $parent->_children[] = & $this;
         }

         $this->_parent = & $parent;

         if ($this->id != 'root') {
            $this->_path = $parent->getPath(); // THIS LINE
            $this->_path[] = $this->id.':'.$this->alias;
         }

         if (count($parent->_children) > 1) {
            end($parent->_children);
            $this->_leftSibling = prev($parent->_children);
            $this->_leftSibling->_rightsibling = &$this;
         }
      }
   }

if I var_dump($parent) it is null. How can I find out what is calling this?

iftrueelsefalse
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Feb 10, 2010 1:55 pm

Re: After upgrade - site locked down

Postby iftrueelsefalse » Sun Nov 14, 2010 3:03 am

I fixed it by changing
if ($parent instanceof JCategoryNode || is_null($parent)) {
to
if ($parent instanceof JCategoryNode || !is_null($parent)) {

User avatar
nkwajoomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Oct 11, 2008 1:46 pm

Re: After upgrade - site locked down

Postby nkwajoomla » Sat Apr 16, 2011 12:55 pm

Thank you.


Return to “Joomla! 1.6 RC Support [closed]”

Who is online

Users browsing this forum: No registered users and 1 guest