Support Forum

  • Page:
  • 1

[solved] Syntax error ith JB library plugin

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello

Loading my page http://www.forumazur.com/en/life/weather causes an error in Firefox's Error console:
Error: syntax error Source File: www.forumazur.com/ Line: 4 Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
When I unpublish the "JB library plugin" this error goes away. I don't see any change in the first few lines with or without plugin, so I am quite puzzled why this error only occurs with that plugin.
Any idea?
  • tisiman's Avatar
  • tisiman
  • Free Extensions
  • 2 posts
  • Karma: 0
Last Edit: 13 years 6 months ago by tisiman.
The administrator has disabled public write access.
This is really strange. JB Libraru shouldn't have any effect there, and I can see nothing wrong with the Doctype declaration.

The only thing I notice is that it is appearing on line 4, wher I would normally expect it on line 1.

Sorry, I have no idea what the issue here moght be. I hope one of my fellow mods can shed some light on this issue.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Hello

Ok, found it, the error is produced by the line
<script src="/" type="text/javascript"></script>
which tries to load the root webpage as script and just fails at the first line, hence the script error.

This line was originally created by a plugin with
$mainframe->addCustomHeadTag('<script src="http://www.forumazur.com/modules/mod_fhw_simplelightbox/js/jquery1-4-1-min.js" type="text/javascript"></script>');
replacing it with
$mainframe->addCustomHeadTag('<script type="text/javascript" src="http://www.forumazur.com/components/com_comprofiler/js/jquery-1.4.2/jquery-1.4.2.min.js"></script>');
resolves the issue.
The first one is actually not fully conform as it lacks the type="text/javascript" part. So likely the JB Library Plugin regex gets confused...
Anyway problem solved
  • tisiman's Avatar
  • tisiman
  • Free Extensions
  • 2 posts
  • Karma: 0
Last Edit: 13 years 6 months ago by tisiman.
The administrator has disabled public write access.
B) Glad you found the source of the problem!

Thanks also for updating us, it may be of benefit to others in the future. Appreciated.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers