New User Reg

87325is

Joined: 2005-05-04
Posts: 8
Posted: Wed, 2005-05-04 00:43

I upgraded to holy hand grenade and i get this error when a new user its adding their name.

Fatal error: Call to undefined function: getemail() in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\register\classes\GalleryPendingUserHelper.class on line 218

i am running apache2/php 5 I can not seem to find getEmail any where. Anyone else getting this problem

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-05-04 03:25

try putting:
var_dump($admin);
just before the line mentioned above.. what gets printed when you try to register now?
seems like you have a bad id as a member of your site admins group.

 
87325is

Joined: 2005-05-04
Posts: 8
Posted: Wed, 2005-05-04 10:26

i deleted all the users and user premissions and that helped but now i get
is this an email problem? below is the code you wanted to see.

Error (ERROR_UNKNOWN) :
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\register\classes\GalleryPendingUserHelper.class at line 270 (gallerystatus::error)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\register\classes\GalleryPendingUserHelper.class at line 232 (gallerypendinguserhelper::_sendemail)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\register\UserSelfRegistration.inc at line 170 (gallerypendinguserhelper::sendadminemail)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 173 (userselfregistrationcontroller::handlerequest)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 79
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 70

object(galleryphotoitem)(24) { ["_width"]=> int(800) ["_height"]=> int(600) ["_mimeType"]=> string(10) "image/jpeg" ["_size"]=> int(49289) ["_canContainChildren"]=> int(0) ["_description"]=> string(18) "01_01_2003_084.jpg" ["_keywords"]=> NULL ["_ownerId"]=> int(5) ["_summary"]=> string(18) "01_01_2003_084.jpg" ["_title"]=> string(18) "01_01_2003_084.jpg" ["_viewedSinceTimestamp"]=> int(1112656549) ["_originationTimestamp"]=> int(1112656549) ["_pathComponent"]=> string(18) "01_01_2003_084.jpg" ["_id"]=> int(1243) ["_creationTimestamp"]=> int(1112656549) ["_isLinkable"]=> int(1) ["_linkId"]=> NULL ["_linkedEntity"]=> NULL ["_modificationTimestamp"]=> int(1112656549) ["_serialNumber"]=> int(1) ["_entityType"]=> string(16) "GalleryPhotoItem" ["_onLoadHandlers"]=> NULL ["_persistentStatus"]=> object(stdClass)(3) { ["flags"]=> int(0) ["modified"]=> array(0) { } ["originalValue"]=> array(0) { } } ["_parentId"]=> int(1062) }

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-05-04 10:42

:lol:
how did that happen?

87325is, can you tell a little bit about your G2 version? Did you ever upgrade? And if so from which version?
And what is your version now?
Did you do anything special, like edit the database manually?
Did you have other G2 installs on the same server prior to this install?

mindless, could this be a caching problem? But even if it's the G2 cache, a user item never transforms to a photoitem. Perhaps another caching problem, an Id from an old G2 install.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-05-04 13:57

dunno, but that problem seems gone. now it just can't send email.
do you have any smtp settings in site admin / general, or all blank?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-05-04 17:44

I've just added an email test in Site Admin / General.
Update from cvs in a few hours or update to tomorrow's nightly snapshot, then you can give this a try.. post the results of the email test.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-05-04 17:55

great news!

 
87325is

Joined: 2005-05-04
Posts: 8
Posted: Wed, 2005-05-04 22:23

I upgraded to holy hand grenade from dark fiber. i ended up haveing to remove two users manually because it would error if i tried to remove from gallery. After i removed the two users i could not edit i got the second error. does that help?