Hi All, I hope you can help me out to resolve this problem.
Issue
- I'm unable to upload the vbs source code of a script I have done in my own personal mediawiki
Sympthom
- I'm able to paste the code itself within the textarea but once I click on the "save" button I receive the following from the browser:
System Info
- Guest OS: Linux CentOS 2.6.32-431.5.1.el6.x86_64
- MediaWiki: v1.22.3
- API: apache2handler
- PHP: v5.3.3
- DB: MySQL v5.1.73 (InnoDB)
Troubleshooting Steps Tried So Far
- Added the vbs extension to the $wgFileExtensions variable within the LocalSettings.php file
- Removed the vbs extension from the file blacklist array within the LocalSettings.php file:
$wgFileBlacklist = array_diff( $wgFileBlacklist, array ('vbs') );
- Managed to narrow down the issue to the following portion of the vbs source code mentioned above:
Sub showMessage(when)
Select Case when
Case "begin"
Set objShell = CreateObject("Wscript.Shell")
intReturn = objShell.Popup(initialMessage, timeOut, title, informationFlag)
Case "end"
MsgBox finalMessage, informationFlag, title
End Select
End Sub
- Note: As you can see, I was able to upload (copy and paste) above the portion of the code that caused me this issue. So it's evident that a parameter or some configuration settings have to be applied in my own MediaWiki.
Any help is much appreciated!