Skip to:
Content
Pages
Categories
Search
Top
Bottom

bad avatar urls in new instal

Viewing 11 replies - 1 through 11 (of 11 total)

  • r-a-y
    Keymaster

    @r-a-y


    okso
    Participant

    @okso

    Hi thanks for the quick reply, I followed instructions and as soon as I apply the code in bp-core-avatars.php line 389 I get white screen of death:

    if ( !$path = get_option( ‘upload_path’ ) )


    $path = WP_CONTENT_DIR . ‘/uploads’;
else
$path = ABSPATH . $path;


    r-a-y
    Keymaster

    @r-a-y

    Hope you didn’t copy and paste the characters as-is because the characters aren’t correct.

    Try this instead:

    if ( !$path = get_option( 'upload_path' ) )
    $path = WP_CONTENT_DIR . '/uploads';
    else
    $path = ABSPATH . $path;


    okso
    Participant

    @okso

    apologies ray, I must be asleep! yes, it worked with the correct formatting. d


    okso
    Participant

    @okso

    I hope I’m right in saying the last issue I face, aside the css, is the upload permissions. Apache doesn’t seem to be able to create folders so if I want to upload an avatar or document I get:

    Upload Failed! Error was: Unable to create directory wp-content/uploads/avatars/6. Is its parent directory writable by the server?

    I’ve checked all my folders; buddypress theme pack, uploads etc and all is set to 755. If I set wp content to 777 everything works as it should. I know this should work with 755 though. Any ideas please?


    r-a-y
    Keymaster

    @r-a-y

    Something to do with owner permissions.

    Do a search on google for “wordpress upload owner permissions”.


    okso
    Participant

    @okso

    can anyone point me to where I can set the correct config for avatar uploads, I get this error when I try to upload:

    Upload Failed! Error was: Unable to create directory hillguitars.co.uk/httpdocs//group-avatars/3. Is its parent directory writable by the server?

    httpdocs//group-avatars/ the // indicates wp-content/uploads is missing from the url but I can’t see where this is set.

    extra info: wp3 with network site hillguitars.co.uk & students.hillguitars.co.uk

    I’ve added define ( ‘BP_ENABLE_MULTIBLOG’, true ); on wp-config and got buddy press working on network blogs ie.

    http://students.hillguitars.co.uk/activity/

    http://students.hillguitars.co.uk/members/

    http://students.hillguitars.co.uk/groups/

    http://students.hillguitars.co.uk/forums/

    http://students.hillguitars.co.uk/blogs/


    okso
    Participant

    @okso

    I have read through every post on this subject and followed all of the advise implicitly but have an url error I just can’t rectify. My upload process works correctly placing an image in dir wp-content/uploads/group-avatars/3/file name.jpg but when it reloads to crop the thumb it returns a bad url with the wp-content/ missing eg

    http://domain.tld/uploads/group-avatars/3/okso_big2.jpg

    If I remove file upload path from options.php and set the full url I get this returned on attempting an upload wp-content/uploads missing and it breaks the path to the standard wp media library

    Upload Failed! Error was: Unable to create directory domain.tld/httpdocs//group-avatars/3. Is its parent directory writable by the server?

    Can anyone please tel me where the path is set in the core files to wp-content/ added to the return url


    okso
    Participant

    @okso

    I have read through every post on this subject and followed all of the advise implicitly but have an url error I just can’t rectify. My upload process works correctly placing an image in dir wp-content/uploads/group-avatars/3/file name.jpg but when it reloads to crop the thumb it returns a bad url with the wp-content/ missing eg

    http://domain.tld/uploads/group-avatars/3/okso_big2.jpg

    If I remove file upload path from options.php and set the full url I get this returned on attempting an upload wp-content/uploads missing and it breaks the path to the standard wp media library

    Upload Failed! Error was: Unable to create directory domain.tld/httpdocs//group-avatars/3. Is its parent directory writable by the server?

    Can anyone please tel me where the path is set in the core files to wp-content/ added to the return url


    okso
    Participant

    @okso

    I’ve just done a brand new installation and got this with the fix to core-avitars.php

    if ( !$path = get_option( ‘upload_path’ ) )

    $path = WP_CONTENT_DIR . ‘/uploads’;

    else

    $path = ABSPATH . $path;

    and removing the upload path and substituting with full upload url

    I’ve set up a main site and a subdomain. Both standard media library uploads work OK. But when I enable BiddyPress and try to create an avatar I get…

    Blog 1

    Upload Failed! Error was: Unable to create directory /var/www/vhosts/powerofthefeminine.com/httpdocs//group-avatars/1. Is its parent directory writable by the server?

    http://powerofthefeminine.com/files/2010/04/okso_big-150×150.jpg

    Blog 2

    Upload Failed! Error was: Unable to create directory /var/www/vhosts/powerofthefeminine.com/httpdocs//group-avatars/2. Is its parent directory writable by the server?

    http://members.powerofthefeminine.com/files/2010/04/okso_big-150×150.jpg

    with upload path set to wp-content/uploads and leaving the full url in place I get a perfect upload but a bad return path with wp-content missing from url…

    Blog 1

    http://powerofthefeminine.com/uploads/group-avatars/1/avatar.jpg

    Blog 2

    http://powerofthefeminine.com/uploads/group-avatars/2/avatar.jpg


    okso
    Participant

    @okso

    I’ve just done a brand new installation and got this with the fix to core-avitars.php

    if ( !$path = get_option( ‘upload_path’ ) )

    $path = WP_CONTENT_DIR . ‘/uploads’;

    else

    $path = ABSPATH . $path;

    and removing the upload path and substituting with full upload url

    I’ve set up a main site and a subdomain. Both standard media library uploads work OK. But when I enable BiddyPress and try to create an avatar I get…

    Blog 1

    Upload Failed! Error was: Unable to create directory /var/www/vhosts/powerofthefeminine.com/httpdocs//group-avatars/1. Is its parent directory writable by the server?

    http://powerofthefeminine.com/files/2010/04/okso_big-150×150.jpg

    Blog 2

    Upload Failed! Error was: Unable to create directory /var/www/vhosts/powerofthefeminine.com/httpdocs//group-avatars/2. Is its parent directory writable by the server?

    http://members.powerofthefeminine.com/files/2010/04/okso_big-150×150.jpg

    with upload path set to wp-content/uploads and leaving the full url in place I get a perfect upload but a bad return path with wp-content missing from url…

    Blog 1

    http://powerofthefeminine.com/uploads/group-avatars/1/avatar.jpg

    Blog 2

    http://powerofthefeminine.com/uploads/group-avatars/2/avatar.jpg

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘bad avatar urls in new instal’ is closed to new replies.
Skip to toolbar