Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting this error when upgrading from D6
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://127.0.0.1/d7/update.php?id=2384&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function fivestar_get_tags() in /var/www/d7/sites/all/modules/fivestar/fivestar.install on line 38
I also tried to upgrade without this module enabled and got the same issue, strange that i do not have this module enabled
mysql> select name, status from system where name='fivestar';
+----------+--------+
| name | status |
+----------+--------+
| fivestar | 0 |
+----------+--------+
1 row in set (0.00 sec)
Comments
Comment #1
marcoka CreditAttribution: marcoka commentedhad that too when updating. copied the function into the *.installl for updating :)
Comment #2
clemens.tolboomDrupal 7 runs the install files even when a module is disabled.
I tried to fix this by adding module_load_include
Unfortunately it failed on the next update
So what I did was
1. move the fivestar module out of the drupal tree.
2. run update.php
3. move fivestar back into the drupal tree
4. enable fivestar
5. visit update.php again.
My guess is fivestar should add
module_load_include('module', 'fivestar');
to update 7203. But that probably need more like a reload of the field definitions by acache_clear_all();
?Comment #3
ericduran CreditAttribution: ericduran commentedMarked #1336688: Fivestar breaks upgrade to Drupal 7 as a dupe of this.
Comment #4
clemens.tolboomSet to major as this is a pitb :(
I copied over the code from #1336688: Fivestar breaks upgrade to Drupal 7 thanks to SangersDrupalDude just as a reminder
Comment #5
marcoka CreditAttribution: marcoka commentedtoday again :)
above code fixes that
Comment #6
ericduran CreditAttribution: ericduran commentedpatches are always welcome :)
Comment #7
ericduran CreditAttribution: ericduran commentedThis is now fixed.
--
http://drupalcode.org/project/fivestar.git/commit/3c34067
Comment #8
dgtlmoon CreditAttribution: dgtlmoon commentedfantastic work!
Comment #9
ericduran CreditAttribution: ericduran commentedSorry it took so long :)
Comment #11
florisg CreditAttribution: florisg commentedit breaks on the module check:
1) enabled the module
2) commented out the include function
3) ran update
drush updatedb
The following updates are pending:
fivestar module :
7203 - Convert all existing fivestarnode_type settings into fields with exposed fivestar formatters
7204 - Preserve settings from fivestar_formatter_exposed_stars and convert to fivestar_formatter_default.
7205 - Rename fivestar 'select' widget to 'fivestar_select' @see http:drupal.orgnode1285456
Do you wish to run all pending updates? (y/n): y
Performed update: fivestar_update_7203 [ok]
Performed update: fivestar_update_7204 [ok]
Performed update: fivestar_update_7205 [ok]
Finished performing updates. [ok]
Thanks for the great lead to solving this :)
Comment #11.0
florisg CreditAttribution: florisg commentedadd debug