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 日本語 中文

When I try using mobile frontend extension, it shows 500 internal error.

3
Parkyh1974 (talkcontribs)

I've set up mediawiki using docker image at

https://hub.docker.com/r/kristophjunge/mediawiki/

It is using Mediawiki 1.30 AND PHP7.0


When I load extension by

# VisualEditor

    wfLoadExtension('MobileFrontend');


at LocalSettings.php, it shows 500 error.

Is there any lead to solve this?


Thank you.

AhmadF.Cheema (talkcontribs)

The 500 error indicates an issue with the server. Did you check your server error logs?

Parkyh1974 (talkcontribs)

I've checked nginx log files but there is no record. Is there any other log I need to check?

Reply to "When I try using mobile frontend extension, it shows 500 internal error."

Templates largely broken after 1.30 -> 1.33

1
Scarred Sun (talkcontribs)

I performed an upgrade from 1.30 to 1.33 and as a result seem to have lost a lot of content from the Template namespace from rendering properly; for example, looking at https://segaretro.org/Kamen_Rider_555 you'll see that many of the templates which support the page are outright broken. How do I recover these?

Reply to "Templates largely broken after 1.30 -> 1.33"

Update script fails with error: DBReadOnlyError

1
Summary by .digamma

Another support ticket indicated ReadOnly mode is a problem for the update script. Users can be forced into ReadOnly mode while the scripts continues with write access using code from the reply posted here: Support desk Ticket Response

After enabling write access, script ran to completion with no reported errors. Checking upgrade now...

.digamma (talkcontribs)

During the update from 1.25 -> 1.33 I receive the following output:

[24b9ca57e08535368cd8bf8f] [no req]   Wikimedia\Rdbms\DBReadOnlyError from line 1042 of /w/includes/libs/rdbms/database/Database.php: Database is read-only: This wiki is currently being upgraded to a newer software version. Please check back in a couple of days.

Backtrace:

#0 /w/includes/libs/rdbms/database/Database.php(1205): Wikimedia\Rdbms\Database->assertIsWritableMaster()

#1 /w/includes/installer/MysqlUpdater.php(907): Wikimedia\Rdbms\Database->query(string, string)

#2 /w/includes/installer/DatabaseUpdater.php(489): MysqlUpdater->doPageRandomUpdate()

#3 /w/includes/installer/DatabaseUpdater.php(453): DatabaseUpdater->runUpdates(array, boolean)

#4 /w/maintenance/update.php(205): DatabaseUpdater->doUpdates(array)

#5 /w/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()

#6 /w/maintenance/update.php(268): require_once(string)

#7 {main}


Do I need to remove the read-only block from LocalSettings during the update?

Thank you!

Error message after upgrade from 1.25 -> 1.33

3
Summary by .digamma

Database query error from index.php. Update.php ran silently. Non-existent table during update -> update.php couldn't login to database to create necessary tables.

.digamma (talkcontribs)

I worked through the instructions found here: Manual:Upgrading and performed the recommended backup as described. I ran the update.php command (in fact twice) and it completed very quickly with no output in the ssh PuTTY console. I'm using PHP 7.3, but the Wiki runs on 7.0, and MySQL database version 5.7.23-23

When I visit the main page of the wiki, I get this error:

[X14OUEd0TyMB3I8DpNhbgAAAA8] 2019-09-14 23:31:06: Fatal exception of type Wikimedia\Rdbms\DBQueryError

