Last modified: 2010-05-15 15:56:40 UTC
Hi Mediwikers. Thanks for a nice tool, we use it with great pleasure. I just upgraded from 1.5.5 to 1.6.0 by copying new files onto the old. However running maintenance/update.php caused a warning: ... Warning: fopen(maintenance/archives/patch-watchlist-null.sql): failed to open stream: No such file or directory in /var/www/localhost/htdocs/mediawiki/includes/Database.php on line 1671 Could not open "". The site is up and running again, http://image.diku.dk/mediawiki/index.php/Special:Version However I assume that the above warning is serious. Any help is much appreciated. Jon ------------- I enclose the full output from update.php: image maintenance # php update.php Going to run database updates for wikidb Depending on the size of your database this may take a while! Abort with control-c in the next five seconds...0 ...hitcounter table already exists. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...logging table already exists. ...validate table already exists. ...user_newtalk table already exists. ...transcache table already exists. ...trackbacks table already exists. Creating externallinks table...ok Creating job table...ok ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...have rc_type field in recentchanges table. ...have rc_ip field in recentchanges table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...have user_real_name field in user table. ...have user_token field in user table. ...have user_email_token field in user table. Adding user_registration field to table user...ok ...have log_params field in logging table. ...have ar_rev_id field in archive table. ...have ar_text_id field in archive table. ...have page_len field in page table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have img_media_type field in image table. ...have val_ip field in validate table. ...have ss_total_pages field in site_stats table. ...have iw_trans field in interwiki table. Adding ipb_range_start field to table ipblocks...ok Adding ss_images field to table site_stats...ok ...already have interwiki table ...indexes seem up to 20031107 standards Already have pagelinks; skipping old links table updates. ...image primary key already set. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. Logging table has correct title encoding. ...page table already exists. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...already have pagelinks table. Creating templatelinks table... Populating... Done. Please run maintenance/refreshLinks.php for a more thorough templatelinks update. No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. Making wl_notificationtimestamp nullable... Warning: fopen(maintenance/archives/patch-watchlist-null.sql): failed to open stream: No such file or directory in /var/www/localhost/htdocs/mediawiki/includes/Database.php on line 1671 Could not open "".
(In reply to comment #0) > Warning: fopen(maintenance/archives/patch-watchlist-null.sql): failed to open > stream: No such file or directory in > /var/www/localhost/htdocs/mediawiki/includes/Database.php on line 1671 Well, did the referenced file exist? Were you running the maintenance script from within the maintenance directory, or outside of it?
I retract the earlier comment, having fixed the bug which causes this in SVN HEAD, and backported to REL1_6. This isn't going to help those who downloaded the tarball, but as a workaround, run the update script from the wiki root: php maintenance/update.php
*** Bug 5470 has been marked as a duplicate of this bug. ***
#2 doesn't work for me; same error.