Thread:Project:Support desk/generatesitemap.php/reply (3)

It's because the extensions aren't initializing $IP correctly.

Generally, I find that, whatever directory you have MW installed in, the scripts run fine from a shell if run with:

./maintenance/generateSitemap.php --conf ./LocalSettings.php

Otherwise, you'll need to go through all your extensions and add something like this to the top:

$IP_relpath=realpath($IP.'/..');

Replacing every instance of  with. This will then ensure that the path of the individual PHP extensions are safe from a script environment as well as an web execution environment.