Call to a member function getName() on a non-object in

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
sounds
Joomla! Explorer
Joomla! Explorer
Posts: 357
Joined: Tue Jun 12, 2007 7:20 am
Location: Republic of Ireland

Call to a member function getName() on a non-object in

Post by sounds » Wed Mar 16, 2011 1:56 pm

Hi,

Just did the 1.6 to 1.6.1 update
Everything seems ok untill i try to click anything in the users menu

Fatal error: Call to a member function getName() on a non-object in /home/xxxxx/public_html/main/libraries/joomla/application/component/view.php on line 458

Is there something wrong in that view.php?

Code: Select all

457	{
458		$name = strtolower($model->getName());
459		$this->_models[$name] = &$model;
460
461		if ($default) {
462			$this->_defaultModel = $name;
463		}
464		return $model;
465	}
Big party when I reach 10,000 posts.

Thank you :pop:

 
User avatar
nicholash
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Feb 25, 2007 10:07 pm

Re: Call to a member function getName() on a non-object in

Post by nicholash » Wed Mar 16, 2011 6:25 pm

what is the component your viewing ?

User avatar
sounds
Joomla! Explorer
Joomla! Explorer
Posts: 357
Joined: Tue Jun 12, 2007 7:20 am
Location: Republic of Ireland

Re: Call to a member function getName() on a non-object in

Post by sounds » Thu Mar 17, 2011 9:36 am

I'm not viewing any, i'm just trying to access them from the admin panel
Big party when I reach 10,000 posts.

Thank you :pop:

User avatar
nicholash
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Feb 25, 2007 10:07 pm

Re: Call to a member function getName() on a non-object in

Post by nicholash » Fri Mar 18, 2011 9:28 am

every page you visit is related to a component.

The error your getting is related to the view of that component. The actual code shown is where this object is past further up the chain and then is not valid when the code tries to use the object.

You might also get a better response asking in a different forum as this one is meant to be about performance.

User avatar
sounds
Joomla! Explorer
Joomla! Explorer
Posts: 357
Joined: Tue Jun 12, 2007 7:20 am
Location: Republic of Ireland

Re: Call to a member function getName() on a non-object in

Post by sounds » Fri Mar 18, 2011 12:02 pm

I redid the whole site with 1.6.1 everything is sorted
Big party when I reach 10,000 posts.

Thank you :pop:

User avatar
nicholash
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Feb 25, 2007 10:07 pm

Re: Call to a member function getName() on a non-object in

Post by nicholash » Fri Mar 18, 2011 7:19 pm

great, that is good to hear

 

Locked

Return to “Performance - Joomla! 2.5”