Jump to content

Error : HTMLPurifier failed to open stream


GKalloe

Recommended Posts

My website is giving this error:

 

Warning: require_once(/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/HTMLPurifier.standalone.php): failed to open stream: No such file or directory in /var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/config/config.inc.php on line 138 Fatal error: require_once(): Failed opening required '/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/HTMLPurifier.standalone.php' (include_path='/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/vendor/pear/pear_exception:/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/vendor/pear/console_getopt:/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/vendor/pear/pear-core-minimal/src:/var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/vendor/pear/archive_tar:.:/php/includes:/usr/share/pear:/usr/libexec/php4-cgi/share/pear') in /var/www/vhosts/153/342080/webspace/httpdocs/gardenofgifts.nl-prestashop/config/config.inc.php on line 138

 

 

what to do?

Link to comment
Share on other sites

Hi,

from the error it seems that this file is missing from the server in folder: httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/HTMLPurifier.standalone.php

you can extract that file default prestashop zip archive which corresponds with your version of Prestashop.

From here you can download the prestashop version which is the same as yours: https://www.prestashop.com/en/previous-versions

Kind regards, Leo

  • Like 1
Link to comment
Share on other sites

  • razaro changed the title to Error : HTMLPurifier failed to open stream
5 hours ago, Leo @ Prestachamps said:

Hi,

from the error it seems that this file is missing from the server in folder: httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/HTMLPurifier.standalone.php

you can extract that file default prestashop zip archive which corresponds with your version of Prestashop.

From here you can download the prestashop version which is the same as yours: https://www.prestashop.com/en/previous-versions

Kind regards, Leo

Hi Leo,

Thank you for your respond and for the link.

But I don’t know which one I should download because they have different names like “beta” “stable” etc.

Link to comment
Share on other sites

1 minute ago, GKalloe said:

Hi Leo,

Thank you for your respond and for the link.

But I don’t know which one I should download because they have different names like “beta” “stable” etc.

Him

You should download the same version as it is your current shop version. You can check your version, from file: /config/settings.inc.php, it's the value of  _PS_VERSION_

Kind regards, Leo

  • Like 1
Link to comment
Share on other sites

9 minutes ago, Leo @ Prestachamps said:

Him

You should download the same version as it is your current shop version. You can check your version, from file: /config/settings.inc.php, it's the value of  _PS_VERSION_

Kind regards, Leo

The config/setting.inc.php file is pretty much emtpy:

<?php
//@deprecated 1.7

Link to comment
Share on other sites

13 minutes ago, Leo @ Prestachamps said:

Him

You should download the same version as it is your current shop version. You can check your version, from file: /config/settings.inc.php, it's the value of  _PS_VERSION_

Kind regards, Leo

I think I found my version its 1.7.4.2

 

If I downloaded the zip file what is the next step? (Sorry im really new to this)

Link to comment
Share on other sites

Hi,

yes, in 1.7 Prestashop, the version is in the fuile :/app/AppKernel.php , VERSION constant. 

then extract the downloaded zip file, and then extract the pestashop.zip also.

take from that extracted folder the file : /tools/htmlpurifier/HTMLPurifier.standalone.php and copy that one to the FTP in folder : httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/

Then check the page, and the error log if there are still some missing files.

Kind regards, Leo

Edited by Leo @ Prestachamps (see edit history)
  • Like 1
Link to comment
Share on other sites

11 minutes ago, Leo @ Prestachamps said:

Hi,

yes, in 1. prestashop

then extract the downloaded zip file, and then extract the pestashop.zip also.

from that one fold the file : /tools/htmlpurifier/HTMLPurifier.standalone.php and copy that one to the FTp in flder : httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/

Then check the page, and the error log if there are still some missing files.

Kind regards, Leo

Hi,

 

I found the file but I dont understand how to copy it? 

Link to comment
Share on other sites

3 hours ago, Leo @ Prestachamps said:

Hi,

yes, in 1.7 Prestashop, the version is in the fuile :/app/AppKernel.php , VERSION constant. 

then extract the downloaded zip file, and then extract the pestashop.zip also.

take from that extracted folder the file : /tools/htmlpurifier/HTMLPurifier.standalone.php and copy that one to the FTP in folder : httpdocs/gardenofgifts.nl-prestashop/tools/htmlpurifier/

Then check the page, and the error log if there are still some missing files.

Kind regards, Leo

Hey Leo,

 

Please help me. I tried a lot myself but I am stuck. I found out that the Tools folder is missing and the Install folder from filezilla. How can I upload them?

Link to comment
Share on other sites

Hi Leo,

Okay I uploaded the Tools folder bt now I have this.

I also uploaded the Install folder which was missing but then when I wanted to go to my Backoffice it said to delete the Install folder. Now I can go into my Backoffice but my Frontoffice is still out.

 

(sorry for the spam) 😞

 

image.thumb.png.235a8b28a206716adcd34a2c28461820.png

Edited by GKalloe (see edit history)
Link to comment
Share on other sites

11 minutes ago, Leo @ Prestachamps said:

Hi, 

Sorry, I had several meetings, next time drop me a PM, as I get an instant notice. there are dozens of Pulses where I answer :) 

Can you please post the solution for anybody, who know maybe somebody in the future will have the same issue. 

Happy selling:)

Hi Leo,

Thats okay I’m already glad it’s solved!

First I uploaded the backup Tools folder that was missing from my Prestashop root directory. After that I was able to get into my Backoffice. 

But my Frontoffice gave another error: Prestashop Database Exception table doesn’t exist.

I also saw something about a Featured Products module in the error. So i disabled the Featured Products module in my Backoffice and my website was working again!

Thank you Leo!

  • 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...