Jump to content

My Prestashop v1.6.1.24 is warning me to allow the PHP fopen() function (enabling in php.ini does not fix)


timop

Recommended Posts

Hi

My Prestashop v1.6.1.24 is warning me to allow the PHP fopen() function (enabling in php.ini does not fix)

 

I have enabled it in public_html/php.ini

allow_url_fopen = On

But I continue to see warning in Prestashop.

I’ve added the file Test.php which calls <?php phpinfo(); ?>  and in any subfolder it reports the allow_url_fopen setting as off.

 

Is there a way to for allow_url_fopen enabled in all subfolders of my prestashop install?

 

My service provider offers a one click install of Prestashop so it should be supported. They suggested asking Prestashop about the compatibility of the website with the latest PHP versions 5.6.40

My Environment is listed below

Server software version Apache

PHP version 5.6.40

Memory limit 128M

Max execution time 30

MySQL version 10.3.23-MariaDB

 

Thanks

T.

Link to comment
Share on other sites

Hi

Managed to solve this myself. I am running on a shared server using cPanel to control the setup. But I do not believe as it is a shared physical server that a global setting is possible to turn PHP fopen for all subfolders. So after  I enabled it in public_html/php.ini

 

allow_url_fopen = On

 

I went into the main folder for my prestashop install called “shop” and copied the php.ini into this folder and ALL the subfolders listed below. This now works! I can get into the Marketplace.

 

shop

            Adapter

            admin123

            cache

            classes

            config

            controllers       

            core

            css

            docs

            downloads

            img

            js

            localization

            log

            mails

            modules

            override

            pdf

            themes

            tools

            translations

            upload

            webservice

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