Page 1 of 1

Guestbook doesnt work

Posted: 19 Oct 2008, 13:27
by Rosta
I installed Phoca Guestbook to Joomla! 1.5.7, I created a menu link but it doesnt work good. I tried in the clear instalation of Joomla. Admistration section works good but site section isnt displays. What I do wrong?

Re: Guestbook doesnt work

Posted: 19 Oct 2008, 15:07
by caro84g
Have you created a guestbook in the admin panel? And selected this guestbook in the menu item?

Carolien

Re: Guestbook doesnt work

Posted: 19 Oct 2008, 15:31
by Rosta
caro84g wrote:Have you created a guestbook in the admin panel? And selected this guestbook in the menu item?

Carolien
Yes, look at http://www3.mkpp.cz/
Try it on this address.

Re: Guestbook doesnt work

Posted: 19 Oct 2008, 21:45
by Jan
Hi, it seems like there is some error, php error reporting on will help (to get the error)... try to find if your server supports ctype functions ...

Jan

Re: Guestbook doesnt work

Posted: 20 Oct 2008, 07:26
by Rosta
Errors:

Warning: require_once(HTMLPurifier/Error.php) [function.require-once]: failed to open stream: No such file or directory in /u2/www/mkpp_cz/data/www3/components/com_phocaguestbook/assets/library/HTMLPurifier/ConfigSchema.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'HTMLPurifier/Error.php' (include_path='.:/usr/lib/php:') in /u2/www/mkpp_cz/data/www3/components/com_phocaguestbook/assets/library/HTMLPurifier/ConfigSchema.php on line 3


( This hosting is on http://www.isol.cz )
What can I do?

Re: Guestbook doesnt work

Posted: 20 Oct 2008, 11:26
by Jan
The HTML purifier is an external method to protect the guestbook against e.g. XSS attacks ... it seems like on your server there cannot be created include path the the HTML purifier library ? but don't know why? maybe some files are missed? Try to download and install the guestbook again, maybe it helps :idea: :(

Re: Guestbook doesnt work

Posted: 20 Oct 2008, 18:10
by Rosta
I htink that problam is in "include_path" setings. (files arent missed)

Warning: require_once(HTMLPurifier/Error.php) [function.require-once]: failed to open stream: No such file or directory in /u2/www/mkpp_cz/data/www3/components/com_phocaguestbook/assets/library/HTMLPurifier/ConfigSchema.php on line 3

When I create HTMLPurifier/Error.php in to
www3/components/com_phocaguestbook/assets/library/HTMLPurifier/
like this
www3/components/com_phocaguestbook/assets/library/HTMLPurifier/When I create HTMLPurifier/Error.php
I see next error:
Warning: require_once(HTMLPurifier/ConfigDef.php) [function.require-once]: failed to open stream: No such file or directory in /u2/www/mkpp_cz/data/www3/components/com_phocaguestbook/assets/library/HTMLPurifier/ConfigSchema.php on line 4


Configuration PHP Core -include_path
Local Value .:/usr/lib/php:
Master Value .:/php/includes:/usr/lib/php:/usr/share/pear/:/usr/lib/php/ZF/library


I need change this phat HTMLPurifier/Error.php => Error.php (without HTMLPurifier/)
Do you have any help for me?

Re: Guestbook doesnt work

Posted: 21 Oct 2008, 21:47
by Jan
I think, HTML Purifier has some method how to set the path to all its files but maybe this method doesn't work on your server...

maybe this can be problem ???

define('HTMLPURIFIER_PREFIX', dirname(__FILE__));

mabe this include should be changed:

require_once 'HTMLPurifier/Error.php';
in:
HTMLPurifier/ConfigSchema.php

???

Jan

Re: Guestbook doesnt work

Posted: 23 Oct 2008, 12:31
by Rosta
Problem is here:

set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() );
it doest work on my hosting.
I had to change all

require_once 'HTMLPurifier/????.php';
in dirctor HTMLPurifier for (absolute phat)
require_once '/u2/www/mkpp_cz/data/www3/components/com_phocaguestbook/assets/library/HTMLPurifier/????.php';

Re: Guestbook doesnt work

Posted: 23 Oct 2008, 15:11
by Jan
yes, but there are a lot of require_once in HTML purifier :-(

you can try the version without HTML Purifier (but it is not safe as version with HTML Purifier)

Jan