Welcome! » Log In » Create A New Profile

Fatal error: Cannot access protected property HTMLPurifier_ConfigSchema::$singleton

Posted by Geoff 

I'm working on upgrading PKP OJS (open access journal software for academic journal publishing). HTMLPurifier 4.4 is bundled with this open source software. But unfortunately I keep getting this error:

Fatal error: Cannot access protected property HTMLPurifier_ConfigSchema::$singleton in [...my path to ojs...]/lib/pkp/lib/htmlpurifier/library/HTMLPurifier/ConfigSchema.php on line 78

We're running php 5.2.5. We can't find any error reports like this from other users of the OJS software. I'm thinking it might have to do with php configuration. I am also working with PKP OJS support, but so far they have been unable to help and suggested posting here. Any ideas what could be causing this?

Note: If I edit the HTMLPurifier lib so $singleton isn't protected, then I get a similar error message, but for a different property.

Can you post your phpinfo()?

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: