Page 1 of 1

problems with PMFSendMessage() and PMFInformationUser()

Posted: Tue Mar 30, 2021 11:45 pm
by kleung
Hi,

Grateful if I can be advised methods to fix the following problems.
1) The function PMFSendMessage() returned with value 0, ie failed to send out email. Furthermore, the error message was found in the debug area.
"preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

2) The function PMFInformationUser() blanked the browser session and idled.

I'm using PM 3.2.1 community version. Hence I am using PHP 5.6.31.

Thousand Thanks!

cheers,
Karl

Re: problems with PMFSendMessage() and PMFInformationUser()

Posted: Wed Mar 31, 2021 12:54 am
by programerboy
Hi,
Please add this line to your env.ini file:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING

https://pmlearning.info
Thanks

Re: problems with PMFSendMessage() and PMFInformationUser()

Posted: Wed Mar 31, 2021 6:25 am
by kleung
Hi Programerboy,

Thank you for your advice.
I'm afraid that I need another solution because the line
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING
is already in the file env.ini.

Any cue?

cheers,
Karl

Re: problems with PMFSendMessage() and PMFInformationUser()

Posted: Sat Apr 02, 2022 10:44 am
by ronrich
Hello Kleung,

Please check if it is also present in the master php.ini file, this setting should fix the issue.

Re: problems with PMFSendMessage() and PMFInformationUser()

Posted: Sat Apr 02, 2022 6:37 pm
by kleung
Hi Ronrich,

thank you for your advice.

cheers,
Karl