Welcome! » Log In » Create A New Profile

V4.9.1 php error

Posted by Rob d 
Rob d
V4.9.1 php error
March 09, 2017 03:02AM

After updating to 4.9.1 from 4.8.0 on one of my sites, I get this fatal error:

[09-Mar-2017 04:48:44 UTC] PHP Parse error:  syntax error, unexpected '[', expecting ')' in /home/****/public_html/sites/all/libraries/htmlpurifier/library/HTMLPurifier/Lexer.php on line 353

I reuploaded the files and same error. Went back to 4.8.0 and problem disappeared.

Any ideas?

Re: V4.9.1 php error
March 09, 2017 03:05AM

Yes, known issue. The PHP 5.3 regression is fixed in trunk, so if you use a copy from Git HEAD that will also solve the problem. Or hang tight until we do another release (I will probably wait a little bit before then though.)

Rob d
Re: V4.9.1 php error
March 09, 2017 12:56PM

Thanks, the GIT version seems to have fixed the problem. I will watch for the next release.

Your Email:


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:

Place code here

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}