Thanks. I had checked that, and it's not defined twice.
-------- Original Message -------- (Zoran Dori, 11/11/2025 12.32)
Hello,
I suggest checking if `MW_INSTALL_PATH` is defined twice in your
`LocalSettings.php`. This could be causing the warning you’re seeing.
Best regards,
Zoran
уто, 11. нов 2025. у 12:18 MI <[email protected]> је написао/ла:
Since I upgraded mediawiki from v. 1.35 to v. 1.39, I get this
error when running a script to purge the cache.
The command producing the error is
echo "Main_Page" | php /usr/share/mediawiki/maintenance/purgeList.php
The full error is
PHP Warning: Constant MW_INSTALL_PATH already defined in
/etc/mediawiki/LocalSettings.php on line 25
Indeed I have this on lines 21 to 25 in LocalSettings.php:
# We define this to allow the configuration file to be explicitly.
# located in /etc/mediawiki.
# Change this if you are setting up multisite wikis on your server.
define('MW_INSTALL_PATH','/docs/www-wiki');
I had this through many MW versions over the years, and I don't
think I can remove it.
How can I get rid of this error? (The purge script runs every
night from crontab, so I get a mail every day with this "error".
And of course I don't want to just suppress any errors by
redirecting stderr)
Thanks,
MI
_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
_______________________________________________
MediaWiki-l mailing list [email protected]
To unsubscribe send an email [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/