Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am using s3fs together with advagg.
Advagg is using this to copy files from tmp to final destination.
drupal_tempnam('public://advagg_js/', 'file_advagg_'), but is giving this error:
Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/h10802/:/usr/share/php/:/usr/share/pear/:/tmp/) in tempnam() (line 2478 of /var/www/h10802/sites/prod/htdocs/includes/file.inc).
Any ideas what went wrong?
Comment | File | Size | Author |
---|---|---|---|
#4 | advagg-2515082-3-openbasedir-fix.patch | 699 bytes | mikeytown2 |
Comments
Comment #1
Jurgen8en CreditAttribution: Jurgen8en commentedChanged file
advagg.missing.inc
More info: https://www.drupal.org/node/227232
Comment #2
Jurgen8en CreditAttribution: Jurgen8en commentedComment #4
mikeytown2 CreditAttribution: mikeytown2 commentedCreated this patch based off of your comments and http://php.net/tempnam
It has been committed. Please let me know if it works for you.