Warning Message: Shell_Execute() is disabled on shared host

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 2
Joined: Wed Oct 03, 2012 11:01 pm

Warning Message: Shell_Execute() is disabled on shared host

Postby abhishekb » Wed Oct 03, 2012 11:48 pm

Hello Friends,

whenever we are trying to upload any file in ojs like images for look or doc/pdf files for article. It is showing the white page with below error.

ojs2 has produced an error
Message: WARNING: shell_exec() has been disabled for security reasons
In file: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\String.inc.php
At line: 395
File: (unknown) line (unknown)
Function: PKPApplication->errorHandler(2, "shell_exec() has been disabled for security reasons", "D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\String.inc.php", 395, Array(2))
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\String.inc.php line 395
Function: shell_exec("file --brief --mime "C:\Windows\Temp\phpE41.tmp"")
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\file\FileManager.inc.php line 92
Function: String->mime_content_type("C:\Windows\Temp\phpE41.tmp")
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\classes\manager\form\setup\JournalSetupStep5Form.inc.php line 130
Function: FileManager->getUploadedFileType("homeHeaderLogoImage")
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\pages\manager\SetupHandler.inc.php line 239
Function: JournalSetupStep5Form->uploadImage("homeHeaderLogoImage", "en_US")
File: (unknown) line (unknown)
Function: SetupHandler->saveSetup(Array(1), Object(Request))
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\PKPRouter.inc.php line 370
Function: call_user_func(Array(2), Array(1), Object(Request))
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\PKPPageRouter.inc.php line 266
Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(1), False)
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\Dispatcher.inc.php line 129
Function: PKPPageRouter->route(Object(Request))
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\lib\pkp\classes\core\PKPApplication.inc.php line 180
Function: Dispatcher->dispatch(Object(Request))
File: D:\inetpub\vhosts\isvs.org.in\httpdocs\vegsci\index.php line 65
Function: PKPApplication->execute()
Server info:
PHP Version: 5.2.13
Apache Version: N/A
DB Driver: mysql
DB server version: 5.0.77-log

This issue is not resolved by our web server provider. Please help us for resolving this issue.

Thanks & Regards
Abhishek Banerjee

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Warning Message: Shell_Execute() is disabled on shared h

Postby asmecher » Thu Oct 04, 2012 8:42 am

Hi abhishekb,

Ask your host to enable either the PHP's mime_content_type function or its fileinfo extension. The Shell_Execute feature is also used e.g. in the indexing of PDFs for full-text searching, but if you can live without that feature, you should be OK.

Alec Smecher
Public Knowledge Project Team

Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest