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

merging a wikimedia account, and a donor account

2
Yvonus (talkcontribs)

Good afternoon.

I've been donating from time to time to Wikimedia Foundation, thus giving one email address, with which I'm contacted for further donations.

I thought it meant I did have a plain Wikipedia account, which does not seem the case.

Is there a point of linking both, simply to avoid double-time "please donate" notifications ?

Thanks

Malyacko (talkcontribs)

Welcome to the support desk for the MediaWiki software. It sounds like your question is not about the MediaWiki software. Please contact the Wikimedia Foundation and their Fundraising team instead - thanks a lot (also for your donations)!

Reply to "merging a wikimedia account, and a donor account"
Tmhoskins (talkcontribs)

[24dbcafdfdd1b46c128f4a7a] /NRTwiki/Main_Page Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/SNRTwiki/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 user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = '1' LIMIT 1

Function: User::loadFromDatabase

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

Backtrace:

#0 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

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

#2 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1875): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#4 /var/www/html/SNRTwiki/includes/user/User.php(1442): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)

#5 /var/www/html/SNRTwiki/includes/user/User.php(531): User->loadFromDatabase(integer)

#6 /var/www/html/SNRTwiki/includes/libs/objectcache/WANObjectCache.php(1253): User->{closure}(boolean, integer, array, NULL)

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

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

#9 /var/www/html/SNRTwiki/includes/user/User.php(555): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#10 /var/www/html/SNRTwiki/includes/user/User.php(474): User->loadFromCache()

#11 /var/www/html/SNRTwiki/includes/user/User.php(411): User->loadFromId(integer)

#12 /var/www/html/SNRTwiki/includes/session/UserInfo.php(89): User->load()

#13 /var/www/html/SNRTwiki/includes/session/CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId(string)

#14 /var/www/html/SNRTwiki/includes/session/SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)

#15 /var/www/html/SNRTwiki/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)

#16 /var/www/html/SNRTwiki/includes/WebRequest.php(748): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#17 /var/www/html/SNRTwiki/includes/session/SessionManager.php(130): WebRequest->getSession()

#18 /var/www/html/SNRTwiki/includes/Setup.php(816): MediaWiki\Session\SessionManager::getGlobalSession()

#19 /var/www/html/SNRTwiki/includes/WebStart.php(77): require_once(string)

#20 /var/www/html/SNRTwiki/index.php(39): require(string)

#21 {main}

I am trying to dump the database from an older version 1.26 into my new version 1.33. This is the error I get when I try to access the web interface of the new version 1.33. Sounds like I need a different LDAP authentication extension, but that still doesn't solve the database issue, which is why i am getting this error. Seems like dumping the DB from 1.26 into 1.33 isn't one to one?

Malyacko (talkcontribs)

Looks like this was also asked by you in Topic:V6c1i5yvjozbpdo1. Sticking to one place welcome to avoid conversation fragmentation.

Reply to "Database issue after upgrade"

You are missing a required extension to PHP that MediaWiki requires to run.

14
FriFraCologne (talkcontribs)

I get the following error message:

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

mbstring (more information)

fileinfo (more information)s

Both extensions are enabled in my php ini, the extension directory is correct and the dll's are there.

Any sugestions?

Malyacko (talkcontribs)

Which PHP version? Which MediaWiki version?

Ciencia Al Poder (talkcontribs)

Maybe you need to restart apache/IIS after enabling them in php.ini

Kellyincuse (talkcontribs)

Did this ever get resolved? I just kicked up a new MW 1.32 server running PHP 7.3.1 ... I've tested PHP and Apache to make sure they are configured to run tests ... the MW Index.PHP runs and I get the same two extensions listed above as required. In my php.ini file I have the following two lines ...

extension=php_fileinfo.dll

extension=php_mbstring.dll

and I have checked the variable for the 'ext' folder where the DLLs are located.

I've setup two othe WIKI servers using MW but these two extensions weren't required then but they are now.

Any suggestions?

Ciencia Al Poder (talkcontribs)

Create a php file with a phpinfo call to see what extensions are really enabled, as explained in Manual:Php.ini

71.92.71.34 (talkcontribs)

I've had the same issue since upgrading to 1.32. (running php 7.3.2-1). When I run the update.php script i get the following:

Error: Missing one or more required components of PHP.

You are missing a required extension to PHP that MediaWiki needs.

Please install:

* mbstring <https://secure.php.net/mbstring>


I have mbstring installed and enabled in php.ini. Any suggestions?


Manishkaujalgi (talkcontribs)

Hi,

I had the similar issue (requires extention --> mbstring) when running on EC2 - AMI Linux..

Running this resolved my error:

sudo yum install php70-mbstring.x86_64 php70-zip.x86_64 -y


Remember to restart your apache after that

Ciencia Al Poder (talkcontribs)

Are you sure the phpinfo php script displays mbstring as being enabled?

31.53.123.107 (talkcontribs)

I have the same message. mbstring is definitely enabled in php.ini but it's not showing up in the phpinfo.php. I have restarted all already several times. I have installed


- Apache 2.4.39 (win64 VS16)

- PHP 7.3.8

- MySQL Server 8.0.17

Pyton 3.7.4

- MediaWiki 1.27


Any idea what I am doing wrong?


Thank you


Ciencia Al Poder (talkcontribs)

The php.ini you're editing is not the php.ini being used by the server

The ouptupt of phpinfo tells you what php.ini files are being loaded.

173.197.77.91 (talkcontribs)

I get the same problem, only with iconv rather than mbstring. When I navigate to /localhost/mediawiki/index.php, I see the following:

You are missing a required extension to PHP that MediaWiki requires to run. Please install: iconv

