Thread:Project:Support desk/Fatal exception of type MWException after changed page title using php script

Hi all,

I have to change the title of a few pages under a category. All the changes are successful.

However, when I try to create a new page. it gives me a Fatal exception of type MWException:

The Title object did not provide an article ID. Perhaps the page doesn't exist? Backtrace:
 * 1) 0 /var/www/mediawiki/includes/parser/ParserOutput.php(390): LinksUpdate->__construct(Object(Title), Object(ParserOutput), true)
 * 2) 1 /var/www/mediawiki/includes/WikiPage.php(1749): ParserOutput->getSecondaryDataUpdates(Object(Title))
 * 3) 2 /var/www/mediawiki/includes/WikiPage.php(1617): WikiPage->doEditUpdates(Object(Revision), Object(User), Array)
 * 4) 3 [internal function]: WikiPage->doEdit('sadf', '', 97)
 * 5) 4 /var/www/mediawiki/includes/Article.php(1820): call_user_func_array(Array, Array)
 * 6) 5 /var/www/mediawiki/includes/EditPage.php(1451): Article->__call('doEdit', Array)
 * 7) 6 /var/www/mediawiki/includes/EditPage.php(1451): Article->doEdit('sadf', '', 97)
 * 8) 7 /var/www/mediawiki/includes/EditPage.php(986): EditPage->internalAttemptSave(Array, false)
 * 9) 8 /var/www/mediawiki/includes/EditPage.php(379): EditPage->attemptSave
 * 10) 9 /var/www/mediawiki/includes/actions/EditAction.php(51): EditPage->edit
 * 11) 10 /var/www/mediawiki/includes/actions/EditAction.php(71): EditAction->show
 * 12) 11 /var/www/mediawiki/includes/Wiki.php(427): SubmitAction->show
 * 13) 12 /var/www/mediawiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
 * 14) 13 /var/www/mediawiki/includes/Wiki.php(536): MediaWiki->performRequest
 * 15) 14 /var/www/mediawiki/includes/Wiki.php(446): MediaWiki->main
 * 16) 15 /var/www/mediawiki/index.php(59): MediaWiki->run
 * 17) 16 {main}