Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] BuddyPress and the PHP open_basedir restriction

  • @salvijansen

    Participant

    Hi guys,

    A lot of servers now have the open_basedir restriction in place to avoid strangers from in some way getting into other accounts on the same server.

    Sadly enough, it blocks BuddyPress from uploading an avatar to a profile:

    `Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/salvi/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/salvi/domains/site.be/public_html/wp/wp-includes/functions.php on line 2104

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/salvi/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/salvi/domains/site.be/public_html/wp/wp-includes/functions.php on line 2095

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/salvi/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/salvi/domains/site.be/public_html/wp/wp-includes/functions.php on line 2104`

    Any clues on getting this solved?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @johnjamesjacoby

    Keymaster

    Does your media gallery allow you to upload things? Since BuddyPress uses the core WordPress APIs to handle the upload, it shouldn’t be the only thing broken (unless wp-admin is whitelisted or something.)

    @salvijansen

    Participant

    I checked the media gallery, and when uploading something there, it didn’t give the php warnings, only a permissions warning.

    I had chmod’ed the uploads folder previously but it seems I misread the WordPress page about the exact chmods (https://codex.wordpress.org/Changing_File_Permissions) and implemented the first table 755 (should have been at least 775).

    Gosh, such a basic error. Sorry for waisting your time :-D

    PS: Keep up the good work, BuddyPress is an amazing piece of software (and even the default look is so sleek!). Thumbs up.

    @johnjamesjacoby

    Keymaster

    It happens to the best of us. Happy there wasn’t anything actually broken.

    Thanks for the kind words. :)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] BuddyPress and the PHP open_basedir restriction’ is closed to new replies.
Skip to toolbar