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

"MediaWiki:Cite references prefix" no longer exists -> how to add headline to citations?

1
Stefahn (talkcontribs)

I use <references /> in a template for all my articles. If there's at least one reference in the wikitext, the references are shown and via MediaWiki:Cite references prefix a headline was shown for the references. This worked fine in MediaWiki 1.27.

Now I updated to MediaWiki 1.31 and I found that MediaWiki:Cite references prefix no longer exists. What is the new equivalent to it?

Extension:Cite doesn't say anything about it.

Reply to ""MediaWiki:Cite references prefix" no longer exists -> how to add headline to citations?"

Mobile version m.sourcewiki.org error 404

2
Samuelwiki12 (talkcontribs)

hello everyone, now I just need that everything I publish on sourcewiki.org is published on m.sourcewiki.org

AhmadF.Cheema (talkcontribs)
Reply to "Mobile version m.sourcewiki.org error 404"

Sphinx (Read the Docs) Documentation conversion to Mediawiki ?

2
Sevan2911 (talkcontribs)

Hello Friends,

i am new to this so please bare with me: I was presented a documentation which was made in Sphinx and uses the "read the Docs" theme. Now i am not familiar with any of this but i was asked to set up a Mediawiki where all that stuff should be transfered to. Now i am asking you if anyone knows how i could pull that off ? Is there any way i can convert every "Page" of the Sphinx/RtD Documentation into my wiki ?


Thanks in Advance

Malyacko (talkcontribs)
Reply to "Sphinx (Read the Docs) Documentation conversion to Mediawiki ?"

30 days more and my editing is still review

2
140.0.94.89 (talkcontribs)

Please help me,

I have 3 article ,I edited them, but still review.


why this review take more longer than usual ? thanks

DannyS712 (talkcontribs)

can you elaborate? You don't appear to have made other edits to this site, no I'm assuming you are talking about a different wiki

Reply to "30 days more and my editing is still review"

Chinese variants conversion problems

3
Winston Sung (talkcontribs)

In Chinese-translated pages on this site, every conversion markup works fine except the -{T|}- markup used for zh title conversions (same as {{DISPLAYTITLE:}} (namely Translations:Help:Extension:Translate/Translation_example/Page_display_title/zh in Help:Extension:Translate/Translation_example/zh), but {{DISPLAYTITLE:}} cannot make any conversions, so the -{zh:Chinese content;zh-hans:Simplified Chinese content;zh-hant:Traditional Chinese content;}- markup doesn't work in the Page_display_title section), maybe the problem is the page “Translations:Help:Extension:Translate/Translation_example/Page_display_title/zh transcluded in Help:Extension:Translate/Translation_example/zh” by Extension:Translate will override the -{T|}- markup, so neither the the -{T|}- markup parameter “T” in Template:NoteTA works.

How can we fix it, or maybe it's a bug?

MarkAHershberger (talkcontribs)
Winston Sung (talkcontribs)

Thanks!

Reply to "Chinese variants conversion problems"

Can see thumbnails but not full-sized images

8
86.49.182.250 (talkcontribs)

When I upload an image I can see the thumbnail in my article.


But when I click the thumbnail I cannot see the full-sized image.


Any idea as of why this would be happening?

AhmadF.Cheema (talkcontribs)

On viewing the full-sized image, does the Console section of the browser developer tools (F12) give any errors?

86.49.182.250 (talkcontribs)
MarkAHershberger (talkcontribs)

It looks like $wgServer or a related setting is wrong. It should not have "index.php" in it.

TheBGPMan (talkcontribs)

I just created an account.


My $wgServer line reads as following:

$wgServer = "h ttp: // example. com:9000";

I was having issues with it before so I had to edit it to include the port number since I'm not using port 80.


I'm still trying to isolate what could be causing this issue.

MarkAHershberger (talkcontribs)

Is index.php mentioned anywhere in your LocalSettings.php? If not, could you paste it here with your passwords removed?

TheBGPMan (talkcontribs)

I have edited the personal information, passwords and keys:


<?php

# This file was automatically generated by the MediaWiki 1.33.0

# installer. If you make manual changes, please keep track in case you

# need to recreate them later.

#

# See includes/DefaultSettings.php for all configurable settings

# and their default values, but don't forget to make changes in _this_

# file, not there.

#

# Further documentation for configuration settings may be found at:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "EXAMPLE";

$wgMetaNamespace = "EXAMPLE";

## The URL base path to the directory containing the wiki;

## defaults for all runtime URL paths are based off of this.

## For more information on customizing the URLs

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://example.com:9000";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = "{$wgScriptPath}/images";

## The URL path to the logo.  Make sure you change this from the default,

## or else you'll overwrite your logo when you upgrade!

$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";

## UPO means: this is also a user preference option

$wgEnableEmail = false;

$wgEnableUserEmail = false; # UPO

$wgEmergencyContact = "apache@ip_address";

$wgPasswordSender = "apache@ip_address";

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = false; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "wikidb";

$wgDBuser = "root";

$wgDBpassword = "PASSWORD";

# MySQL specific settings

$wgDBprefix = "";

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

## Shared memory settings

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = [];

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org

$wgUseInstantCommons = true;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data

# about this MediaWiki instance. The Wikimedia Foundation shares this data

# with MediaWiki developers to help guide future development efforts.

$wgPingback = false;

## If you use ImageMagick (or any other shell command) on a

## Linux server, this will need to be set to the name of an

## available UTF-8 locale

$wgShellLocale = "C.UTF-8";

## Set $wgCacheDirectory to a writable directory on the web server

## to make your wiki go slightly faster. The directory should not

## be publicly accessible from the web.

#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/data/Names.php

$wgLanguageCode = "en";

$wgSecretKey = "SECRETKEY";

# Changing this will log out all existing sessions.

$wgAuthenticationTokenVersion = "1";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = "UPGRADEKEY";

## For attaching licensing metadata to pages, and displaying an

## appropriate copyright notice / icon. GNU Free Documentation

## License and Creative Commons licenses are supported so far.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "/usr/bin/diff3";

# The following permissions were set based on your choice in the installer

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['read'] = false;

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "timeless";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'Vector' );

