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

  • cadch

  • Just popping in

  • Posts: 35

  • 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()

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()
  • 6/12 8:18

  • cadch

  • Just popping in

  • Posts: 35

  • Since: 2007/12/17


SMTP is ok~

4
Mamba
Re: If undefined function escapeshellcmd()

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

Login

Who's Online

82 user(s) are online (41 user(s) are browsing Support Forums)


Members: 1


Guests: 81


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits