Keyword

Fix discovered for IE7 "Syntax Error" problems:

  • SouthernStudios
  • SouthernStudios's Avatar Topic Author
  • Offline
  • New Member
More
17 years 9 months ago #4810 by SouthernStudios
Fix discovered for IE7 "Syntax Error" problems: was created by SouthernStudios
Hi,

I have spent a few hours hunting around for a fix to the nasty:

Syntax Error on Line 2, Code 0

Problem that many people seem to have had.

It seems slimbox conflicts with any script on your page if it uses document.write methods...  unless you open the plugin_jw_sig.php file and change the following lines:

<script type="text/javascript" src="/mambots/content/plugin_jw_sig/mootools.js"></script>
<script type="text/javascript" src="'.$mosConfig_live_site.'/mambots/content/plugin_jw_sig/slimbox.js"></script>

to

<script type="text/javascript" src="/mambots/content/plugin_jw_sig/mootools.js" defer="defer"></script>
<script type="text/javascript" src="'.$mosConfig_live_site.'/mambots/content/plugin_jw_sig/slimbox.js" defer="defer"></script>

I did this and the error dissapeared completely.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 9 months ago #4811 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Fix discovered for IE7 "Syntax Error" problems:
Nice one!!!

Thank you SouthernStudios for your tip!!!

Regards!!!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #4812 by juanp
thank you very much SouthernStudios. I would have never figured it out

in public_html/plugins/content/jwsig.php I changed

<script type="text/javascript" src="'.$mosConfig_live_site.'/plugins/content/plugin_jw_sig/mootools.js"></script>

to

<script type="text/javascript" src="'.$mosConfig_live_site.'/plugins/content/plugin_jw_sig/mootools.js" defer="defer"></script>

and it was all right.

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #4813 by juanp
that way I solved the problem but only when I'm not logged.

when I am logged it appears a warning symbol in the status bar: loaded but page contains error or "listo pero con errores en la pàgina" and its details are:

Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; IE6 B 04312002 MED 525pm)
Fecha: Mon, 10 Jan 2011 20:57:47 UTC


Mensaje: '$tmp' is null or not an object
Línea: 92
Carácter: 741
Código: 0
URI: www.mysite.com/media/system/js/mootools.js


Mensaje: Object doesn't support this property or method
Línea: 59
Carácter: 102
Código: 0
URI: www.wbeimarlodice.com/media/system/js/mootools.js

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #4814 by juanp
I FOUND a simple SOLUTION

I had a problem:

the sig plugin showed this warning:

Mensaje: Syntax error
Línea: 1
Carácter: 1
Código: 0
URI: www.mysite.com/://

and when I was logged it also showed these warnings:

Mensaje: '$tmp' is null or not an object
Línea: 92
Carácter: 741
Código: 0
URI: www.mysite.com/media/system/js/mootools.js


Mensaje: Object doesn't support this property or method
Línea: 59
Carácter: 102
Código: 0
URI: www.mysite.com/media/system/js/mootools.js


I FOUND a simple SOLUTION
since it was working fine
just that it showed warnings
I silenced it AND NOW IT WORKS GREAT

I simply added this line to the file /public_html/plugins/content/jwsig.php:

<script type="text/javascript">window.onerror=Block_Error;function Block_Error(){return true;}</script>

before this line:

<script type="text/javascript" src="'.$mosConfig_live_site.'/plugins/content/plugin_jw_sig/mootools.js"></script>


I found this solution here:

www.mooforum.net/help11/object-doesn-support-this-property-method-t977.html

and I was told in

extensions.qivva.com/forum.html?func=view&id=1674&catid=5

that this was a useful link as well:

www.seongyupyoo.com/index.php?option=com_content&task=view&id=10&Itemid=29

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum