Topic on Project:Support desk

New wiki, set image upload to 'true' but get errors

6
MAHR88 (talkcontribs)

Getting several errors... here is the code I have in the localsettings, I have created the dir.

$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";

$wgUploadPath       = "$wgScriptPath/uploads";      

$wgUploadDirectory  = "$IP/uploads";

I get an error on the upload file page as well as after trying to upload:

Warning: putenv() has been disabled for security reasons in /var/www/vhosts/aranyik.com/naturalwhetstone.org/includes/GlobalFunctions.php on line 3101

Notice: Uncommitted DB writes (transaction from DatabaseBase::query (User::loadFromDatabase)). in /var/www/vhosts/aranyik.com/naturalwhetstone.org/includes/db/Database.php on line 4147

This post was hidden by 87.123.9.12 (history)
87.123.9.12 (talkcontribs)

In the PHP configuration, the function putenv() currently is disabled. Enable this function to resolve the issue!

MAHR88 (talkcontribs)

Is this is a php file in the mediawiki package? Where can it be found? Thank you Is it the php.ini file?

87.123.9.12 (talkcontribs)

I mean the according php.ini file. Look out for the disable_functions directive in the php.ini file and adjust it so that putenv no longer is disabled!

MAHR88 (talkcontribs)

O.k thank you, I am looking for a way to access this file through Plesk on enom server, but the folder is hidden in plesk file manager, and I do not see that in the php settings, any experience with enom, plesk, ftp, to resolve this issue? I have sent a ticket over to support at enom. I do not have access to linux machine. I did see in phpinfo it is in my etc folder which is hidden.

Reply to "New wiki, set image upload to 'true' but get errors"