View Full Version : actinicextras.js error
Darren B
16-Apr-2010, 01:26 PM
OK
this one has lost me and hoping someone here can help. Im working on this site http://www.casupply.co.uk/acatalog/test/acatalog/index.html
now when you add something to basket and click to checkout i get a js error on checkoutpage 0 i can see its the new checkout invoice and delivery not working as the delivery address is viewable all the time.
Message: 'options' is null or not an object
Line: 1146
Char: 2
Code: 0
URI: https://www.casupply.co.uk/acatalog/test/acatalog/actinicextras.js
I have compared the line 1146 as quoted in the error with another site and it is exactly the same. I have reset the the layouts to factory default and uploaded but this the same problem
JS is a complete no go area for me but wondered if anyone can shed some light on what might be causign this problem
Cheers
Darren
peblaco
16-Apr-2010, 01:53 PM
The file actinicextras.js shows the error "cmbCountry.options is undefined" what this means is it can't find it in the code. Relating to this line:
cmbCountry.options.length = 1; // clear the state select options except for 'Select country'
It might be one for Actinic to check especially if you're reverted to defaults. P.S. I also got a Javascript error on your site relating to mootools.js $.element is not a function, may not be a major concern but thought I would mention it.
Darren B
16-Apr-2010, 01:54 PM
thanks louise, i appreciate the time
The mootools one is odd, i did not get that. ho hum more work
Darren
Darren B
16-Apr-2010, 02:02 PM
tell a lie, under FF it gives a mootools error aswell
Darren B
16-Apr-2010, 02:05 PM
I have copied the actinicextras.js file from the original to the site and this has made no difference either.
Benjamin Dyer
16-Apr-2010, 02:06 PM
I'll get this checked out.
Darren B
16-Apr-2010, 02:17 PM
I think this is a bug
If i add US to the valid locations then it clears the error message and the script works online
Benjamin Dyer
16-Apr-2010, 02:21 PM
We have just been looking at this, can you try the following pls:
function SetInvoiceCountries()
{
var cmbCountry = document.getElementById('lstInvoiceCountry');
if (!cmbCountry || !cmbCountry.options)
{
return;
}
Darren B
16-Apr-2010, 02:33 PM
no problems but were would you like me to add the code?
Darren
Darren B
16-Apr-2010, 02:36 PM
ah ok found it a few lines earlier and replaced what was there, it has cleared the error in the preview pain, i am just uploading now
Darren
Darren B
16-Apr-2010, 02:39 PM
YEP that seems to have done the trick, uploaded and is working fine
Benjamin Dyer
16-Apr-2010, 02:50 PM
Sorry, you got there before me.
If anyone else is getting this add the code to actinicextras.js at the start of SetInvoiceCountries function.
I have also raised a bug.
Darren B
16-Apr-2010, 03:01 PM
ok just to clarify
find the code around line 1131 in the actinicextras.js function SetInvoiceCountries()
{
var cmbCountry = document.getElementById('lstInvoiceCountry');
if (!cmbCountry)
{
return;
}
and replace this with
function SetInvoiceCountries()
{
var cmbCountry = document.getElementById('lstInvoiceCountry');
if (!cmbCountry || !cmbCountry.options)
{
return;
}
then upload
Benjamin Dyer
16-Apr-2010, 03:14 PM
wot he said ;)
Darren B
16-Apr-2010, 03:16 PM
wot he said ;)
lmao......
Darren B
16-Apr-2010, 03:18 PM
P.S. I also got a Javascript error on your site relating to mootools.js $.element is not a function, may not be a major concern but thought I would mention it.
Sorted this aswell, this was a hang up from some old code. The site uses two different layouts for home page and shop, i had removed code from the home page but not the other.
Buzby
16-Apr-2010, 05:29 PM
Darren your plumbing 4 less website is still quoting 15% vat on the info page.
Darren B
16-Apr-2010, 06:08 PM
Thanks Jason, i sort that tomorrow, the vat is 17.5% im guessing its in the text somewere? its a low volume site we use to clear end of lines and trial different things. At the moment it has a back seat but i will get that sorted
Darren
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.