Mediawiki help

Hi,

I get this error when I upload any pdf(200Kb) to my mediawiki site.

[W5TJYLvZUmgpvof7U4BBPwAAACE] 2018-09-09 07:18:57: Fatal exception of type “MediaWiki\ShellDisabledError”

Please assist me on this. Thanks!

hi
please read the full text (of course you can not change some things because you do not have authority over the server)
but a part that talks about permission, file types, enabling upload ON, etc. certainly read

https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads

if anyone wants to see php info (what is possible or not)
because it seems to me that it was removed from the control panel

create some php file and name it eg. info.php
put this code inside
<? phpinfo(); ?>

and visit that file over your browser
CTRL + F (search terms)

@irfantgv said:
Hi,

I get this error when I upload any pdf(200Kb) to my mediawiki site.

[W5TJYLvZUmgpvof7U4BBPwAAACE] 2018-09-09 07:18:57: Fatal exception of type “MediaWiki\ShellDisabledError”

Please assist me on this. Thanks!

Shell commands is disabled on free hosting.

@UnknownLolz That’s it and sad too :disappointed: Because I never saw this error on my localhost. And thanks for the suggestions @OxyDac :+1:

Wish there is someway to resolve this :sweat:

@irfantgv said:
@UnknownLolz That’s it and sad too :disappointed: Because I never saw this error on my localhost. And thanks for the suggestions @OxyDac :+1:

Wish there is someway to resolve this :sweat:

I feel sorry for you ?

I found this online though and maybe this can help you:
https://mediawiki.org/wiki/Topic:Qtyxrq15u3s0xm7y

Thanks @UnknownLolz :+1: I referred that as well. The error seems to be from the mediawiki core which I am scared to make changes. Many other things like Syntax highlighting requires shell access to give executable permissions to the php scripts.

@irfantgv

not so dangerous

go to the client area
manage> go to file manager
open with monstaFTP a folder of mediawiki (mw19) in htdocs

find a file named there LocalSettings.php

right mouse click on it and choose edit

find line $wgEnableUploads = false;
and change it to $wgEnableUploads = true;

then go down to the bottom and in new free line
paste this $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf');

than save and close

I have selected some extensions for you … and if you read the article I gave you
just add more.

then go to your mediawiki and on the LEFT you will have to upload (txt link)
if you are logged in as an admin

i have tried and uploaded pdf

Thanks for the tips @OxyDac , actually this is the current setup and works out of the box on my localhost. I tried re-editing the file as per above config. Still the same.

during the testing
make sure that you have deleted browser cache and cookies to see the new state
edit with monstaFTP because some editor added BOM, etc.
make sure that you do not have a plugin that creates a problem
I tested on clean installation

I made you a video https://drive.google.com/file/d/1f-uLnmrdgiMJSNvoug3S3WrnCuTW0bJb/view?usp=sharing

choose the highest quality

also check if your pdf extension is written in lower case
if is with capital letters example.PDF it is possible that it will be rejected