Template Manager Problems in 4.5.1 - The Fix. Credit to Alexander Krestinin for spotting this one. (also posted at Mamboserver)
Problem: Templates packaged with Mambo 4.5.1 (JavaBean, etc) don't appear in Template Manager and Template uploads fail with 'installation file not found' error.
Cause: This is a misconfiguration problem with PHP resulting from incomplete/incorrrect information given by the Mambo installer.
PHP.INI includes three different magic quotes switches.
magic_quotes_gpc: Default = ON
magic_quotes_runtime: Default = OFF
magic_quotes_sybase: Default = OFF
The Mambo installer recommends that magic quotes are turned on but does not differentiate between the three different switches and reports the setting for the magic_quotes_runtime switch.
As a result, on a standard PHP installation, the installer incorrectly reports that magic quotes are turned off.
Editing php.ini and turning the magic_quotes_runtime switch ON results in the installer reporting tht magic quotes are ON, however this causes DOMIT to fail when parsing XML packaging files which contain quotes.
FIX: Mambo requires that magic_quotes_gpc is set to ON and magic_quotes_runtime is set to OFF.
Edit php.ini and ensure that the magic quotes section is set as follows:
; Magic quotes
;
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off |