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.
When upgrading from 7.x-2.0-alpha3 to either 4 or 5 I get the following error message in my Drupal 7.8 install... If there's any specific information you need let me know and I will get it to you.
DatabaseSchemaObjectDoesNotExistException: Cannot add field video_queue.duration: table doesn't exist. in DatabaseSchema_mysql->addField() (line 320 of /includes/database/mysql/schema.inc).
Comment | File | Size | Author |
---|---|---|---|
#42 | Update-7202-missing-video_queue-table-1275154-42.patch | 6.11 KB | kyletaylored |
#39 | mymodule.zip | 1.73 KB | citricguy |
Comments
Comment #1
heshanlkIf table doesn't exists that means you haven't install the module properly. Please check if you already have video_queue table exits?
We highly recommend to us http://drupal.org/project/videokit
Comment #2
nitmd CreditAttribution: nitmd commentedUpdating to the latest video module gives me similar; I also tried uninstalling the old module and reinstalling the new, which didn't fix it. I am fairly new at drupal, and patching drupal core, as mentioned in the videokit page, is something I really don't want to touch. Is there any other solution? If I read phpmyadmin output correctly, the video_queue table does not exist.
video module
Update #7202
Failed: DatabaseSchemaObjectDoesNotExistException: Cannot add field video_queue.duration: table doesn't exist. in DatabaseSchema_mysql->addField() (line 320 of /home/xxx/public_html/xxx.com/drupal7/includes/database/mysql/schema.inc).
Comment #3
theullrich CreditAttribution: theullrich commentedHaving the same problem. Idk what you mean about not installing it properly. I have been useing it for weeks now.
Comment #4
heshanlkAre you using MySQL? I tried on MySQL and there was no any issue.
Comment #5
revu CreditAttribution: revu commentedMine is the same issue and I am using MySQL :(
Comment #6
heshanlkPlease check do you already have video_queue table installed?
Comment #7
revu CreditAttribution: revu commentedNo, I can't find video_queue table in the database.
Comment #8
heshanlkIt seems your installation has failed when you install video module. It should be there if you successfully install the video module. Let me know which is the version you used?. Please try re-installing module and see video_queue is there? and they try upgrading the module. I cannot see any possible issues why video_queue missing on your system. I haven't faced any such situation when I install and upgrade the module. Please confirm after upgrade of the new installation. Its possible to upgrade from 7.x-2.x version to any later versions of video module.
Comment #9
heshanlkComment #10
nitmd CreditAttribution: nitmd commentedI tried deleting the video module from the command line, because the module page wouldn't let me do it. I reinstalled and had the same problems as above. Today I tried uninstalling it from the module page, but although I have deleted the video fields in my content (seemed the only way to get this done), now it won't let me delete it because:
Required by: Drupal (Fields pending deletion)
I can't find any information on getting the fields to get past this pending status, so I can't uninstall. I am using mysql.
Comment #11
kbenn CreditAttribution: kbenn commentedSame error after updating to drupal 7.8 and module video-7.x-2.1-alpha2
Comment #12
revu CreditAttribution: revu commentedI have the latest one 7.x-2.1-alpha2. I just managed to reinstall the module and it went without any glitches but when it came to update the database, the same error message as below appeared. It is just a bug?:
Comment #13
heshanlkPlease provide steps to re-produce this error.
Comment #14
revu CreditAttribution: revu commentednow when I created a new video content type and tried to upload the video, the following error message is displayed and it seems to again point towards same database link missing. Is there a way i could do it manually or how can I get back to previous version of the module?
Comment #15
heshanlkEvery one should note that there is no any direct upgrade method to 7.x-2.x version from older version of video module ie. 7.x-1.x. You have to manually upgrade your module as its a little bit of tricky task.
Comment #16
revu CreditAttribution: revu commentedSo what is the process/procedure that we need to follow if we want to do it all over again without running into any dead ends? I'll uninstall the version, clear fields in database and then what?
Normally one would again install the module. But this hasn't worked here. Can you please outline how you would do? Thanks Heshan!
Comment #17
heshanlkPlease read the release note beforehand.
Comment #18
nitmd CreditAttribution: nitmd commentedOn the command line, downloaded the video module, deleted the old module, extracted the new module, ran update.php Same 7202 error. I, too, would appreciate instructions on how to manually update the database to allow installation of the new module.
Also, from the main page:
7.x-2.x version comes with Zencoder so to work it properly you have to install couple of additional module.
You can download all relevant module from VideoKit profile http://drupal.org/project/videokit
How to configure Zencoder with 7.x-2.x version http://heididev.com/video-module-7x-2x-configure-zencoder
Does that mean one MUST patch drupal core to use the video module?
Note: obviously, from the successful installation note below, patching core is not necessary for installation of the module. I suppose the question still applies for use of Zencoder.
Comment #19
heshanlkFollow these steps.
1. Uninstall the video module (Go to module page on website and uninstall from there).
2. Copy the latest version and install the module
3. Check if you have installed the video_queue, video_output tables
Comment #20
nitmd CreditAttribution: nitmd commentedThis is the process I followed at least twice before; just did it again but got a different result. After uninstall through drupal, when I tried to reinstall it, drupal reports that video is already installed. Go to the command line, delete video. Go back into drupal, reinstall video. This time the update runs without error. Once the modules are activated the video_queue and video_output fields are present.
Thank you.
Comment #21
kbenn CreditAttribution: kbenn commentedI followed these steps delete video, and reinstall video-7.x-2.x-dev.
I update and have this error :
Update #7202
* Failed: DatabaseSchemaObjectDoesNotExistException : Impossible d'ajouter le champ video_queue.duration : la table n'existe pas. dans DatabaseSchema_mysql->addField() (ligne 320 dans /homez.232/neotissi/www/cms/includes/database/mysql/schema.inc).
video_queue and video_output fields are not present in mysql ?
What is the issue ?
Comment #22
nitmd CreditAttribution: nitmd commentedWhen I checked during my installation, I found the tables did not exist in mysql until the module was activated.
Comment #23
aacraig CreditAttribution: aacraig commentedThe tables in question are created when the module is first installed.
It looks like these tables were added in at some point but no update installs the tables for those who had the module installed before the tables were added, and have simply followed the upgrade path as releases have been added.
The module author should release a new update that adds these tables, as it's clear this problem is affecting a number of people (anyone who installed the module prior to the existence of these tables).
If it helps, Drush updated me today directly from 7.x.1 to 7.x.2, which may explain the problem?
At any rate, for those of you who, like me, cannot simply uninstall the module and reinstall it (which DOES solve the problem) as you will lose any configuration settings (and all other data in the video* tables that get removed as a part of the uninstall process) here is some code to add the tables.
I have put this code in my own custom module's .install file. If you don't have a custom module, you may want to create one and add this code to it.
Of course the best place for this code would be in the Video module's .install file as an update :)
Here's a step-by-step guide for those of you who aren't developers.
Create a folder in your modules directory:
In the directory, create a file called mymodule.info and insert the following
Create a second file called mymodule.install and insert the following
Then enable your module in your preferred method.
I did this as an update, so I haven't tested this as part of the install process. If you have trouble, change the name of the function to 'mymodule_update_7001', then enable and run update.php
In the end, you'll get the new tables added without having to delete any existing data.
Comment #24
revu CreditAttribution: revu commentedYes, you need to follow the steps very closely or else it will not work. Also remember to put site on maintenance mode as you would do with any upgrades. Read more here, if you need to: http://drupal.org/upgrade
I also had similar issues but I was probably jumping steps until Heshan caught me :P
Comment #25
aacraig CreditAttribution: aacraig commentedTrue, though it looks like this new version of Video is a fairly radical departure from the 7.x.1 branch. Patching core is pretty scary.
In fact, even with the tables added in correctly, there are too many changes so the only solution is to uninstall and reinstall.
Comment #26
heshanlk7.x-2.x is complete redesign and there is no patch apply to the core.
I will release never version of the module with more tested results, unfortunately all the time I install the video module the video_queue table was there so ntng to reproduce the issue you have.
As far as I believe this could happen if you try to upgrade from 7.x-1.x and in release note I clearly mentioned there is no direct upgrade method. You have to manually upgrade the module.
Comment #27
nitmd CreditAttribution: nitmd commentedPerhaps some of the confusion is in how to manually upgrade the module.
Comment #28
studiotaffi CreditAttribution: studiotaffi commentedHi Heshan!
Is it a problem if we build manually the tables from the mysql prompt?
Can you give us the columns description to do that?
I've the same issue... it's not possible to start from scratch with the module installation if you already have many videos already uploaded.
thank you!
Marco
Comment #29
cvining CreditAttribution: cvining commentedWhen trying to uninstall Video, I got that "Fields Pending Deletion" issue. There was a lingering video field entry in the 'field_config' table. Delete that entry (using phpMyAdmin, say), then I was able to go ahead and uninstall Video module.
-- Cronin
Comment #30
Pyro411 CreditAttribution: Pyro411 commentedSorry I did not see the case updates, I manually removed the files and pushed the files from the new package up via scp after doing that the database updated properly.
Comment #31
pengie CreditAttribution: pengie commentedOk. This is a seemingly impossible task.
Have removed all the tables I can from php admin that involve the word video. Have deleted all content types involving video. No video to be seen at all anywhere in my installation as far as I know. Deleted cache, run cron... close browser, reopen.
Downloaded latest release. Extracted. Uploaded. Install. Update... get 7202 error.
Check database, still no video tables to be seen. None are created when I install the module.
I assume that I have manually installed, but seriously? Is there something I am missing? I've spent over 3 hours trying to get this module to work. I DO NOT want to use youtube to display videos.
Comment #32
Ron Williams CreditAttribution: Ron Williams commentedWhen using http://drupal.org/node/1275154#comment-4990420, you must have a blank mymodule.module file to enable the module. This is required in cases where the site does not have a custom module already.
Comment #33
pengie CreditAttribution: pengie commentedAfter reading through this post again... Went through and checked field_config in the database... sure enough there was a video field in there that wasn't displaying on the site.
If after multiple reinstalls you are having this issue. CHECK THERE!
Now it works great, sorry for my previous aggravated posting.
Comment #34
porg CreditAttribution: porg commentedI upgraded from 6.x-4.x-dev to 7.x-2.2-beta3 (published 2011-09-27) and got the same error message as the issue submitter.
Can I just ignore that message?
Will there be a module update?
Must I perform a manually fix at my installation?
Comment #35
heshanlkYou should manually fix it.
Comment #36
marcorai CreditAttribution: marcorai commentedAaron's code (http://drupal.org/node/1275154#comment-4990420) with blank mymodule.module file works for me.
Anyway, I have this issue during migration about the field field_video: "Missing field module: 'filefield'. This field cannot be migrated".
Any ideas? The issue is reported here: http://drupal.org/node/1295286
Comment #37
porg CreditAttribution: porg commentedHow?
Comment #38
Nicholas Cook CreditAttribution: Nicholas Cook commented(#23) thanks aacraig for this, worked perfectly for me. updated and happy with no loss of data :)
Comment #39
citricguy CreditAttribution: citricguy commented(#23) worked perfectly. I needed to add one additional empty file (likely due to a stupid hack I made) but worked after adding mymodule.module to the directory.
Thank you for writing out the instructions @aacraig You saved me days of time.
Comment #40
mgiffordThanks for the zip @citricguy - that worked for me.
Trick is why isn't this fixed in the .install so that we don't run into this in the first place?
Comment #41
aacraig CreditAttribution: aacraig commentedIt's not in .install because the module author opted to not offer an automated upgrade path from the previous version to this one.
Comment #42
kyletaylored CreditAttribution: kyletaylored commentedThis does not work as designed, and a simple patch can fix it.
I'm working on a site running 7.x-2.10, and the error still persists. By taking the update from #23, just prepend it to update 7202 since that is the update that fails.
If the tables already exists, no problem, it'll just skip them. But if they don't exist, this will create the tables and let the rest of the updates continue without halting.
Comment #43
kyletaylored CreditAttribution: kyletaylored commentedComment #44
TonyK CreditAttribution: TonyK commentedUp.
Drupal 6 version of the module doesn't have video_queue, video_preset and video_thumbnails module. You should write hook_update_7000() to correctly move the data from the old tables.
Comment #45
heshanlkComment #46
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commented@tonyk, I think the Drupal 6 to 7 upgrade path should be a new issue since this is specifically a 7.x issue. No need to complicate things and bloat the patches.
re-tested patch against the latest dev, still applies cleanly.
Comment #47
heshanlk