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

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

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

Postby 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: 12036
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

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

Postby 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, but not for CMSimple 4+

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

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

Postby 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: 618
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

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

Postby 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.


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests