Support » Plugin: Root Relative URLs » Not compatible with "Use Google Libraries" plugin

  • Hi,

    When I enable this plugin, the url to jquery (inserted by “Use Google Libraries”) becomes src=’/ajax/libs/jquery/1.10.2/jquery.min.js?ver=1.10.2′ instead of src=’//’

    It results in an error 404 and some features not working…

    I tried to add “http:” in front of the src url in the “Google Libraries” plugin without success.
    I tried to add various BlackList url in “Root Relative” (via Settings > General) without more success:
    – /ajax/libs/jquery
    – //

    Any idea how to fix this ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have a hacked version of this plugin on GitHub that includes the following changes.

    • Fixed PHP error in wp_mail() function
    • Do not run plugin on .xml sitemap requests
    • PHP warning split() depricated
    • Blacklist external JS files

    The hacks I have put in place are taken from some of the issues posted here.

    No guarantee it will help, but you’ll need to blacklist all the scripts that are loaded from google. Try them with and without the domain name, don’t remember at the moment which.

    Thx a lot!

    Out of the box, your hack doesn’t solve my issue…

    How should I type the urls in the blacklist ?
    I only want to prevent the rewriting of “//”


    The code that actually checks the url in the blacklist is:
    if (stripos($url, trim($x)) !== false)
    And it only compares the url without the domain name.

    You should be able to blacklist all of the google scripts by just including the common beginning portion, without the domain name:

    example: /ajax/libs/

    Great !!! It works now fine !

    I didn’t understand that it was nor checking on the domain name…

    Thx a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not compatible with "Use Google Libraries" plugin’ is closed to new replies.