• Resolved jamminjames

    (@jamminjames)


    I can’t get Fast Velocity Minify to work with the WordPress File Upload plugin.

    I’ve tried every combination of settings I can think of, and excluded the plugin’s directory via the exclusion list.

    It works fine on every other page of the site, but not if there’s a WordPress File Upload shortcode present. Then, the page won’t load beyond the post title.

    How can I debug this?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raul P.

    (@alignak)

    I installed that plugin, and I got an error as well.

    PHP Fatal error: Cannot declare class MatthiasMullie\Minify\Minify, because the name is already in use in /home/sites/xxxxxx/www/wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/Minify.php on line 26

    For whatever reason, that plugin is including a minification library from here:
    https://github.com/matthiasmullie/minify

    However, FVM also includes that library as well.

    The author has to update the plugin to “not include that library” if it’s already defined somewhere else, OR rename it so it doesn’t conflict with other plugins.

    In other words, FVM and WordPress File Upload are not compatible with each other.
    I have posted on their support forum a fix, however it depends on the author to implement it or not, or you could do that change yourself.
    https://www.ads-software.com/support/topic/bug-fix-console-log-errors/

    However, I am testing their plugin on a default wordpress install, with only the default 2019 theme and no other plugins, and there are other errors on the console log:
    https://prntscr.com/n3osif

    Looking at that, I would instead recommend using some other alternative plugin for the uploads, unless it works fine on your theme (without errors), in which case you won’t be able to use FVM.

    Thread Starter jamminjames

    (@jamminjames)

    Thanks, Raul. If, as you say, the other plugin could just add an “if” line to “not include that library” if it’s already defined somewhere else, shouldn’t yours do it as well? And wouldn’t that solve the problem in this case?

    I will notify them about the errors you noted.

    Thank you.

    Plugin Author Raul P.

    (@alignak)

    Our plugin has it, but it happens ours loads first. So if ours is already loaded, it causes an error if others try to use it.

    It’s also important that our version loads first, because different versions of the same library behave differently for the purpose of merging and minifying.

    Anyway, I contacted the author and there should be an update soon from their end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t get it to play nice with WordPress File Upload plugin’ is closed to new replies.