[XX2T2UvxMo5akr5-@9w1WAAAAA8] /w/ Wikimedia\Rdbms\DBQueryError from line 1587 of /home4/w/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: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `wiki_revision` JOIN `wiki_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `wiki_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `wiki_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `wiki_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `wiki_page` ON ((page_id = rev_page)) LEFT JOIN `wiki_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)

Function: MessageCache::loadFromDB(en)-small

Error: 1146 Table 'wikidb.wiki_revision_comment_temp' doesn't exist (localhost)

Backtrace:

#0 /home4/w/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home4/w/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home4/w/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 /home4/w/includes/cache/MessageCache.php(549): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#4 /home4/w/includes/cache/MessageCache.php(441): MessageCache->loadFromDB(string, NULL)

#5 /home4/w/includes/cache/MessageCache.php(364): MessageCache->loadFromDBWithLock(string, array, NULL)

#6 /home4/w/includes/cache/MessageCache.php(1051): MessageCache->load(string)

#7 /home4/w/includes/cache/MessageCache.php(978): MessageCache->getMsgFromNamespace(string, string)

#8 /home4/w/includes/cache/MessageCache.php(948): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)

#9 /home4/w/includes/cache/MessageCache.php(890): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)

#10 /home4/w/includes/Message.php(1308): MessageCache->get(string, boolean, LanguageEn)

#11 /home4/w/includes/Message.php(863): Message->fetchMessage()

#12 /home4/w/includes/Message.php(955): Message->toString(string)

#13 /home4/w/includes/Title.php(633): Message->text()

#14 /home4/w/includes/MediaWiki.php(120): Title::newMainPage()

#15 /home4/w/includes/MediaWiki.php(140): MediaWiki->parseTitle()

#16 /home4/w/includes/MediaWiki.php(781): MediaWiki->getTitle()

#17 /home4/w/includes/MediaWiki.php(515): MediaWiki->main()

#18 /home4/w/index.php(42): MediaWiki->run()

#19 {main}

Where can I find the log file for the update.php process?


I appreciate any help.

~~~~

AhmadF.Cheema (talkcontribs)

Did you upgrade your extensions too? Faulty extensions can also cause update.php to not work, temporarily disable all extensions and try update.php again.

.digamma (talkcontribs)

Same error. Update.php exits quickly. The wiki_bot_passwords table isn't there either, added in 1.27.

I solved this error. I added display errors to the top of the update.php script and discovered the script was unable to find the login credentials for the database. After fixing this, the script ran.

PHP Notice: Undefined index: error in \includes\http\GuzzleHttpRequest.php on line 194

8
79brue (talkcontribs)

Hello!

I have a mediawiki problem. After I had an backup error, I erased all the files and removed the mysql database, and reinstalled mediawiki. But it does not run properly. When I access to /index.php, a error named "500 internal server error" occurs, without no error log. When I access to "localhost", there is one error message: "PHP Notice: Undefined index: error in \includes\http\GuzzleHttpRequest.php on line 194".

Does anyone know how to solve this problem?

Malyacko (talkcontribs)

See Manual:How to debug how to get error logs for MediaWiki. ("500 internal server error" is not a MediaWiki error, but your web server instead.)

79brue (talkcontribs)

I did it, but I didn't get any error messages except "PHP Notice: Undefined index: error in \includes\http\GuzzleHttpRequest.php on line 194".

AhmadF.Cheema (talkcontribs)
79brue (talkcontribs)

I checked the log files located on "C:\inetpub\logs\LogFiles", but there were no error messages.

AhmadF.Cheema (talkcontribs)
79brue (talkcontribs)

I see a few error logs.

1) FASTCGI RESPONSE ERROR: PHP Notice:  Undefined index: error in \includes\http\GuzzleHttpRequest.php on line 194

2) Module Warning: Access Denied (0x5)

3) Internal Server Error

AhmadF.Cheema (talkcontribs)
Reply to "PHP Notice: Undefined index: error in \includes\http\GuzzleHttpRequest.php on line 194"

There seems to be a problem with your login session; This action has been canceled as a precaution against session hijacking. Please resubmit the form.

6
Guilherme bangemann (talkcontribs)

I'm getting this error when I try to Login in my account on my Wiki.

On my LocalSettings.php :

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = [];

$wgSessionCacheType = CACHE_DB;


I want to bind with my LDAP. LDAP is set correclty. Works on anothers sites on my server.

I just need to use the Extension LDAP, and it doesn't works!


LocalSettings.php:

wfLoadExtensions( [
        'PluggableAuth',
        'Auth_remoteuser',
        'LDAPProvider',
        'LDAPAuthentication2',
        'LDAPAuthorization',
        'LDAPUserInfo'
] );

$LDAPAuthorizationAutoAuthRemoteUserStringParser = 'solis';
$LDAPAuthentication2UsernameNormalizer = 'solis';
$LDAPAuthentication2AllowLocalLogin = true;
$wgAuthRemoteuserAllowUserSwitch = true;
$wgPluggableAuth_EnableLocalLogin = true;

 

$wgCookieSecure = false;

$wgShowExceptionDetails = true;



/var/www/wiki/extensions/LDAPProvider/docs/ldapprovider.json

{

        "solis": {

                "connection": {

                        "server": "ldapslave.solis.com.br",

                        "user": "cn=read-only-admin,dc=solis,dc=coop,dc=br",

                        "pass": "password",

                        "options": {

                                "LDAP_OPT_DEREF": 1

                        },

                        "basedn": "dc=solis,dc=coop,dc=br",

                        "groupbasedn": "dc=solis,dc=coop,dc=br",

                        "userbasedn": "dc=solis,dc=coop,dc=br",

                        "searchattribute": "uid",

                        "searchstring": "uid=guilherme_bangemann,dc=solis,dc=coop,dc=br",

                        "usernameattribute": "uid",

                        "realnameattribute": "cn",

                        "emailattribute": "mail"

                },

                "userinfo": {

                        "attributes-map": {

                                "email": "mail",

                                "realname": "cn",

"nickname": "uid",

                                "language": "preferredlanguage"

                        }

                },

                "groupsync": {

                        "mapping": {

                                "mathematicians": "ou=mathematicians,dc=solis,dc=coop,dc=br",

                                "scientists": "ou=scientists,dc=solis,dc=coop,dc=br"

                        }

                }

        }

}

MarkAHershberger (talkcontribs)
Osnard (talkcontribs)

What is 'solis'? This does not look like a valid value for $LDAPAuthorizationAutoAuthRemoteUserStringParser and $LDAPAuthentication2UsernameNormalizer.

Can you please post the output of $wgDebugLogFile?

Guilherme bangemann (talkcontribs)

I fortgot:

And what's the directory for LogFile??

#$wgDebugLogFile = "/var/log/wiki/debug-{$wg}.log";

What I need to put on ".../debug-{???}.log"; ????

Guilherme bangemann (talkcontribs)
Guilherme bangemann (talkcontribs)

$wgDebugLogFile @Osnard

Reply to "There seems to be a problem with your login session; This action has been canceled as a precaution against session hijacking. Please resubmit the form."
2601:247:C401:FEF0:88F8:92DF:AF47:4CCA (talkcontribs)

After the last update the chatbox shows the old messages first and the new messages last. We have to scroll down with every communication. Is this the way it's going to be now? Most recent messages should be shown first, not last. During tense battle situations it stresses me and my coalition out. Can you please return it to the old way? I want to see the most recent first!!!!


MarkAHershberger (talkcontribs)

What does this have to do with MediaWiki?

136.232.128.54 (talkcontribs)

Hi, I forgot my username and password. I also don't know which email id I mentioned while create my page. Can you help me in this regards


AhmadF.Cheema (talkcontribs)

The best option would be to try all your mail ids one by one and see which works.

By-the-way, are you sure that you actually did enter an email address, because accounts here can be made without them too.

Reply to "Chat box bug"
Axlerate (talkcontribs)

Hello. I would like to know how to create my own wiki project with MediaWiki. How?

Malyacko (talkcontribs)

The frontpage of www.mediawiki.org has a section which is called "Set up and run MediaWiki" which provides links to information. Is a specific page there unclear? If something is unclear, please elaborate which page you refer to and why it is unclear. Thanks!

Reply to "EOG Wiki"
217.91.3.31 (talkcontribs)

Hello!

I have a mediawiki environment for a limited number of users and a login isnt needed.

The upload option in the page editor says "Upload could not be saved (UploadStashNotLoggedInException): "No user is logged in. Files must belong to users. "

If I go to Special:Upload everything is fine. The anonymous can upload form there., just not in the page editor of the wiki.


217.91.3.31 (talkcontribs)

Here are some more information if necessary - We're using a Windows Server 2012 R2 with IIS, PHP 7.2.7 and MySQL 5.7.26

Bawolff (talkcontribs)

I think UploadStash, which is the method that the wikieditor uses for uploading files (which is different from the upload method used by Special:Upload) simply doesn't support non-logged in users.

Reply to "anonymous upload from editor"

Can I use MediaWiki to create personal files?

7
CsBlastoise (talkcontribs)

I'm interested in using MediaWiki to create pages in that style and store them on my computer for my own personal use, rather than host them online anywhere. I guess this basically means I want to use MediaWiki in a way comparable to a word processor. Is this possible?

Malyacko (talkcontribs)

Is there a reason why you don't use a word processor (like LibreOffice) for that and save the documents as HTML?

CsBlastoise (talkcontribs)

I guess I should have been more specific: I'd like to be able to create pages using WikiText markup and MediaWiki Templates (mainly infoboxes). The HTML part is actually not very relevant.

Malyacko (talkcontribs)
CsBlastoise (talkcontribs)

Oh hey, looks like Manual:Wiki on a stick might be helpful — wait, maybe not, it's still confusing. Give me some time to take a look at it and see if it makes more sense than it appears.

CsBlastoise (talkcontribs)

In accordance with the last sentence of my previous post, I've removed "HTML" from the topic title.

Bawolff (talkcontribs)

Yes, this is entirely possible. You will need to install PHP. you will also need a webserver (although its also possible to use php as a webserver). But basically setup a webserver with php support (How to do that depends on which OS and which webserver you choose). Download a copy of MediaWiki and point the webserver at it, and that's it.

You might also want to ask on irc in the #mediawiki channel, as if you're unfamilar with webservers, having someone help you over chat might be easier than on a forum.

In the interest of fairness, I'd also note that tiddlywiki https://tiddlywiki.com/ is a popular option for having a personal wiki.

Reply to "Can I use MediaWiki to create personal files?"