I uncommented the iconv module in /usr/share/php/modules and it still says it's not installed.

Here's my setup:

PHP 7.3.8

Apache2 2.4.39

Linux 4.19.66 (Manjaro; problem also on Arch Linux)

MariaDB 10.4.7

Mediawiki any version > 1.31.1

(i.e., 1.31.1 was the last time it worked; i've been downgrading to it for the last few months to keep it running)

Any suggestions ?

121.219.241.130 (talkcontribs)

Did you restart apache after enabling the module?

108.185.208.51 (talkcontribs)

Yes. And to clarify the above: i uncommented iconv and mbstring in the main php config file, /etc/php/php.ini. Then I checked /usr/share/php/modules and found that iconv is there, with the correct permissions. No idea why wiki can't find it.

Ciencia Al Poder (talkcontribs)

Please check the output of phpinfo (information in Manual:php.ini) to see if PHP knows about that php extension installed. This is not MediaWiki not knowing about the extension, but php

38.104.169.18 (talkcontribs)

Currently in a process of moving our mediawiki site to sharepoint, What will be the best way to do this ?

Malyacko (talkcontribs)

See Help:Export. Apart from that, best way might be asking in a Sharepoint support forum about the import functionality of Sharepoint.

Reply to "move mediawiki site to sharepoint"

Is mobile frontend for 1.33 or 1.31 compatible with mediawiki 1.30?

3
Parkyh1974 (talkcontribs)

I've installed mediawiki using docker image by kristoph junge.

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


It is using mediawiki 1.30.


When I tried to install mobile frontend, that only provided for 1.31, 1.32, 1.33.

And when I installed frontend for 1.31, it shows 500 error and does not work at all.


What I did was simply add wfLoadExtension( 'MobileFrontend' ); at the LocalSettings.php. As installation guide guided.


Is there any way clue to get mobile frontend work?

AhmadF.Cheema (talkcontribs)
Malyacko (talkcontribs)

I'd go a bit further by saying that MediaWiki 1.30 is an ancient, outdated, insecure version. Please use software versions that receive security fixes.

To answer your original question: Such compatibility is not tested, so you'd be on your own.

Reply to "Is mobile frontend for 1.33 or 1.31 compatible with mediawiki 1.30?"

How to turn an extension on for desktop but off for mobile

2
128.125.52.225 (talkcontribs)

Is there a way to have an extension on for desktop mode but off on mobile mode? For example, Extension:AddThis

AhmadF.Cheema (talkcontribs)

There would probably be some JavaScript, PHP method to do so, but the easier option would be to just hide the widget through MediaWiki:Mobile.css.

Reply to "How to turn an extension on for desktop but off for mobile"

How to disable cache for specific extension in 1.33

3
Chan15tw (talkcontribs)

I wrote a extension for one wiki page to connect to some outside url, I just put <changelog /> in that artcile, it will hook to my extension to call Changelog.php to execute Changelog::getLog()

getLog method will do curl connect to my outside url to get json content and re-format it to html string and return, they work perfectly in 1.27, but after I upgrade to 1.33, it still get the content I want, but it cached the result, when outside url changes content it won't go with it, I need to edit article and save to get new content again, I try to add


$cache = new CacheHelper();

$cache->setCacheEnabled(false);


in getLog function was not change anything, how to disable cache on the page which use this extension

Bawolff (talkcontribs)

You should probably not touch the CacheHelper class.

In your extension, call $parser->disableCache();

Chan15tw (talkcontribs)

* @deprecated since 1.28; use getOutput()->updateCacheExpiry()


it's deprecated, and I tried both $parser->getOutput()->updateCacheExpiry(0); and $parser->disableCache(); in my method still got old content

Reply to "How to disable cache for specific extension in 1.33"

How to get Installed Software on Special:Version. E.g., Elasticsearch

2
128.125.52.100 (talkcontribs)

Hi, I'm new to MediaWiki. On Special:Version, there are "Installed Software". How do we install additional software on Mediawiki? For example, I managed to get 'Elastica' and 'CirrusSearch' to show up on the Special:Version of the wiki I'm trying to build, but I don't get 'Elasticsearch' listed under Installed Software. What do I need to do in order for my Special:Version to show Elasticsearch under installed Software?

AhmadF.Cheema (talkcontribs)
Reply to "How to get Installed Software on Special:Version. E.g., Elasticsearch"

the left side of vuze does not show up

2
2602:306:3B33:9400:149D:5EBA:F657:3B6C (talkcontribs)

the left side of vuze does not show up so therefore I can not copy a dvd

AhmadF.Cheema (talkcontribs)

Wrong support forum.😕

Reply to "the left side of vuze does not show up"
維基小霸王 (talkcontribs)

How to apply style to a column in a table? I have added the desired style in the first few rows in the table. Do I must repeat the styles in every row?

SolidBlock (talkcontribs)

I have heard of an html tag named col, but it does not seem to work in mediawiki.

217.91.3.31 (talkcontribs)

If you want the same style on every row of the table, you just need to set all styles in the head of the table.


Example:

{| class="wikitable" style="text-align: center; color: green;"

|Orange |Apple |12,333.00 |- |Bread|Cake|500.00 |- |Butter|Ice Creme|1.00 |}


In this table every row will have the color green

SolidBlock (talkcontribs)

a specific column, not an entire table or a row

Jonathan3 (talkcontribs)
維基小霸王 (talkcontribs)

So there is no way. I can only repeat the style in every row.

Jonathan3 (talkcontribs)

Maybe you could create a template to call for each row. The template would contain the CSS style. This could look neater and be easier to change.

維基小霸王 (talkcontribs)

Yes. This is exactly what I did.