# Enabled extensions. Most of the extensions are enabled by adding

# wfLoadExtensions('ExtensionName');

# to LocalSettings.php. Check specific extension documentation for more details.

# The following extensions were automatically enabled:

wfLoadExtension( 'CategoryTree' );

wfLoadExtension( 'Cite' );

wfLoadExtension( 'CiteThisPage' );

wfLoadExtension( 'CodeEditor' );

wfLoadExtension( 'Gadgets' );

wfLoadExtension( 'ImageMap' );

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'Interwiki' );

wfLoadExtension( 'LocalisationUpdate' );

wfLoadExtension( 'MultimediaViewer' );

wfLoadExtension( 'Nuke' );

wfLoadExtension( 'OATHAuth' );

wfLoadExtension( 'ParserFunctions' );

wfLoadExtension( 'PdfHandler' );

wfLoadExtension( 'Poem' );

wfLoadExtension( 'Renameuser' );

wfLoadExtension( 'ReplaceText' );

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'WikiEditor' );

# End of automatically generated settings.

# Add more configuration options below.

wfLoadExtension( 'UserMerge' );

// By default nobody can use this function, enable for bureaucrat?

$wgGroupPermissions['bureaucrat']['usermerge'] = true;

// optional: default is array( 'sysop' )

$wgUserMergeProtectedGroups = array( 'groupname' );

#FOR UPLOADS

$wgUploadDirectory = "images";

$wgUploadPath = "images/img";

// Override the default with a bundle of filetypes:

$wgFileExtensions = array(

    'png', 'gif', 'jpg', 'jpeg', 'jp2', 'webp', 'ppt', 'pdf', 'psd',

    'mp3', 'xls', 'xlsx', 'swf', 'doc','docx', 'odt', 'odc', 'odp',

    'odg', 'mpp'

    );

$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";

TheBGPMan (talkcontribs)

There's only one line with index.php but it's just a comment.

Reply to "Can see thumbnails but not full-sized images"

How reliable is MediaWIki? How to make MediaWiki more reliable?

5
Shendaowu (talkcontribs)

Reliable like a page won't be lost. Can mediaWiki be more reliable without extensions?

MarkAHershberger (talkcontribs)

Once you create a page in MediaWiki, the contents are stored in the database.

The only way a page could be "lost" by MediaWiki is if there is a bug that causes the deletion. If you run MediaWiki without any extensions, then a bug like that would be very, very, very surprising since people have used MediaWiki to store millions if not billions of pages.

A page could also be lost because of database corruption, but this, too, is extremely unlikely unless you have other problems with your physical computer.

Malyacko (talkcontribs)

