Hi, I posted this on the Upgrade support forum too.
I upgraded from 5.2 to 5.3 the most conservative way, by installing a clean 5.3 and then copying the /files and /sites and /themes over from my working 5.2 site. The modules under /sites/all/modules were also copied, of course.
I have the most recent release version of Audio (5.x.1.3) from the Drupal site.
I ran the update.php script as user 1 on my trial site.
I immediately started to see things like
* user warning: Table 'drup51-scifi.audio_file' doesn't exist query: SELECT
origname, filename, filepath, filemime, filesize FROM audio_file f WHERE f.vid = 62 in
/var/www/html/drupal-5.3/includes/ database.mysql.inc on line 172.
* user warning: Table 'drup51-scifi.audio_file' doesn't exist query: SELECT
origname, filename, filepath, filemime, filesize FROM audio_file f WHERE f.vid = 62 in
/var/www/html/drupal-5.3/includes/ database.mysql.inc on line 172.
I went into the actual MySQL database and confirmed that there was no such table! Then I looked at the audio.install file in the /sites/all/modules/audio area, and read this:
<?php
// $Id: audio.install,v 1.13 2007/02/15 16:37:47 drewish Exp $
/**
* Install the initial schema.
*/
function audio_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("
CREATE TABLE {audio} (
`vid` int(10) unsigned NOT NULL default '0',
`nid` int(10) unsigned NOT NULL default '0',
`title_format` varchar(128) default '',
`play_count` int(10) unsigned NOT NULL default '0',
`download_count` int(10) unsigned NOT NULL default '0',
`downloadable` tinyint(1) NOT NULL default '1',
`fileformat` varchar(10) NOT NULL default '',
`sample_rate` int(10) unsigned NOT NULL default '0',
`channel_mode` varchar(10) NOT NULL default '',
`bitrate` float unsigned NOT NULL default '0',
`bitrate_mode` varchar(4) NOT NULL default '',
`playtime` varchar(10) NOT NULL default '',
PRIMARY KEY (`vid`)
) /*!40100 DEFAULT CHARACTER SET utf8 */;
");
db_query("
CREATE TABLE {audio_file} (
`vid` int(10) unsigned NOT NULL default '0',
`origname` varchar(255) NOT NULL default '',
`filename` varchar(255) NOT NULL default '',
`filepath` varchar(255) NOT NULL default '',
`filemime` varchar(255) NOT NULL default '',
`filesize` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`vid`)
) /*!40100 DEFAULT CHARACTER SET utf8 */;
etc etc..
I then deactivated the audio module (and confirmed, which showed me a warning that the audio data tables would be removed), and then re-installed it.
I continued to get the error; no table audio_file.
I finally fixed this by manually creating the table.
Another problem: the field name in the audio table 'file_format' is not correct; I kept getting messages indicating that the proper name was 'fileformat' (which went away when I manually modified the fieldname.
This probably ought to be fixed. Thanks!
Comments
Comment #1
drewish commentedi've got no idea why you'd be running into that. did you get any error messages when you reinstalled the audio module explaining why the table wasn't created? the .install file hasn't changed since the 5-0.3 release. i don't know where you're seeing file_format either. it's fileformat in all the tables and code i can see.
Comment #2
hound commentedNegatory, dude. I have no idea why this occurred.
Sample messages from log filtere for type='php'
Comment #3
drewish commenteddid you ever use any of the 2.x releases?
Comment #4
hound commentedRe: 2.x releases; no, not that I can recall. Certainly not with this site.
Comment #5
hound commentedJust did this again on another site - here is the error:
Comment #6
hound commentedI see that the previous 'error' is really a 'warning' - and the download_count field is in fact added.
Comment #7
drewish commentedi'm assuming that this is working for you now. if not please re-open this issue with more detail.