Jump to content

FATAL Error HTMLPurifier_config


Recommended Posts

Hello there,

 

Fatal error: Class 'HTMLPurifier_Config' not found in /home/eencadea/domains/eencadeautjevoorjezelf.nl/public_html/classes/Tools.php on line 3267

 

I have this error and I do not know why. It happened over night and it is actually only in the backoffice. Mainly the tools and configuration pages.

 

I have done a lot of searching. All files in /tools/htmlpurifier are in place and correct. I even uploaded a clean version of it.

 

I really hope someone can help me with this problem.

 

Thanks in advance!

 

Best regards,

Jos IJntema

Link to comment
Share on other sites

  • 3 weeks later...

Yes it is.

 

a) you don't need to install it/activate this server module if you don't need it - than some features will not work (like styles, fonts. buttons, ck editor, etc) - What I suppose not happening on your server

 

b )library is corrupt - so this needs to be fixed by your provider or server administrator

 

c) module is bad configured - needs action of your provider too.

 

d) the php-version in use does not support it, or itself has a bug - change to another php version can solve the problem

 

For the link you added "It is not found", cause it is not installed on the server or misconfigured.

 

PS: by disabling the module on Prestashop's back-office it will take no effect on your page, cause it is an extended mode you can use or not. If it is delivering error, of course you should disable it, cause your server cannot work with the extended feature. Debug fix in this case is on your server. (that's why the link you mentioned is not solved).

Edited by selectshop.at (see edit history)
  • Like 1
Link to comment
Share on other sites

Thank you for reply. I'm very glad for your help.

 

I've contacted with hosting provider but they were unable to find the problem. PHP version is 5.2 (I know that's quite old now).

 

What about security reasons? Presta still has some protection against malicious code? 

What was the reason to include such library in PS? 

Link to comment
Share on other sites

 

What about security reasons? Presta still has some protection against malicious code? 

What was the reason to include such library in PS? 

What do you mean ?

 

You should use php version 5.3+ for to run Prestashop 1.6. Older versions will give you some strange errors, due to bad configured servers (php 5.2. and lower and mod_security active). On php  5.3. mod_security is not needed any more and if the server has it enabled than you will too have some troubles with coding.

As you can see it is not good to don't update servers from time to time. php 5.2. is outdated since some years now.... BUT Prestashop works with actual and up-to-date features you cannot use cause the basis is outdated.

 

Example for what you never will do: attach o a rotten, old tree branch a children's swing... Same is for servers.

Edited by selectshop.at (see edit history)
  • Like 1
Link to comment
Share on other sites

No, of course not. HTML purifier is for as I explained before for extended styles, fonts. buttons, ck editor, etc. so mainly css extensions and W3 compliance. If your server is using 5.2. it could be possible that html_purifier library is not as complete as Prestashop needs. this means, Prestashop uses new commands not recognized by php 5.2.

 

Take a look into Google search html purifier and php 5.2. There are several problems with it. That's why I wrote:

 

d) the php-version in use does not support it, or itself has a bug - change to another php version can solve the problem

 

If you upgrade the php-version it should not have any impact on your modules, unless they are NATIVE and not bad coded free one.... What you can try: if it is possible for your provider to offer you a choose between 2 or more php-versions, to switch to another newer version on cPanel. Some provider offer this without any extra cost. Others not !

 

Prestashop software and native features/core runs well on PS 5.3.17, 5.3.21, 5.3.24., 5.3.28, 5.4. each version, 5.5. each version and at least I'm running PS also on 5.6. php version without any problems. As you can see, also 5.3. there are some bugs on php-versions, so I wrote the one which I tested without any problems (not only PS but also WordPress, open cart and joomla, so it's not a PS problem, but php-versions bugs).

I'm actually using 5.6.9 or 5.5.24. It depends on software. For Prestashop 5.5.24 and WordPress 5.6.9. By switching Prestashop to 5.6.9 there is no difference (only some more speed on database queries, but not really of human feel, only on speed testing tools).

Edited by selectshop.at (see edit history)
  • Like 1
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
×
×
  • Create New...