1
cadch
If undefined function escapeshellcmd()
  • 2022/6/11 9:46

  • cadch

  • Just popping in

  • Posts: 51

  • Since: 2007/12/17


If your server use cPanel and PHP8,Someone disable_functions setting escapeshellarg and escapeshellcmd
Look the url
https://forums.cpanel.net/threads/php-disable-functions.483161/
The XOOPS 2.5.11-Beta2 phpmailer have a message
Error: Call to undefined function escapeshellcmd()
or
Error: Call to undefined function escapeshellcmd() in file /class/mail/phpmailer/class.phpmailer.php line 1447
How to fix it
/class/mail/phpmailer/class.phpmailer.php
find function isShellSafe
line 1445
Add
if (!function_exists('escapeshellarg') || !function_exists('escapeshellcmd')) {
            return 
false;
        }

2
Mamba
Re: If undefined function escapeshellcmd()
  • 2022/6/11 23:50

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


Thanks for sharing!

Did you try to use SMTP in the Preferences without your code addition? If not, could you test it?

Resized Image
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
cadch
Re: If undefined function escapeshellcmd()
  • 2022/6/12 8:18

  • cadch

  • Just popping in

  • Posts: 51

  • Since: 2007/12/17


SMTP is ok~

4
Mamba
Re: If undefined function escapeshellcmd()
  • 2022/6/12 10:36

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


Thank you for checking on this!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

139 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 139


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits