Skip to:
Content
Pages
Categories
Search
Top
Bottom

Unable to upload

  • Avatar of memorycrisis
    memorycrisis
    Member

    @memorycrisis

    Hello there, i’m having a problem with BP- Album+ Version 0.1.8.7 and was hoping you could help.
    I had no problems installing or activating the plug in but when I try to upload a photo I get the following error message….

    Please upload only JPG, GIF or PNG photos.

    The photos I am trying to upload are JPG. Any ideas please? Thanks!

Viewing 23 replies - 26 through 48 (of 48 total)
  • Avatar of andrew__k
    andrew__k
    Member

    @andrew_k-1

    @TheArtofBalance I realize now that you may have interpreted my code as a replacement for the entire file. I’ve added the following warning to my original post:

    THIS IS A FRAGMENT OF THE FILE, meant to replace the broken implementation of the ‘bp_core_check_avatar_type’ function ONLY. Don’t replace the whole file with this!

    Avatar of TheArtofBalance
    TheArtofBalance
    Member

    @theartofbalance

    @foxly When I saw all the changes in the new WordPress update, I knew immediately MANY developers were just given a swift and well placed kick in the nuts. I did not however realize exactly how much work that was. I’ve backed up my installs and I’m prepared to play with code, so swapping a couple pieces of the bp core is easy enough. especially if it’s a temporary patch.

    @andrew__k No, I understood your original post. I knew it was only a fragment of the file. I’m sure there’s more to the error than that, it was reported by another user. I’ve just replaced the code fragments and disabled bp album+ until the official fix is tested and released.

    Avatar of andrew__k
    andrew__k
    Member

    @andrew_k-1

    @TheArtofBalance Add this line to the beginning of the function…

    `print_r($file);`

    …to print the actual structure of the array you’re getting. That’s how I saw the structure wasn’t what the code assumed it was. Either you’re getting a known structure, and it has the right content (filename with accepted extension), or not.

    Unless there’s yet a another new array structure used by the framework (WP/BP), or it’s something like a hardware/platform error, the file type is genuinely invalid.

    I updated the example.

    Avatar of zkwc
    zkwc
    Participant

    @zkwc

    I wish I could help. @foxly – feel free to log into my site whenever you need to in order to test. That’s the least I can do.

    I certainly feel sorry for all the plug-in developers. WP has really NOT impressed me either. And they keep deleting my complaints about not communicating with developers and getting everyone on the same page before they just release an update and make everyone squirm around and try and fix all their mistakes. There really was no need to change the backend so drastically. It makes zero sense.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @TheArtofBalance
    @zkwc
    @andrew__k
    @memorycrisis

    We have a patched version (0.1.8.8) that fixes all problems caused by the WordPress 3,1 and BuddyPress 1.2.8 updates. Is should be up on our Google Code downloads page in a few minutes.

    http://code.google.com/p/buddypress-media/downloads/list

    ^C^

    Avatar of ewebber
    ewebber
    Participant

    @ewebber

    @foxly thanks for the speedy fixes. I have WP 3.1 and updated BP running on a test environment and all seems to work well again.

    Getting closer to the point where I can upgrade :)

    Avatar of zkwc
    zkwc
    Participant

    @zkwc

    @foxly – I’m impressed! Thank you very very much! IT WORKS!
    Everything is back to normal with this now. Happy!

    Avatar of bhogebrug
    bhogebrug
    Member

    @bhogebrug

    @foxly Thank you so much for the patch, one small problem no (well a huge problem actually. I reset my WP to 3.05 cause wel 3.1 sucks big time pluginwise at the moment.

    Now when i install BP-Album+ my admin is like unreachable. i can’t acces it no more. This is the error code:

    Fatal error: Cannot redeclare bp_album_admin()

    Admin isn’t vissible when that happens, i need to remove the plugin through FTP.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @bhogebrug

    The latest release in only compatible with WP 3.1 and BP 1.2.8

    ^F^

    Avatar of bhogebrug
    bhogebrug
    Member

    @bhogebrug

    @foxly… Okay great now i have problems with like all the other plugins. I will see if i upgrade.

    However My compliments for your quick results/fix

    Avatar of rdevarona
    rdevarona
    Member

    @rdevarona

    Am I the only one that can’t get the patch to work?

    I just installed a fresh instance of WP 3.1, BuddyPress 1.2.8 and the patched BP-Album+ version 0.1.8.8. When I try to upload an image (.jpg) I still get the “Please upload only JPG, GIF or PNG photos.”

    Any help would be greatly appreciated.

    Regards,

    rdv

    Avatar of foxly
    foxly
    Participant

    @foxly

    @rdevarona

    What that means is they changed something in WP 3.1 or BP 1.2.8 so that the correct error message isn’t getting sent back to bp-album. In otherwords, “Please upload only JPG, GIF or PNG photos.” really means “Please upload only JPG, GIF or PNG photos, under X megabytes in size”, where “X” is the max upload file size for your site.

    You can change it on the bp-album admin menu, but you also have to set it on the WP admin menu. It uses the LOWER of the two settings.

    We will get this fixed soon.

    ^F^

    Avatar of dba2k10
    dba2k10
    Member

    @dba2k10

    Hi everyone – I’m not using BuddyPress Media plugin but I was getting the same error with 1.2.8

    The solution was to download and install 1.2.7 (archived versions of buddypress are available online). 1.2.7 has no such issues.

    Avatar of almarma
    almarma
    Member

    @almarma

    I have also the problem to upload images, but I have seen that I can upload images with lowercase extension files (.jpg). With uppercase files (.JPG) I get the error.

    I’m using WP 3.1, BP 1.2.8 and Album+ 1.8.8 on a local testing enviroment under a MAMP server (Mac).

    Avatar of foxly
    foxly
    Participant

    @foxly

    @almarma
    @dba2k10

    Please get in touch with me via Skype or email, contact info is posted on my profile. I need about 15 minutes of your time to run some tests on your installs.

    ^F^

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    I’ve noticed this problem in the BP avatar code before.

    I haven’t checked, but does BP Media use the same code as BP avatar code for uploading?

    The lowercase/uppercase problem is noted here:

    http://trac.buddypress.org/ticket/3087

    Avatar of foxly
    foxly
    Participant

    @foxly

    @r-a-y

    I just checked the code, and in 0.1.8.x we’re directly calling wp_handle_upload() and it’s WordPress’s function that’s throwing the error …so at this point it looks like it’s *WordPress* that will not let you upload a file with capital letters in the extension (perhaps because of a new config parameter?) …more info as we continue debugging it.

    ^F^

    Avatar of foxly
    foxly
    Participant

    @foxly

    @r-a-y

    Spoke too soon …it’s bp_core_check_avatar_type() that is causing the problem, and exactly as you described.

    Thanks so much for the tip! …we’ll code-around this defect until the BuddyPress team gets it resolved.

    ^F^

    I have also the problem to upload images, but I have seen that I can upload images with lowercase extension files (.jpg). With uppercase files (.JPG) I get the error.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @polkin

    I just posted a fix on the SVN trunk. If you replace the file called “bp-album-screens.php” with this one, it should correctly handle files with upper-case extensions.

    Thanks!

    ^F^

    foxly
    I have also the problem to upload avatars, do you know as to correct it?

    Avatar of Tony Locke
    Tony Locke
    Participant

    @tonylocke

    I understand all the conversation, but don’t understand implementation. What would be the steps to actually do the fixes you guys suggest?

    1. I don’t know how to create a file called php.ini
    2. I wouldn’t know where to put the file or how to put it there.
    3. I downloaded the nightly build from http://code.google.com/p/buddypress-media/source/browse/bp_album/trunk/includes/bp-album-screens.php?edit=1
    but don’t know where to stick it.
    4. My BP-album admin doesn’t have an option for larger size pics.

    I know this lack of knowledge will make someone angry. I am learning as I go. I make WordPress themes with Artisteer. I’ve got paid to do a dozen. I loaded them up and get them working. I have a Godaddy account and I am learning FileZilla. Would you be willing to communicate this fix in ten easy steps?

    My site is http://www.OpenVolunteers.com and I’ve spent 4 hours trying to figure out this one issue. Killing me. All my friends are trying to make accounts as a favor for me to test things. They click out trying, give up, because the avatar upload doesn’t work.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @tonylocke

    See my response to your questions in the other thread you posted to.

    Thanks!

    ^F^

Viewing 23 replies - 26 through 48 (of 48 total)

You must be logged in to reply to this topic.