Page 1 of 3
My guest book has not Captha image
Posted: 17 Nov 2008, 12:38
by Helmut12
instalation of phoca guestbook was simple. But I have one serious problem. The guestbook is without Captcha image. I see only the place for this image. Above it is the message "path". I heve ste on erros reporting. There is no one warninhg or error message after the guestbook is running. I can not find in any file the html descriptionh to address of Captcha image. There is onjly one file phocaguestbook.php where i can find the address of Captche image. In any one html file there is not the declaration for address of Captche image. Can you erxplain in which html file I have to write the declaration for Capthe image address and show the example of that.
Re: My guest book has not Captha image
Posted: 19 Nov 2008, 02:24
by Jan
Hi, try to set another method to displaying captcha code in Parameters Component...
Jan
Re: My guest book has not Captha image
Posted: 19 Nov 2008, 08:38
by Helmut12
I nave tried to change method of dislaying but without any effect. I see gustbook form nwithout Captche image. Both of methiods Jroute and Jhtml can not dislay Captche image.
Re: My guest book has not Captha image
Posted: 19 Nov 2008, 14:27
by Jan
so there can be problem with the path or with some php error or notice which is rendered before the image is displayed... I you will display html, there is no problem with php error messages, you can disable them but if you want to render the image, it needs to have the code without any php error because of rendering the image... so try to enable php reporting on (if you can) and see if there are any errors ...
Jan
Re: My guest book has not Captha image
Posted: 19 Nov 2008, 22:27
by Helmut12
I have looked at 3 parameters. The display_error is set to ON. The next error_log has no any value and error_reporting has value 2039. It seems to me system does not find any php error. I cannot to change any php parameter on my free server yoyo.pl. The Captche image I do not see at all. System shows only free place with "X" in the middle.
Re: My guest book has not Captha image
Posted: 20 Nov 2008, 00:59
by Jan
can I see the site (is GD library OK, are permissions OK - to write image from GD to disc)
Jan
Re: My guest book has not Captha image
Posted: 09 Dec 2008, 15:00
by Helmut12
Some days ago I have uninstalled Phoca guestbook. I thought that oher gustbooks are better.
But it wasn't true. No one of them had good antispam filterand the polish lanhguage
interface. So i have instaloled Phoca guestbook on my site again. The installation was
correct, but system gave the warning:
Warning: zip_entry_read() [function.zip-entry-read]: The bytes parameter must greater
then zero in /var/www/sites/yoyo.pl/m/o/moja-silesia/libraries/joomla/
filesystem/archive/zip.php on line 239
After the installation I haven't further the captcha image and the picture for
refresh the captcha. After disabling the captcha in settings the guestbook works correct
I have my site on free server YoYo.pl. What caqn I do to eneable the cdaptcha because it
seems to be a very good antispam fiter.
Re: My guest book has not Captha image
Posted: 09 Dec 2008, 15:19
by Jan
Hi, first try to check the zip function on your site, maybe you should install some standard extensions which have similar size as Phoca Guestbook...
maybe try to download the Phoca Guestbook again, maybe while downloading the file was damaged .... ??? so try to download latest version again and install it...
Jan
Re: My guest book has not Captha image
Posted: 11 Dec 2008, 13:15
by Helmut12
I have downloded today the Phoca Book from the site http://www.phoca,cz and after uninstallig of this component i have done the new installation and i haven't captcha and during the installation process I've got the same warning. I've cut from the file zip.php where is the function that seems to be source of that error:
/**
* Extract a ZIP compressed file to a given path using native php api calls for speed
*
* @access private
* @param string $archive Path to ZIP archive to extract
* @param string $destination Path to extract archive into
* @param array $options Extraction options [unused]
* @return boolean True if successful
* @since 1.5
*/
function _extractNative($archive, $destination, $options)
{
if ($zip = zip_open($archive)) {
if ($zip) {
// Make sure the destination folder exists
if (!JFolder::create($destination)) {
$this->set('error.message', 'Unable to create destination');
return false;
}
// Read files in the archive
while ($file = zip_read($zip))
{
if (zip_entry_open($zip, $file, "r")) {
if (substr(zip_entry_name($file), strlen(zip_entry_name($file)) - 1) != "/") {
$buffer = zip_entry_read($file, zip_entry_filesize($file));
if (JFile::write($destination.DS.zip_entry_name($file), $buffer) === false) {
$this->set('error.message', 'Unable to write entry');
return false;
}
zip_entry_close($file);
}
} else {
$this->set('error.message', 'Unable to read entry');
return false;
}
}
zip_close($zip);
}
} else {
$this->set('error.message', 'Unable to open archive');
return false;
}
return true;
}
Inside of that function is the revocation to zip_entry_read(). I've no any idea how to sole this captcha problem.
Re: My guest book has not Captha image
Posted: 12 Dec 2008, 14:55
by Helmut12
I've installed Phoca Book 1.3.1 beta again. Now it was without the warning about error which I described earlierf. I installed this from the directory. The installer didn't unzipped the ninstall package at all. But now further bI've no the captcha imaage and the picture for refreshig captcha. I ried to change the method of dislaying captha but it gives nothink. What can I do now to solve this problem?