Jump to content
  • 0

Problem with search


ZYerb

Question

I am using

MediaWiki 1.40.0
PHP 8.1.2-1ubuntu2.13 (apache2handler)
ICU 70.1
MySQL 8.0.33-0ubuntu0.22.04.2

I have this error when i am trying to search things that exactly exist in my mediawiki, when i am searching random words, that are not in articles, for example "asdf", there are no error
 

When i try to search smth in my mediawiki, this error occurs


[7a688317071b9e8f4bcd34d4] /index.php?search=se&title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F%3A%D0%9F%D0%BE%D0%B8%D1%81%D0%BA&fulltext=1 Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target.

Backtrace:

from /var/www/html/vendor/wikimedia/assert/src/Assert.php(49)

#0 /var/www/html/includes/title/Title.php(4253): Wikimedia\Assert\Assert::precondition()

#1 /var/www/html/includes/title/Title.php(4234): MediaWiki\Title\Title->assertProperPage()

#2 /var/www/html/includes/Revision/RevisionStore.php(1831): MediaWiki\Title\Title->getId()

#3 /var/www/html/includes/Revision/RevisionStore.php(1736): MediaWiki\Revision\RevisionStore->ensureRevisionRowMatchesPage()

#4 /var/www/html/includes/Revision/RevisionStore.php(1612): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots()

#5 /var/www/html/includes/Revision/RevisionStore.php(2349): MediaWiki\Revision\RevisionStore->newRevisionFromRow()

#6 /var/www/html/includes/Revision/RevisionStore.php(1291): MediaWiki\Revision\RevisionStore->loadRevisionFromConds()

#7 /var/www/html/includes/search/RevisionSearchResultTrait.php(53): MediaWiki\Revision\RevisionStore->getRevisionByTitle()

#8 /var/www/html/includes/search/RevisionSearchResult.php(18): RevisionSearchResult->initFromTitle()

#9 /var/www/html/includes/search/SqlSearchResult.php(37): RevisionSearchResult->__construct()

#10 /var/www/html/includes/search/SqlSearchResultSet.php(61): SqlSearchResult->__construct()

#11 /var/www/html/includes/search/SearchResultSet.php(76): SqlSearchResultSet->extractResults()

#12 /var/www/html/includes/search/SearchResultSet.php(187): SearchResultSet->count()

#13 /var/www/html/includes/search/SearchEngine.php(203): SearchResultSet->shrink()

#14 /var/www/html/includes/search/SearchEngine.php(98): SearchEngine->maybePaginate()

#15 /var/www/html/includes/specials/SpecialSearch.php(468): SearchEngine->searchText()

#16 /var/www/html/includes/specials/SpecialSearch.php(250): SpecialSearch->showResults()

#17 /var/www/html/includes/specialpage/SpecialPage.php(701): SpecialSearch->execute()

#18 /var/www/html/includes/specialpage/SpecialPageFactory.php(1475): SpecialPage->run()

#19 /var/www/html/includes/MediaWiki.php(327): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#20 /var/www/html/includes/MediaWiki.php(923): MediaWiki->performRequest()

#21 /var/www/html/includes/MediaWiki.php(576): MediaWiki->main()

#22 /var/www/html/index.php(50): MediaWiki->run()

#23 /var/www/html/index.php(46): wfIndexMain()

#24 {main}


https://wiki.smartplayer.org link to my mediawiki

Снимок экрана 2023-07-13 в 17.48.35.png

Edited by ZYerb (see edit history)
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.