Welcome! » Log In » Create A New Profile

Trouble Installing With Php 5.3

Posted by PettyCrim 
Trouble Installing With Php 5.3
August 15, 2011 09:38AM

I am using PHP 5.3 with namespaces and am having difficulty installing. I have in my main index page the following:

spl_autoload_extensions(".php");
spl_autoload_register();
require_once 'htmlpurifier/library/HTMLPurifier.auto.php';
		$purifier_config=HTMLPurifier_Config::createDefault();
		$purifier_config->set('HTML.Allowed', 'p, em, b,a[href],i');
		$purifier = new HTMLPurifier($purifier_config);

This gives me the following error:

"Fatal error: Class 'themes\_default\forum\HTMLPurifier_Config' not found"

Is there a way to reference that class?

Re: Trouble Installing With Php 5.3
August 15, 2011 10:07PM

Please post your exact autoloader code. I made a test-case for what you described and it worked fine.

Re: Trouble Installing With Php 5.3
August 16, 2011 04:59AM
Re: Trouble Installing With Php 5.3
August 16, 2011 08:35AM

Yes, as I said, I made a test using the default autoloader, and it worked fine. I don't doubt your code is not working, so please post your exact PHP code.

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: