Greetings... I installed the guestbook and enabled captcha with the random settings. However, I still am struggling with spam. Just today I spotted two errors in my error logs that look suspicious:
[28-Dec-2012 12:23:54 America/Denver] PHP Warning: mt_rand() [<a href='function.mt-rand'>function.mt-rand</a>]: max(14) is smaller than min(15) in /home/c89761x1/public_html/components/com_phocaguestbook/helpers/phocaguestbookcaptcha.php on line 82
and
[28-Dec-2012 12:23:54 America/Denver] PHP Fatal error: Call to undefined function imagettftext() in /home/c89761x1/public_html/components/com_phocaguestbook/helpers/phocaguestbookcaptcha.php on line 36
As far as I can tell, these are php errors and the guestbook installed 100% correctly - no errors or warnings that I know of...
Does any of this look familiar? I can't find anything about it in the docs or elsewhere here in the forums.
PHP version is 5.3.19 with Apache and mysql5. I'm still on Joomla 2.5.0 because of an unrelated issue (in case Joomla's version matters).
Thanks in advance,
-dan
[RESOLVED] possible php issue?
-
- Phoca Newbie
- Posts: 3
- Joined: 29 Dec 2012, 00:38
[RESOLVED] possible php issue?
Last edited by dtransued on 31 Dec 2012, 21:11, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: possible php issue?
Hi, which version of Phoca Guestbook you are using?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 29 Dec 2012, 00:38
Re: possible php issue?
Sorry. It's 2.0.5...
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: possible php issue?
Try to reinstall it, testing now without any such problem 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 29 Dec 2012, 00:38
[RESOLVED] Re: possible php issue?
I think it had more to do with my permission problems - my home directory got changed and no one thought I'd need to know that! Regardless, I'll monitor closely for a few days but it appears to have been fixed... My guess is that it was trying to write a tmp file and couldn't and these are the errors it posted. No matter... Fixing the other issues allowed me to also update it to 2.0.7.
Thanks,
-dan
Thanks,
-dan
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [RESOLVED] possible php issue?
Ok
If you find Phoca extensions useful, please support the project