Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there any critical risk or any other problem if the previous bp-core-avatars.php is used ?

  • Profile photo of kaberi
    kaberi
    Participant

    @kaberi

    Is there any critical risk or problem if bp-core-avatars.php from BP 1.2.3 is used in 1.2.4.1 ?

    It appears that user uploaded photos (as avatars via BP) showed up globally without any problem in wp mu posts and comments but in 1.2.4.1 this does not happen in wp mu posts – we discussed this here:
    http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-show-avatars-uploaded-via-buddypress-in-wordpress-mu/

    This problem solves itself if the old bp-core-avatars.php from BP 1.2.3 is used in 1.2.4.1. The old file is slightly smaller in size so I am not sure if there can be any other unseen problem if the new, slightly larger (and thus containing addtional or modified codes perhaps) file is not used.

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Profile photo of smuda
    smuda
    Participant

    @smuda

    would like to know that too.

    Profile photo of helpy
    helpy
    Participant

    @helpy

    Have a similar problem ;-)

    Prev. installation WP 3.0 and BP 1.2.4.1
    Upgraded to BP 1.2.5

    In the blog comments of the blog with id 2 I got some warnings:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/is/htdocs/my-account-name/my-domain/www/wp-content/blogs.dir/1/files//avatars/3) is not within the allowed path(s): (/is/htdocs/user_tmp/my-account-name:/tmp:/dev/null:/dev/urandom:/bin:/usr:/is/default.errors:/is/htdocs/my-account-name) in /is/htdocs/my-account-name/my-domain/www/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 150

    The Problem is, that there is no directory /wp-content/blogs.dir/1 in my installation! Besides the main blog I created only a second one (/wp-content/blogs.dir/2).

    If I copy bp-core-avatars.php from BP 1.2.4.1 in my 1.2.5 installation the waring is gone! But this does not seem to be a proper solution because there a some changes in the php file …

    My solution, which I found some where else in this forum: I put the following two lines in /wp-content/plugins/bp-custom.php:

    define( ‘BP_AVATAR_URL’, ‘http://’ . $_SERVER . ‘/wp-content/uploads’ );
    define( ‘BP_AVATAR_UPLOAD_PATH’, $_SERVER . ‘/wp-content/uploads’ );

    The warning is gone :-)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there any critical risk or any other problem if the previous bp-core-avatars.php is used ?’ is closed to new replies.
Skip to toolbar