"Trying to get property of non-object" errors when enabling RSVP
| Project: | RSVP |
| Version: | HEAD |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hello
I was able to successfully deploy RSVP historically but I am having problems after a new CVS build of Drupal when enabling RSVP.
I installed it from CVS but also pulled the copy from a working test lab. I get the following errors upon enabling:
notice: Trying to get property of non-object in /var/www/www.example.com/sites/www.example.com/modules/rsvp-DRUPAL-6--2/rsvp.functions.inc on line 1959.
it is also reported for the following lines
1684
1700
2023
2024
The lines of the file are these respectively
$invite_target = rsvp_function_load_invitation_rid($rsvp->rid, $usr_caller->uid, false);
return _rsvp_function_view_roles_access($usr, $rsvp->rsvp_view_roles);
return _rsvp_function_view_roles_access($usr, $rsvp->response_view_roles);
$is_owner = ($rsvp->uid == $usr_caller->uid);
$is_co_owner = ($rsvp->uid_moderator != 0) ? ($rsvp->uid_moderator == $usr_caller->uid) : false;
Each page produces different erros but these were the ones on the modules page after enabling
I read the README and the install seemed pretty straight forward. Like I said I had this working in a test, and was building out a dev and a prod for my wedding site. Any help would be much appreicated.
Thanks
J

#1
Sound like you mixed up versions.
Please delete your old rsvp folder, then install the latest dev version and run the update function.
Then lets see how it goes.
Thanks,
Ulf
#2
Hey!!!
Thanks so much for the prompt reply!.
I was looking over my old posting and saw a similar issue I have had
Here is the info you requested in that forum
rsvp.module,v 1.22.2.37 2009/08/15 01:41:43 ulf1 Exp $
I will delete and update as requested
same error. Since I am pretty new here is what I did
Deleted the folder and version shown above
ran
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d rsvp-DRUPAL-6--2 -r DRUPAL-6--2 contributions/modules/rsvp/
Then CD'd to the build dir
then:
cvs update -dPr DRUPAL-6--2
With no connector enabled and enabling it I get the errors indicated above.
here is the updated info from the updated module
// $Id: rsvp.module,v 1.22.2.37 2009/08/15 01:41:43 ulf1 Exp $
Apparently I keep doing this. Here is a previous posting about a similiar issue, that I found when researching another similar issue and just found now (researching another similar issue):
http://drupal.org/node/376069
As you can see I have been trying to play for over 6 months.
Out of three Drupal 6 deployments I have gotten one up and running properly. I do not know what I am doing . to cause this but any help would be great!! T Hanks for your assistance (and dope module).
J
** update: So I ran through my deployment on my server that is working and I got the same issue when enabling your module. I do not know that this is your modules issue but it does occur only when enabling your module. I would still like to get to the root of this, since I have a known good setup on a box with a setup which is displaying this issue, does that help us to ID the problem at all?
Thanks for your time
**Another update: I have a script where I can repo this issue that does a complete install that I am building to deploy in my Prod. I am sure it can be slimmed down to onlly do what is needed for this issue. . .but I can repo it on any Ubuntu 9.04 (probably debian) box with root access by running this script. I have not tried other OSs but do not think the OS is related
#3
The easiest would be if you send me a link to your installation and account information (admin rights) that I can use to access your installation.
Then I can find out what is going on.
Or if that is not possible, we can try a webex session. Please send me your email address and then I can send you an invitation.
(Please use the personal contact form to send this info).
Thanks,
Ulf
#4
sent. Thanks.
#5
I have found an unidentified workaround that will work for me.
I am using CVS for the first time. After enabling the cvs deploy module, I could see what was a recommended build vs what I had. I changed all modules and the core from the latest dev builds to the presently recommended builds and the two modules I was getting errors on no longer produce errors upon enabling.
This is great news for me. I do not know if this means that you will see this later in life in greater abundence, but I appear to be working for now. Thanks for your prompt replies and I will still check up on this to see if you need help, or you can email me at the address I sent you.
#6
Ok,
I found the reason for the "Trying to get property of non-object" issues in the rsvp module and fixed it in the dev release.
The reason why you see those errors and I didn't can be found in drupal function drupal_error_handler in file drupal/include/commons.inc
if ($errno & (E_ALL ^ E_NOTICE)) {This code by default disables notices like "Trying to get property of non-object...". My strong guess is that you used a drupal version that did not disable the E_NOTICE bit and as such prints everything to the screen. A stock drupal version should not do (print) that.
~
Ulf
#7
Thanks a lot for your help and sorry for the silly issue!
#8
Automatically closed -- issue fixed for 2 weeks with no activity.