Thanks for your reply
Resolving the probleme consist to modify the use of include_once.
Normally the include, if the string do not start with ./, will search fist in the include_path and secondly in the script folder itself.
Modx uses many include_once() without ./ at start.
With free.fr and probably many other providers, ini_set and set_includepath are disabled.
So the files located in the manager/include folder are not reachable.
ex of error in manager/index.php
Warning: include_once(quotes_stripper.inc.php) [function.include-once]: failed to open stream: No such file or directory in /mnt/147/sdb/f/b/[i][user_login][/i]/modx0961/manager/index.php on line 90
Warning: include_once() [function.include]: Failed opening 'quotes_stripper.inc.php' for inclusion (include_path='/mnt/147/sdb/f/b/[i][user_login][/i]/include:.:/usr/php5/lib/php') in /mnt/147/sdb/f/b/user.login/modx0961/manager/index.php on line 90
There the line 90 wich is:
include_once "quotes_stripper.inc.php";
sould be modified to:
include_once "./includes/quotes_stripper.inc.php";
In fact modx should work without lines 80 to 85 of manager/inde.php:
$incPath = str_replace("\\","/",dirname(__FILE__)."/includes/"); // Mod by Raymond
if(version_compare(phpversion(), "4.3.0")>=0) {
set_include_path($incPath); // this now works, above code did not?
} else {
ini_set("include_path", $incPath); // include path the old way
}
I wanted to change every include without ./ but i wonder if it would stay hidden errors that i couldn’t find (i’m a beginner in php and in modx). So could you help me doing this job !
So modx would work with provider which disable setting php.
I’m not a php specialist but this modif don’t seem to be hard to handle and it could help many people and make modx more stable in difficult environnement
You can found post related to this topic and link to différents patches there:
http://modxcms.com/forums/index.php/topic,4992.0.html ou
http://modxcms.com/forums/index.php/topic,19316.0.html.
Here the oldest topic about this:
http://modxcms.com/forums/index.php?topic=1527.0
davidm seem to be the patch maintener for france, but no fonctionnal release since 0.9.6
direct link to a zipped patched files for 0.9.6 version:
http://modxcms.com/forums/index.php?action=dlattach;topic=19316.0;attach=6013