OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

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
Stacktrace:
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:
OS: WINNT
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
IIVR-INDIA
abhishekb
 
Posts: 2
Joined: Wed Oct 03, 2012 11:01 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.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9090
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest