Page MenuHomeMiraheze

LogicException when deleting categories/pages
Closed, ResolvedPublic

Description

I can't edit or delete a category on my wiki (https://magicawakened.miraheze.org/wiki/Kategoria:Rzadkie_karty). When I try to delete it I get this: Fatal exception of type "LogicException".

Event Timeline

Reception123 renamed this task from I can't delete or edit a category to LogicException when deleting categories/pages.Jul 25 2022, 12:19
Reception123 triaged this task as Normal priority.
Reception123 edited projects, added Extensions; removed MediaWiki.

@Universal_Omega

Return value of MediaWiki\Skin\Cosmos\CosmosNavigation::MediaWiki\Skin\Cosmos\{closure}() must be of the type string, null returned
from /srv/mediawiki/w/skins/Cosmos/includes/CosmosNavigation.php(38)
#0 /srv/mediawiki/w/includes/libs/objectcache/BagOStuff.php(202): MediaWiki\Skin\Cosmos\CosmosNavigation->MediaWiki\Skin\Cosmos\{closure}(integer)
#1 /srv/mediawiki/w/skins/Cosmos/includes/CosmosNavigation.php(42): BagOStuff->getWithSetCallback(string, integer, Closure)
#2 /srv/mediawiki/w/skins/Cosmos/includes/CosmosTemplate.php(355): MediaWiki\Skin\Cosmos\CosmosNavigation->getCode()
#3 /srv/mediawiki/w/skins/Cosmos/includes/CosmosTemplate.php(174): MediaWiki\Skin\Cosmos\CosmosTemplate->buildNavigation()
#4 /srv/mediawiki/w/skins/Cosmos/includes/CosmosTemplate.php(69): MediaWiki\Skin\Cosmos\CosmosTemplate->buildBanner()
#5 /srv/mediawiki/w/includes/skins/SkinTemplate.php(135): MediaWiki\Skin\Cosmos\CosmosTemplate->execute()
#6 /srv/mediawiki/w/includes/skins/SkinTemplate.php(150): SkinTemplate->generateHTML()
#7 /srv/mediawiki/w/includes/OutputPage.php(2807): SkinTemplate->outputPage()
#8 /srv/mediawiki/w/includes/MediaWiki.php(926): OutputPage->output(boolean)
#9 /srv/mediawiki/w/includes/MediaWiki.php(939): MediaWiki::{closure}()
#10 /srv/mediawiki/w/includes/MediaWiki.php(563): MediaWiki->main()
#11 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(46): wfIndexMain()
#13 {main}
Unknown Object (User) closed this task as Resolved.Jul 28 2022, 20:14
Unknown Object (User) claimed this task.
Unknown Object (User) added a project: Upstream.
Unknown Object (User) moved this task from Backlog to Deployed Extension Bugs on the Extensions board.

This should be resolved once the update for Cosmos is deployed.

Unknown Object (User) added a comment.Aug 22 2022, 20:03

There is no more LogicExeption errors given though? There is no exceptions for your wiki relating to the same issue, that appear in our logs anymore (in the past 7 days). Are you getting something different now?

There are three things (on both pages):

  1. when I open them the title says Error, and below I get message "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page."
  2. when I try to edit the page, after saving it I get edit conflict information, even though it isn't the case
  3. when I try to delete the page I still get internal error - [a2a6bd676ab99e361bfb2414] 2022-08-23 05:43:58: Fatal exception of type "LogicException"
Unknown Object (User) added a comment.EditedSep 9 2022, 07:16

There are three things (on both pages):

  1. when I open them the title says Error, and below I get message "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page."
  2. when I try to edit the page, after saving it I get edit conflict information, even though it isn't the case
  3. when I try to delete the page I still get internal error - [a2a6bd676ab99e361bfb2414] 2022-08-23 05:43:58: Fatal exception of type "LogicException"

Hello, very sorry for the delay here. Do you mind copying the exception message you get. This is so I can double check our logs for it one more time. Thanks! Again, very sorry for the delay here.

Unknown Object (User) closed this task as Declined.EditedSep 12 2022, 03:04

No response, again I apologise for the delay this took. If the issue is still persistent please reopen with the new error message you get, thanks!

Sorry for the delay. The internal error message for https://magicawakened.miraheze.org/wiki/Kategoria:Rzadkie_karty (when trying to delete the page)

[56f0d31536dba9d8ed5b96d6] 2022-09-12 05:24:58: Fatal exception of type "LogicException"

For the other page:

[660598a503c7ac9f8b35eda6] 2022-09-12 05:26:05: Fatal exception of type "LogicException"

Unknown Object (User) added a comment.Sep 12 2022, 17:29
No revisions for Szablon:Osobny artykuł/dokumentacja?
from /srv/mediawiki/w/includes/page/DeletePage.php(574)
#0 /srv/mediawiki/w/includes/page/DeletePage.php(479): MediaWiki\Page\DeletePage->deleteInternal(WikiPage, string, string)
#1 /srv/mediawiki/w/includes/page/DeletePage.php(381): MediaWiki\Page\DeletePage->deleteUnsafe(string)
#2 /srv/mediawiki/w/includes/actions/DeleteAction.php(144): MediaWiki\Page\DeletePage->deleteIfAllowed(string)
#3 /srv/mediawiki/w/includes/actions/DeleteAction.php(99): DeleteAction->tempDelete()
#4 /srv/mediawiki/w/includes/MediaWiki.php(543): DeleteAction->show()
#5 /srv/mediawiki/w/includes/MediaWiki.php(321): MediaWiki->performAction(Article, Title)
#6 /srv/mediawiki/w/includes/MediaWiki.php(912): MediaWiki->performRequest()
#7 /srv/mediawiki/w/includes/MediaWiki.php(563): MediaWiki->main()
#8 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#9 /srv/mediawiki/w/index.php(46): wfIndexMain()
#10 {main}
Unknown Object (User) closed this task as Resolved.Sep 12 2022, 17:51

I was able to get both pages to successfully delete. The category had nothing I could retrieve old contents for, but I was able to retrieve the contents for the second page:

<noinclude>{{Nagłówek dokumentacji}}</noinclude>
== Opis ==
: Ten szablon pozwala na oznaczanie artykułów, które zostały pokrótce opisane, ale mają swoją własną stronę.

== Użycie ==
* Szablon posiada jeden parametr, którym jest nazwa artykułu, który ma swoją własną stronę i do którego chcemy wstawić odniesienie.

== Przykłady ==
: Aby użyć szablonu, wklej poniższy kod do artykułu. Staraj się wypełnić wszystkie parametry.
<pre style="background:transparent; float:left; margin-left:3%;">
{{Osobny artykuł|[[<!-- nazwa artykułu -->]]}}
</pre>
<noinclude>[[Kategoria:Dokumentacje szablonów|{{PAGENAME}}]]</noinclude>

Thank you for your help. There are no more problems with any of those links.

Unknown Object (User) edited projects, added MediaWiki; removed Extensions.Sep 13 2022, 05:35
Unknown Object (User) moved this task from Backlog to Maintenance Script Run on the MediaWiki board.
Unknown Object (User) added a project: Database.
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.
Unknown Object (User) moved this task from Unsorted to Short Term on the Universal Omega board.

Thank you for your help. There are no more problems with any of those links.

You're welcome. Glad it got resolved.