Thread:Project:Support desk/Cannot upload image Internal Error

Hello,

I changed already the permission on my mediawiki page but I still cannot upload file.

What I did are:

Adding the following line in LocalSettings.php

$wgEnableUploads = true; $wgUploadDirectory = "images"; $wgUploadPath = "$wgScriptPath/images"; $wgEnableUploads = true; $wgAllowExternalImages = true;

My permisison is drwxr-xr-x 2 apache apache 4096 2015-03-24 10:39 images

I also did sudo chmod -R 755 images/

Still no luck.

Below is my error:

Internal error

[5e0707e0] /tools/index.php/Special:Upload Exception from line 1871 of /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Backup_restore_1.png.'

Backtrace:


 * 1) 0 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock
 * 2) 1 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
 * 3) 2 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
 * 4) 3 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload
 * 5) 4 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
 * 6) 5 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
 * 7) 6 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
 * 8) 7 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(584): MediaWiki->performRequest
 * 9) 8 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(435): MediaWiki->main
 * 10) 9 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/index.php(46): MediaWiki->run
 * 11) 10 {main}