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 <mediawiki-l-bounces(a)lists.wikimedia.org> im Auftrag von Manuela
<pressephotografin(a)gmail.com>
Gesendet: Montag, 28. Januar 2019 18:33
An: mediawiki-l(a)lists.wikimedia.org
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