Page 1 of 1

[RESOLVED] possible php issue?

Posted: 29 Dec 2012, 00:52
by dtransued
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

Re: possible php issue?

Posted: 29 Dec 2012, 15:40
by Jan
Hi, which version of Phoca Guestbook you are using?

Re: possible php issue?

Posted: 29 Dec 2012, 21:05
by dtransued
Sorry. It's 2.0.5...

Re: possible php issue?

Posted: 30 Dec 2012, 21:38
by Jan
Try to reinstall it, testing now without any such problem :idea:

Jan

[RESOLVED] Re: possible php issue?

Posted: 31 Dec 2012, 21:10
by dtransued
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

Re: [RESOLVED] possible php issue?

Posted: 03 Jan 2013, 13:19
by Jan
Ok