Closed (fixed)
Project:
Signup Status
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2008 at 00:41 UTC
Updated:
17 Jan 2008 at 05:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
jrbeemanThis should be fixed with the latest commit (http://drupal.org/cvs?commit=93730). Give it a shot and let me know, though, as I'm having trouble recreating the issue. I won't mark this as fixed until I hear back.
Comment #2
westwesterson commentedI get the same error, but on a different line.
warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/sos/wwwroot/scsaveourshores.info/sites/all/modules/signup_status/signup_status.module on line912949.the invalid arguement error is gone though.Correction: These errors still show up on the signup status settings page:
warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /path/to/drupal/sites/all/modules/signup_status/signup_status.module on line 949.warning: Invalid argument supplied for foreach() in /path/to/drupal/sites/all/modules/signup_status/signup_status.module on line 137.Comment #3
westwesterson commentedDon't know if this will help, but on php seems finicky about mysql_fetch_object() and null or zero values.
http://us.php.net/mysql_fetch_object is chuck full of posts relating this, especially in php 5.2 and later. Maybe if we didn't use mysql_fetch_object() and used db_query instead. mysql_fetch_object() probably wouldn't work too well if someone were to port the module to postgre sql anyway.
Comment #4
westwesterson commentedi have now confirmed this on two separate machines. I don't know if this is the same issue, but status codes do not show up on the admin/settings/signup_status page.
Comment #5
westwesterson commentedthis patch got rid of the errors for me.
Comment #6
jrbeemanAh, of course - jeez... not sure why I was using mysql_fetch_object. Brain fart. Thanks for the patch. It's committed as of http://drupal.org/cvs?commit=93830
Comment #7
jrbeemanComment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.