After after running update.php we see the cheery message:
Updates were attempted. If you see no failures below, you may proceed happily to the administration pages. Otherwise, you may need to update your database manually. All errors have been logged.
But we have no guidance for users who do see failures below, and who need to (less happily) update their database manually. I'm willing to write such a page, probably somewhere in http://drupal.org/Troubleshooting-FAQ , but I haven't the knowledge of what should be there.
It should probably start with a few pointers on how to get at your database (for instance Cpanel or command line + http://dev.mysql.com/doc/index.html).
Some concrete questions:
When I ran into this problem earlier today (fixed now, thanks to mdixoncm), there were a lot more error messages on the landing page I got to after update.php, than in the log. I assume both sets are relevant, and that the user should copy them all to a text file before doing anything else. Correct? Or can the user assume that all she needs to know is in the log?
When error messages on the landing page give "Failed: CREATE TABLE {something}, the user can look for the table. If it exists, can she assume that this isn't a problem, and ignore that error message?
If it doesn't exist, what should she do?
What about messages like "Failed: INSERT INTO {table name} (lots of stuff...}"
What should the user do about those?
Or am I following the wrong track here, and any general advice should be on different tracks?
Comments
Comment #1
robbiethegeek commentedAfter thinking about this issue I think that there may need some re-wording of the error message from:
Otherwise, you may need to update your database manually
to something like:
If you are seeing errors below, please check the issue queue of the module who's update failed. (With the module that failed)
Comment #2
tamlin commentedI'd like to know how to run update.php when "Database schema" on the logs page says: "Up to date"
I have two Drupal sites running on my server with different databases. To conserve disk space I have symlinked the addon module folders (not the core modules, though I don't know if that makes any difference.) so I only have one copy of each.
This has been working fine until I needed to upgrade User_Mailman_Register, it needs to add a 'version' field to the drupal_maiman_lists table. On the first installation update.php ran correctly and everything is good. However, the second install thinks that everything is fine too, but I haven't run the update on it yet and get error messages complaining that the 'version' field doesn't exist. Which of course it doesn't because I haven't run the update on that installation yet. How do I force update to run? or will that not work as it won't know what it needs to do?
P.S. I'm running 5.x not 6.x
---
Solved:
update.php can be run from the Administer->Site building->modules page
(I actually stuffed up my tables trying to do it manually before I found this, and consequently update.php failed. I ended up copying the table structure from the installation that had worked. All seems fine now.)
Comment #3
a.bond commentedMy update.php has failed and in a week no one's seen fit to actually help me. Can anyone help me do a manual update?
Comment #4
zirvap commentedI guess I'd better un-assign myself from this issue, as I don't have the knowledge to solve it.
Comment #5
leehunter commentedComment #6
jhodgdonThis is a message generated by Drupal Core. It needs to be fixed there if it's still an issue.
Comment #9
martinma commentedIts a feature request, not a bug ...
Comment #21
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!