With Drupal 4.7, cvs and 4.7 versions of gallery module, I am getting an error when cron runs:
Fatal error: Call to a member function getId() on a non-object in /yadda/yadda/modules/gallery/gallery_roles.inc on line 50
As well, watchdog is showing the following errors:
Error getting Gallery Group Id from Drupal Role Id Drupal Role Id: 0
Error (ERROR_MISSING_OBJECT) : 0 GalleryGroup
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 142 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 2424 (GalleryEntityHelper_simple::loadEntityByExternalId)
* in /yadda/modules/gallery/gallery_roles.inc at line 44 (GalleryCoreApi::loadEntityByExternalId)
* in /yadda/modules/gallery/gallery_user.inc at line 143
* in /yadda/modules/gallery/gallery_user.inc at line 66
* in /yadda/modules/gallery/gallery.module at line 84
* in /yadda/modules/user.module at line 19
* in /yadda/modules/user.module at line 107
* in /yadda/modules/paypal_subscription/paypal_subscription.module at line 146
* in /yadda/includes/module.inc at line 205
* in /yadda/includes/module.inc at line 205
* in /yadda/cron.php at line 26
Another error is:
Error updating Gallery user
Error (ERROR_BAD_PARAMETER)
* in modules/core/classes/GalleryEmbed.class at line 350 (GalleryCoreApi::error)
* in /yadda/modules/gallery/gallery_user.inc at line 137 (GalleryEmbed::createUser)
* in /yadda/modules/gallery/gallery_user.inc at line 66
* in /yadda/modules/gallery/gallery.module at line 84
* in /yadda/modules/user.module at line 19
* in /yadda/modules/user.module at line 107
* in /yadda/modules/paypal_subscription/paypal_subscription.module at line 146
* in /yadda/includes/module.inc at line 205
* in /yadda/includes/module.inc at line 205
* in /yadda/cron.php at line 26
This last error doesn't kill cron, but it shows up in multiples of 3 in watchdog. Any ideas?
Comments
Comment #1
kiz_0987 commentedThis should be partially fixed in the latest gallery.module CVS. It will reduce the errors, but not the original source of the error -- is this still a problem?
Comment #2
lunas commentedI'm not sure, I disabled the gallery module is it wasn't functioning right and I couldn't figure out those errors. If I get ambitious I'll reinstall and see if anything changes.
Comment #3
jivyb commentedI get a similar error but I've only noticed it so far when I add a new drupal user:
Fatal error: Call to a member function on a non-object in /home/.../public_html/modules/gallery/gallery_roles.inc on line 156
This is v 1.2 2006/03/24 of gallery, though it happened with the latest one too. The user is added like normal, I just get this error page when I try to add.
Thanks for your work on this. Let me know if you have any troubleshooting questions I might be able to help answer...
Comment #4
kiz_0987 commentedPlease update to the latest CVS version and retry.
Comment #5
kiz_0987 commentedComment #6
kiz_0987 commented