Please provide clear information how you measure how "reliable" some software is.

In general, you can make MediaWiki (or your computer, or your car, or anything else) more reliable by finding wrong behavior and repairing that wrong behavior by making it right behavior.

Shendaowu (talkcontribs)

Are there any bugs that caused the page to be lost in the history of MediaWIki?

MarkAHershberger (talkcontribs)

Maybe. I'm not familiar with any that have, but if you'd like to know you can search phabricator which contains all the reported bugs. (Here is one that was first reported in 2004 on SourceForge and then moved to Bugzilla and, finally, to Phabricator, for example.)

Reply to "How reliable is MediaWIki? How to make MediaWiki more reliable?"
Samuelwiki12 (talkcontribs)

hello, greetings to the support I need your help, I have a domain which is sourcewiki.org which is mounted on mediawiki and I also want to have a mobile version which is m.sourcewiki.org I already have the theme for mobile and the subdomain M just need to relate the two domains that when published on sourcewiki.org is also published on m.sourcewiki.org as well as automatically someone between sourcewiki.org from a mobile device redirects you to m.sourcewiki.org, THANK YOU VERY MUCH THANK YOU VERY THANK YOU AGAINST sourcewiki.org from a mobile device redirects you to m.sourcewiki.org, THANK YOU VERY YOU!

please give me the code...

MarkAHershberger (talkcontribs)
Reply to "Mobile Version Subdomain"

How to create / styles.css file?

71
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.

Tofiq Kərimli (talkcontribs)

MarkAHershberger, thank you very much. No such clear explanation elsewhere. I easily understood what you wrote. But I did not understand two things:

1. I need to download composer.phar. Where to download; on "extensions / TemplateStyles"? Or inside the root MediaWiki directory?

2. Only one thing I did not understand: "run this command: php composer.phar update --no-dev" . So, do I need to write it in "composer.local.json"? I wrote so:

{

"extra": {

"merge-plugin": {

"include": [

"extensions/TemplateStyles/composer.json"

]

}

},

        "php composer.phar update": "no-dev"

}

MarkAHershberger (talkcontribs)

> I need to download composer.phar. Where to download?

The instructions to download composer.phar are on the linked page above. This is the gecomposer.org/download page. It does not mentione composer.phar directly, but that is the file produced by the command php composer-setup.php.

The commands on the download page are currently:

  1. php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  2. php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  3. php composer-setup.php
  4. php -r "unlink('composer-setup.php');"

Note that hash in #2 may change by the time you read this, so you need to copy the commands directly from the getcomposer.org/download page. These commands need to be run using your shell access on the command line.

Run these command to download composer.phar inside the your root MediaWiki directory.

You said you have shell access, so you can run these commands at the command prompt after you log in.

Tofiq Kərimli (talkcontribs)

Thank you.

1.Yesterday I downloaded composer.phar to the root MediaWiki directory.

2. Then I renamed composer.local.json-sample to composer.local.json.

3. In compose.local.json, I replaced extensions / example / composer.json with extensions / TemplateStyles / composer.json.

4. ? Then I need to run this command: php composer.phar update --no-dev ? I can not do that. Because I can not understand. What is "--no-dev"? I can not do that. Because I can not understand. What is "--no-dev"? In compose.local.json? So: {

"extra": {

"merge-plugin": {

"include": [

"extensions/TemplateStyles/composer.json"

]

}

},

        "php composer.phar update": "no-dev"

}?

AhmadF.Cheema (talkcontribs)

When the instruction is to run a command, it doesn't mean that you need to edit some file. You have to run that command through some terminal (like cmd, PuTTY etc.).

For running such commands, you'll first need to connect to your computer through SSH to your website's host server. Your hosting service should have instructions on exactly how to do this.

As a beginner, see How does SSH Work (only up to the second section How Does SSH Work, the rest is mostly unnecessary).

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

Why do you think you need to transfer your account to VPS? This has nothing to do with what has been mentioned previously.

Which hosting service and host plan are you using?

Tofiq Kərimli (talkcontribs)
MarkAHershberger (talkcontribs)

Use the SSH access one.

Tofiq Kərimli (talkcontribs)

MarkAHershberger, this video shows that (0:17) should have the "SSH / Shel Access" button. But I do not have such a button. I downloaded "PuTTY". But, unfortunately, I could not activate it. Maybe if I get another host, will this problem be solved?

MarkAHershberger (talkcontribs)

