JSMin not working. Incorrect file permissions on jsmin.php
kentr - October 29, 2009 - 06:08
| Project: | Javascript Aggregator |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
Description
When "Use Jsmin+" is not checked, there is no js_xxx.jsmin.js file in the files/js/ directory. When "Use Jsmin+" is checked, there is a js_xxx.jsmin.js file in the files/js/ directory.
Expected behavior
When "Use Jsmin+" is not, the module will still produce a js_xxx.jsmin.js file and change the page source accordingly.
Actual behavior
The js_xxx.jsmin.js and page source changes only appear when "Use JSMin+ instead of JSMin" is checked.
Repeatable
Always
Steps to repeat
- Download and unarchive the package into the modules directory as usual
- Enable the module as prescribed.
- Test, toggling "Use JSMin+ instead of JSMin" on and off (saving preferences & examining file system and page source each time).
Solution
Change permissions of javascript_aggregator/jsmin.php to 755. The module will then behave as expected when "Use JSMin+ instead of JSMin" is not checked.

#1
I can't repeat this now. Something else must have been in the mix.