I upgraded a very minimal (3 pages) 5.5 site to 6-beta4. The system works just fine under D5.5. On firing up D6, I get:
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\www\drupal-6\includes\menu.inc on line 316.
* user warning: Unknown column 'language' in 'where clause' query: SELECT src FROM url_alias WHERE dst = 'node/1' AND language IN('en', '') ORDER BY language DESC in C:\www\drupal-6\includes\path.inc on line 79.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\www\drupal-6\includes\menu.inc on line 316.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 442.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 442.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 442.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 442.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 442.
* user warning: Unknown column 'serialized' in 'field list' query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'theme_registry:' in C:\www\drupal-6\includes\cache.inc on line 25.
* user warning: Unknown column 'serialized' in 'field list' query: UPDATE cache SET data = 'a:122:{s:24:\"block_admin_display_form\";a:7:{s:8:\"template\";s:38:\"modules/block/block-admin-display-form\";s:4:\"file\";s:29:\"modules/block/block.admin.inc\";s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:13:\"modules/block\";s:11:\"theme paths\";a:1:{i:0;s:13:\"modules/block\";}s:20:\"preprocess functions\";a:2:{i:0;s:19:\"template_preprocess\";i:1;s:44:\"template_preprocess_block_admin_display_form\";}}s:17:\"color_scheme_form\";a:6:{s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:13:\"modules/color\";s:8:\"function\";s:23:\"theme_color_scheme_form\";s:11:\"theme paths\";a:1:{i:0;s:13:\"modules/color\";}s:20:\"preprocess functions\";a:1:{i:0;s:19:\"template_preprocess\";}}s:13:\"comment_block\";a:6:{s:9:\"arguments\";a:0:{}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:15:\"modules/comment\";s:8:\"function\";s:19:\"theme_comment_block\";s:11:\"theme paths\";a:1:{i:0;s:15:\"modules/comment\";}s:20:\"preprocess functions\";a:1:{i:0;s:19:\"template_preprocess\";}}s:22:\"comment_admin_overview\";a:6:{s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:15:\"modules/comment\";s:8:\"function\";s:28:\"theme_comment_admin_overview\";s:11:\"theme paths\";a:1:{i:0;s:15:\"modules/comment\";}s:20:\"preprocess functions\";a:1:{i:0;s:19:\"template_preprocess\";}}s:15:\"comment_preview\";a:6:{s:9:\"arguments\";a:4:{s:7:\"comment\";N;s:4:\"node\";N;s:5:\"links\";a:0:{}s:7:\"visible\";i:1;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:15:\"modules/comment\";s:8:\"function\";s:21:\"theme_comment_preview\";s:11:\"theme paths\";a:1:{i:0;s:15:\"modules/comment\";}s:20:\"preprocess functions\";a:1:{i:0;s:19:\"template_preprocess\";}}s:12:\"comment_view\";a:6:{s:9:\"arguments\";a:4:{s:7:\"comment\";N;s:4:\"node\";N;s:5:\"links\";a:0:{}s:7:\"visible\";i:1;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:15:\"modules/comment\";s:8:\"function\";s:18:\"theme_comment_view\";s:11:\"theme paths\";a:1:{i:0;s:15:\"modules/comment\";}s:20:\"preprocess functions\";a:1:{i:0;s:19:\"template_preprocess\";}}s:16:\"comment_controls\";a:6:{s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:15:\"modules/comment\";s:8:\"function\";s:22:\"theme_comment_controls\";s:11:\"theme paths\";a:1:{i:0;s:15:\"modules/comment\";}s:20:\"preprocess
* user warning: Unknown column 'info' in 'field list' query: SELECT info FROM system WHERE type = 'theme' AND name = 'tgsite' in C:\www\drupal-6\modules\system\system.module on line 867.
........... a lot more of this ...............
* warning: array_map() [function.array-map]: Argument #2 should be an array in C:\www\drupal-6\modules\system\system.module on line 868.
* warning: array_keys() [function.array-keys]: The first argument should be an array in C:\www\drupal-6\includes\theme.inc on line 1666.
* warning: Invalid argument supplied for foreach() in C:\www\drupal-6\includes\theme.inc on line 1666.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\www\drupal-6\includes\menu.inc on line 316.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\www\drupal-6\includes\menu.inc on line 316.
Comments
Comment #1
JirkaRybka commentedI've upgraded successfully a couple of times... Are these messages shown on your update.php run, or afterwards on the site itself? If the latter, what update.php said (any error messages, failures on the results page)? You executed update.php immediately after replacing the code, right? Also your configuration might be useful to know, if the above didn't suggest anything.
Comment #2
nancydruThis is happening immediately upon accessing the site - before I can even get to update.php.
Comment #3
JirkaRybka commentedYou should go to update.php directly, i.e. type in your browser something like www.example.com/update.php - if you try to access the actual site before update.php, then you'll get all sorts of errors, that's just natural. You're not supposed to visit the site before update.php.
Documentation: http://drupal.org/upgrade/tutorial-introduction
Honestly, I see now, that this aspect is probably not emphasized enough on that page... Perhaps you can add a comment in there.
Otherwise I assume this is 'fixed', because we already found the cause of your problem. Feel free to change status if you think otherwise.
Comment #4
nancydruAt the beginning of update.php (the "Continue" button):
Comment #5
JirkaRybka commentedHmm, this smells to me like some re-appearance of the bug http://drupal.org/node/179143 (which got fixed already, though)
Which modules are enabled on your site? Are they only core modules? Can you try with the latest development version (6.x-dev) ?
The error message clearly shows that the system attempts to read menu items and some node (the last error is on node_load() ), but that should definitely *not* happen on update.php run. Your configuration must be different from what we tested here.
Comment #6
nancydruI went ahead and continued any way. The updates succeeded.
But I have no theme on my site and the "Admin" menu gives me an "access denied."
EDIT: Hmm, this only occurred in IE6. FF2 went right in.
Comment #7
nancydruThe menu is all messed up. Navigation doesn't even show in its normal block. The two pages that were menu ITEMs and now MENUs. One of those pages has also become a block.
The theme in sites/xxx/themes is not showing in the list.
Comment #8
JirkaRybka commentedThis is all funny, I can't make any sense in that...
Are you sure that:
- The site was OK before upgrade?
- You followed the documentation at http://drupal.org/upgrade/tutorial-introduction ?
- You disabled all non-core modules and themes (and better removed entirely) before update?
- Your server environment is compatible (might be good to know the config)
Comment #9
nancydruYes it was, but I am now completely rebuilding it in 5.5 before I try again.
I believe so.
There were no non-core modules, and few core modules.
Well, I run 11 test sites on my PC, currently under 5.5, so I assume it's compatible.
Comment #10
nancydruOkay, with a complete recreated site, it completed. Except I already had a primary key on the blocks table, so that part failed. Not a big deal.
However, when I clicked on the "Administration pages" link, I got an "access denied." I believe this is because I was not logged in. Should I have been able to update without that?
And, when I go to the home page, I get:
Comment #11
nancydruAll kinds of silly things cleared up suddenly by enabling the Bluemarine theme (the 5.5 site was using Pushbutton).
Comment #12
nancydruComment #13
nancydruI found that the old "Logs" menu items were still there, as were the new "Report" items. When I disabled them, then clicked on "Reset," they started saying "Administration." I had to go into the menu_links table to delete them.
Comment #14
JirkaRybka commentedThe old menu links are a known problem, not solvable in any other way than manual deleting, according to the author of that patch: http://drupal.org/node/196043
Otherwise Bluemarine or Garland are recommended for upgrade ;)
Comment #15
nancydruI could accept problems from menu items that I added, but not core - this should be taken care of by update.php.
I don't recall seeing that I should switch my theme before upgrading. I went back and checked, and I just missed that. I did add a comment to that page: http://drupal.org/upgrade/preparing-the-site#comment-660192
Comment #16
JirkaRybka commentedGreat, the comment is in right place :)
As for the menu items, you're not the only one disliking it. I'm quite annoyed myself, going to identify and delete tens of old entries. There was quite a bit of discussion at http://drupal.org/node/196043 - some users disliked the situation so much, that discussion slipped to offending tones and got some comments unpublished even - and according to that issue, the problem is that you need to have your contributed modules disabled before update.php, so then update can't have a full information on your modules' links, and so can't know what's a link from contributed module you're about to enable again after update, and what's outdated link (core even) that will never be active again. There was also an idea of a clean-up script/feature to delete orphan links AFTER you enabled all contributed modules later (I might even suggest to include some list of known stale links for core), but with this stuff, you should go to that issue, not here (duplicate issues are not good practice). I have neither time nor knowledge on that stuff, to fix this.
Comment #17
ricabrantes commentedany activity??
Comment #18
batigolixim running into several problems when upgrading d5.10 to d6.4
on opening http://www.mysite.com/update.php i get an error
user warning: Table 'cache_block' already exists query: CREATE TABLE cache_block ( `cid` VARCHAR(255) NOT NULL DEFAULT '', `data` LONGBLOB DEFAULT NULL, `expire` INT NOT NULL DEFAULT 0, `created` INT NOT NULL DEFAULT 0, `headers` TEXT DEFAULT NULL, `serialized` SMALLINT NOT NULL DEFAULT 0, PRIMARY KEY (cid), INDEX expire (expire) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /usr/local/www/mysite/www/drupal-6.4/includes/database.inc on line 514.when i delete the table cache_block and reload the http://www.mysite.com/update.php the message disappears
so issue #1 would be: why this message?
i disabled all and uninstalled almost all contrib modules
the update screen still shows them in the list "select versions"
issue #2: why do i see modules that are disabled?
(because the database tables still exist?)
for the modules i disabled earlier on, i choose "no update available" so they don't interfere
on the 3rd update screen i see the progress bar and after wards a long list of errors like:
so my issue #3 is: why these errors?
about the installation. this site was originally a d4.x site.
as for the database: i installed schema and saw there were differences but they all seemed trivial
i can provide you with more details if necessary
i attached some screenshots
Comment #19
ztyx commentedMy preliminary guess is that a straight upgrade from version 4.x is not possible (as I couldn't find any information whatsoever about it). Have you tried to upgrade to 5.x and then 6.x? I have posted a forum post to see if I'm right or wrong.
Comment #20
ztyx commentedLooking in the upgrade documentation, especially this page, makes me pretty confident to say that a straight upgrade is not possible.Edit: See comment #21. I apologize for not reading carefully.
Comment #21
batigolixthe problems mentioned in #18 occur in an upgrade from 5.10 to 6.4
Comment #22
gregglesI solved this problem on a site by dropping the existing cache_block table and rebuilding it by running these queries:
I think maybe this problem only comes up if you used the block_cache module for 5.x and didn't uninstall it prior to upgrading?
Comment #23
ainigma32 commentedLooking at the age of the last posts and the fact that greggles provided a possible solution I'm going to assume this issue was resolved and set it to fixed.
Feel free to reopen if you think that is wrong.
- Arie
Comment #24
nancydruMy 6.4 problem was fixed, but now I have a 6.8 problem...
Comment #25
ztyx commented@NancyDru: Are you experiencing the same bug or a different one when upgrading to 6.4 (from which version?)?
Comment #26
nancydruIt's similar to the "serialized" problem in #18, yet that column does exist. Upgrading from 6.6 to 6.8.