greasemonkey 190 Posted February 25, 2020 Hey all, I’m starting fresh with Phoenix 1.0.5.0 and I’m stuck on the first page of install. I’ve confirmed with cPanel mutliPHP INI editor that it is turned on for this add on domain (URL). And also uploaded a phpinfo file and confirmed. Share this post Link to post Share on other sites
burt 5,435 Posted February 25, 2020 https://stackoverflow.com/questions/13433660/how-to-check-if-allow-url-fopen-is-enabled-or-not Upload a new .php file containing; <?php echo (ini_get('allow_url_fopen')) ? 'Fopen ON' : 'Fopen OFF'; And see what it says... Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites
azpro 144 Posted February 25, 2020 Scott .. did you restart apache? Share this post Link to post Share on other sites
greasemonkey 190 Posted February 25, 2020 @azpro no didn’t restart - however would (not an expert) presume because it’s recognized by phpinfo and cPannel that it wouldn’t necessary? @burt I’ll give it a try tmr. Share this post Link to post Share on other sites
greasemonkey 190 Posted February 26, 2020 17 hours ago, burt said: https://stackoverflow.com/questions/13433660/how-to-check-if-allow-url-fopen-is-enabled-or-not Upload a new .php file containing; <?php echo (ini_get('allow_url_fopen')) ? 'Fopen ON' : 'Fopen OFF'; And see what it says... @burt the output is Fopen ON Could it be a cache issue (I don't think so, I've tried in in a couple different browsers)? Or maybe its looking at the wrong dir php.ini file? Example: html_public in place of html_public/myaddondomain.com Share this post Link to post Share on other sites
burt 5,435 Posted February 26, 2020 (edited) https://github.com/gburton/CE-Phoenix/blob/master/install/templates/pages/index.php#L56 comment it out, by adding a double slash in front. That will allow your install to continue. I may need to change that line of code - thanks for the heads up. Edited February 26, 2020 by burt Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites
burt 5,435 Posted February 26, 2020 Even better, instead of commening out that line, would you instead change this line https://github.com/gburton/CE-Phoenix/blob/master/install/templates/pages/index.php#L55 to if(!ini_get('allow_url_fopen')) { and that should allow you to continue. And is a better fix. Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites
greasemonkey 190 Posted February 26, 2020 (edited) @burt it will only allow me past if I comment it out. /* if(!ini_get('allow_url_fopen')) { $warning_array['allow_url_fopen'] = 'Fopen Wrappers must be turned on. This is a <em>hosting</em> setting which you or your host may be able to change by setting allow_url_fopen to "1" or "On" in php.ini'; }*/ I'm in no huge rush if you wanted to test something else.... Of course it still gives the thumbs down - which I presume is only a display... Edited February 26, 2020 by greasemonkey added text Share this post Link to post Share on other sites
greasemonkey 190 Posted February 26, 2020 @burt as a follow up. After install i do see the error in dashboard allow_url_fopen must be enabled in php.ini This is a hosting setting and may be able to be performed via your hosting control panel - if not, ask your host. and the export fort server info shows allow_url_fopen = 0 allow_url_include = 0 Despite the earlier test (and just recheck) shows Fopen ON Share this post Link to post Share on other sites
Robbogeordie 10 Posted March 1, 2020 I'm also having this issue. If you put @burt code in a new file in your admin folder and check the output my guess is that it will still be: Fopen Off If your custom php.ini is not recursive then the PHP Values In Your custom php.ini are not inherited by any Subdirectories, so Fopen will be on in the root folder, but nowhere else. I've not fixed mine yet because it's throwing another error due to a missing dll, but to make your custom php.ini recursive add this code to .htaccess : suPHP_ConfigPath /home/USERNAME/public_html Some information here: https://www.inmotionhosting.com/support/website/recursive-php-ini/ Share this post Link to post Share on other sites
Robbogeordie 10 Posted March 1, 2020 Some more info here: https://www.pickaweb.co.uk/kb/inherit-php-values-in-your-local-php-ini-to-all-subdirectories/ Share this post Link to post Share on other sites
Robbogeordie 10 Posted March 2, 2020 Here's how I fixed it. I removed the recursive code that I'd put in my .htaccess and simply copied the php.ini file to my admin directory instead. Fopen On in admin Voila, simple as that. 1 burt reacted to this Share this post Link to post Share on other sites
greasemonkey 190 Posted March 2, 2020 Yes, moving the php.ini file to admin removes the error. Share this post Link to post Share on other sites
Fast4u 0 Posted October 10, 2020 I have the same issue on a fresh installation of Phoenix v1.0.7.9. I have a big warning in the Admin section "allow_url_fopen must be enabled in php.ini". I can't enable this setting in php.ini with my hosting provider. Need to have a virtual private server to enable it. The website seem to work well, before going further, what will be the impact if i can't turn on this setting? Do i really need upgrade to VPN? Thank's Share this post Link to post Share on other sites
burt 5,435 Posted October 10, 2020 (edited) 56 minutes ago, Fast4u said: The website seem to work well, before going further, what will be the impact if i can't turn on this setting? Minor You will not be able to view certain things (eg the certified_addons page in admin). Major You will not be able to update currencies I will look at doing something to combat that in 1.0.7.10 as currencies is obviously an important part of core and the certified_addons page is important in helping to keep the whole project alive Edited October 10, 2020 by burt Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites
Omar_one 149 Posted October 10, 2020 (edited) ago, burt said: I will look at doing something to combat that in 1.0.7.10 as currencies is obviously an important part of core and the certified_addons page is important in helping to keep the whole project alive Maybe using cURL instead will fix the issue. Edited October 10, 2020 by Omar_one Get the latest Responsive osCommerce CE (community edition) here . Share this post Link to post Share on other sites
♥ecartz 693 Posted October 10, 2020 23 minutes ago, Omar_one said: Maybe using cURL instead will fix the issue. Although then you have the problem of when curl isn't available. It might be overengineering, but a generic remote file access class that could use whatever was available might be worth it. A beginning: https://stackoverflow.com/questions/3979802/alternative-to-file-get-contents/21177510#21177510 Note that that still hard codes some of the curl options, which should probably be configured or parameterized instead. I'd be willing to write something, but testing it would be a pain. Because we would have to find people with all the alternatives or recreate all the different setups to verify that the failovers worked correctly. Always back up before making changes. Share this post Link to post Share on other sites
♥ecartz 693 Posted October 10, 2020 Never mind. Burt already did: https://github.com/gburton/CE-Phoenix/commit/84812c63fc854d405b023b48064a96df47c85b1c 1 Omar_one reacted to this Always back up before making changes. Share this post Link to post Share on other sites
burt 5,435 Posted October 11, 2020 13 hours ago, ecartz said: Never mind. Burt already did: https://github.com/gburton/CE-Phoenix/commit/84812c63fc854d405b023b48064a96df47c85b1c This is tested on a live shop with fopen_wrappers off - the URL is gotten via Curl then and everything appears to work as it should, both the "reading" things (dashboard, certified addon page) and the functionality (currency update). With both fopen_wrappers off and Curl off, the advice would have to be one of: enable fopen_wrappers enable curl new host" 1 Omar_one reacted to this Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites