Jump to content

Parse error HTMLPurifier


joe_ma
 Share

Recommended Posts

Hi

Due to a major redisign of my site I upgraded from pw 2.4 to 3.0.42, following all the steps explained in the readme file. So far almost everything worked fine. The front end works as expected, no errors there.

In the backend however, when trying to edit some of the pages I get the following message:

Quote

https://site.com/processwire/page/edit/  Parse Error:     syntax error, unexpected '/' (line 9706 of /home/httpd/vhosts/…/wire/modules/Markup/MarkupHTMLPurifier/htmlpurifier/HTMLPurifier.standalone.php)

Looking up line 9706 of this module, there is nothing at all. In fact lines 9705 through to 9709 are empty …

I  am not aware to have used this module at all.

The difference between pages I can edit and the ones I can't is the template. The ones I can edit don't use the body field but another one. Both fields are textareas with CKEditor and I can't see any difference between the settings of the two. And I don't exactly know, whether HTMLPurifier has anything to do with these fields.

(Please don't ask me, why I use different fields … don't know it anymore. It's history. :-[)

Update:
This error doesn't occur on my local installation, from where I uploaded the site to the live server.

Edited by joe_ma
Update
Link to comment
Share on other sites

I changed the textarea field from inline editor to regular editor, now the error doesn't occur anymore. Changing back to inline editor produces the error again.

In both cases ACF and HTML Purifier are set to "yes".

Don't really know, what seems to be the problem here.

EDIT:

Changing the textarea from inline to regular did not quite solve the problem. Now the error message is thrown when trying to save the page.

So I set HTML Purifier to "no". Now everything seems to work ok.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...