Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

“Fatal error: Call to a member function getCode()” during installation
 
swisscheese
Jr. Member
 
Total Posts:  1
Joined:  2007-10-22
 

Hi all

Just downloaded the 0.6.13160.zip and tried to install on a OSX Server 10.4.9 with php 5.2.2 (entropy release) and MySql 4.1.13a. After the step where I can set the db and site values, it throws the following error:
Fatal error: Call to a member function getCode() on a non-object in /web/magento13160/app/code/core/Mage/Core/Model/Url.php on line 425

I copied the files twice, but no success

Any ideas?
Thanks, swisscheese

 
Magento Community Magento Community
Magento Community
Magento Community
 
jexxer
Jr. Member
 
Total Posts:  1
Joined:  2007-10-31
 

Hi.
I’m having the same problem.

Did you find a solution?
Can anybody else help here?

My testsystem:
Linux 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686 GNU/Linux
Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c Zend Core/2.0.1 PHP/5.2.3

 
Magento Community Magento Community
Magento Community
Magento Community
 
fantaboy
Jr. Member
 
Total Posts:  1
Joined:  2007-11-20
 

Hi,
I have the same problem… if somebody can help me...!

The message is:
“Fatal error: Call to a member function getCode() on a non-object in /home/tecnicom/public_html/magento/app/code/core/Mage/Core/Model/Url.php on line 430”

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pro Digital
Sr. Member
 
Avatar
Total Posts:  110
Joined:  2007-12-05
Hungary
 

Fatal error: Call to a member function getCode() on a non-object in ..../magento/app/code/core/Mage/Core/Model/Url.php on line 466

the same problem… :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aaronk
Jr. Member
 
Total Posts:  2
Joined:  2007-12-07
 

Fatal error: Call to a member function getCode() on a non-object in ..../magento/app/code/core/Mage/Core/Model/Url.php on line 466
Exactly the same as jakuzatm
the same problem…

Fixed:
How did i fix this:

Instead of using the socket like /var/run/mysqld/mysqld.sock
I used 127.0.0.1 in the host field instead of
127.0.0.1:3306 or localhost
this fixed the problem for me

 
Magento Community Magento Community
Magento Community
Magento Community
 
shyamala
Jr. Member
 
Total Posts:  8
Joined:  2010-08-06
 

Hi....

I am getting the following error,when i am going to convert the currency price from one to another....

Fatal error: Call to a member function getCode() on a non-object in /opt/lampp/htdocs/magento/app/code/core/Mage/Directory/Model/Currency.php on line 171

 
Magento Community Magento Community
Magento Community
Magento Community
 
Helder
Member
 
Total Posts:  34
Joined:  2008-06-20
Montevideo, Uruguay.
 
shyamala - 27 August 2010 12:23 AM

Hi....

I am getting the following error,when i am going to convert the currency price from one to another....

Fatal error: Call to a member function getCode() on a non-object in /opt/lampp/htdocs/magento/app/code/core/Mage/Directory/Model/Currency.php on line 171

I am having this same issue but when trying to use a Gift Card code (using Gift Card’s addon from Unirgy’s: http://www.unirgy.com/products/ugiftcert/)

 
Magento Community Magento Community
Magento Community
Magento Community
 
andrewo
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2009-11-05
 

update: sorry wrong thread....

post removed

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