Open main menu

Project:Support desk

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.
Other languages: English  العربية čeština Esperanto français 日本語 中文

what is alternate for Extension:SmoothGallery ?

1
SanjayKSahu (talkcontribs)

HI,


We have been upgraded our MediaWiki to the available LTS version of MediaWiki as follows.

But, we notice the SmoothGallery extension is not working any more. Could you let know which would be the alternate extension for SmoothGallery ?


Installed software

Product Version
MediaWiki 1.31.1
PHP 7.1.8 (apache2handler)
MySQL 5.6.40
ICU 50.1.2


Thank you !

Sanjay

Reply to "what is alternate for Extension:SmoothGallery ?"

Error creating thumbnail:bin/bash: /usr/bin/convert, No such file or directory

2
199.228.98.65 (talkcontribs)

Hello Friends,

While we are trying to upload images to one of our wiki page , getting the below error.

"Error creating thumbnail:bin/bash: /usr/bin/convert, No such file or directory

Error code: 127"

Could you please advise on resolving this issue

Malyacko (talkcontribs)
Reply to "Error creating thumbnail:bin/bash: /usr/bin/convert, No such file or directory"

Changing background colors in MediaWiki:Common.css

4
Dharma-lotus-wiki (talkcontribs)

Hello,

I have a wiki ([[random page: http://www.dharma-lotus.nl/wiki/index.php?title=Zuivering_door_kennis_en_inzicht) and I changed the some background as you can see. But; how do I change:

  • the background color in the article area
  • the background color in the index part
  • the background color in the buttons (pagina, overleg, lezen, bewerken, geschiedenis weergeven)

Many thanks if you can help me out, Ivar

AhmadF.Cheema (talkcontribs)
Krauss (talkcontribs)

Hi, where the answer??, please somebody ...

AhmadF.Cheema (talkcontribs)
Reply to "Changing background colors in MediaWiki:Common.css"
Aseques (talkcontribs)

I am in the process to install mediawiki in our company to have an internal wiki, I was looking for a plugin installer but I couldn't find anything (so I installed them manually as explained in the docs). My question is if there is any way to get notifications (preferably on the admin users) when there are new releases of the plugins / mediawiki.

AhmadF.Cheema (talkcontribs)
Aseques (talkcontribs)

Thanks for your answer @AhmadF.Cheemabut I meant to get the notifucations when logging into the wikipedia as an admin account. Being this notification retreived automatically from mediawiki servers.

AhmadF.Cheema (talkcontribs)

By "wikipedia", I'm assuming you mean you personal MediaWiki installation.

Regarding your question, I'm pretty sure such a system unfortunately doesn't exist yet.

Reply to "Old plugins notifications"
Erfansol (talkcontribs)

Hello friends good day

I have a very serious problem after updating from 1.28 to 1.33 and it's timestamp error, which makes it impossible to search and many of our encyclopaedia articles to be displayed correctly.

Please help us


ink of 1.32  :http://wikijoo.ir/32

link of 1.28:http://wikijoo.ir

1.32.0
PHP 7.0.33-0ubuntu0.16.04.5 (apache2handler)
MySQL 5.7.25-0ubuntu0.16.04.2
ICU 55.1
Lua 5.1.5

MediaWiki internal error.

Original exception: Wikimedia\Assert\ParameterAssertionException from line 63 of /var/www/html/32/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter $row->rev_timestamp: must be a valid timestamp


best regards

Reply to "rev_timestamp: must be a valid"

[RESOLVED] How can I change the background color of the skin Vector?

4
185.5.60.134 (talkcontribs)

Hi, I have a question: can you tell me how to change the background color of the skin Vector in Mediawiki 1.25.1? Until now I used MediaWiki 1.22 and was sufficient just change the color in the file screen.less... But now it looks totally different and I do not understand what I have to change.

Thank you!

88.130.108.58 (talkcontribs)

Basically what you do is, use the same style definition as you did before (this modified line from in the screen.less file), but put the CSS definition into the wiki page MediaWiki:Vector.css in your wiki. Basically, just as an example (which will most likely not do what you want, but should show how that's basically meant to look like):

#mw-body {
    background-color: red;
}
Krauss (talkcontribs)

You must to use admin user... And #mw-body is wrong (!), you can use the tag name body (it is unique), or, today, for current skin Vector version, body.mediawiki.

Reply to "[RESOLVED] How can I change the background color of the skin Vector?"

How to create / styles.css file?

77
Tofiq Kərimli (talkcontribs)

Hello I'm new. All my work is in order (https://wiki.sheki.site/) . I only have 2 problems; One of these is that I can not create some files. For example, Module: Citation / CS1 / styles.css has no content How do I create this? The document contains errors. Written: "Are you sure you want to save?" Then it is written: Error: Lua error at line 1: unexpected symbol near '/'. What do I have to do? Thanks in advance.

AhmadF.Cheema (talkcontribs)
Tofiq Kərimli (talkcontribs)

Needed for Template:Citation. I can not create sub template for several other templates.

MarkAHershberger (talkcontribs)

Where do you see the Lua error?

Tofiq Kərimli (talkcontribs)

When I click the "Save changes" button, this warning is displayed: "Are you sure you want to save?" Second time this warning is displayed:Error: Lua error at line 1: unexpected symbol near '/'.

MarkAHershberger (talkcontribs)

I assume you're trying to copy something like this page.

A non-existent page in the Modules namespace that ends with .css is identified as a CSS page. The same page without .css is identified as scribunto or lua. On your wiki, both are identified as scribunto.

This is handled by TemplateStyles and integration of TemplateStyles with Scribunto is only available since 1.33.

You can try installing the newer Scribunto and TemplateStyles in your current wiki, but it looks like you really need to upgrade the wiki.

Tofiq Kərimli (talkcontribs)
Tofiq Kərimli (talkcontribs)

About my Wiki:

MediaWiki 1.32.1
PHP 7.0.33 (cgi-fcgi)
MySQL 5.7.26
ICU 4.2.1
Lua 5.1.5

Do you need any further information?

TheDJ (talkcontribs)

Have you installed Extension:TemplateStyles ? a requirement for many modern complex templates copied from English Wikipedia.

MarkAHershberger (talkcontribs)

I just discovered that extension (see my most recent comment above). Could they install just that extension and designate the Module namespace and have it work?

Tofiq Kərimli (talkcontribs)

I downloaded "Scribunto REL1-33". Everything remained the same. I wanted to change the module here:

https://wiki.sheki.site/index.php?title=X%C3%BCsusi:ChangeContentModel/Module:Citation/CS1/s.css . It turned out:

[XShOPbuOMIRDVkC8476ujAAAAAQ] /index.php?title=X%C3%BCsusi:ChangeContentModel/Module:Citation/CS1/s.css Error from line 76 of /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found

Backtrace:

#0 /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php(131): TemplateStylesContent->sanitize(array)

#1 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(242): TemplateStylesContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#2 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(TemplateStylesContent, boolean)

#3 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

-//-

#23 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()

#24 {main}


I downloaded "TemplateStyles REL1-33". When I try to create Module:Citation/CS1/styles.css , it emerges: [XShLfpbzS52E3RAPefNzSgAAAAA] /index.php?title=Module:Citation/CS1/styles.css&action=submit Error from line 78 of /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found

Backtrace:

#0 /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php(135): TemplateStylesContent->sanitize(array)

#1 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(242): TemplateStylesContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#2 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(TemplateStylesContent, boolean)

-//-

#23 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()

#24 {main}

AhmadF.Cheema (talkcontribs)

I don't think you can install "Scribunto REL1-33" with MediaWiki v1.32 release. You'll have to upgrade your MediaWiki to v1.33 to make use of Scribunto REL1_33.

Tofiq Kərimli (talkcontribs)
MarkAHershberger (talkcontribs)

You will need TemplateStyles in addition to the newer Scribunto.

If you just want to upgrade, you can get the update on the download page.

Tofiq Kərimli (talkcontribs)
MarkAHershberger (talkcontribs)

I see. Then you should just upgrade to the latest version of MediaWiki.

Tofiq Kərimli (talkcontribs)

I did that:

MediaWiki 1.33.0
PHP 7.0.33 (cgi-fcgi)
MySQL 5.7.26
ICU 4.2.1
Lua 5.1.5

Nothing has changed. Everything remains the same. Additionally, the following errors appear on all pages: [XSjUIF7nhIiVEDQYFJvOCAAAAAo] /index.php?title=Ana_S%C9%99hif%C9%99&action=edit Error from line 36 of /home/ipekchi/public_html/wiki/extensions/WikiEditor/includes/WikiEditorHooks.php: Call to undefined method EventLogging::sessionInSample()

Backtrace:

#0 /home/ipekchi/public_html/wiki/extensions/WikiEditor/includes/WikiEditorHooks.php(114): WikiEditorHooks::doEventLogging(string, Article, array)

#1 /home/ipekchi/public_html/wiki/includes/Hooks.php(174): WikiEditorHooks::editPageShowEditFormInitial(EditPage, OutputPage)

#2 /home/ipekchi/public_html/wiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#3 /home/ipekchi/public_html/wiki/includes/EditPage.php(2770): Hooks::run(string, array)

#4 /home/ipekchi/public_html/wiki/includes/EditPage.php(712): EditPage->showEditForm()

#5 /home/ipekchi/public_html/wiki/includes/actions/EditAction.php(60): EditPage->edit()

#6 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(499): EditAction->show()

#7 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#8 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#9 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(515): MediaWiki->main()

#10 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()

#11 {main}

MarkAHershberger (talkcontribs)

When you upgrade your wiki, you generally need to upgrade all the extensions, as well. Try upgrading WikiEditor and the EventLogging extension.

Tofiq Kərimli (talkcontribs)

Other errors have been corrected. Only "Home Page" is completely lost.

The Module: Citation / CS1 / styles.css has not been created yet. It shows this error:

[XSkAusGSMffooJ-SDnAP@gAAAAM] /index.php?title=X%C3%BCsusi:ChangeContentModel/ Error from line 78 of /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found

Backtrace:

#0 /home/ipekchi/public_html/wiki/extensions/TemplateStyles/includes/TemplateStylesContent.php(135): TemplateStylesContent->sanitize(array)

#1 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(265): TemplateStylesContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#2 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(TemplateStylesContent, boolean)

#3 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(193): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#4 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(142): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

-//-

#21 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#22 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(515): MediaWiki->main()

#23 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()

#24 {main}

MarkAHershberger (talkcontribs)
Tofiq Kərimli (talkcontribs)
MarkAHershberger (talkcontribs)

I don't think you should use the Special:ChangeContentModel page to change the content type. Just let Scribunto and TemplateStyles do their thing. Can you revert your changes?

Tofiq Kərimli (talkcontribs)

Unfortunately, I do not know how to get back. But it seems to me that it's the same as before. Both pages have been deleted.

Tofiq Kərimli (talkcontribs)

I've updated all the extensions. But "Module: Citation / CS1 / styles.css" did not appear. Moreover, "MediaWiki 1.33" works very slowly. does not open "commons.wikimedia" files.

MarkAHershberger (talkcontribs)

Could you re-install with 1.33 so we can see what info on Module:Citation/CS1/styles.css shows?

I'm not sure what you mean by 'does not open "commons.wikimedia" files' but that sounds like a bug that we should find more information about.

Tofiq Kərimli (talkcontribs)

True, the problem of "commons.wikimedia" files probably appeared for another reason. Because I have resumed the MediaWiki version 1.33, the problem remains: https://wiki.sheki.site/index.php?title=X%C3%BCsusi:WantedFiles I do not know why, maybe some extensions have changed. For example, because I downloaded "Scribunto REL1_33" instead of "Scribunto REL1_32". I think that if I return them to the previous situation, it will probably be the same as before.

MarkAHershberger (talkcontribs)

It shows that you still have 1.32 extensions installed instead of 1.33 ones. Let me know when/if you get that straightened out.

Tofiq Kərimli (talkcontribs)

I understand that nobody knows how to solve the problem. Therefore, there is no answer to my question.

Tofiq Kərimli (talkcontribs)
Tofiq Kərimli (talkcontribs)

I resumed version 1-32.1 with "http://wiki.sheki.site/mw-config/". Expansions remain in the "1-33" version. There is no problem. Now there is no problem with "commons.wikimedia".

Tofiq Kərimli (talkcontribs)

I downloaded "MediaWiki 1.33.0" again.

Məhsul Versiya
MediaWiki 1.33.0
PHP 7.0.33 (cgi-fcgi)
MySQL 5.7.26
ICU 4.2.1
Lua 5.1.5

All the extensions were originally "1.33". I wrote this above. No pages can be edited. When I wanted to edit the pages, but the following errors appeared on all pages:


[XSrnNnnkxR@u@UeB5zGZgQAAAAU] /index.php?title=Dinar&action=edit Error from line 36 of /home/ipekchi/public_html/wiki/extensions/WikiEditor/includes/WikiEditorHooks.php: Call to undefined method EventLogging::sessionInSample()

Backtrace:

#0 /home/ipekchi/public_html/wiki/extensions/WikiEditor/includes/WikiEditorHooks.php(114): WikiEditorHooks::doEventLogging(string, Article, array)

#1 /home/ipekchi/public_html/wiki/includes/Hooks.php(174): WikiEditorHooks::editPageShowEditFormInitial(EditPage, OutputPage)

#2 /home/ipekchi/public_html/wiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#3 /home/ipekchi/public_html/wiki/includes/EditPage.php(2770): Hooks::run(string, array)

#4 /home/ipekchi/public_html/wiki/includes/EditPage.php(712): EditPage->showEditForm()

#5 /home/ipekchi/public_html/wiki/includes/actions/EditAction.php(60): EditPage->edit()

#6 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(499): EditAction->show()

#7 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#8 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#9 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(515): MediaWiki->main()

#10 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()

#11 {main}


Does not open "commons.wikimedia" files. Should we go back or solve this problem?

AhmadF.Cheema (talkcontribs)

Usually, your MediaWiki core and extensions have to be correspond to the same release.

Take a look at the error description. It mentions "extensions/WikiEditor" and a call to an undefined method. This usually means that the release versions of your WikiEditor extension and MediaWiki core do not match.

Make sure your Extension:WikiEditor is the right version.

Tofiq Kərimli (talkcontribs)
Tofiq Kərimli (talkcontribs)

Now I'll check it again. I'm paying attention to the fact that when the name "EventLogging" is removed from the "LocalSettings.php" page, the errors disappear.

Tofiq Kərimli (talkcontribs)
This post was hidden by 94rain (history)
AhmadF.Cheema (talkcontribs)
Tofiq Kərimli (talkcontribs)

No, I checked them all, and sometimes I downloaded it several times. I uploaded a new one here ( расширение: EventLogging, - mediawiki-extensions-EventLogging-REL1_33 ) . Look, the history of both of them is the same.

AhmadF.Cheema (talkcontribs)
Tofiq Kərimli (talkcontribs)
Tofiq Kərimli (talkcontribs)
Tofiq Kərimli (talkcontribs)

I've created a new Wiki.

Məhsul Versiya
MediaWiki 1.33.0
PHP 7.0.33 (cgi-fcgi)
MySQL 5.7.26
ICU 4.2.1
Lua 5.1.5


Extensions are those contained in it. I have just downloaded "Scribunto-REL1_33" and TemplateStyles-REL1_33. But it is not possible to create "Module: Citation / CS1 / styles.css". Here Anomie pointed out the solution to the problem: "You probably forgot to run composer update --no-dev as described at Extension:TemplateStyles#Installation?" But the "composer update" file does not exist here and I do not know what to do? AhmadF.Cheema and MarkAHershberger, I would be very happy if you told me that.

MarkAHershberger (talkcontribs)

Re: composer. There is no "composer update" file. That would be a command you run.

Do you have shell access? If not, fulfilling the dependencies is going to be a problem.

AhmadF.Cheema (talkcontribs)
Tofiq Kərimli (talkcontribs)

No, I think there is no difference. These files (Scribunto: .eslintrc.json; .gitignore; .minus-x.json; .gitreview; .phpcs.xml; .stylelintrc.json and TemplateStyles: .eslintrc.json; .gitignore; .gitreview; .phpcs.xml ) do not appear there, but appear in "ftp"... The cause of the problem is known. Here Anomie pointed out the solution to the problem: "You probably forgot to run composer update --no-dev as described at Extension:TemplateStyles#Installation?" But the "composer update" file does not exist here and I do not know what to do? I would be very happy if you told me that.

Tofiq Kərimli (talkcontribs)

When I try to create a "Module: Citation / CS1 / styles.css, the following error appears:"


[XS4dotTx@UPJx-C1o@Y-CAAAAA4] /index.php?title=Module:Citation/CS1/styles.css&action=submit Error from line 78 of /home/ipekchi/public_html/sheki.site/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found

Backtrace:

#0 /home/ipekchi/public_html/sheki.site/extensions/TemplateStyles/includes/TemplateStylesContent.php(135): TemplateStylesContent->sanitize(array)

#1 /home/ipekchi/public_html/sheki.site/includes/Revision/RenderedRevision.php(265): TemplateStylesContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#2 /home/ipekchi/public_html/sheki.site/includes/Revision/RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(TemplateStylesContent, boolean)

--//--

#26 /home/ipekchi/public_html/sheki.site/index.php(42): MediaWiki->run()

#27 {main}

MarkAHershberger (talkcontribs)

We're getting somewhere. At least the right content handler is being used.

MarkAHershberger (talkcontribs)

You do need to take care of the composer dependencies. The error is because the composer dependency for TemplateStyles isn't fulfilled. Do you have command line access to the server?

Tofiq Kərimli (talkcontribs)

Thank you for your attention. I have command line access to the server. I learned a lot in a month. Only I can not learn this: take care of the composer dependencies

MarkAHershberger (talkcontribs)

You need to download composer.phar and then rename composer.local.json-sample to composer.local.json. In compose.local.json, replace extensions/example/composer.json with extensions/TemplateStyles/composer.json and then run this command: php composer.phar update --no-dev. That should install the dependencies you need. Once you've run that command, could you paste the output here so we can help if you run into problems later.