Hi,
I always get ajax error message "json is null" in ask question page whenever
1. I asked question that doesn't exist in the faq yet
2. if I clicked on submit button again after the faq result is displayed
I've checked the configuration and I've put the administration mail address.
Any idea why this is happening?
Problem in sending mail (ask question page)
Moderator: Thorsten
Re: Problem in sending mail (ask question page)
Never mind, I found the error.
It's in the PMF_Mail_IMUA class and PMF_Mail_Builtin class.
Builtin class implements interface IMUA however the headers param in send function in IMUA (interface) doesn't have to be specifically an array whereas the builtin class asking specifically for an array for the header params
Either you add 'Array' in the IMUA send function or remove the 'Array' from Builtin send function will solve the problem.
It's in the PMF_Mail_IMUA class and PMF_Mail_Builtin class.
Builtin class implements interface IMUA however the headers param in send function in IMUA (interface) doesn't have to be specifically an array whereas the builtin class asking specifically for an array for the header params
Code: Select all
interface PMF_Mail_IMUA
{
public function send($recipients, $headers, $body);
}
Code: Select all
class PMF_Mail_Builtin implements PMF_Mail_IMUA
{
public function send($recipients, Array $headers, $body)
{ ... }
}
Re: Problem in sending mail (ask question page)
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist