Some users may encounter an error message like:
realpath() [function.realpath]: open_basedir restriction in effect
We have patched Backlight 1.0.1 with a fix for this. Steps to fix:
1. Download Backlight 1.0.1 or newer again.
2. Replace these two files:
Thanks for the update, Ben.
Yes all working for me now.
I have got the same error on my website www.pictures2keep.nl. This fix was NOT the solution for me. I visited my page from both Safari and Firefox on my Mac and from an iphone. On all of those devices this error appeared. It was working OK, but not anymore...
I'm running Backlight 1.01 with Pages included.
The error I'm seeing on your site is nothing to do with open_basedir. It looks like something is broken in your host's PHP configuration. I suggest you take this up with their technical support.
That's just the problem: sometimes it's broken and sometimes it magically works. Which PHP-Version should my provider use?
It has PHP Version 5.6.21 configured, but maybe I can ask them to change it in a version which works with BackLight?
unfortunately I'm getting a open_basedir restriction error when trying to upload an image
Something went wrong
tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/www/web394/html/:/home/www/web394/phptmp/:/home/www/web394/files/:/home/www/web394/atd/:/usr/local/php5.5/lib/php/:/usr/local/php5.5/pear/) in ImageEntity.php on line 77
Any idea how to fix it?
Hi Sven, Backlight needs to be able to access the /tmp directory (or wherever the host saves files during uploads) in order to handle the image uploads. This looks like a configuration issue with your host. I suggest you contact their technical support.
may thanks for your help!
I've received from the technical support the answer that the /tmp directory is not available (as it is a shared directory), but that the /phptmp directory should be used. Is there a chance to change that directory in blacklight?
Hi Sven, Backlight uses the directory as configured on the host. As far as I can tell our code can not change the location. Instead, this needs to be set in the php.ini file with the upload_tmp_dir setting. Are you able to change php.ini settings via your site's control panel?
If not I suggest asking your host for advice on how to configure your site to use the phptmp directory.
I suggest pushing this back to your host. The PHP documentation says "if open_basedir is on, then the system default directory must be allowed for an upload to succeed". That means your host has effectively broken file uploads by setting open_basedir but not adding the tmp directory to the allowed paths.
Hey Ben, issue is solved now. Had to switch to another host ;-(
Hi Sven, sorry to hear you had to go to the trouble of changing hosts. Can I ask who you were hosting with previously?
Hello Sven I have the same problem and the same hoster
I have ride tophoster. He ask my
"Weiterhin ist open_base_dir eine Sicherheitsfunktion, die verhindert, dass php-scripte außerhalb Ihres Ordners zugriff haben.