Running update.php when I upgrade from version 6.x-3.5 to 6.x-4.x-dev (2009-Nov-07), gives me the following error:
An error occurred. http://localhost/drupal/update.php?id=184&op=do <br /> <b>Fatal error</b>: Call to undefined function drupal_theme_rebuild() in <b>C:\wamp\www\drupal\sites\all\modules\dhtml_menu\dhtml_menu.install</b> on line <b>145</b><br />
Should I uninstall 3.5 before I install 4.x-dev?
Comments
Comment #1
tomsm commentedIf I uninstall version 3.5 first, the installation of 6.x-4.x-dev works fine.
Comment #2
janusman commentedSame here. Doing a clean install works fine, update doesn't =)
Comment #3
rpsuThere is nothing to uninstall with 6.x-3.5 (using /admin/build/modules/uninstall) so when you say "clean install" did you manage to install 6.x-4.x-dev on the same Drupal with previous version?
I tried to update 6.x-3.5 -> 6.x.4.x-dev with no success. I unselected DHTL module on admin/build/modules -page before updating dhtml-module (files) on server but still having the same issue.
Comment #4
tomsm commentedFirst, you have to disable the module, then you can uninstall it, I think. If there is nothing to uninstall, you can remove the module from your modules folder. Then install the new version.
Comment #5
rpsuThanks, I did. There were nothing to uninstall after I disabled dhtml-module and I was thinking if 6.x-4.x-dev -version needs to be installed on a fresh Drupal.
Comment #6
h0tw1r3 commentedLooks like the Drupal 7 function is being called. This patch fixes the error.
Once that function call is fixed, then you will get:
Which i believe is fixed by:
Comment #7
h0tw1r3 commentedComment #8
saloob commentedThan you guys! Champions!
Comment #9
bobby endarr ramdin commentedYo, h0tw1r3
Thanks for the patch, works great!!!
Peace
E
Comment #10
vuilI close the issue as Closed (outdated) because
drupal_theme_rebuild()does not exist anymore. Thank you!