• Resolved Raul P.

    (@alignak)


    Hi there,

    I’m the author of Fast Velocity Minify plugin and we have a conflict with your plugin.

    You are including the MatthiasMullie\Minify\Minify class on your plugin on /wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/Minify.php which conflicts with all plugins that are already including it.

    You need to add a check to see if the class already exists, before including the files.
    On your wfu_functions.php file, around line 617, please wrap your inclusions in a class_exists, like this:

    		if (!class_exists('MatthiasMullie\Minify\Minify')){
    			$path = ABSWPFILEUPLOAD_DIR;
    			include_once $path.'vendor/minifier/minify/src/Minify.php';
    			include_once $path.'vendor/minifier/minify/src/CSS.php';
    			include_once $path.'vendor/minifier/minify/src/JS.php';
    			include_once $path.'vendor/minifier/minify/src/Exception.php';
    			include_once $path.'vendor/minifier/minify/src/Exceptions/BasicException.php';
    			include_once $path.'vendor/minifier/minify/src/Exceptions/FileImportException.php';
    			include_once $path.'vendor/minifier/minify/src/Exceptions/IOException.php';
    			include_once $path.'vendor/minifier/path-converter/src/ConverterInterface.php';
    			include_once $path.'vendor/minifier/path-converter/src/Converter.php';
    			$minifier = null;
    			eval('$minifier = new MatthiasMullie\Minify\\'.strtoupper($lang).'($code);');
    			if ( $minifier !== null ) {
    				$ret["result"] = true;
    				$ret["minified_code"] = $minifier->minify();
    			}
    		}

    That will eliminate conflicts ??

    —-

    I have installed WP 5.1.1 with the default 2019 theme and your plugin. No other plugins are in use. I then added your shortcode to the site, but I’m seeing several errors on the console log as well: https://prntscr.com/n3osif

    Since this is a default setup, without any other plugins and only using the default theme, I though you may want to take a look at those errors as well.

    Thanks,

    Raul

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi Raul, I noted your remarks and will be incorporated in the next release of the plugin.

    Regarding the error in your page, I tried myself to open the plugin in a website with WP 5.1.1 and twentynineteen theme. I did not see these console errors.

    Can I open your page myself?

    Regards

    Nickolas

    Thread Starter Raul P.

    (@alignak)

    Hi there,

    Sure, here you go:
    https://test.fastvelocity.com/wordpress-file-upload-plugin/

    https://prntscr.com/n3yoii
    https://prntscr.com/n3yos9
    https://prntscr.com/n3ypf3

    Chrome 73 on Windows 10.
    https://prntscr.com/n3yp0h

    Plugin Author nickboss

    (@nickboss)

    Never seen these errors again. How is the shortcode configured? It seems that something is missing.

    I made again a clean WordPress install with only this plugin and it seems to be working fine.

    https://prnt.sc/n428b5

    Regards

    Nickolas

    Thread Starter Raul P.

    (@alignak)

    Hmm… not sure how it happened, but I deleted and reinstalled the plugin again and the errors are gone. Sorry about that.

    Plugin Author nickboss

    (@nickboss)

    Ok good, no problem at all

    Regards

    Nickolas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug Fix + Console log errors’ is closed to new replies.