Hello,
at first:
I was wrong when I said that there are only few places where the environment change is needed! It’s not practical to change all places in my opinion.
2nd:
The provider is a very small local one-man-show.
3rd:
The problem was solved since I could convince him to change the setting. But if it was a big ISP, this might not have been possible. So actually to rely on includes via environment path is a bad idea from my point of view. Especially if the software should address a broad audience.
So here is the Apache Directive which causes the problem:
If the main server section or any virtual host contains
php_admin_value include_path ’<includePath>’
it is not possible to change this setting via script during runtime with ini_set() or set_include_path().
Additionally there are bug reports for php_admin_value listed under bugs.php.net what makes it even worse.
4th:
I would really suggest not rely on include_path in modx but use a own configuration variable or include the relative path directly in the include statements. Looking into the code it seems that different modx coders used different ways to include files and did not all follow a "modx coding guideline". So there are multiple argument to optimimize this.
So long... I’m happy it works now
Thomas