Closed Bug 518892 Opened 15 years ago Closed 15 years ago

Changing any general settings disables minify on production

Categories

(support.mozilla.org :: General, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

References

Details

(Whiteboard: sumo_only minify)

Attachments

(1 file)

STR on a local copy of SUMO: 1. Make sure minify is enabled. 2. chmod 555 webroot/files/minify.conf <- must not be writable by the server 3. go to tiki-admin.php?page=general 4. save the settings Result: Minify has been disabled. Error while opening: files/minify.conf Expected result: Minify is only disabled if it fails writing while changing something. If nothing changes, it shouldn't even attempt to write to its conf file. I think this is related to the minify issues we have during pushes. On prod, the server can't write to its minify.conf, so any attempt to change general prefs will disable minify.
Attached patch patch, v1Splinter Review
This will prevent tiki-admin_include_general.php from attempting to write to minify.conf if the setting hasn't changed (for example, if you're changing something else in the general options). That will stop the fallback mechanism from disabling minify in the database.
Attachment #402902 - Flags: review?(laura)
Target Milestone: --- → 1.4.1
Attachment #402902 - Flags: review?(laura) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assigning to me for historical accuracy.
Assignee: nobody → james
Verified FIXED; James walked me through this (changed a setting on staging), and we verified that Minify is still active (no error message).
Status: RESOLVED → VERIFIED
Whiteboard: sumo_triage
Whiteboard: sumo_triage → tiki_bug minify
Only applicable to SUMO as it's related to the minify implementation. As for the type of problem, there is a solution to this with 4.0 called "lesser magic" for better preference management.
Whiteboard: tiki_bug minify → sumo_only minify
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: