Skip to:

Check/change file upload directory in WordPress 3.0

  • Profile photo of Peterverkooijen


    I’m trying to run a Buddypress 1.1.3-based custom theme on WordPress 3.0. Most things work fine. The main problem is avatar upload. I’ve already made lots of progress copying bits of code from BP 1.2.5.

    Apparently a big difference between wpmu and WordPress 3.0 is where avatars are stored. This code in bp-core-cssjs.php….:


    …produces a warning:

    Warning: getimagesize(/group-avatars/1/mypicture.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /serverpath/wp-content/plugins/buddypress/bp-core/bp-core-cssjs.php on line 93

    The picture actually ended up here, already cropped and with a weird filename:


    Which settings decide where avatars are uploaded to? Can I edit them somewhere in the database to make sure?

    Which functions decide how the picture is uploaded? Is the coded name a WordPress 3.0 thing?

    Edit: I see get_option( ‘upload_path’ ); where is upload_path set? In a clean install of 1.2.5 + 3.0 it’s in database table wp-options. On my upgraded 1.1.3 based sites it’s in wp_1_options etc. -> there is no wp-options. Is that the problem? Should I create one?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check/change file upload directory in WordPress 3.0’ is closed to new replies.
Skip to toolbar