I've installed, uninstalled, reinstalled this module several times and it still won't work for me... Running Drupal 9.5.9 with the Minify v3.0.0. I also installed the minify-master library in the /libraries directory. The module can scan the js files in the site, produces a list of them, I check them all (have also tried doing a random single file), and I get this error:
There was an unexpected error while processing the batch.
Please continue to the error page
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=101&op=do_nojs&op=do
StatusText: OK
ResponseText:
No explanation really... just an ajax error. Anyone else having this issue? Suggestions?
Comments
Comment #2
branram commentedAlso, was doing this previously with an earlier Drupal version as well... I updated to the latest and still have the error.
Comment #3
slydevil commentedAnything in the DB log?
Comment #4
slydevil commentedComment #5
branram commented@slydevil Yea, here is the error message in the log:
Error: Class "MatthiasMullie\Minify\JS" not found in Drupal\minifyjs\MinifyJs->minifyFile() (line 321 of /public_html/modules/contrib/minifyjs/src/MinifyJs.php).
Comment #6
branram commentedAlso, I'm now running this on the latest D10 installation. The error originally mentioned happens when I press the minify button for an individual js file.
But, if I check the js file minify and reminify, it takes me to the batch page with the progress bar, but it never proceeds. It just always says "Initializing minify javascript files batch."
Comment #7
slydevil commentedAre you using composer to add the module?
Seems like your autoloading is not working. If you don't use composer then it makes sense there would be none.
Comment #8
slydevil commented