require_once(HTMLPurifier/Error.php): failed to open stream:

Phoca Guestbook - creating guestbooks in Joomla! CMS
drfuture
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Jan 2008, 14:44

Since Version 1.2.x

Post by drfuture »

Since Version 1.2.x and at aktuall 1.3.x the Guestbook can`t be opened

Joomla runs on Legacy-Mode + SEO

Warning: require_once(HTMLPurifier/Error.php): failed to open stream: No such fi
le or directory in /.../components/com_phocaguestbook/assets/library/HTMLPurifier/Con
figSchema.php on line 3 Fatal error: require_once(): Failed opening required 'HTMLPur
ifier/Error.php' (include_path='.') in /.../components/com_phocaguestbook/assets/libr
ary/HTMLPurifier/ConfigSchema.php on line 3


if i change the path manually in ConfigSchema.php the next failur becomes up. So it could be a never ending story if i fix it .... on next release it would be overwritten ;D
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, please let me kn

Post by Jan »

Hi, please let me know how you fixed it...

HTML Purifier is not my product, so I don't know it... I only use it because of XSS attacks (it works on mostly servers without problems)... I cannot use standard Joomla JRequest Clean method, becuase there is a problem with IMG tag... So if it is fixed in next Joomla! version, I will implement the Joomla! Clean method and HTML Purifier class will be removed and not used ...
If you find Phoca extensions useful, please support the project
drfuture
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Jan 2008, 14:44

First i tryed to pat

Post by drfuture »

First i tryed to patch all require-Pathes ... but thats a lot... and i have to change the whole file-structure from Purifier.

So the easy way is to copy the HTMLPurifier - Folder from /assets/libary to the webserver-html root.

then all Pathes right.

i dosen`t know how the Purifier could run on other surfers - because the pathes are very strange.... i think the compleate class is designt to run from webserver-root dir.

a 2. Idea could be to use the direct filepath-variable from joomla - but then the HTMLPurifier must be includet to joomla - to *see* the global variable??

I plan to write a peronal component for joomla but i havent found a usefull description how to write it... so is dosn`n know the object-structure from joomla 1.5 yet ;D
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

hmmm, so maybe it wi

Post by Jan »

hmmm, so maybe it will be better, we will wait for fixed Clean method in Joomla!


Jan
If you find Phoca extensions useful, please support the project
ASFV
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Oct 2008, 21:25

Re: require_once(HTMLPurifier/Error.php): failed to open stream:

Post by ASFV »

Hi,

I've got the same problem. But after paths corrections, now, i have
Warning: require_once(ConfigDef/Namespace.php) [function.require-once]: failed to open stream: No such file or directory in /mnt/103/sdb/f/3/ctsnlgd/ConfigSchema.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'ConfigDef/Namespace.php' (include_path='/mnt/103/sdb/f/3/ctsnlgd/include:.:/usr/php5/lib/php') in /mnt/103/sdb/f/3/ctsnlgd/ConfigSchema.php on line 5

here http://ctsnlgd.free.fr/index.php?option ... tbook&id=1

could you please help me ?

tks,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: require_once(HTMLPurifier/Error.php): failed to open stream:

Post by Jan »

only what I know is that the link is not correct but you know this too as you got the php error... :( no idea what is wrong :(

Jan
If you find Phoca extensions useful, please support the project
ASFV
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Oct 2008, 21:25

Re: require_once(HTMLPurifier/Error.php): failed to open stream:

Post by ASFV »

Hi Jan,

I deleted the guestbook. And now, i ve got the same error as dvfuture (with HTML purifier) but i don't understand how he resolved the bug.

could you help me ?

thanks
ASFV
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Oct 2008, 21:25

Re: require_once(HTMLPurifier/Error.php): failed to open stream:

Post by ASFV »

I solved this problem... I moved the HTML Purifier directory.

But now captcha doesn't work with SEF...

I go on search a solution :D
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: require_once(HTMLPurifier/Error.php): failed to open stream:

Post by Jan »

:idea:
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: require_once(HTMLPurifier/Error.php): failed to open str

Post by Jan »

Hi, great, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply