allow_url_fopen warning

DeaMaree

New member
I keep getting this warning under various circumstances:
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0

It happens when I initially log in to the dadbik admin section of my app - but, the admin still loads.
It also happens when I attempt to generate a PDF from the details or table view and the PDF does not generate.
It has also popped up under a couple of other circumstances.

The thing is, I have allow_url_fopen set to 1. It shows as on in my PHPini editor and my info.php for the site (see attached screenshots)

Once again, I am at a loss.

phpini.png

phpinfo.png


DaDaBIK version 11.0-Elba enterprise, installed on 08-28-2021
PHP Version: 7.3.30
mysql version: 5.7.35
Web server: Apache
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
URL installation: https://portal.argenttech.net/dadabik_directory/
 

eugenio

Administrator
Staff member
Hello,
as a first test, try to add at the end of your config_custom.php file, this lines of code

if (ini_get('allow_url_fopen')) {
die('OK');
}
else {
die('KO');
}

DaDaBIK will stop working and it will just display OK or KO on the screen according to allow_url_fopen value. At least we could see if your settings are effective.

Best,
 

DeaMaree

New member
Thank you so much. I ran the code and it returned "KO." I dug a little deeper, setting the php.ini in my subdomain, parent domain, and the home directory with no luck. I went into my WHM and discovered that MultiPHP manager settings in PHP-FPM had "Block domain from changing the setting" checked for "Treat URLs as files (allow_url_fopen)." I unchecked this for my subdomain and this particular error is now resolved.
 
Top