Hi Manuela,


so the issue is not *how* you call ´doEditContent´, but *what* you call it on.


Looks like the `$newWikiPage` variable in your example is `null`. Make sure you 
construct you `WikiPage` object properly. E.g. by using `$newWikiPage = 
WikiPage::factory( $newTitle )`. Also make sure that `$newTitle` is a valid 
`Title` object. There are some limitations on what characters a title can 
contain in MediaWiki (https://www.mediawiki.org/wiki/Manual:$wgLegalTitleChars).


--

Robert


________________________________
Von: MediaWiki-l <[email protected]> im Auftrag von 
Manuela <[email protected]>
Gesendet: Montag, 28. Januar 2019 18:33
An: [email protected]
Betreff: Re: [MediaWiki-l] Extension which creates a Wikipage with content

I tried something a little bit different:



which caused these errors:








--
Sent from: http://mediawiki-i.429.n8.nabble.com/


_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to