Closed (fixed)
Project:
Advanced Poll
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Nov 2007 at 21:32 UTC
Updated:
16 Dec 2007 at 17:08 UTC
Jump to comment: Most recent file
I upgraded from drupal 4.7.8 to 5.3 last week without any problems. All my modules upgrades were fine after running the database upgrade scripts except this one. I was able to run the database script smoothly but unable to get the content of the advpoll node besides the comments of the node. Even going to the edit forms I get a warning:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'advpoll-binary_node_form' was given in /drupal5/includes/form.inc on line 218.
I don't know where to start as my php skills are so limited.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | advpoll_upgrade.patch | 822 bytes | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedAs our project page states, Drupal 4.7 is no longer supported, which is what happens when you wait a year to upgrade. But I'm a little interested in this because it is strange.
Advanced Poll was forked from Decisions on Oct. 28, 2006 and by Nov. 6 we had ported to the yet-to-be-released Drupal 5 and stopped any new feature development on 4.7. So really Advpoll was only developed for Drupal 4.7 for a week-long period, which is why we didn't care about migration code. Unfortunately for us we switched too early because Drupal 5 wasn't even released until mid-January 2007.
Anyway, the error you're getting is due to the Drupal 5 migration commit made on Nov. 5, 2006.
Run these two commands on your database and let me know if they fix the problem:
Comment #2
jmai commentedthe type are already advpoll_binary and advpoll_ranking so the above commands didn't do anything.
Comment #3
ChrisKennedy commentedOh I should have written this:
Comment #4
jmai commentedYes that did it. It works now. thank you ChrisKennedy
Comment #5
ChrisKennedy commentedOkay here's a patch to add it to the list of updates.
Comment #6
ChrisKennedy commentedOkay here's a patch to add it to the list of updates.
Comment #7
anders.fajerson commentedHmmm, if this is for upgrading from 4.7, does it have to be in it's own update function, can't we just put it in update_1?
Comment #8
ChrisKennedy commentedimo it's cleaner to put it in a separate update. Anyone who has already upgraded (e.g. jmai) can fix any broken advpoll nodes without having to manually run update #1 and all following updates (most of which will generate errors if they have already been run).
Comment #9
anders.fajerson commentedOk. In that case it's ready.
Comment #10
ChrisKennedy commentedFixed: http://drupal.org/cvs?commit=90008
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.