Guestbook doesnt work

Phoca Guestbook - creating guestbooks in Joomla! CMS
Rosta
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 19 Oct 2008, 13:15

Guestbook doesnt work

Post 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?
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Guestbook doesnt work

Post by caro84g »

Have you created a guestbook in the admin panel? And selected this guestbook in the menu item?

Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Rosta
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 19 Oct 2008, 13:15

Re: Guestbook doesnt work

Post 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.
Last edited by Rosta on 26 Oct 2008, 21:10, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guestbook doesnt work

Post 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
If you find Phoca extensions useful, please support the project
Rosta
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 19 Oct 2008, 13:15

Re: Guestbook doesnt work

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guestbook doesnt work

Post 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: :(
If you find Phoca extensions useful, please support the project
Rosta
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 19 Oct 2008, 13:15

Re: Guestbook doesnt work

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guestbook doesnt work

Post 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
If you find Phoca extensions useful, please support the project
Rosta
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 19 Oct 2008, 13:15

Re: Guestbook doesnt work

Post 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';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guestbook doesnt work

Post 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
If you find Phoca extensions useful, please support the project
Post Reply