Author Topic: Checkout Pages have Syntax Error  (Read 2575 times)

Andrew Robinson

  • Beginner
  • *
  • Posts: 14
  • nForced
    • AR Computer Solutions
Checkout Pages have Syntax Error
« on: June 18, 2010, 18:53:25 pm »
Hi,

I am having some problems with VM during the checkout process.

I am currently running Joomla 1.5.18 and VM 1.1.4. Also using the RocketTheme Mynxx and VM Mynxx templates

During the checkout process, I get the following error in the left corner at the bottom in Internet Explorer:

Quote
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; Creative AutoUpdate v1.40.01)
Timestamp: Fri, 18 Jun 2010 16:52:34 UTC


Message: Syntax error
Line: 1
Char: 23
Code: 0
URI: https://www.ar-computersolutions.co.uk/://0


This seems to happen after the VM internal SSL redirect, but not too sure. I am not a programmer, so would appreciate any help.

Note that this also affects the default VM template, not just the RT one.
Regards,
Andrew Robinson.

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Checkout Pages have Syntax Error
« Reply #1 on: June 24, 2010, 02:22:16 am »
I too am getting this error (joomla 1.5.18 / vm 1.1.4)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27541
  • Always on vacation
    • Jenkin Hill Internet
Re: Checkout Pages have Syntax Error
« Reply #2 on: June 24, 2010, 09:27:27 am »
I am currently running Joomla 1.5.18 and VM 1.1.4. Also using the RocketTheme Mynxx and VM Mynxx templates

The JavaScript error may be related to one of the mynxx scripts. Use the developer console in IE8 to see if you can narrow it down (Hit f12 to get the console).
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.3.10163 on Joomla 3.9.12 PHP 7.0.33

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Checkout Pages have Syntax Error
« Reply #3 on: June 24, 2010, 17:47:49 pm »
I am not using any mynxx scripts, just the default VM template and I am getting a similar error message.

Quote
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 24 Jun 2010 15:35:54 UTC


Message: Object doesn't support this property or method
fetchscript.php

Line: 412
Char: 2
Code: 0
URI: http://expressmetalsupply.fyicreative.net/components/com_virtuemart/fetchscript.php?gzip=0&subdir[0]=/themes/default&file[0]=theme.js&subdir[1]=/js&file[1]=sleight.js&subdir[2]=/js/mootools&file[2]=mootools-release-1.11.js&subdir[3]=/js/mootools&file[3]=mooPrompt.js&subdir[4]=/js/slimbox/js&file[4]=slimbox.js


(My site template was created using artisteer, which uses a 'IE=EmulateIE7' statement, so IE8 doesn `t load)

I didn `t see anything jump out at me in the developer console (but then again, I don `t know what I`m looking for)

I read in a different thread that it may be a jquery/mootools conflict - but it didn `t say how to fix it?

***note - this error only occurs on product details pages***

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27541
  • Always on vacation
    • Jenkin Hill Internet
Re: Checkout Pages have Syntax Error
« Reply #4 on: June 24, 2010, 23:37:12 pm »
My reply was to Andrew Robinson - not to dsrpmedia.

Yes Artisteer templates are apparently still not IE8 compatible so force the browser to use the IE7 engine, but the console still works. You need to select script and then run the debugger. I'm pretty sure it is a slimbox/mootools conflict, though.

You could have a look at some plugins to control script loading eg:
http://extensions.joomla.org/extensions/site-management/site-performance/7873
http://extensions.joomla.org/extensions/site-management/site-performance/8403

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.3.10163 on Joomla 3.9.12 PHP 7.0.33

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Checkout Pages have Syntax Error
« Reply #5 on: June 25, 2010, 17:49:51 pm »
Thanks for the response, unfortunately neither of those plugins worked.

It seems you are right, it is something to do with the slimbox
Code: [Select]
// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
Slimbox.scanPage = function() {
[color=yellow]$$($$(document.links).filter(function(el) {
return el.rel && el.rel.test(/^lightbox/i);
})).slimbox({/* Put custom options here */}, null, function(el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel))[/color];
});

error message
  Object doesn't support this property or method  js&file[4]=slimbox.js, line 412 character 2

--------------
so I commented out that whole section, and now the message is gone, & everything seems to work.

(I`m not sure what that section is supposed to do, but as far as I can tell it`s not vital)

thanks again for your help