Welcome, Guest

[solved] Syntax error ith JB library plugin
(1 viewing) (1) Guest
  • Page:
  • 1


Posting guidelines
To help us help you faster please ensure that you include the following details in your forum post:
- A link to your site (you can create a support ticket if you need to provide us with confidential information.
- Please ensure that css and javascript compression is disabled in your template settings.
- Please ensure that you have checked the change log and your template and extension are up to date.
- Please search the forum to see if your answer has already been asked before.
- Please ensure that you only post your request in either the forum or ticket system but not both.
- Please only post in an existing thread if your issue is exactly the same as the one being discussed in the thread.

TOPIC: [solved] Syntax error ith JB library plugin

[solved] Syntax error ith JB library plugin 2 years, 8 months ago #33832

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
  • OFFLINE
  • Free Extensions
  • Posts: 2
  • Karma: 0
Last Edit: 2 years, 8 months ago by tisiman.

Re: Syntax error ith JB library plugin 2 years, 8 months ago #33837

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
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: Syntax error ith JB library plugin 2 years, 8 months ago #34373

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
  • OFFLINE
  • Free Extensions
  • Posts: 2
  • Karma: 0
Last Edit: 2 years, 8 months ago by tisiman.

Re: [solved] Syntax error ith JB library plugin 2 years, 8 months ago #34375

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
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)
  • Page:
  • 1
Time to create page: 0.37 seconds