Closed (fixed)
Project:
Register with Picture
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2009 at 12:38 UTC
Updated:
2 Mar 2011 at 22:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex.ihlo commentedI've never done a patch before, where do you add this to?
Comment #2
marcingy commentedCleaner version of the patch that uses a check for $file rather than !$file. But yes checking for the presence of the file solves the file not found error. And alex.ihlo - http://drupal.org/patch/apply shows how to apply a patch.
Comment #3
alex.ihlo commentedYeah I found that before I replied to ur first post. But I just don't understand how to access the command line in the cPanel of my host, like that page says to do. ...I should've said that in my first reply-
Either way, thanks for the updated patch, definitely necessary.
Comment #4
vm commentedyou do not access the command line in cPanel. You need shell access and not all hosts allow this. Your's may, if you prefer command line. however, you can set up something like cygwin (if using windows) on your localmachine and patch the files, then upload them.
Comment #5
v8powerage commentedmarcingy - Your patch isn't working, patch from first post is OK
Comment #6
SamRose commentedPatch http://drupal.org/files/issues/file_check.patch in http://drupal.org/node/446094#comment-1713054 above working for me
Comment #7
ktonini commented2nd patch worked for me too. Thanks!
Comment #8
Jaza commentedAlso working for me. Let's get it committed, thanks!
Comment #9
jacobangel commentedwouldn't this be cleaner?
Comment #10
SamRose commentedThe patch at http://drupal.org/node/446094#comment-1713054 may be causing me problems. All user images on profile page disappear after a new user uploads, until cache is cleared.
Comment #11
SamRose commentedTurned http://drupal.org/node/446094#comment-1874748 into a patch and tested. No errors found.
Comment #12
Turkish Delight commentedFirstly, I want to say that I've applied the patch in comment #11, and it works beautifully.
Random question for you all however. During my tests, I created a user and ran into the error message when no picture was uploaded. However, I decided that some users may decide to go and recreate their account, in which case I receive a "the picture was resized" message. When I check my avatar file I find that no picture was uploaded (as I imagine no user could be associated with that picture due to the fact that a user was created previously), however I'm curious, is that resized picture floating around in cache somewhere? Thanks!
Comment #13
shunshifu commentedPatch in #11 worked beautifully for me too
Comment #14
hadsie commentedThis works for me too. I've attached a patch which is identical to #11 but with the spacing fixed on the case 'insert' line.
This bug also turns up when programmatically calling user_save to insert new users.
Comment #15
kbahey commentedMarking #313588: Error Message Displayed When User Registers with No Avatar (f.e. automatically generated by listhandler) as a duplicate of this issue.
I am attaching a pre-patched module that has been tested. It also contains some formatting changes to make the code more readable.
@mmilano, if you are busy, I can commit this and create a new stable release 6.x-1.1. Many people need this. You don't need to do anything.
Comment #16
kbahey commentedFixed in 6.x-1.1, available here.
Comment #18
totocol commentedHI,
Thanks for this module.
I have installed version 6.x-1.1 but still does not fixed the issue. Have tested many things and it only happens when user does not select a picture on registration so it is down to this module.
Any alternatives fixes?
Raul
Comment #19
vm commentedthe latest version of the module should be used which is currently 1.7
Comment #20
totocol commentedThank @VM
Just an update. I finally found what was wrong. I had accidentally copied an old version of reg_with_pic in another module's folder so I had to do a search on the database to actually find out if I had any reg_with_pic files anywhere
Thanks for the response anyway