Has anyone else run into this? If you go into an open order and then click “Ship” it takes you to the page but when you try to Add Tracking Number it gives the following error message:
this.template has no properties add()109 (line 481) onclick(click clientX=0, clientY=0)109 (line 1) [Break on this error] new Insertion.Bottom($('track_row_container'), this.template.evaluate(da...
It’s actually missing an entire row of information which I’m assuming is where the error is coming from. The last box it shows is Shipping Information with the Add Tracking Number button.
Does anyone have a fix for this? It’s really kind of bizarre. I’m guessing it’s missing part of the file but I’m not sure which file or what to add to it.
I’m wondering if you have any custom shipment modules installed. Just found out by looking in the html source of the admin page in question, that ‘Australian post’ causes the error:
‘Invalid model for shipping method: australiapost’
This causes the remaining part of the page not being generated and hence the javascript error. Am looking into it now and will post my findings here…
Found out that in my case it were configuration entries in the db that belong to ‘Tweagmag Shipping’. Something similar may be the case for you. To find out, go to the admin page for the order and look at the html source (as you pointed out, clicking on ‘Add tracking number’ throws a javascript error ‘this.template has no properties’, which is caused by the fact that the page is not generated completely. Generation halts when an error occurs while fetching the different shipment methods).
In my case a backtrace of the errors was shown in the html, with this error ‘Invalid model for shipping method: australiapost’. Probably caused by removing the module manually, which I had to do because my ‘Magento Connect’ also generates errors that I haven’t fixed yet.
Anyway, if you have the same error, this can be fixed by removing the entries from the db table ‘core_config_data’ that contain ‘carriers/australiapost’. There are 10 of them. When I removed them, errors were gone and order page was ok.
Not sure what it means the Magento team states this error is fixed in 1.1.5. But maybe your problems are caused by a different bug?
@ Sherrie - I think this has something to do with your multiflat shipping module, see this code taken from page source when shipping an order. I actually had this module installed and then realised I could use table rates, so uninstalled via Magento Connect, it seems there was a problem with the uninstall process....any thoughts?
There is more code, but I ran out of characters, I can post it all if needed??
Ok I fixed the problem for me, it looks like when uninstalling the multiflatrate extension, there were some records that remained in the core config data table, so I ran this search query:
PLEASE NOTE THAT I CANNOT BE HELD RESPONSIBLE FOR ANYONE USING THIS QUERY AND LOSING DATA. USE AT YOUR OWN RISK.
SELECT * FROM 'core_config_data' WHERE 'path' LIKE '%-multiflat-%'
(If you run this you need to remove the hyphens from around ‘multiflat’, it would not show properly for some reason when posting)
and then deleted those records.
I have no idea how extensions work, and how the uninstall works, but they really should be cleaned up a little better. Kudos to those that are creating them and releasing to the community!!
Perhaps this is what the Magento team means when stating that the issue is solved in 1.1.5: the db table ‘core_config_data’ is cleaned up after uninstalling a shipping module. As you can see from my post the errors are of the same kind (in my case caused by leftover entries from Tweagmag Shipping) - ‘Invalid model for shipping method: <method name>’
Removing the entries manually indeed fixes the problem.
Oddly enough my errors are coming from the Delivery or Collection extension that got added in with an upgrade - I never installed it myself. I’ve removed all references to it, TweakMag, Local Delivery, and multiflat from core_config_data and am still getting this error:
Warning: include(Cambscom/Shipping/Model/Carrier/Delcol.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/minerva8/public_html/stores/app/code/core/Mage/Core/functions.php on line 73
It’s right, there is no such file or directory - yet it shows up in the admin still. This is real bizarre.