Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
 
12.180.225.98 (talkcontribs)

Just downloaded and extracted into a new folder. Immediately going to mw-config/index.php I get the following.


Warning: include(/var/www/html/wiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /var/www/html/wiki/vendor/composer/ClassLoader.php on line 444

Warning: include(): Failed opening '/var/www/html/wiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/var/www/html/wiki/vendor/pear/console_getopt:/var/www/html/wiki/vendor/pear/mail:/var/www/html/wiki/vendor/pear/mail_mime:/var/www/html/wiki/vendor/pear/net_smtp:/var/www/html/wiki/vendor/pear/net_socket:/var/www/html/wiki/vendor/pear/pear-core-minimal/src:/var/www/html/wiki/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/html/wiki/vendor/composer/ClassLoader.php on line 444

Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /var/www/html/wiki/includes/libs/stats/BufferingStatsdDataFactory.php on line 35

Bawolff (talkcontribs)

you are second person to complain about this... That's probably a bad sign

95.108.54.100 (talkcontribs)

I have the same problem

166.70.71.191 (talkcontribs)

Yup, fresh installation today and I have the same problem.

95.108.54.100 (talkcontribs)

Problem occured when I extracted using mc. During extracting I was informed that few files exists and asked to replace them. Date and size of these files was the same. When I used gunzip and tar it works.

15Rutendo (talkcontribs)

me too guys


Reply to "Fresh Installation"

WantedPages for specific category only?

1
Spiros71 (talkcontribs)

Is there any way to see the list of WantedPages for a specific category?

Reply to "WantedPages for specific category only?"
109.18.246.144 (talkcontribs)
Bawolff (talkcontribs)

please set $wgShowExceptionDetails=true; to get more specific error message.

Reply to "errors after update"

Help for Collection extension

3
Grmblfx5 (talkcontribs)

Hello,

I'm using the Collection extension for years on my old wiki installation www.psych-med.de/wiki (version 1.17.0) and it's still working fine.

Recently, I updated my other wiki www.phys-med.de/wiki to version 1.32.0 and tried to install the new Collection extension, but Download as PDF doesn't work anymore. It links to Reading/Web/PDF Functionality where the last entry is from July 15 2019.

Does anybody know yout that extension? Why does the old version still work and the new one not? How can I fix that or how could I find our who knows about that?

Thank you,

Daniel

Bawolff (talkcontribs)

idk much about it. I think it might want Proton to be setup.

Grmblfx5 (talkcontribs)

Thank for your hint, but I don't think that's linked to ths extension.

The extension site describes the installation of an OCG service https://wikitech.wikimedia.org/wiki/OCG#Installing_a_development_instance, but I don#t want to use this. The other description https://mwlib.readthedocs.io/en/latest/collection.html#installation-and-configuration-of-the-collection-extension says that after installation "you’re now ready to go." I don't want to use an own render server, and I see for my old installation that's still working without any of that extras.

Perhaps someone here uses this extension and could give me any hint?

Also, I couldn't find out how to contact the authors of the collection extension, perhaps anyone can help me with that?

Thanks

Daniel

Reply to "Help for Collection extension"
Vikasnd (talkcontribs)

Hello there,

We have a problem for synonyms/related words on our Wiki and looking for suggestions to fix it.

Let's say we have a page called कुंदकुंद. Now there are other similar words which should be directed to this page like 'कुन्दकुन्द' 'कुंदकुंदाचार्य' 'Kundkund'.

One solution is to create multiple pages with redirecting to the original word page. But we do not want to create multiple pages of similar spellings and make redirect because we have thousands of pages and this solution doesn't look clean.

So what would be the solution so that when searching within the wiki it shows the possible options when searching and when a user opens such page, it takes to the appropriate main page.

We're struggling our heads to figure this out but then I thought this is a very common problem which people encounter on CMS website all the time. So there must be some standard solution to it. Please suggest the solutions to this problem.

One requirement is also that When user searches in search box, the drop-down should also list the other options (synonyms) as user types those words.


thanks

Vikas

Bawolff (talkcontribs)

what's the concern with redirects? How do they not look clean?

Vikasnd (talkcontribs)

it creates as many entries as the pages in the wiki. And these pages are just blank. We then want to have each words phonetic English word as well for a page so it's easy for user to type on phonetic english equivalent rather than type in native language.


Bawolff (talkcontribs)

what's the problem with a page you never see being blank?

Vikasnd (talkcontribs)

It's like creating fake pages that are used to map to a real page.

A page/article is supposed to have real, meaningful data, right! For some pages you may have redirects. But if you really want to do mapping of many pages, better way would be to map it outside of the page contents like a table or some file which maps all possible words to a single page/article. Creating redirects page isn't a software solution. It's kind of hack.

Reply to "How to deal with Synonyms"

fileinfo - MW 1.34 internal error

2
DOSSOD (talkcontribs)

I'm receiving a MW 1.34 internal error; required components "fileinfo"

FileInfo folder containing Fileinfo.php, FileInfoi18nmagic.php are under the wiki/ extensions location and the php_fileinfo.dll extension in php.ini is enabled. I'm not sure what else I'm missing.


MS Visual C++ 2019

PHP 7.2.31

MySQL 5.7.17

Ciencia Al Poder (talkcontribs)

Look at the output of phpinfo(); as described in Manual:php.ini, to see if it's really enabled and on which php.ini.

Reply to "fileinfo - MW 1.34 internal error"

How to reverse unhiding a topic

2
George Ho (talkcontribs)

I realized that I accidentally unhid a topic at one's usertalk page, though the user himself is globally banned. How do I reverse the unhiding?

94rain (talkcontribs)

You can simply hide it again by clicking the dots near the topic title and then the "Hide Topic" button. You can also find the "hide" button in the topic history.

Reply to "How to reverse unhiding a topic"

Page not found Template

3
Summary by WikiGamee

Edit page Mediawiki:noarticletext in wiki

WikiGamee (talkcontribs)

I want to display a different template when some page doesn't exist on my wiki like wikipedia page. In my wiki there is only simple text. How can I do that?

Bawolff (talkcontribs)

edit the page named Mediawiki:noarticletext on your wiki.

More generally, to figure out what page to edit parts of the template add ?uselang=qqx (or &uselang=qqx if url already has a ?) to the end of the url.

WikiGamee (talkcontribs)

@Bawolff Thanks. I just want that page.

Error when editing a wiki page

4
162.156.114.189 (talkcontribs)

Hello, recently updated mediawiki version from 1.32 to 1.34

MediaWiki 1.34.1
PHP 7.3.12 (cgi-fcgi)
SQLite 3.28.0
ICU 60.2

And get the following error when trying to save an edit to a page. Any help is appreciated


[XtR@vQ5dbJIQK@bFJ2rQagAAAAg] /wiki/index.php?title=Main_Page&action=submit Wikimedia\Rdbms\DBQueryError from line 1603 of /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: INSERT INTO revision (rev_page,rev_parent_id,rev_minor_edit,rev_timestamp,rev_deleted,rev_len,rev_sha1) VALUES ('1','1','0','20200601040622','0','736','0h2t4vw8fiw6eh7mao0k203v1t7j1iw')

Function: MediaWiki\Revision\RevisionStore::insertRevisionRowOn/single-row

Error: 19 NOT NULL constraint failed: revision.rev_text_id

Backtrace:

#0 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(2140): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DatabaseSqlite.php(682): Wikimedia\Rdbms\Database->insert(string, array, string, string)

#4 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(757): Wikimedia\Rdbms\DatabaseSqlite->insert(string, array, string)

#5 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(552): MediaWiki\Revision\RevisionStore->insertRevisionRowOn(Wikimedia\Rdbms\DatabaseSqlite, MediaWiki\Revision\MutableRevisionRecord, Title, integer)

#6 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(490): MediaWiki\Revision\RevisionStore->insertRevisionInternal(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseSqlite, User, CommentStoreComment, Title, integer, integer)

#7 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(3966): MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(Wikimedia\Rdbms\DatabaseSqlite, string)

#8 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)

#9 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DBConnRef.php(635): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#10 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(498): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure)

#11 /home/dergok1/futureproof.one/wiki/includes/Storage/PageUpdater.php(986): MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DBConnRef)

#12 /home/dergok1/futureproof.one/wiki/includes/Storage/PageUpdater.php(756): MediaWiki\Storage\PageUpdater->doModify(CommentStoreComment, User, integer)

#13 /home/dergok1/futureproof.one/wiki/includes/page/WikiPage.php(1930): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)

#14 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(2341): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User, string, array, integer)

#15 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(1617): EditPage->internalAttemptSave(array, boolean)

#16 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(682): EditPage->attemptSave(array)

#17 /home/dergok1/futureproof.one/wiki/includes/actions/EditAction.php(55): EditPage->edit()

#18 /home/dergok1/futureproof.one/wiki/includes/actions/SubmitAction.php(38): EditAction->show()

#19 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(511): SubmitAction->show()

#20 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#21 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#22 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(527): MediaWiki->main()

#23 /home/dergok1/futureproof.one/wiki/index.php(44): MediaWiki->run()

#24 {main}

Bawolff (talkcontribs)

did you run update.php? Were there any error messages?

162.156.114.189 (talkcontribs)

That is right, I did, and it ran successfully. I am new to this, could it have something to do with the database? Thanks

Evilninja (talkcontribs)

If it's not solved already, does this comment help? It helped in my case! :)

 > FWIW, I had the same problem in MacOS 10.15.1 MediaWiki 1.33.1 (upgrading from 1.31.0 and
 > also ran update.php) and fixed it by running the following patch:
 > cd ~/Sites/Wiki/maintenance
 > sudo php ./patchSql.php sqlite/archives/patch-rev_text_id-default.sql

Good luck!

Reply to "Error when editing a wiki page"

I want to create a page for myself, the history of my origins, life experience, etc.,

2
2607:FEA8:DDF:E687:21FE:DC21:A08B:7DA6 (talkcontribs)

I want to create a page for myself, the history of my origins, life experience, etc.,

Ciencia Al Poder (talkcontribs)

Have you tried writing a blog? There are lots of free blog sites around the internet.

Reply to "I want to create a page for myself, the history of my origins, life experience, etc.,"