lewdigital Posted March 9, 2018 Share Posted March 9, 2018 Hello , 1st installation of prestashop for 1st time ever . And i get this error . URL FOPEN IS ON i delete all started over many times . nothing . Can anyone help me to try presta shop ?? Link to comment Share on other sites More sharing options...
lewdigital Posted March 10, 2018 Author Share Posted March 10, 2018 anyone ? Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 5, 2019 Share Posted April 5, 2019 We have the same issue for nearly 6 months, and it prevents us from using a plug-in we purchased. Our host provider has also tried to assist, but nothing has worked so far. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 6, 2019 Share Posted April 6, 2019 (edited) Maybe allow_url_fopen is active only in public_html directory? Edited April 6, 2019 by Rodrigo B Laurindo (see edit history) Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 10, 2019 Share Posted April 10, 2019 I've seen some forum members indicate this could be a firewall issue. If it is a firewall issue, then I would need to know which IP addresses (Prestashop origin) are being blocked? How would one even begin to ensure Prestashop's IP's are not being blocked? Link to comment Share on other sites More sharing options...
Janett Posted April 10, 2019 Share Posted April 10, 2019 Maybe your host provider can give you more information on server configuration. Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 11, 2019 Share Posted April 11, 2019 Thank you for the reply Janett. Our provider has confirmed the settings are correct, but they also suggested this is likely a firewall issue. They asked me to find out what the IP addresses for prestashop are, and I have not been able to find them myself to check. The prestashop control panel no longer connects to the Prestashop back end servers either, so I can't download plugins and updates automatically either. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 11, 2019 Share Posted April 11, 2019 I don't think so. Can you try something? Put a php file in your public_html directory with the code: <?php phpinfo(); Open this file in your browser, and look if allow_url_fopen is active in the configuration. If it is active, put the same file in your /config folder, and open it in your browser. Look, again, if it is showing allow_url_fopen as active. If both are active, I would say it is for sure a firewall issue. If both are false, your host should take a look again in the configuration. If only the second one is false, it is because the configuration is not set recursively. Take a look in your .user.ini file. Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 11, 2019 Share Posted April 11, 2019 Thank you Rodrigo, I think you are correct. I confirmed allow_url_fopen is "on" in public. But the config directory is blocked from browser, so I get a 404 error. I just opened a ticket with our host again to look for blocked IP's in the 91.240.109.x range. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 11, 2019 Share Posted April 11, 2019 (edited) Ok, you would have to rename .htaccess, or put the phpinfo file in another directory (img for instance). Anyway, try to put allow_url_fopen = on in your .user.ini (not only PHP.ini) I think it will help. Edit: I don't think it is a firewall issue. I think allow_url_fopen is off in your subdirectories. Edited April 11, 2019 by Rodrigo B Laurindo (see edit history) Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 12, 2019 Share Posted April 12, 2019 The whole thing is very odd because I never had this issue until last fall, then all of a sudden it just failed. The IP addresses for Prestashop I could find are now white listed, but the store and a plug in we bought doesn't connect to the Prestashop backend for anything, and I get the same error. Running out of ideas. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 12, 2019 Share Posted April 12, 2019 Did you try my suggestion? put the file with phpinfo in your /img folder or any other allowed by prestashop and run it, you will see if allow_url_fopen is enabled recursively in your hosting directory. Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 12, 2019 Share Posted April 12, 2019 Hi Rodrigo, Yes, it works in Public, and in Prestashop directory, but I get a 404 error in the /IMG dir. Same 404 error when htaccess has been renamed or removed from same. Very odd. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 12, 2019 Share Posted April 12, 2019 There is another .htaccess file inside /img folder that prevents php code to be executed in it. Did you rename it too? Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 12, 2019 Share Posted April 12, 2019 Yes, ....prestashop/img/ folder has renamed htaccess now, 404 error page not found. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 12, 2019 Share Posted April 12, 2019 If you are entering the right address in your browser and your phpinfo file is with the right code, you shoudn't get a 404 error. It's not prestashop anymore, it's a single php file. You will have to contact your host and ask them why you are not able to execute php files in your subdirectories. Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 12, 2019 Share Posted April 12, 2019 Thank you Rodrigo. I'm not able to see anything in the /IMG dir, even jpg's, only 404 error page, so I'll ask my host. Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 12, 2019 Share Posted April 12, 2019 1 minute ago, ScarabExcel said: Thank you Rodrigo. I'm not able to see anything in the /IMG dir, even jpg's, only 404 error page, so I'll ask my host. You put your php file with phpinfo code in your /img folder, right? Link to comment Share on other sites More sharing options...
ScarabExcel Posted April 12, 2019 Share Posted April 12, 2019 It's in the /img folder I found inside the Prestashop folder, so /prestashop/img/phpinfo.php I can see all the file there in File Manager, but 404 when I try to hit them with my browser. I also have the info php file I created in some other directories where I can see the PHP info/details where allow_url_fopen is listed as ON when hitting those with a browser. So it shows up when I go to the main prestashop directory by example. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now