cancel
Showing results for 
Search instead for 
Did you mean: 

Error when selecting Shipping Methods

Error when selecting Shipping Methods

When i click on Shipping Methods in the admin panel, I get the following:

 

Fatal error: Call to a member function getCode() on a non-object in /home/mywebsite/public_html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Shipmenttype.php on line 34

 

this just started happening without changing anything in the site..

 

any thoughts ?

5 REPLIES

Re: Error when selecting Shipping Methods

Are you using the Magento compiler?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Error when selecting Shipping Methods

It was run once, but then turned off while we were still developing the site.    i was waiting to turn it back on until the site design is 100%

 

Compiler StatusDisabled
Compilation StateCompiled
Collected Files Count7432
Compiled Scopes Count4
Scopes Compilation Settings

default

 

Re: Error when selecting Shipping Methods

Can you run the shell command (into your Magento root directory)

 

php shell/compiler.php clear

 

After that you'll see this message: "Compilation successfully cleared".

Then check again the compiler status and you'll see these lines:

 

Compiler Status:          Disabled
Compilation State:        Not Compiled
Collected Files Count:    0
Compiled Scopes Count:    0

 

Right now your compiler is fullt disabled.

According with your first post, you compiler is disabled but the code is compiled. You need to delete de compiled code.

 

 

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Error when selecting Shipping Methods

[~/public_html]# php -f shell/compiler.php -- disable
Compiler include path disabled


 [~/public_html]# php -f shell/compiler.php -- clear
Compilation successfully cleared


[~/public_html]# php -f shell/compiler.php -- state
Compiler Status: Disabled
Compilation State: Not Compiled
Collected Files Count: 0
Compiled Scopes Count: 0

 

 

still getting the error

Re: Error when selecting Shipping Methods

i found that the config_core_data is missing all of the carrier information.

 

looking at a working site, i looked at the SQL database for the Magento database.

i did a search for "shipment_type" and found the following:
1 match in core_config_data
1 match in eav_attribute
222 matches in sales_flat_order_item 
Total: 224 matches


but when i did a search in the site that is erroring:

1 match in eav_attribute
2 matches in sales_flat_order_item

 

 

 

so it's obviously with the core data