Last modified: 2014-09-19 02:56:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73017, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71017 - DPL breaks the update script?
DPL breaks the update script?
Status: RESOLVED DUPLICATE of bug 60492
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList2 (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-18 19:39 UTC by jclbugz
Modified: 2014-09-19 02:56 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description jclbugz 2014-09-18 19:39:00 UTC
When running update.php during an upgrade, the following error occurs:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE page_namespace = '10' AND page_title = 'Extension_DPL' LIMIT 1 Function: LinkCache::addLinkObj
Error: 1054 Unknown column 'page_content_model' in 'field list' (ipaddr/socket here)

I'm currently upgrading from 1.20.8 to 1.23.2 but I've seen this for quite some time and there has been previous discussion around it. See for example: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/upgrade_from_1.16.1_to_1.21.1_failing

The workaround I'd been using was to comment out DPL for the script run (which apparently doesn't work for everyone), but this adds unnecessary downtime to the upgrades. Vulpix on IRX suggested the update.php script should be creating the relevant fields (i.e. page_content_model) and that I submit a bug, so here it is.
Comment 2 jclbugz 2014-09-18 21:42:19 UTC
Sorry I wasn't clear. It's the third-party DPL.

http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)

However, it's not clear if DPL is the issue or if it's just the thing showing the error. That's what the thread I linked seemed to imply, but commenting out DPL did work for my environment. Hence the question mark in the bug title. :)

For what it's worth, setting $wgContentHandlerUseDB to false for the duration of the update.php script also worked for me.
Comment 3 Bawolff (Brian Wolff) 2014-09-19 02:52:49 UTC
Moving component. DPL appears to be at fault, not the core upgrade script. (At least I'm blaming it)
Comment 4 Bawolff (Brian Wolff) 2014-09-19 02:56:22 UTC
Hmm, its a dupe. And there's a patch in core apparently. But not backported I guess.

*** This bug has been marked as a duplicate of bug 60492 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links