Hello
I'm a French user of modx 2.5.2. Since upgrade from 2.5.0, I've an issue "Accès Refusé" (access denied) - without more information - when I try to save content modifications of a ressource.
This problem doesn't fire if the content is less than approximately 2300 characters (this limit decrease every successful save).
No issue was reported on my apache error logs.
I've my own server, with Apache and PHP 5.6. It contains some virtual hosts (2 has modx 2.5.2, one new and one upgraded from 2.5.0).
One apache vHost has directive "AllowOverride None" (default apache configuration), the second has "AllowOverride FileInfo" and "Option FollowSymLinks" to allow Rewrite rules.
Before upgrading modx, I used modx without this problem.
I hope you can help me. Thanks in advance.
[ed. note: sphinx last edited this post 9 years, 9 months ago.]
From your description, it kind of sounds like you're running out of memory. You might throw in some diagnostics like this to log memory usage to the MODX error log. Put it in a plugin attached to OnBeforeDocFormSave:
$mem_usage = memory_get_usage(false); // also try with true
$output = '';
if ($mem_usage < 1024) {
$output =$mem_usage." bytes";
} elseif ($mem_usage < 1048576) {
$output = round($mem_usage/1024,2)." kilobytes";
} else {
$output = round($mem_usage/1048576,2)." megabytes";
}
$modx->log(modX::LOG_LEVEL_ERROR, $output);
return '';
The post_max_size setting would be a likely culprit, but it doesn't fit will with your symptoms since for you the limit decreases over successive saves.