Warning: escapeshellcmd() has been disabled for security reasons in mimemail_isshellsafe()

Created on 25 March 2020, about 5 years ago
Updated 15 May 2023, almost 2 years ago

After sending any email i receive this warning from Drupal:
Warning: escapeshellcmd() has been disabled for security reasons in mimemail_isshellsafe() (line 414 of /home/xxxxxxx/public_html/sites/all/modules/mimemail/mimemail.module).

How can I make this message not displaying again?

Thanks!

💬 Support request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇹Italy smurfxx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States tr Cascadia

    This error message says the problem arises in the Mime Mail module, not the Mail System module. This should have been moved to the correct issue queue long ago.

    The cause of the error message is your PHP configuration - this is outside of what is controlled by Drupal or Mime Mail. Your PHP configuration (in php.ini) has disabled the use of PHP's escapeshellcmd() function on your server. Mime Mail uses this function, so if you don't allow this function then Mime Mail will not run.

    Because Drupal 7 is so old I have no plans to change this code in Mime Mail, as there are tens of thousands of sites using this module without an error and changing some fundamental function call like this has potential to disrupt and/or break those sites. There are no other reports of this error on other sites, so I think the solution here would be to edit your php.ini and remove escapeshellcmd from the list of disabled functions on your server.

Production build 0.71.5 2024