Open_basedir restriction warning

Home Forums Bugs and Troubleshooting Open_basedir restriction warning

This topic contains 1 reply, has 2 voices, and was last updated by  admin 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16033 Reply

    Michiel

    Hi,

    We installed Formidablepro2pdf on our testserver and it works great. But now, having it installed on the production server (shared hosting) We keep receiving the open_basedir restriction message:

    Warning: is_writable() [function.is-writable (https://www.hapdwingeloo.nl/function.is-writable) ]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/srv:/tmp/upload:/dev/shm:/var/php5/lib/php:/var/php5.3/etc) in /srv/sitename/www/www.oursite/wp-content/plugins/formidablepro-2-pdf/fpropdf.php on line 142

    The plugin works anyway, but I’d like to know how to solve this warning (rather than set warning on false 😉 ).

    Consulting the host didn’t work out: they optioned to change the /tmp/ folder into the own tmp folder. Can you guys help us out?

    Under the hood:

    Plugin folder: formidablepro-2-pdf
    PHP version: 5.3.29
    WP version: 4.7.4
    FrmAppHelper: Yes
    Trial: Yes
    PDFTK: No
    System: Linux server6 3.10.107 #1 SMP Tue Jun 27 14:17:30 CEST 2017 i686 i686 i386 GNU/Linux
    CURL: 7.39.0
    CURL error: No
    CURL test: Yes
    PHP Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, mysql, mysqli, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, SimpleXML, soap, SQLite, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi-fcgi, mhash
    Plugins: backupwordpress/backupwordpress.php, formidable/formidable.php, formidablepro-2-pdf/fpropdf.php, jetpack/jetpack.php, ninja-forms/ninja-forms.php, ninja_forward.php, wordpress-seo/wp-seo.php

    /srv//www/site/wp-content/plugins/formidablepro-2-pdf/fields is writable: Yes
    /srv//www/site/wp-content/plugins/formidablepro-2-pdf/fields can have files: Yes
    /srv//www/site/wp-content/plugins/formidablepro-2-pdf/fields write successful: Yes
    /srv//www/site//wp-content/plugins/formidablepro-2-pdf/fields delete successful: Yes
    /tmp is writable: Yes
    /tmp can have files: Yes
    /tmp write successful: Yes
    /tmp delete successful: Yes
    /srv//www/site/wp-content/uploads/fpropdf-forms is writable: Yes
    /srv//www/site/wp-content/uploads/fpropdf-forms can have files: Yes
    /srv//www/site/wp-content/uploads/fpropdf-forms write successful: Yes
    /srv//www/site//wp-content/uploads/fpropdf-forms delete successful: Yes

    #16068 Reply

    admin
    Keymaster

    Try adding this line to wp-config.php after: define(‘WP_DEBUG’, false);

    putenv(‘TMPDIR=/tmp/upload’);

    We remain at your service.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Open_basedir restriction warning
Your information: