# safe\_mode is enabled or an open\_basedir is set in

**URL:** <https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876>\
**Category:** Product Support\
**Created:** [May 27, 2015, 10:46am UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876 "2015-05-27T10:46:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soraya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Soraya](https://forum.mautic.org/u/Soraya)\
**Post date:** [May 27, 2015, 10:46am UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/1 "2015-05-27T10:46:06Z")

</div>

Hello everybody! I have a problem with the allocation of points to the leads. I am familiarizing myself with the tool so I’ve created a simple point by simply accessing the web and smart list for people accessing from Spain.  
  
The leads are generated but not reach the database. Points of leads is also not generated, nor are organized within the smart lists.  
  
  
  
This is the error at top of Mautic´s dashboard:  
  
  
  
Warning: curl\_setopt\_array() [function.curl-setopt-array]: CURLOPT\_FOLLOWLOCATION cannot be activated when safe\_mode is enabled or an open\_basedir is set in /var/www/vhosts/gestionmipyme.es/marketing.gestionmipyme.es/vendor/joomla/http/src/Transport/Curl.php on line 165  
  
  
  
Safe\_mode is off. I´m using 5.3 PHP version. It´s a VPS.  
  
  
  
Thank´s regards!

---

<div class="post-metadata">

**Author:** ![Soraya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Soraya](https://forum.mautic.org/u/Soraya)\
**Post date:** [May 27, 2015, 10:46am UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/2 "2015-05-27T10:46:06Z")

</div>

Hello everybody! I have a problem with the allocation of points to the leads. I am familiarizing myself with the tool so I’ve created a simple point by simply accessing the web and smart list for people accessing from Spain.  
The leads are generated but not reach the database. Points of leads is also not generated, nor are organized within the smart lists.

This is the error at top of Mautic´s dashboard:

Warning: curl\_setopt\_array() [function.curl-setopt-array]: CURLOPT\_FOLLOWLOCATION cannot be activated when safe\_mode is enabled or an open\_basedir is set in /var/www/vhosts/gestionmipyme.es/marketing.gestionmipyme.es/vendor/joomla/http/src/Transport/Curl.php on line 165

Safe\_mode is off. I´m using 5.3 PHP version. It´s a VPS.

Thank´s regards!

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [May 27, 2015, 1:09pm UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/3 "2015-05-27T13:09:32Z")

</div>

If safe mode is off then I’m betting it has something to do with the open\_basedir. If this is on a VPS and you have access to the PHP.ini you should take a look and see what the settings are related to the open\_basedir var. You don’t want it set, or turned on.

Let me know if you try that and if it works or not.

Thanks!  
David

---

<div class="post-metadata">

**Author:** ![Soraya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Soraya](https://forum.mautic.org/u/Soraya)\
**Post date:** [June 1, 2015, 8:57am UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/4 "2015-06-01T08:57:56Z")

</div>

Hi David! I have safe mode off but I haven´t got access to php.ini on my VPS. Now only have that error on my VPS logs:

mod\_fcgid: stderr: PHP Warning: curl\_setopt\_array(): CURLOPT\_FOLLOWLOCATION cannot be activated when an open\_basedir is set in /var/www/vhosts/gestionmipyme.es/marketing.gestionmipyme.es/vendor/joomla/http/src/Transport/Curl.php on line 165

How can I do?

Thanks regards!

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [June 1, 2015, 1:37pm UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/5 "2015-06-01T13:37:12Z")

</div>

Hey!

You need to unset (or turn off) open\_basedir. This is quite common. I’d recommend checking this setting/location in your PHP.ini.

`; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
open_basedir = none`

Let me know if that helps!  
David

---

<div class="post-metadata">

**Author:** ![Soraya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Soraya](https://forum.mautic.org/u/Soraya)\
**Post date:** [June 11, 2015, 10:17am UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/6 "2015-06-11T10:17:44Z")

</div>

Hi David! I got it but I have a new problem:

[Wed Jun 10 16:39:44.381869 2015] [fcgid:warn] [pid 1543] [client 83.60.113.156:51891] mod\_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/gestionmipyme.es/marketing.gestionmipyme.es/app/bundles/CampaignBundle/Views/Campaign/builder.html.php on line 14, referer: [http://marketing.gestionmipyme.es/s/campaigns/new](http://marketing.gestionmipyme.es/s/campaigns/new)

I´ve just installed 1.1.2 version. Mautic doesn´t update leads list and points. What can I do?

Thanks regards! Have a nice day!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/safe-mode-is-enabled-or-an-open-basedir-is-set-in/1876/7 "2020-02-02T22:59:33Z")

</div>

Closed on February 2, 2020, 10:59pm UTC


