Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Plugin stop working in Vanilla version 2.3

This discussion is related to the Consolidate addon.
steamsteam www.planamigo.org - #1 foro planes amigo
edited December 2016 in Vanilla 2.0 - 2.8

With the version vanilla 2.3 this excellent plugin has stopped working :(

It gives errors and resources js,images are not found. I've tried clearing the cache and changing two themes.

It would be nice to have this excellent plugin working again.

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited December 2016

    please post error message from your server error logs when you enable the plugin.
    Post a screenshot of the resources being called by using a web inspector.

    Post a link to your site. Not enough info in "Stopped Working"

    Vanilla 2.3 minifies some things, it could be possible that the plugin is interfering or vice versa.

  • steamsteam www.planamigo.org - #1 foro planes amigo

    @vrijvlinder dijo:
    please post error message from your server error logs when you enable the plugin.
    Post a screenshot of the resources being called by using a web inspector.

    Post a link to your site. Not enough info in "Stopped Working"

    Vanilla 2.3 minifies some things, it could be possible that the plugin is interfering or vice versa.

    I have given only the information that does not work. In the plugin page I saw it has been tested with on - 2.0.18, 2.1, 2.2

    I think you can see the faults by activating the plugin in your environment. If you do not see the faults in another environment would be the problem of mine.

    I have on web inspector

    js-global-js_32bdd94….js:39 Uncaught TypeError: Cannot read property 'RedirectUrl' of undefined
    at Object.gdn.getMeta (js-global-js_32bdd94….js:39)
    at HTMLDocument. (js-global-js_32bdd94….js:360)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at Function.ready (jquery.min.js:4)
    at HTMLDocument.q (jquery.min.js:4)

    .../cache/Consolidate/images/sprites.png 404 (Not Found)
    .../cache/Consolidate/images/ui_sprites.png 404 (Not Found)

    When the plugin is activated the resources are not found

    On the server I can not find the errors.

    The link for the test web I can send you by private message.

    Thanks.

  • steamsteam www.planamigo.org - #1 foro planes amigo

    I have installed this plugin on version 2.1 and on 2.2 it workes, but the problems appeared when I did update to version 2.3

    Folder "images" in forlder "Consolidate" does not exist. That is why no images are found

    On the folder "Consolidate" exists js and css files

  • steamsteam www.planamigo.org - #1 foro planes amigo
    edited January 2017

    I copied the folder with images in the folder Consolidate, the errors of not finding images disappeared, but I still have the global js error.

    js-global-js_32bdd94….js:39 Uncaught TypeError: Cannot read property 'RedirectUrl' of undefined
    at Object.gdn.getMeta (js-global-js_32bdd94….js:39)
    at HTMLDocument. (js-global-js_32bdd94….js:360)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at Function.ready (jquery.min.js:4)
    at HTMLDocument.q (jquery.min.js:4)

    I think the problem is more serious and has to see the developer of the plugin that knows how it goes.

    Something has been changed in vanilla so plugin does not work and have to be adapted.

  • I will have a look at it this evening.

    grep is your friend.

    steamhgtonight
  • x00x00 MVP
    edited January 2017

    https://open.vanillaforums.com/addon/consolidate-plugin

    please make sure that that whole folder is replaced not copied over, as some files need to be removed.

    grep is your friend.

    hgtonight
  • sir if i use this in 2.3, and later due to any issue decide no to use. Will my files be restored to original. unconsolidated?

  • Open and separate discussion next time don't piggy back someone else's discussion, as people will find easier to find the answer.

    Yes is the answer. I doesn't modify the original files.

    grep is your friend.

  • steamsteam www.planamigo.org - #1 foro planes amigo
    edited February 2017

    @x00 dijo:
    https://open.vanillaforums.com/addon/consolidate-plugin

    please make sure that that whole folder is replaced not copied over, as some files need to be removed.

    Hi,
    Sorry to take so long to try new version, I did not have free time. Still have problems with the plugin.

    The plugin and cache folders I have completely deleted and copied new version.

    Now I have this error:

    GET http://applications/dashboard/design/images/sprites.png net::ERR_NAME_NOT_RESOLVED
    (index):1435 GET http://applications/dashboard/design/images/vanilla-forums-light-bg-70x33.png net::ERR_NAME_NOT_RESOLVED
    (index):1435 GET http://applications/dashboard/design/images/ui_sprites.png net::ERR_NAME_NOT_RESOLVED

    Something strange because where plugin is looking for the images - http://applications/...

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Those images are from the core, url should be like this.. something is striping the GDN URL

    http://yoursite.com/forum/applications/dashboard/design/images/ui_sprites.png

  • dvenckusdvenckus New
    edited April 2017

    I have it working in our VF v2.3 sites, but we have several customizations so uploading the full project won't be much help to you. Here are the key changes that worked for us:

    /plugins/Consolidate/js/consolidate.js : line 8 ## livequery() is deprecated, replace with 'on()'

    - $('div.ChunkGroupIndex div.Chunk').livequery(function(){
    + $('body').on('DOMNodeInserted', 'div.ChunkGroupIndex div.Chunk', function(){
    

    /plugins/Consolidate/default.php : line ~ 480 ## Minify_CSS_UriRewriter::rewrite() was causing imported font CDN paths to be rewritten incorrectly, comment out this line

    - $FileStr = Minify_CSS_UriRewriter::rewrite($FileStr,dirname($Base . DS.$this->WebRoot . DS.$File['href']),$Base);
    

    Hope this helps someone.

    R_Jwhu606
  • In hindsight, this isn't a workable solution. Minify_CSS_UriRewriter::rewrite() is necessary for any css style referencing url(). Unfortunately, I had to disable to plugin for the time being. :anguished:

Sign In or Register to comment.