Haven't debugged this yet, I looked and looked again, and fetchAllAssoc() is surely still a valid method name for db_query().

An error occurred.
Path: /batch?id=1&op=do
Message:
Fatal error: Call to undefined method SelectQuery::fetchAllAssoc() in /home/catch/www/7/modules/poll/poll.module on line 444

Call Stack:
0.0001 107208 1. {main}() /home/catch/www/7/index.php:0
0.0589 2487688 2. menu_execute_active_handler() /home/catch/www/7/index.php:22
0.0592 2542320 3. call_user_func_array() /home/catch/www/7/includes/menu.inc:454
0.0592 2542320 4. system_batch_page() /home/catch/www/7/includes/menu.inc:0
0.0593 2544152 5. _batch_page() /home/catch/www/7/modules/system/system.admin.inc:2058
0.0598 2552728 6. _batch_do() /home/catch/www/7/includes/batch.inc:63
0.0598 2552728 7. _batch_process() /home/catch/www/7/includes/batch.inc:141
0.0598 2558720 8. call_user_func_array() /home/catch/www/7/includes/batch.inc:245
0.0599 2558800 9. _simpletest_batch_operation() /home/catch/www/7/includes/batch.inc:0
0.0603 2807984 10. DrupalTestCase->run() /home/catch/www/7/modules/simpletest/simpletest.module:194
14.3269 19899472 11. DBLogTestCase->testDBLog() /home/catch/www/7/modules/simpletest/drupal_web_test_case.php:412
20.9368 19996968 12. DBLogTestCase->verifyEvents() /home/catch/www/7/modules/dblog/dblog.test:36
33.8719 20762736 13. DBLogTestCase->doNode() /home/catch/www/7/modules/dblog/dblog.test:171
34.9601 20795456 14. DrupalWebTestCase->drupalGetNodeByTitle() /home/catch/www/7/modules/dblog/dblog.test:274
34.9601 20796320 15. node_load_multiple() /home/catch/www/7/modules/simpletest/drupal_web_test_case.php:678
34.9602 20796912 16. entity_load() /home/catch/www/7/modules/node/node.module:811
34.9602 20797440 17. DrupalDefaultEntityController->load() /home/catch/www/7/includes/common.inc:5980
34.9621 20803376 18. NodeController->attachLoad() /home/catch/www/7/includes/entity.inc:135
34.9622 20807152 19. poll_load() /home/catch/www/7/modules/node/node.module:3193
CommentFileSizeAuthor
#3 execute.patch848 bytescatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kscheirer’s picture

I just ran into this too.

Fresh copy of drupal head, new db. Enabled poll module, went to create new poll. Upon saving the new node:

Fatal error: Call to undefined method SelectQuery::fetchAllAssoc() in /Users/karl/www/dh/modules/poll/poll.module on line 444 
webchick’s picture

Is this a db_query() vs. db_select() confusion? Hit that with another patch recently.

catch’s picture

Component: dblog.module » poll.module
Status: Active » Needs review
FileSize
848 bytes

It was a missing ->execute(). Then that found a ->condition() error too.

kscheirer’s picture

Status: Needs review » Reviewed & tested by the community

Patch worked great, thanks!

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

webchick’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.