How to enable putenv or disable the warning?


#1

I have installed MediaWiki on my website. Now it works, but there is a warning message still displaying on the frontpage:

Warning: putenv() has been disabled for security reasons in /storage/ssd1/808/4772808/public_html/includes/Setup.php on line 129

And the frontpage shows like this:

Finally, I know that free hosting user can’t change the php.ini file to enable putenv, so I just want to know if putenv could be enabled in .htaccess, or the warning could be closed?


#2

@julianlee Can you try switching to other php versions available in your account settings??
See if that helps you.
As far as i believe, putenv() is disabled in all the available php versions.


#3

I had changed it, but it doesn’t work.


#4

putenv is disabled, try and find the config of MediaWiki to disable showing errors?
Maybe comment out line 129 to see what happens


Black Friday Sale 90% OFF
0
DAYS
0
HOURS
0
MINUTES
0
SECONDS
×