? Fix for: Offending extension using its own jQuery library detected ?

General questions about CMSimple
Post Reply
bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

? Fix for: Offending extension using its own jQuery library detected ?

Post by bastingse » Thu Aug 17, 2017 11:10 am

I'm running into the jquery problem that is talked about several times already.

In a template i did use:

Code: Select all

 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
This is needed to have a proper working pushmenu.

Then, when i open pagemanager i do get this error "Offending extension using its own jQuery library detected".

Now i did search a few hours and found a few interesting things:

Here i did read this:
"This won't get fixed (as it's not possible to fix it in all cases)". Does that mean that sometimes it can be fixed?
Does that mean there is some hope for me to get this fixed?

On cmsimple-jp.org i found some text. It is in Japanese, and since my Japanese isn't that good anymore i did trow it in google translate:
Result:
When you click "Page Management"

A fatal error was detected in the jQuery library. (See the manual "Limitations / restrictions")

Offending extension using its own jQuery library detected (see manual, section "Limitations").

And that.

It is conflicting with Pagemanager plugin and jquery.js writing directly in the template.

... The way of workaround, two ...

Method 1: Use jQuery.js prepared by CMSimple regularly (Do not write jquery.js directly on the template side)

Plug-in management → Jquery → Basic setting → Autoload checked
However, since CMSimple's jquery has no technique (Enqueue System) to boost the reading order, it may be necessary to consider the dependency on the template side.


Method 2: JQuery.js on the template side is used regularly, not applied to the management screen. (It is quick)

It is judged by if (! $ Adm), for example

Code: Select all

# in tempalte.htm
<?php if(!$adm){ ?>
    <script src="*****js/jquery-1.8.3.min.js"></script>
<?php } ?>
Now..... is there any way to get this problem fixed?
Can somebody fix it as a paid job ofcourse.
Or is it possible to exclude the jquery code when i'm in admin mode or in pagemanager.
Is there maybe a way to use a different template when using a specific plugin (pagemanager) ?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: ? Fix for: Offending extension using its own jQuery library detected ?

Post by cmb » Thu Aug 17, 2017 11:25 am

bastingse wrote:This is needed to have a proper working pushmenu.
If you don't need exactly this version of jQuery (1.7.2), just remove the code from the template, and activate CMSimple_XH's jQuery (Adminmenu → Plugins → Jquery → Config → Autoload). The default versions of jQuery should be fine for a start.
Christoph M. Becker – Plugins for CMSimple_XH

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: ? Fix for: Offending extension using its own jQuery library detected ?

Post by bastingse » Thu Aug 17, 2017 11:35 am

Awesome !!
After remove that line from the template I did check on 'autoload' and choose for jquery & jqueryUI

Thanks Christoph!!
Works perfectly!

manu
Posts: 1085
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: ? Fix for: Offending extension using its own jQuery library detected ?

Post by manu » Thu Aug 17, 2017 11:35 am

How about to set autoload in jQuery plugin and omit your jQuery include in your template?

Christoph was faster.

Post Reply