Magento Forum

Fatal error: Call to a member function getModelInstance() on a non-object in /home/cdesigns/public_html/site/app/Mage.php on line 314
 
ktripp
Jr. Member
 
Avatar
Total Posts:  29
Joined:  2007-12-21
Missouri
 

I am receiving this error when i try to go to the Magento Connect Mangager. Everything else in the site is working fine. I am just unable to update Magento. I am in version 1.1.8. Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
goldenthunder
Jr. Member
 
Total Posts:  5
Joined:  2009-08-23
 

I’m having the same problem; does anyone know what I’m doing wrong?

Fatal errorCall to a member function getModelInstance() on a non-object in /var/www/vhosts/MYWEBSITE.com/httpdocs/magento/app/Mage.php on line 319

319.        
return Mage::getConfig()->getModelInstance($modelClass$arguments);

EDIT:

Hooray! I figured it out!

The following files and folders need their permissions set to the number ‘777’, so that Magento can save data properly:

/var/.htaccess
/app/etc
/var

 
Magento Community Magento Community
Magento Community
Magento Community
 
devopensource
Member
 
Avatar
Total Posts:  42
Joined:  2008-04-23
spain
 
goldenthunder - 23 August 2009 08:43 PM

I’m having the same problem; does anyone know what I’m doing wrong?

Fatal errorCall to a member function getModelInstance() on a non-object in /var/www/vhosts/MYWEBSITE.com/httpdocs/magento/app/Mage.php on line 319

319.        
return Mage::getConfig()->getModelInstance($modelClass$arguments);


EDIT:

Hooray! I figured it out!

The following files and folders need their permissions set to the number ‘777’, so that Magento can save data properly:

/var/.htaccess
/app/etc
/var

LOL “777” file permisions!!

im have this error in out magento code:

$app Mage::app('default');

and fixed!! :D

 
Magento Community Magento Community
Magento Community
Magento Community
 
zmove
Guru
 
Total Posts:  317
Joined:  2008-04-30
 

Hello,

Can you give more explaination to your solution seeel ? I understand nothing

Regards,

Alex

 
Magento Community Magento Community
Magento Community
Magento Community
 
ttwhy
Member
 
Avatar
Total Posts:  70
Joined:  2008-01-27
 

the code the pasted just should tell you ->

Tell magento what its default instance and than you can get normal error messages.

So if you add the code at the end of the index.php in your base directory you can read the correct error message (which should be something about not correct set filepermissions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kaushikdas
Jr. Member
 
Total Posts:  1
Joined:  2013-01-21
 
goldenthunder - 23 August 2009 08:43 PM

I’m having the same problem; does anyone know what I’m doing wrong?

Fatal errorCall to a member function getModelInstance() on a non-object in /var/www/vhosts/MYWEBSITE.com/httpdocs/magento/app/Mage.php on line 319

319.        
return Mage::getConfig()->getModelInstance($modelClass$arguments);


EDIT:

Hooray! I figured it out!

The following files and folders need their permissions set to the number ‘777’, so that Magento can save data properly:

/var/.htaccess
/app/etc
/var

Thanks! Perfect.. Just saved my day! Thanks again

 
Magento Community Magento Community
Magento Community
Magento Community
 
rahul_yudiz
Jr. Member
 
Total Posts:  2
Joined:  2013-05-08
 

Fatal error: Call to a member function getUrlInStore() on a non-object in D:\wamp\www\magento-1.7.0.2\app\code\community\BeeShopy\BeeSocial\Block\Iframe.php on line 12

Please give me the solution of these error…

 
Magento Community Magento Community
Magento Community
Magento Community
 
rahul_yudiz
Jr. Member
 
Total Posts:  2
Joined:  2013-05-08
 

Fatal error: Call to a member function getUrlInStore() on a non-object in D:\wamp\www\magento-1.7.0.2\app\code\community\BeeShopy\BeeSocial\Block\Iframe.php on line 12

please give me the solution of these error

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top