Bug Fix + Console log errors
-
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
- The topic ‘Bug Fix + Console log errors’ is closed to new replies.