Magento Forum

   
Javascript error in Create New Order area
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

When I enter the Sales > Orders > Create New Order area, a javascript error is reported in Firebug:

$("order-billing_method_form"is null
setPaymentMethod
()("")index.ph...essage.js (line 3063)

This interferes with the Payment & Shipping Methods, producing seemingly random combinations, and stops me from submitting the order.

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

*bump*

Would really appreciate guidance on this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hydra
Guru
 
Avatar
Total Posts:  378
Joined:  2008-08-26
Amsterdam
 

Hi,
What version are you on?
I remember seeing something about this in the diff files of the latest version, but i am not sure of it.
.

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

I’m using 1.3.2.1.

I had a bad experience doing an update last time, and I’m close to launch so I’m not sure if I want to try again right now, but if you think that’s where the problem is…

 
Magento Community Magento Community
Magento Community
Magento Community
 
hydra
Guru
 
Avatar
Total Posts:  378
Joined:  2008-08-26
Amsterdam
 

Hi,

Well you can make a backup of the db and the files and then upgrade.
If things go horribly wrong you can restore everything.
Or you can create a staging environment and test it first.
http://www.crucialwebhost.com/blog/setting-up-a-magento-staging-area/
.

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

Upgrading to latest version sorted the problem. Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
hydra
Guru
 
Avatar
Total Posts:  378
Joined:  2008-08-26
Amsterdam
 

Hi,
Nice that it is fixed with the update.
Did you have any problems with upgrading or did it go smoothly this time?
I just noticed that there is a new update. v1.3.2.3 and i have updated my staging server just now.
No problems detected for now so maybe i upgrade the production server tonight.
.

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

I did a manual upgrade, no problems at all.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sweet Tooth
Sr. Member
 
Avatar
Total Posts:  121
Joined:  2008-02-02
Canada
 

After some investigation, it looks like there is a bit of an upgrade problem here.  I’ve attached the section from the DIV that reveals the issue.  A quick fix would be to do the following:

1. Edit app/design/adminhtml/default/default/template/sales/order/create/billing/method/form.phtml
2. On Line 28, add:

<div id="order-billing_method_form">
before
<dl class="payment-methods">
3. On line 49 add
</div>
after
</dl>

Although this resolves the issue you should look into why the upgrade failed.  In our case it had to do with the folder permissions.

Image Attachments
2009-12-23_125944.png
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top