lcollong
FabriKant d'applications web
Hi,
On several list I have a plugin "CanDeleteRow". I use the advanced tab with the following lines :
Today, I edit the list to modify a typo in the "intro" in the back-end but on saving my changes it throws an ERROR 404 "non existing page".
It took me a couple of hours to figure out that the problem was the word "require_once" in the eval part of the plugin. Replacing it by "require" alone makes the list saving correctly.
It seems the mod_security Apache's module is rejecting this "particular word". As "require_once" and "include_once" are rejected whereas "include" or "require" are accepted...
Is there anything one may advertise regarding any setup in Fabrik, J! or the server to avoid this error while leaving the mod_security switched on ?
On several list I have a plugin "CanDeleteRow". I use the advanced tab with the following lines :
PHP:
require_once JPATH_LIBRARIES . '/periscolo/helpers.php';
return canDeleteClasse('{f_classes___class_id}');
Today, I edit the list to modify a typo in the "intro" in the back-end but on saving my changes it throws an ERROR 404 "non existing page".
It took me a couple of hours to figure out that the problem was the word "require_once" in the eval part of the plugin. Replacing it by "require" alone makes the list saving correctly.
It seems the mod_security Apache's module is rejecting this "particular word". As "require_once" and "include_once" are rejected whereas "include" or "require" are accepted...
Is there anything one may advertise regarding any setup in Fabrik, J! or the server to avoid this error while leaving the mod_security switched on ?