Last modified: 2014-06-13 11:57:30 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 T49433, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47433 - Regression with ContentModel checking of page id
Regression with ContentModel checking of page id
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.21.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-19 21:50 UTC by Tank
Modified: 2014-06-13 11:57 UTC (History)
1 user (show)

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


Attachments

Description Tank 2013-04-19 21:50:19 UTC
Following code raise error because of ContentModel checking. This checking attempt to get page id. Where I disable checking manually in MW code, 1.21 perfectly processed it:

#$data is some array, $user is User
$row = array(
    'page' => 0,
    'user' => $user->getID(),
    'user_text' => $user->getName(),
    'minor_edit' => 1,
    'timestamp' => $data['timestamp'],
    'comment' => $data['comment'],
    'text' => $data['text']
);
		
$revision = new Revision( $row );
$Id = $rev->insertOn( $dbw );

(After this code I use $wikipage->insertOn() or $wikipage->updateRevisionOn() and revision tables updates, after this new revision has been inserted without errors and can be viewed on site).

Or currently we have another functions to insert custom revision in database ?
Comment 1 Andre Klapper 2013-04-22 09:06:14 UTC
Hi Tank,

which exact MediaWiki version are you running?

(In reply to comment #0)
> Following code raise error

Which exact error message?

> because of ContentModel checking.

In which file (and path) is the code located?
Comment 2 Andre Klapper 2013-05-13 13:49:10 UTC
Tank: Could you please answer comment 1?
Comment 3 Andre Klapper 2014-06-13 11:57:30 UTC
Unfortunately closing this report as no further information has been provided.

Tank: Please feel free to reopen this report if you can provide the information asked for and if this still happens. Thanks!

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


Navigation
Links