Joomla is deleting custom code on configuration.php file. Why? How? - Joomla! Forum - community, help and support
hi, let me preface searched , other forums google , google site search forum. if stupid question sure let me know. also, posed similar question answer post, feel this topic needs it's own post.
my configuration.php file deleting line of custom code inserted @ end of it.
this what's happening:
the other day experiencing memory errors on new site. error message appeared in place of cb profile page:
i found forum post dealt issue: http://forum.joomla.org/index.php/topic,104259.msg521340.html#msg521340 , put easy solution (hack really) seemed work on server.
i wrote small line of code configuration.php : @ bottom right before ?> closing tag.
this worked great , happily put problem behind me. marked original post [solved] in case useful others.
the day after, problem returned, not immediately, later in day.
i went @ configuration.php , code added seen. inserted again , site worked once more.
today same story. worked in morning , bit later disappeared file.
obviously configuration.php being rewritten somehow. know joomla can have no idea have done make delete line of code.
my best guess if access global configuration in cpanel somehow reverts configuration.php file predetermined state. it's possible checkmark in admin screen should use, have never used before , not sure results may be. chmoded file manually (which believe checkmark does) , code deleted anyway.
so question is: causing , how prevent it?
as usual, thank help.
my configuration.php file deleting line of custom code inserted @ end of it.
this what's happening:
the other day experiencing memory errors on new site. error message appeared in place of cb profile page:
code: select all
fatal error: allowed memory size of 10485760 bytes exhausted (tried allocate 4057 bytes) in /path/.....
i found forum post dealt issue: http://forum.joomla.org/index.php/topic,104259.msg521340.html#msg521340 , put easy solution (hack really) seemed work on server.
i wrote small line of code configuration.php :
code: select all
ini_set('memory_limit', '12m');
this worked great , happily put problem behind me. marked original post [solved] in case useful others.
the day after, problem returned, not immediately, later in day.
i went @ configuration.php , code added seen. inserted again , site worked once more.
today same story. worked in morning , bit later disappeared file.
obviously configuration.php being rewritten somehow. know joomla can have no idea have done make delete line of code.
my best guess if access global configuration in cpanel somehow reverts configuration.php file predetermined state. it's possible checkmark in admin screen should use, have never used before , not sure results may be. chmoded file manually (which believe checkmark does) , code deleted anyway.
so question is: causing , how prevent it?
as usual, thank help.
don't place custom code in cofiguration.php. each time access , change global configuration code overwritten. proper places adjust memory_limit variable script execution in either php.ini or in .htaccess
regards
dave
regards
dave
Comments
Post a Comment