Captcha Bug free.fr - Can't send mail using Contact in 1.6.8

Please report bugs here!

Moderator: Thorsten

eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

Captcha Bug free.fr - Can't send mail using Contact in 1.6.8

Post by eproust »

Hi,

Warning: mail() [function.mail]: Nombre de parametres incorrects in /mnt/...mypath../eproust/phpmyfaq/sendmail.php on line 56

Let me translate for non french speaking people :

Warning: mail() [function.mail]: Incorrect parameters number in /mnt/...mypath../eproust/phpmyfaq/sendmail.php on line 56

I use free.fr as free hosting, everything works well except the ability to send mail (Contact).

I also use several other famous php scripts in the hosting space, all of them have no problem to send mail using the mail() function of free.fr hosting...

Could you help me ?
Last edited by eproust on Mon Nov 19, 2007 9:28 am, edited 1 time in total.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Can't send mail using Contact in 1.6.8...

Post by matteo »

Hi,
eproust wrote:Could you help me ?
I'm looking at your issue.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Can't send mail using Contact in 1.6.8...

Post by matteo »

Hi,
eproust wrote:Warning: mail() [function.mail]: Incorrect parameters number in /mnt/...mypath../eproust/phpmyfaq/sendmail.php on line 56
please, locate, backup and open the [PATH_TO_PMFINSTALL]/sendmail.php file and change this line from:

Code: Select all

...
    mail($IDN->encode($PMF_CONF['adminmail']), $subject, $question, implode("\r\n", $additional_header), '-f'.$sender);
...
to:

Code: Select all

...
    if (ini_get('safe_mode')) {
        mail($IDN->encode($PMF_CONF['adminmail']), $subject, $question, implode("\r\n", $additional_header));
    } else {
        mail($IDN->encode($PMF_CONF['adminmail']), $subject, $question, implode("\r\n", $additional_header), '-f'.$sender);
    }
...
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

Thanks it works ! [FIXED]

Post by eproust »

Hi,

Your solution is working fine. Thanks

---

One other thing (useless for me) is not working, it is the chapka nothing is displayed so I disable this function.

Could you investigate on this ?

Best regards.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Thanks it works ! [FIXED]

Post by matteo »

Hi,
eproust wrote:Your solution is working fine. Thanks
my pleasure: thank you for choosing PMF as your faq service! ;)
eproust wrote:One other thing (useless for me) is not working, it is the chapka nothing is displayed so I disable this function.

Could you investigate on this ?
if you STF (Search The Forum) you'll find many users claiming that captcha doesn't work: in any of those cases it was a server issue due e.g. to the missing of the GD extension. Could you check if that extension is enabled using phpinfo()?

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

Captcha not displayed even so GD is enabled at my hosting...

Post by eproust »

This is a pasted part of the phpinfo...

gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what's happening when you activate the captchas and try to see the images only by a right click on the image?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

Nothing anywhere !

Post by eproust »

I suppose that the captcha would be at the right side of the form...

But there is nothing, and if right-click anywhere on the right side of the form, no image is detected and could be displayed.

I could make a printscreen or give you the url so that you could check it by yourself, but obviously off this forum.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you post the URL of your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

My captcha still not working, I use the last snapshot 2.0

Post by eproust »

Could you have a look at my site : http://eproust.free.fr/phpmyfaq/
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please enable the debug mode and check the image once again.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

How to enable the debug mode !

Post by eproust »

Sorry, I don't know about the debug mode.
Please explain how to enable it.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please edit inc/Init.php.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
eproust
Posts: 16
Joined: Thu Sep 07, 2006 2:05 pm

Debug information...

Post by eproust »

Is it what you asked ?

DEBUG INFORMATION:
PMF_Configuration->getAll() in line 87:

SELECT
config_name, config_value
FROM
mfaq_faqconfig


PMF_Session->checkSessionId() in line 177:

SELECT
sid
FROM
mfaq_faqsessions
WHERE
sid = 1248
AND
ip = '81.56.206.93'
AND
time > 1194024322


PMF_Session->checkSessionId() in line 177:

UPDATE
mfaq_faqsessions
SET
time = 1194110722,
user_id = -1
WHERE
sid = 1248
AND ip = '81.56.206.93'


PMF_Category->getOrderedCategories() in line 150:

SELECT
fc.id AS id,
fc.lang AS lang,
fc.parent_id AS parent_id,
fc.name AS name,
fc.description AS description,
fc.user_id AS user_id
FROM
mfaq_faqcategories fc
LEFT JOIN
mfaq_faqcategory_group fg
ON
fc.id = fg.category_id
LEFT JOIN
mfaq_faqcategory_user fu
ON
fc.id = fu.category_id
WHERE
( fg.group_id IN (-1)
OR
(fu.user_id = -1 AND fg.group_id IN (-1)))
AND
fc.lang = 'fr'
GROUP BY
fc.id, fc.lang, fc.parent_id, fc.name, fc.description, fc.user_id
ORDER BY
fc.id


PMF_Tags->existTagRelations() in line 322:

SELECT
COUNT(record_id) AS n
FROM
mfaq_faqdata_tags


COOKIES:
pmf_lang: fr
pmf_sid: 1248
pmf_auth_169bf0e5940c92be634afd3ae636f186: 28a5c29dd95d491094cbc8005aa0800e
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

that's the problem:

Code: Select all

Warning: imagettftext() [function.imagettftext]: Unable to access in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 325

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 325

Warning: imagettftext() [function.imagettftext]: Unable to access in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 326

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 326

Warning: imagettftext() [function.imagettftext]: Unable to access in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 327

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /mnt/155/sda/a/e/eproust/phpmyfaq/inc/Captcha.php on line 327
I have to investigate what's causing this. Do you changed the TTF files in the folder /fonts?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply