Mailing List Archive

Pages not showing with error messages
Dear all,

I am restoring my mediawiki website on a new server. It happened this error:
[4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line 1287
of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
PPFrame_DOM::expand: Invalid parameter type

Do you have any ideas? What does it indicate?
I look forward to any help. Thank you all!

Best,
Catherine
Re: Pages not showing with error messages [ In reply to ]
Hi,

On Sun, 2021-10-24 at 23:55 -0500, Jingyi C. Shi wrote:
> I am restoring my mediawiki website on a new server. It happened this
> error:
> [4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line
> 1287 of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
> PPFrame_DOM::expand: Invalid parameter type

Please see https://www.mediawiki.org/wiki/Manual:How_to_debug to get a
stacktrace and provide MediaWiki and PHP version information for both
servers.

Thanks,
andre
--
Andre Klapper (he/him) | Bugwrangler / Developer Advocate
https://blogs.gnome.org/aklapper/
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Pages not showing with error messages [ In reply to ]
Thank you, Andre!
Below is the stack trace I got.


[d7e9d262] /xxx/index.php/Welcome MWException from line 1287 of
/var/www/xxx/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand:
Invalid parameter type

Backtrace:

#0 /var/www/xxx/includes/parser/Parser.php(3342): PPFrame_DOM->expand(NULL,
integer)
#1 /var/www/xxx/includes/parser/Parser.php(645):
Parser->replaceVariables(string, PPFrame_DOM)
#2 /var/www/xxx/includes/parser/Parser.php(5081):
Parser->preprocess(string, Title, ParserOptions)
#3 /var/www/xxx/includes/cache/MessageCache.php(1020):
Parser->transformMsg(string, ParserOptions, Title)
#4 /var/www/xxx/includes/Message.php(1129): MessageCache->transform(string,
boolean, Language, Title)
#5 /var/www/xxx/includes/Message.php(797): Message->transformText(string)
#6 /var/www/xxx/includes/Message.php(860): Message->toString()
#7 /var/www/xxx/includes/OutputPage.php(958): Message->text()
#8 /var/www/xxx/includes/OutputPage.php(1005):
OutputPage->setHTMLTitle(Message)
#9 /var/www/xxx/includes/page/Article.php(514):
OutputPage->setPageTitle(string)
#10 /var/www/xxx/includes/actions/ViewAction.php(44): Article->view()
#11 /var/www/xxx/includes/MediaWiki.php(490): ViewAction->show()
#12 /var/www/xxx/includes/MediaWiki.php(287):
MediaWiki->performAction(Article, Title)
#13 /var/www/xxx/includes/MediaWiki.php(714): MediaWiki->performRequest()
#14 /var/www/xxx/includes/MediaWiki.php(508): MediaWiki->main()
#15 /var/www/xxx/index.php(41): MediaWiki->run()
#16 {main}


The versions of the new server are:
CentOS 7
Apache/2.4.51
PHP 7.4.25
mysql Ver 8.0.23
MediaWiki version 1.26.2


As I am restoring from my backup files and the old server was down, I don't
have the information about the old server.


Please let me know if more information is needed! Thank you and look
forward to any further help!

Best,
Catherine


On Mon, Oct 25, 2021 at 7:02 AM <mediawiki-l-request@lists.wikimedia.org>
wrote:

>
> Message: 2
> Date: Mon, 25 Oct 2021 09:35:25 +0200
> From: Andre Klapper <aklapper@wikimedia.org>
> Subject: [MediaWiki-l] Re: Pages not showing with error messages
> To: MediaWiki announcements and site admin list
> <mediawiki-l@lists.wikimedia.org>
> Message-ID:
> <98b3b562efecc4af73a67f7582f69c2834b62b2d.camel@wikimedia.org>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi,
>
> On Sun, 2021-10-24 at 23:55 -0500, Jingyi C. Shi wrote:
> > I am restoring my mediawiki website on a new server. It happened this
> > error:
> > [4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line
> > 1287 of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
> > PPFrame_DOM::expand: Invalid parameter type
>
> Please see https://www.mediawiki.org/wiki/Manual:How_to_debug to get a
> stacktrace and provide MediaWiki and PHP version information for both
> servers.
>
> Thanks,
> andre
> --
> Andre Klapper (he/him) | Bugwrangler / Developer Advocate
> https://blogs.gnome.org/aklapper/
>
>
>
On Sun, Oct 24, 2021 at 11:55 PM Jingyi C. Shi <jshizhang@gmail.com> wrote:

> Dear all,
>
> I am restoring my mediawiki website on a new server. It happened this
> error:
> [4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line 1287
> of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
> PPFrame_DOM::expand: Invalid parameter type
>
> Do you have any ideas? What does it indicate?
> I look forward to any help. Thank you all!
>
> Best,
> Catherine
>
Re: Pages not showing with error messages [ In reply to ]
How are you doing the backup/restore? did you backup your database and
re-download mediawiki? are the versions of PHP the same on both servers?

On Mon, Oct 25, 2021 at 4:28 PM Jingyi C. Shi <jshizhang@gmail.com> wrote:

> Thank you, Andre!
> Below is the stack trace I got.
>
>
> [d7e9d262] /xxx/index.php/Welcome MWException from line 1287 of
> /var/www/xxx/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand:
> Invalid parameter type
>
> Backtrace:
>
> #0 /var/www/xxx/includes/parser/Parser.php(3342):
> PPFrame_DOM->expand(NULL, integer)
> #1 /var/www/xxx/includes/parser/Parser.php(645):
> Parser->replaceVariables(string, PPFrame_DOM)
> #2 /var/www/xxx/includes/parser/Parser.php(5081):
> Parser->preprocess(string, Title, ParserOptions)
> #3 /var/www/xxx/includes/cache/MessageCache.php(1020):
> Parser->transformMsg(string, ParserOptions, Title)
> #4 /var/www/xxx/includes/Message.php(1129):
> MessageCache->transform(string, boolean, Language, Title)
> #5 /var/www/xxx/includes/Message.php(797): Message->transformText(string)
> #6 /var/www/xxx/includes/Message.php(860): Message->toString()
> #7 /var/www/xxx/includes/OutputPage.php(958): Message->text()
> #8 /var/www/xxx/includes/OutputPage.php(1005):
> OutputPage->setHTMLTitle(Message)
> #9 /var/www/xxx/includes/page/Article.php(514):
> OutputPage->setPageTitle(string)
> #10 /var/www/xxx/includes/actions/ViewAction.php(44): Article->view()
> #11 /var/www/xxx/includes/MediaWiki.php(490): ViewAction->show()
> #12 /var/www/xxx/includes/MediaWiki.php(287):
> MediaWiki->performAction(Article, Title)
> #13 /var/www/xxx/includes/MediaWiki.php(714): MediaWiki->performRequest()
> #14 /var/www/xxx/includes/MediaWiki.php(508): MediaWiki->main()
> #15 /var/www/xxx/index.php(41): MediaWiki->run()
> #16 {main}
>
>
> The versions of the new server are:
> CentOS 7
> Apache/2.4.51
> PHP 7.4.25
> mysql Ver 8.0.23
> MediaWiki version 1.26.2
>
>
> As I am restoring from my backup files and the old server was down, I
> don't have the information about the old server.
>
>
> Please let me know if more information is needed! Thank you and look
> forward to any further help!
>
> Best,
> Catherine
>
>
> On Mon, Oct 25, 2021 at 7:02 AM <mediawiki-l-request@lists.wikimedia.org>
> wrote:
>
>>
>> Message: 2
>> Date: Mon, 25 Oct 2021 09:35:25 +0200
>> From: Andre Klapper <aklapper@wikimedia.org>
>> Subject: [MediaWiki-l] Re: Pages not showing with error messages
>> To: MediaWiki announcements and site admin list
>> <mediawiki-l@lists.wikimedia.org>
>> Message-ID:
>> <98b3b562efecc4af73a67f7582f69c2834b62b2d.camel@wikimedia.org>
>> Content-Type: text/plain; charset="UTF-8"
>>
>> Hi,
>>
>> On Sun, 2021-10-24 at 23:55 -0500, Jingyi C. Shi wrote:
>> > I am restoring my mediawiki website on a new server. It happened this
>> > error:
>> > [4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line
>> > 1287 of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
>> > PPFrame_DOM::expand: Invalid parameter type
>>
>> Please see https://www.mediawiki.org/wiki/Manual:How_to_debug to get a
>> stacktrace and provide MediaWiki and PHP version information for both
>> servers.
>>
>> Thanks,
>> andre
>> --
>> Andre Klapper (he/him) | Bugwrangler / Developer Advocate
>> https://blogs.gnome.org/aklapper/
>>
>>
>>
> On Sun, Oct 24, 2021 at 11:55 PM Jingyi C. Shi <jshizhang@gmail.com>
> wrote:
>
>> Dear all,
>>
>> I am restoring my mediawiki website on a new server. It happened this
>> error:
>> [4027854c] /dir/index.php/Welcome_to_MyWebsite MWException from line 1287
>> of /var/www/xxx/dir/includes/parser/Preprocessor_DOM.php:
>> PPFrame_DOM::expand: Invalid parameter type
>>
>> Do you have any ideas? What does it indicate?
>> I look forward to any help. Thank you all!
>>
>> Best,
>> Catherine
>>
> _______________________________________________
> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
> To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
>
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Pages not showing with error messages [ In reply to ]
Hi John,
I backed up my database and the entire wiki folder. I didn't re-download
MediaWiki this time. I directly loaded the backup database into the new
server, and moved the entire wiki folder. I don't think the PHP versions on
both servers are exactly the same. PHP on the new server is 7.4 while on
the old one maybe 7.0 or similar.
Thanks!
Catherine

Message: 2
> Date: Mon, 25 Oct 2021 16:41:07 -0400
> From: John <phoenixoverride@gmail.com>
> Subject: [MediaWiki-l] Re: Pages not showing with error messages
> To: MediaWiki announcements and site admin list
> <mediawiki-l@lists.wikimedia.org>
> Message-ID:
> <CAP-JHpmhOo67rCHoQ5LoEx=1-NNKg2+YegAbWc7u+8=
> aJgimvA@mail.gmail.com>
> Content-Type: multipart/alternative;
> boundary="00000000000015550905cf336298"
>
> How are you doing the backup/restore? did you backup your database and
> re-download mediawiki? are the versions of PHP the same on both servers?
>
Re: Pages not showing with error messages [ In reply to ]
How did you backup/restore the database?

On Mon, Oct 25, 2021 at 4:56 PM Jingyi C. Shi <jshizhang@gmail.com> wrote:

> Hi John,
> I backed up my database and the entire wiki folder. I didn't re-download
> MediaWiki this time. I directly loaded the backup database into the new
> server, and moved the entire wiki folder. I don't think the PHP versions on
> both servers are exactly the same. PHP on the new server is 7.4 while on
> the old one maybe 7.0 or similar.
> Thanks!
> Catherine
>
> Message: 2
>> Date: Mon, 25 Oct 2021 16:41:07 -0400
>> From: John <phoenixoverride@gmail.com>
>> Subject: [MediaWiki-l] Re: Pages not showing with error messages
>> To: MediaWiki announcements and site admin list
>> <mediawiki-l@lists.wikimedia.org>
>> Message-ID:
>> <CAP-JHpmhOo67rCHoQ5LoEx=1-NNKg2+YegAbWc7u+8=
>> aJgimvA@mail.gmail.com>
>> Content-Type: multipart/alternative;
>> boundary="00000000000015550905cf336298"
>>
>> How are you doing the backup/restore? did you backup your database and
>> re-download mediawiki? are the versions of PHP the same on both servers?
>>
>
Re: Pages not showing with error messages [ In reply to ]
On Mon, 2021-10-25 at 15:27 -0500, Jingyi C. Shi wrote:
>
> The versions of the new server are:
> CentOS 7
> Apache/2.4.51
> PHP 7.4.25
> mysql  Ver 8.0.23
> MediaWiki version 1.26.2

You seem to combine a recent PHP version with an old, insecure, and
unmaintained MediaWiki
version: https://www.mediawiki.org/wiki/Compatibility
Please upgrade for your own
safety: https://www.mediawiki.org/wiki/Manual:Upgrading

Thanks,
andre
--
Andre Klapper (he/him) | Bugwrangler / Developer Advocate
https://blogs.gnome.org/aklapper/
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Pages not showing with error messages [ In reply to ]
I used the following commands to backup and restore:
mysqldump -h localhost -u user -p --default-character-set=binary database >
database.sql
mysql -u user -p -h localhost database < database.sql

Thanks!

On Mon, Oct 25, 2021 at 4:07 PM John <phoenixoverride@gmail.com> wrote:

> How did you backup/restore the database?
>
> On Mon, Oct 25, 2021 at 4:56 PM Jingyi C. Shi <jshizhang@gmail.com> wrote:
>
>> Hi John,
>> I backed up my database and the entire wiki folder. I didn't re-download
>> MediaWiki this time. I directly loaded the backup database into the new
>> server, and moved the entire wiki folder. I don't think the PHP versions on
>> both servers are exactly the same. PHP on the new server is 7.4 while on
>> the old one maybe 7.0 or similar.
>> Thanks!
>> Catherine
>>
>> Message: 2
>>> Date: Mon, 25 Oct 2021 16:41:07 -0400
>>> From: John <phoenixoverride@gmail.com>
>>> Subject: [MediaWiki-l] Re: Pages not showing with error messages
>>> To: MediaWiki announcements and site admin list
>>> <mediawiki-l@lists.wikimedia.org>
>>> Message-ID:
>>> <CAP-JHpmhOo67rCHoQ5LoEx=1-NNKg2+YegAbWc7u+8=
>>> aJgimvA@mail.gmail.com>
>>> Content-Type: multipart/alternative;
>>> boundary="00000000000015550905cf336298"
>>>
>>> How are you doing the backup/restore? did you backup your database and
>>> re-download mediawiki? are the versions of PHP the same on both servers?
>>>
>>
Re: Pages not showing with error messages [ In reply to ]
Thank you for your information! I'll try.

Thanks,
Catherine
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/