Project:Support desk

Jump to: navigation, search

About this board

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".
Language: English  español
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
Cm2785 (talkcontribs)

Hi there! I have Xampp installed and mediawiki and I can access it on another computer over LAN by typing in the IP and exact path, but when logging on or selecting other links it reverts back to localhost and I have to re-enter the IP address in place of localhost to get that page to work. Is there a way I can set this up to avoid this? Thanks!

AhmadF.Cheema (talkcontribs)

You probably need to set $wgServer to your computer's IP.

71.9.45.186 (talkcontribs)

Thank you, where would I enter this?

Jackmcbarn (talkcontribs)

In LocalSettings.php.

71.9.45.186 (talkcontribs)

Thanks I added that and got: Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 135

71.9.45.186 (talkcontribs)

Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 70

71.9.45.186 (talkcontribs)

Nevermind I got it, thanks!

Reply to "Sharing over a network"

DBQueryError when I try to search for anything on test Wiki

5
DK PWCS (talkcontribs)

I have set up a test Wiki with several pages but every time I use the search function I get

Database Error

A database query error has occurred. This may indicate a bug in the software. [ff557850846b7910a1eed4c3] 2016-12-08 00:50:41: Fatal exception of type "DBQueryError"

What have I done wrong?

Jackmcbarn (talkcontribs)

More information is needed to determine the problem. Please follow the instructions at Manual:How to debug to get this information.

DK PWCS (talkcontribs)

Thanks.

I've added this to index.php and LocalSettings.php but get nothing extra: error_reporting( -1 ); ini_set( 'display_startup_errors', 1 ); ini_set( 'display_errors', 1 );

DK PWCS (talkcontribs)

Thanks.

I've added this to index.php and LocalSettings.php but get nothing extra: error_reporting( -1 ); ini_set( 'display_startup_errors', 1 ); ini_set( 'display_errors', 1 );

71.9.45.186 (talkcontribs)

Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 70

Reply to "DBQueryError when I try to search for anything on test Wiki"

Error: 1 cannot start a transaction within a transaction

1
Dbeidle (talkcontribs)

Since I updated to mediawiki-1.28.0 from mediawiki-1.26.2 yesterday, I've been getting the following error, usually when I save or preview an edited page, and occasionally when I access a page:

Original exception: [a53679567296387f8f2003e6] /~dabeidle/mediawiki-1.28.0/index.php?title=Main_Page&action=submit DBQueryError from line 1054 of /Users/dabeidle/Sites/mediawiki-1.28.0/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: BEGIN Function: Database::query (MessageCache::loadFromDB(en)-big) Error: 1 cannot start a transaction within a transaction

If I resubmit the edit page, the changes are saved (usually after the 3rd attempt). On a query, reloading the page works.

One change I made from the previous version was to change the database ownership from _www:_www to my account, with corresponding changes in http.conf. This is a local, private wiki running on macOS Sierra 10.12.1, PHP 5.6.25, SQLite 3.8.10.2 as a personal knowledge base so access from the Internet is not possible.

The questions I have are: "Did I encounter a regression that I need to log as a bug?" in which case I can provide more detail, or "Did I miss something (probably simple) in the upgrade or configuration?"

I followed the upgrade procedure on <http://www.mediawiki.org/wiki/Manual:Upgrading>, including upgrading the SQLite3 database.

Reply to "Error: 1 cannot start a transaction within a transaction"
Tunglinwu (talkcontribs)

CENTOS 7.2 + nginx 1.10 + php 7.1

Warning: Parameter 1 to ExtVariables::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ImageMap::onParserFirstCallInit() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to InputBoxHooks::register() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Poem::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195


PHP 7.1 is released , PLEASE fix this error.

AKlapper (WMF) (talkcontribs)

Your posting does not include any errors, only warnings. Please feel free to report a software bug, see https://mediawiki.org/wiki/How_to_report_a_bug

Reply to "Hooks.php on line 195"

Options for dark theme in Android APP missing

1
80.81.3.182 (talkcontribs)

Hi there,

the former releases of the android app showed an option to turn the WIKIPEDIA APP theme into dark for better reading by night. Now I can't find this trigger anymore, is there a chance to reactivate it? I'm using APP Version 2.4.16-r.2016-10-14

Reply to "Options for dark theme in Android APP missing"

Я не могу разместить статью о компании на Вики

5
Таня Коренева (talkcontribs)

Доброго дня!

Уже несколько раз размещала статью о компании "Омские кабельные сети" в В.

Но она удаляется с ошибкой  "Вы не можете создать эту страницу: это название было защищено от создания.

Что это значит? Помогите, пожалуйста, разобраться.

Fokebox (talkcontribs)

Это где Вы статью пытались создать? В Википедии чтоль?

Таня Коренева (talkcontribs)

да, в ней самой

Fokebox (talkcontribs)

Стало быть статья не соответсвует критериям и требованиям Википедии

AKlapper (WMF) (talkcontribs)

Hi Tanja, if this is about Russian Wikipedia, see https://ru.wikipedia.org/wiki/Омские_кабельные_сети for reasons why the article has been removed in the past. In general, this is something to bring up in the Russian community as their rules apply, for example on https://ru.wikipedia.org/wiki/Википедия:Форум.

Reply to "Я не могу разместить статью о компании на Вики"
Chris huh (talkcontribs)

I've moved my Mediawiki installation to another server and I'm now unable to upload files. Looking in the error_log I see a single line for each upload attempt:


[07-Dec-2016 13:25:23 UTC] PHP Fatal error: Call to undefined function iconv() in /home/username/public_html/wiki/includes/media/IPTC.php on line 449


Perhaps iconv isn't enabled on this server. How can I turn this on? Would it be through a php.ini file? Is there a way to confirm that iconv isn't enabled?

Thanks

Reply to "Moved server: now can't upload files"

Retrieving JSON with thumbnails for Category members

1
Athul.ls (talkcontribs)

How to retrieve json response of category member with thumbnail url in it. I have more than 100 items in category members .

What query shall i use in the url for retrieving thumbnails for each and every category members in the list(more than 100 items) for JSON response of the category member.

I tried using "prop=pageimages" query parameter but I'm able to retrieve only 50 max objects in JSON containing thumbnails url in it. What is the alternative to receive thumbnail for every members as they all have images in the page too added in the correct format.

Example url i used:

http://example.org/api.php?gcmlimit=max&action=query&gcmtitle=Category%3AName&pilimit=max&prop=pageimages&pilimit=max&pithumbsize=100&generator=categorymembers&format=json&continue=

Its a url to show example above, not a real live url to check

Please help me sort it ASAP.

Thank You,

Athul

Reply to "Retrieving JSON with thumbnails for Category members"
Oberaffengeil (talkcontribs)

We use MediaWiki 1.23.8 and there is a 'print as pdf' function, but in the resulting pdf file tables of content and links are absent. Has there been any improvements regarding the actual Version 1.28.0 ? Thanks for any hints or links.

AKlapper (WMF) (talkcontribs)

phab:T73808 and phab:T135643 are still open and not resolved but there's been a little bit of progress (see its subtasks).

Oberaffengeil (talkcontribs)

Thanks for the info. So Elektron PDF will be used?

Reply to "Print as PDF"

How to change Page to Article at the top of each page

3
Summary by AhmadF.Cheema

Edit your Wiki's MediaWiki:Nstab-main page.

Fokebox (talkcontribs)

Hello all, As you can see every page on the top marked as "Page" how can I change it to "Article"?

AhmadF.Cheema (talkcontribs)

Edit your Wiki's MediaWiki:Nstab-main page.

Fokebox (talkcontribs)

Thank you! It works