# Allow\_url\_fopen is not enabled!

**URL:** https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334
**Category:** Hosting Support
**Created:** [May 26, 2018, 9:25am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334 "2018-05-26T09:25:30Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![BatMen](https://forum.infinityfree.com/letter_avatar/batmen/32/5_5575768a8748004e209b776fc1b2916d.png) [@BatMen](https://forum.infinityfree.com/u/BatMen)
#### Post date: [May 26, 2018, 9:25am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/1 "2018-05-26T09:25:30Z")

</div>

Would it be possible if you possibly ‘Allow\_url\_fopen is not enabled!’ would go, otherwise everything works out for me, only that does not work for me ☹😢 .

Thank you \<3

---

<div class="post-metadata">

### Author: ![UnknownLolz](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/unknownlolz/32/14581_2.png) [@UnknownLolz](https://forum.infinityfree.com/u/UnknownLolz)
#### Post date: [May 26, 2018, 9:46am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/2 "2018-05-26T09:46:27Z")

</div>

It already was enabled

---

<div class="post-metadata">

### Author: ![BatMen](https://forum.infinityfree.com/letter_avatar/batmen/32/5_5575768a8748004e209b776fc1b2916d.png) [@BatMen](https://forum.infinityfree.com/u/BatMen)
#### Post date: [May 26, 2018, 9:58am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/3 "2018-05-26T09:58:13Z")

</div>

It does not work for me 😢☹

---

<div class="post-metadata">

### Author: ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)
#### Post date: [May 26, 2018, 10:15am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/4 "2018-05-26T10:15:37Z")

</div>

[https://forum.infinityfree.com/discussion/comment/10905](https://forum.infinityfree.com/discussion/comment/10905)

---

<div class="post-metadata">

### Author: ![BatMen](https://forum.infinityfree.com/letter_avatar/batmen/32/5_5575768a8748004e209b776fc1b2916d.png) [@BatMen](https://forum.infinityfree.com/u/BatMen)
#### Post date: [May 26, 2018, 10:47am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/5 "2018-05-26T10:47:08Z")

</div>

On many other servers it work, except here 😕☹

---

<div class="post-metadata">

### Author: ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)
#### Post date: [May 26, 2018, 10:47am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/6 "2018-05-26T10:47:30Z")

</div>

This is the php code with which Perfex CRM checks if it is enabled

```
$ url_f_open = ini_get ('allow_url_fopen');
     if ($ url_f_open! = "1" && $ url_f_open! = 'On') {
         $ error = true;
         $ requirement11 = "<span class =" label label-warning "> Allow_url_fopen is not enabled! </ span>";
     } else {
         $ requirement11 = "<span class =" label label-success "> Enabled </ span>";
     }

```

it is the right way or not - I have no idea

---

<div class="post-metadata">

### Author: ![BatMen](https://forum.infinityfree.com/letter_avatar/batmen/32/5_5575768a8748004e209b776fc1b2916d.png) [@BatMen](https://forum.infinityfree.com/u/BatMen)
#### Post date: [May 26, 2018, 11:00am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/7 "2018-05-26T11:00:34Z")

</div>

> @OxyDac said:  
> This is the php code with which Perfex CRM checks if it is enabled
> 
> ```
> $ url_f_open = ini_get ('allow_url_fopen');
> if ($ url_f_open! = "1" && $ url_f_open! = 'On') {
> $ error = true;
> $ requirement11 = "<span class =" label label-warning "> Allow_url_fopen is not enabled! </ span>";
> } else {
> $ requirement11 = "<span class =" label label-success "> Enabled </ span>";
> }
> 
> ```
> 
> it is the right way or not - I have no idea

In which directory is this?

---

<div class="post-metadata">

### Author: ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)
#### Post date: [May 26, 2018, 7:16pm UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/8 "2018-05-26T19:16:24Z")

</div>

I’m not in possession of that  
but I download this [https://www.perfexcrm.com/perfexcrm-requirements.zip](https://www.perfexcrm.com/perfexcrm-requirements.zip)

and probably the same thing is used during the installation

---

<div class="post-metadata">

### Author: ![BatMen](https://forum.infinityfree.com/letter_avatar/batmen/32/5_5575768a8748004e209b776fc1b2916d.png) [@BatMen](https://forum.infinityfree.com/u/BatMen)
#### Post date: [May 26, 2018, 7:24pm UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/9 "2018-05-26T19:24:53Z")

</div>

> @OxyDac said:  
> I’m not in possession of that  
> but I download this [https://www.perfexcrm.com/perfexcrm-requirements.zip](https://www.perfexcrm.com/perfexcrm-requirements.zip)
> 
> and probably the same thing is used during the installation

That’s great, thank you, let me know if it worked for you or you could possibly find a solution, would be really nice

---

<div class="post-metadata">

### Author: ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)
#### Post date: [May 26, 2018, 7:33pm UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/10 "2018-05-26T19:33:24Z")

</div>

I tried it right after your first post  
it does not work (unable to recognize)

Try to go [Login - Perfex CRM](https://help.perfexcrm.com/forums/)  
and open a ticket because they might have some workaround

---

<div class="post-metadata">

### Author: ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)
#### Post date: [May 27, 2018, 9:22am UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/11 "2018-05-27T09:22:01Z")

</div>

> @OxyDac said:  
> This is the php code with which Perfex CRM checks if it is enabled
> 
> ```
> $ url_f_open = ini_get ('allow_url_fopen');
> if ($ url_f_open! = "1" && $ url_f_open! = 'On') {
> $ error = true;
> $ requirement11 = "<span class =" label label-warning "> Allow_url_fopen is not enabled! </ span>";
> } else {
> $ requirement11 = "<span class =" label label-success "> Enabled </ span>";
> }
> 
> ```
> 
> it is the right way or not - I have no idea

I did some checking, and if this really is the code Perfex uses to check if `allow_url_fopen` is enabled, then Perfex clearly messed up here. That code to check whether the setting is enabled is plainly wrong.

The script checks is the setting `allow_url_fopen` is set to `1` or `On`, which are both valid ways to enable an option in PHP. However, in our server, the setting is set to `on` (fully lower case). The script checks whether the setting is equal to `On` rather than `on`, so it incorrectly believes that the setting is not on.

Options in PHP which can be turned of can be turned on with `1`, `on`, `true` and `yes`, (and any capitalization) and turned off with `0`, `off`, `false` and `no` (again, all capitalization are valid). Additionally, an empty setting should be considered equal to `off` and any other string or number should be considered `on`.

This is how PHP itself parses it’s config file:

> String values “true”, “on” and “yes” are converted to TRUE. “false”, “off”, “no” and “none” are considered FALSE. “null” is converted to NULL in typed mode. Also, all numeric strings are converted to integer type if it is possible.

Send this to Perfex with the message that they should fix their code.

---

<div class="post-metadata">

### Author: ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)
#### Post date: [May 27, 2018, 6:00pm UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/12 "2018-05-27T18:00:56Z")

</div>

@BatMen

try this address  
perfex\_crm/install/requirements.php

and then search the code (url\_f\_open)  
and edit so that `On` becomes `on`

then save and try installing and let us know if everything is ok

---

<div class="post-metadata">

### Author: ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)
#### Post date: [January 17, 2019, 7:32pm UTC](https://forum.infinityfree.com/t/allow-url-fopen-is-not-enabled/9334/13 "2019-01-17T19:32:04Z")

</div>


