Project:Support desk

Jump to: navigation, search

About this board

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

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

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".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Display of indentation (:) on talk pages

1
Rdarovare (talkcontribs)

In the talk pages of our (local) instance, indentation does not display the background colors ; alternation of blue and white frames. I searched on cascading style sheets, and many ressources on the web, but I didn't found anything about it. May you explain how to define this rendering, please ? I hope to do this request on the good place. Apologize if doesn't it. Thanks in advance.

Reply to "Display of indentation (:) on talk pages"

Upgraded to 1.28 and now my templates don't work

15
121.73.1.114 (talkcontribs)

I have just upgraded from 1.13 to 1.28 and my templates no longer work.

Can someone tell me what I am doing wrong please.

The template is as follows:

{{{name}}} {{{surname}}}

[[Image:{{{name}}}_{{{surname}}}.jpg|right|border|frame|10px|{{{name}}} {{{surname}}}]] Given Name: {{{name}}} {{{surname}}} Sex: {{{sex}}}

Parents


{{#vardefine: i | 1 }}{{#dowhile:

 | 
  |

{{#vardefine: i

   | Expression error: Unrecognized punctuation character "{".
 }}

}}

{{#vardefine: i | 1}} {{#vardefine: j | 1}} {{#while:

 | 
  |
  • {{{sname{{#var: i }}}}}, married on Unknown
Children{{#vardefine: j | 1}}{{#dowhile:
   | 
    |
  • None
   {{#vardefine: j | Expression error: Unrecognized punctuation character "{".

}} }}

 {{#vardefine: i | Expression error: Unrecognized punctuation character "{".

}} }}

And The result looks like this:

<<< I CUT OUT THE BIT THAT WORKS >>>>

Siblings {{#vardefine: i | 1 }}{{#dowhile:

| 
 |

{{#vardefine: i

  | Expression error: Unrecognized punctuation character "{".
}}

}}

Partners {{#vardefine: i | 1}} {{#vardefine: j | 1}} {{#while:

| 
 |

{{{sname{{#var: i }}}}}, married on Unknown Children{{#vardefine: j | 1}}{{#dowhile:

  | 
   |

None

  {{#vardefine: j | Expression error: Unrecognized punctuation character "{".

}} }}

{{#vardefine: i | Expression error: Unrecognized punctuation character "{".

}} }}

Ciencia Al Poder (talkcontribs)

Looks like you need to install or enable some of your old extensions

121.73.1.114 (talkcontribs)

Thanks - I will give it a go

121.73.1.114 (talkcontribs)

Please see my post above ----- Call to undefined method Message::escape() on Loops extension

AhmadF.Cheema (talkcontribs)

After upgrading to MediaWiki v1.28 did you update your extensions too, especially Extension:Loops?

121.73.1.114 (talkcontribs)

Yes I did.

AhmadF.Cheema (talkcontribs)

What is the exact "Call to undefined method..." error that you are getting? Can you confirm it is related to Extension:Loops?

121.73.1.114 (talkcontribs)

<cut>PHP message: PHP Fatal error:  Call to undefined method Message::escape() in <cut>/Loops.php on line 360" while reading response header from upstream, client: <cut>

121.73.1.114 (talkcontribs)

<Bounce> Anyone got an answer?

Ciencia Al Poder (talkcontribs)

This was fixed in rELOOf9fe1ad758a7447a3c96f8c3ae9ce407095c8d20. You should try to download the latest version (for MediaWiki 1.29 or master) because 1.28 is broken.

121.73.1.114 (talkcontribs)

Thank you - I have downloaded and installed 1.29 and installed the extensions, I ran the upgrade.

Now I am receiving the following message

"Maximum number of loops have been performed"

I have tried to set the loops to the  limits of phps environment by putting the following in LocalSettings.php

ExtLoops::$maxLoops = -1;

Am I doing the right thing???

Ciencia Al Poder (talkcontribs)

Reading the code, ExtLoops::$maxLoops = -1; should work, yes. Does it still break? You may need to purge the page (for example, by editing the page again and saving without doing modifications)

121.73.1.114 (talkcontribs)

I am still having great trouble with this.

I am unable to edit a page I receive the following error

[error] 2401#0: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Maximum execution time of 120 seconds exceeded in /mediawiki/includes/parser/Preprocessor_DOM.php on line 1170" while reading response header from upstream, client: <CUT>, request: "POST /mediawiki/index.php?title=<CUT>&action=submit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "helium", referrer: <CUT>

Ciencia Al Poder (talkcontribs)

Either your server is too slow, or there's something stuck in one of the MediaWiki scripts. Maybe removing the limit in the loops extension was not a good idea after all, it probably causes an endless loop somewhere. You should review the logic of your loop templates to find where the problem is.

121.73.1.114 (talkcontribs)

Strange it should be a logic problem as those templates worked fine in 1.13

Reply to "Upgraded to 1.28 and now my templates don't work"
Waanders (talkcontribs)

What exactly is controlled by the Manual:$wgCachePages configuration setting? Manual page is very minimal.

Reply to "What is $wgCachePages for?"

submit request for any changes in mediawiki project

2
Mukulpandey007 (talkcontribs)

I have mediawiki 1.28 on a hosted platform. I want a feature, if someone creates or edit a page on my wiki, the user has to submit that page to admin and when the admin approves that, then only the page published on the wiki (just like Wikipedia).

2003:72:6D1E:C000:357C:F938:9A92:76E6 (talkcontribs)

That is done with Extension:FlaggedRevs!

Reply to "submit request for any changes in mediawiki project"

How can I remove picture that is on server with out my concern?

2
Maggimus (talkcontribs)

help some one. can't delete picture from http://ftpmirror.your.org/pub/wikimedia/images/wikipedia/is/7/7b/

it is not there with my consent!!!

regards Magnús Sveinbjörnsson

2003:72:6D1E:C000:357C:F938:9A92:76E6 (talkcontribs)

Which picture are you talking about? There are several inside that folder...

I guess you need to contact the site owner. Is that site an old copy of a Wikipedia wiki, of is.wikipedia.org maybe? Or whose wiki is that?

Reply to "How can I remove picture that is on server with out my concern?"
Austenjacoba (talkcontribs)

I have media wiki .29 installed on a virtual machine and when i try to edit the page using visualeditor nothing changes. The URL changes but nothing else happens, the page just stays the same. No error messages or loading bars appear like they did in a previous version i ran(which also did not get visual editor to fully function on).@Mediwiki~mediawikiwiki@Visual edit

MacFan4000 (talkcontribs)

How did you download the extension?

Austenjacoba (talkcontribs)

I've extracted it with cmd and git into the extensions folder, i also tried to download it from the site manually and putt it into the extensions folder.

MacFan4000 (talkcontribs)

It sounds like your missing lib/ve submodule.

Austenjacoba (talkcontribs)

is that when you do the submodule command in cmd? If so i have do that but i dont know if it actually brought them in.

MacFan4000 (talkcontribs)

Yes if you cloned it from github or downloaded it from GitHub. Otherwise no.

Austenjacoba (talkcontribs)

i re-downloaded the visualeditor from git using:

cd extensions                                                                                                git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git
cd VisualEditor
git submodule update --init

Everything came through, i think. Is there anyway to check if i have the lib/ve. Also is this the correct version for mediawiki .29?

AhmadF.Cheema (talkcontribs)

By default, the branch that should be downloaded would be the master branch.

To change to the REL1_29 branch, use the following code: git checkout -b REL1_29 origin/REL1_29

Austenjacoba (talkcontribs)

Still nothing, its like the page gets stuck after i click edit. Nothing changes though.

AhmadF.Cheema (talkcontribs)

Are there any errors logged in the Console tab of the browser F12 developer tools?

Reply to "VisualEditor"

One user is unable to edit or create pages, why?

2
Mushu999 (talkcontribs)

Installed software

Product Version
MediaWiki 1.28.0
PHP 5.6.24 (cgi-fcgi)
MySQL 5.7.17-log

I deleted his mwiki_user record in the mySQL table, then ran the createuser SpecialPage option, he still does not see the "(edit)" option on any pages. What can I do to troubleshoot this problem? His database record is the same as everyone else's and all other users are able to edit pages just fine. I'm all out of ideas.

AhmadF.Cheema (talkcontribs)

Is it possible that the issue is from the that user's side?

Maybe some gadget is enabled, some extension is blocking some resource (can be checked by looking at the Console tab of the browser F12 developer tools)? Has the user already tried using a different browser?

Reply to "One user is unable to edit or create pages, why?"

When editing, asking to type two words in a box that does not exist

4
Dr Reeves (talkcontribs)

I am a novice editor and have made written changes to a page without difficulty. However, I am not able to save changes involving references despite having done so successful with this software elsewhere.

For example, I attempted to insert, using the biomedical citation maker, a reference. A number was assigned, just as it was here when I pasted it in.[1]  However, when I selected save, I got a message saying

"Your edit includes new external links. To protect the wiki against automated spam, we kindly ask you to type the two words you see in the box below"

However the box below is the editing box and I see no two words or where to type them in.

Recommendations?

  1. Ebell MH, Siwek J, Weiss BD, Woolf SH, Susman J, Ewigman B et al. (2004). "Strength of recommendation taxonomy (SORT): a patient-centered approach to grading evidence in the medical literature.". J Am Board Fam Pract 17 (1): 59-67. PMID 15014055. 
AhmadF.Cheema (talkcontribs)

On which page exactly are you trying to make this edit? Can you provide a link?

Dr Reeves (talkcontribs)

https://en.wikipedia.org/wiki/Prolotherapy is the page link. Thanks for your help.

AhmadF.Cheema (talkcontribs)

It is possible some extension in your browser is inadvertently blocking the box from showing up, maybe try making the edit in another browser?

You probably won't have to go through this issue repeatedly, as once you have made enough edits on Wikipedia, this spam check will automatically get disabled for you.

Reply to "When editing, asking to type two words in a box that does not exist"

Error code after upgrade to latest version: Warning: session_write_close(): Failed to write session data (user).

6
203.167.191.74 (talkcontribs)

I have just updated to 1.28 and now at the bottom of every page is the following error:

Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea3) in /home/domain1/public_html/kb/includes/session/SessionManager.php on line 469

Any advice would be appreciated, thanks.

AhmadF.Cheema (talkcontribs)

As per Topic:Tug9cvthsqzr3y3p,

"Try to set $wgSessionCacheType to CACHE_DB."

203.167.191.74 (talkcontribs)

Thank you for the quick reply. What file would I find $wgSessionCacheType in, it does not seem to be in SessionManager.php

AhmadF.Cheema (talkcontribs)

It would be in your LocalSettings.php file.

203.167.191.74 (talkcontribs)

In the LocalSettings.php file I have a $wgMainCacheType but not a $wgSessionCacheType

AhmadF.Cheema (talkcontribs)

Then add it below the $wgMainCacheType value.

Reply to "Error code after upgrade to latest version: Warning: session_write_close(): Failed to write session data (user)."
Summary by Reception123

User permissions weren't defined, but it should be default per " Defaults to all registered users, except those in the 'blockedfromchat' group".

Reception123 (talkcontribs)

I'm trying to access Special:Chat from Extension:MediaWikiChat, but it says "You are not allowed to chat, try logging in first." even though I am already logged in. Example of the error: https://allthetropes.org/wiki/Special:Chat

MacFan4000 (talkcontribs)

According to https://allthetropes.org/wiki/Special:ListGroupRights only synops and chatmods have the “Chat” user right.

Reception123 (talkcontribs)

That is unusual. It says "Defaults to all registered users, except those in the 'blockedfromchat' group"