Make sure that your host provides shell access. You can get a VPS pretty cheaply from Linode (for example) if that helps.

Tofiq Kərimli (talkcontribs)

Within a month, I expect someone to answer my question. But no one answers. But I hope that the answer will be soon. I look forward to this minute.

MarkAHershberger (talkcontribs)

Calm down.

It hasn't even been a day, let alone a month. Those of us who post here do so in our free time. Sometimes other things in life have our attention so we are not able to respond quickly.

AhmadF.Cheema (talkcontribs)

Even with the hidden items, the numbers don't match.

This is Scribunto's REL1_33/extension.json file on GitHub (the same one obtained through extension distributor) and this is on your server. Both are obviously different (check the "manifest_version" at the end).

Stop assuming things, there is no "composer update" file. Once more, it doesn't appear that you have the correct version copied on your server.

Tofiq Kərimli (talkcontribs)

Thank you for your attention. I downloaded: Scribunto-REL1_33-8328acb.tar.gz and TemplateStyles-REL1_33-c76fd84.tar.gz . And I activated them. What should I do next? Thank you in advance of your reply.

MarkAHershberger (talkcontribs)

Just fyi, master has manifest_version 2 and, until a few hours ago, the extension distributor didn't have 1.33 as a stable version. Maybe he has the master version.

Tofiq Kərimli (talkcontribs)

Yes, I downloaded the "master" version yesterday. Previously, the version was "REL1_33". Do you think I should download the version of "REL1_33" again?

MarkAHershberger (talkcontribs)

It wouldn't hurt, but may not be necessary.

Reply to "How to create / styles.css file?"
Erfansol (talkcontribs)

Hi all

after update from 1.28 to 1.32:

link 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

Backtrace:

#0 /var/www/html/32/includes/Revision/RevisionStoreRecord.php(73): Wikimedia\Assert\Assert::parameter(boolean, string, string)

#1 /var/www/html/32/includes/Revision/RevisionStore.php(1794): MediaWiki\Revision\RevisionStoreRecord->__construct(Title, User, CommentStoreComment, stdClass, MediaWiki\Revision\RevisionSlots, boolean)

#2 /var/www/html/32/includes/Revision/RevisionStore.php(2757): MediaWiki\Revision\RevisionStore->newRevisionFromRow(stdClass, integer, Title)

#3 /var/www/html/32/includes/Revision.php(1308): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title, integer)

#4 /var/www/html/32/includes/page/WikiPage.php(744): Revision::newKnownCurrent(Wikimedia\Rdbms\DatabaseMysqli, Title, integer)

#5 /var/www/html/32/includes/page/WikiPage.php(766): WikiPage->loadLastEdit()

#6 /var/www/html/32/includes/page/WikiPage.php(638): WikiPage->getRevision()

#7 /var/www/html/32/includes/libs/objectcache/WANObjectCache.php(1277): WikiPage->{closure}(boolean, integer, array, NULL)

#8 /var/www/html/32/includes/libs/objectcache/WANObjectCache.php(1150): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)

#9 /var/www/html/32/includes/page/WikiPage.php(647): WANObjectCache->getWithSetCallback(string, integer, Closure)

#10 /var/www/html/32/includes/page/WikiPage.php(269): WikiPage->getContentModel()

#11 /var/www/html/32/includes/page/WikiPage.php(256): WikiPage->getContentHandler()

#12 /var/www/html/32/includes/actions/Action.php(98): WikiPage->getActionOverrides()

#13 /var/www/html/32/includes/actions/Action.php(156): Action::factory(string, WikiPage, RequestContext)

#14 /var/www/html/32/includes/MediaWiki.php(155): Action::getActionName(RequestContext)

#15 /var/www/html/32/includes/MediaWiki.php(777): MediaWiki->getAction()

#16 /var/www/html/32/includes/MediaWiki.php(517): MediaWiki->main()

#17 /var/www/html/32/index.php(42): MediaWiki->run()

#18 {main}

OR

when is use rebuildtex.php in putty show this error:

Clearing searchindex table...Done

Rebuilding index fields for 2042149538 pages...

[671f7d80f09b99cf7a1c40b2] [no req]   Wikimedia\Assert\ParameterAssertionExcepti                                                                                        on 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


please help me,

best regards

TheDJ (talkcontribs)

You should check your revisions table in your database for bad timestamps. Maybe there is a row with a null or 0 or a very old timestamp or something