Needs review
Project:
Data
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2014 at 09:46 UTC
Updated:
20 May 2020 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrded commentedComment #2
maxilein commentedGot the same error here:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://..../update.php?op=selection&token=TBsomethingQ&id=588&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function data_get_all_tables() in /var/www/default/web/content/sites/all/modules/data/data_entity/data_entity.install on line 12 Call Stack: 0.0001 650056 1. {main}() /var/www/default/web/content/update.php:0 1.6358 15841328 2. _batch_page() /var/www/default/web/content/update.php:498 1.6362 15852192 3. _batch_do() /var/www/default/web/content/includes/batch.inc:80 1.6362 15852192 4. _batch_process() /var/www/default/web/content/includes/batch.inc:161 1.6369 15898976 5. call_user_func_array() /var/www/default/web/content/includes/batch.inc:284 1.6369 15899056 6. update_do_one() /var/www/default/web/content/includes/batch.inc:0 1.6369 15899840 7. data_entity_update_7000() /var/www/default/web/content/includes/update.inc:963
Comment #3
maxilein commentedHere is how I solved it:
1) enable all data modules.
-> You must enable the Schema module to install Data entity. (!) Which was the missing hint to me.
The missing function seems to be inside of the schema module.
2) re-run the updates.
3) disable unused modules again.
R, Max
Comment #4
joachim commented> The missing function seems to be inside of the schema module.
That's not true at all!
in data.module.
What may be happening is that if you enable Data Entity and Data at the same time, the circularity problem occurs.
Comment #5
seb_r commentedHi,
I ran into the same issue while updating an old site.
I made a patch that should fix it.
Seb
Comment #6
seb_r commentedComment #7
seb_r commentedComment #8
roderik(Just doing some reviews while browsing the issue queue for a.o. patches I'd need to apply...)
I have not tested the below, but while looking into the conversation, two things occurred to me:
1) The patch in #5 is fine, but for a different issue: it patches hook_update_7000() which is only executed when updating from D6. The patch for the original description was still missing.
2)
From the stack trace (and the install command), it doesn't seem like that is the case for the original reported issue.
Peeking into the code that causes this:
Anyway: fix attached. I dumped comments into it, and given the pre-existing statement that this code hairy anyway, IMHO this doesn't need more testing / figuring out if this is the right fix for the reported issue.
Patch #5 is included. I'm not including an interdiff because the two hunks in the patch are nicely separate.