Project:Support desk/Flow/2020/03
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Error occurred after database recovery
hello
I backuped wiki database(database name is wiki) to change server OS to Centos7. And I recovery database and mediawiki files. but error occured.
Mediawiki :1.33
php: 7.2
apache: 2.4
mariadb: 5.5
In wiki page:
MediaWiki internal error.
Original exception: [XlsrGr5doiRuI8neYukxewAAAAE] /wiki/%EB%8C%80%EB%AC%B8 Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/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 pt_user AS `user`,pt_expiry AS `expiry`,pt_create_perm AS `permission`,comment_pt_reason.comment_text AS `pt_reason_text`,comment_pt_reason.comment_data AS `pt_reason_data`,comment_pt_reason.comment_id AS `pt_reason_cid` FROM `protected_titles` JOIN `comment` `comment_pt_reason` ON ((comment_pt_reason.comment_id = pt_reason_id)) WHERE pt_namespace = '0' AND pt_title = '대문'
Function: Title::getTitleProtectionInternal
Error: 1054 Unknown column 'pt_reason_id' in 'on clause' (127.0.0.1)
Backtrace:
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/w/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/w/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/w/includes/Title.php(2338): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#4 /var/www/html/w/includes/Title.php(2772): Title->getTitleProtectionInternal()
#5 /var/www/html/w/includes/Title.php(2588): Title->loadRestrictions()
#6 /var/www/html/w/includes/Permissions/PermissionManager.php(686): Title->getRestrictions(string)
#7 /var/www/html/w/includes/Permissions/PermissionManager.php(258): MediaWiki\Permissions\PermissionManager->checkPageRestrictions(string, User, array, string, boolean, Title)
#8 /var/www/html/w/includes/Permissions/PermissionManager.php(111): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal(string, User, Title, string, boolean)
#9 /var/www/html/w/includes/Title.php(2172): MediaWiki\Permissions\PermissionManager->userCan(string, User, Title, string)
#10 /var/www/html/w/includes/Title.php(2140): Title->userCan(string, User, string)
#11 /var/www/html/w/includes/page/Article.php(1454): Title->quickUserCan(string, User)
#12 /var/www/html/w/includes/page/Article.php(681): Article->showMissingArticle()
#13 /var/www/html/w/includes/actions/ViewAction.php(68): Article->view()
#14 /var/www/html/w/includes/MediaWiki.php(499): ViewAction->show()
#15 /var/www/html/w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#16 /var/www/html/w/includes/MediaWiki.php(865): MediaWiki->performRequest()
#17 /var/www/html/w/includes/MediaWiki.php(515): MediaWiki->main()
#18 /var/www/html/w/index.php(42): MediaWiki->run()
#19 {main}
Exception caught inside exception handler: [XlsrGr5doiRuI8neYukxewAAAAE] /wiki/%EB%8C%80%EB%AC%B8 Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/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 rt_page FROM `revtag`,`page` WHERE (rt_page = page_id) AND (rt_revision = page_latest) AND rt_type IN ('tp:mark','tp:tag') GROUP BY rt_page
Function: TranslatablePage::getTranslatablePages
Error: 1146 Table 'wiki.revtag' doesn't exist (127.0.0.1)
Backtrace:
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/w/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/w/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/w/extensions/Translate/tag/TranslatablePage.php(893): Wikimedia\Rdbms\Database->select(array, string, array, string, array)
#4 /var/www/html/w/extensions/Translate/tag/TranslatablePage.php(869): TranslatablePage::getTranslatablePages()
#5 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1414): TranslatablePage::{closure}(boolean, integer, array, NULL)
#6 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1275): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
#7 /var/www/html/w/extensions/Translate/tag/TranslatablePage.php(871): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#8 /var/www/html/w/extensions/Translate/tag/PageTranslationHooks.php(1110): TranslatablePage::isSourcePage(Title)
#9 /var/www/html/w/includes/Hooks.php(174): PageTranslationHooks::replaceSubtitle(string, SkinVector, OutputPage)
#10 /var/www/html/w/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#11 /var/www/html/w/includes/skins/Skin.php(754): Hooks::run(string, array)
#12 /var/www/html/w/includes/skins/SkinTemplate.php(295): Skin->subPageSubtitle()
#13 /var/www/html/w/includes/skins/SkinTemplate.php(228): SkinTemplate->prepareQuickTemplate()
#14 /var/www/html/w/includes/OutputPage.php(2723): SkinTemplate->outputPage()
#15 /var/www/html/w/includes/exception/MWExceptionRenderer.php(134): OutputPage->output()
#16 /var/www/html/w/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#17 /var/www/html/w/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#18 /var/www/html/w/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#19 /var/www/html/w/includes/MediaWiki.php(542): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
#20 /var/www/html/w/index.php(42): MediaWiki->run()
#21 {main}
And error when run php update.php:
...comment table already exists.
...have img_description_id field in image table.
Migrating comments to the 'comments' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateComments.php.
Beginning migration of revision.rev_comment to revision_comment_temp.revcomment_comment_id
Completed migration, updated 0 row(s) with 0 new comment(s)
No need to migrate archive.ar_comment, field does not exist
No need to migrate ipblocks.ipb_reason, field does not exist
No need to migrate image.img_description, field does not exist
No need to migrate oldimage.oi_description, field does not exist
No need to migrate filearchive.fa_deleted_reason, field does not exist
No need to migrate filearchive.fa_description, field does not exist
No need to migrate recentchanges.rc_comment, field does not exist
Beginning migration of logging.log_comment to logging.log_comment_id
[6b0d4fc2e970203e8f19c0c7] [no req] Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/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 log_id,log_comment FROM `logging` WHERE log_comment_id = '0' AND (1=1) ORDER BY log_id LIMIT 100
Function: MigrateComments::migrate
Error: 1054 Unknown column 'log_comment_id' in 'where clause' (127.0.0.1)
Backtrace:
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/w/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/w/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/w/maintenance/migrateComments.php(159): Wikimedia\Rdbms\Database->select(string, array, array, string, array)
#4 /var/www/html/w/maintenance/migrateComments.php(60): MigrateComments->migrate(string, array, string)
#5 /var/www/html/w/maintenance/Maintenance.php(1719): MigrateComments->doDBUpdates()
#6 /var/www/html/w/includes/installer/DatabaseUpdater.php(1279): LoggedUpdateMaintenance->execute()
#7 /var/www/html/w/includes/installer/DatabaseUpdater.php(489): DatabaseUpdater->migrateComments()
#8 /var/www/html/w/includes/installer/DatabaseUpdater.php(453): DatabaseUpdater->runUpdates(array, boolean)
#9 /var/www/html/w/maintenance/update.php(203): DatabaseUpdater->doUpdates(array)
#10 /var/www/html/w/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()
#11 /var/www/html/w/maintenance/update.php(266): require_once(string)
#12 {main}
Dhmowiki (talk) 03:40, 1 March 2020 (UTC)
- See Project:Support desk/Flow/2019/07#h-update.php_Error:_1054_Unknown_column_'ar_comment_id'_in_'where_clause'_(localho-2019-07-10T11:31:00.000Z and phab:T227662 Malyacko (talk) 07:37, 1 March 2020 (UTC)
How to install featured post extension and get daily featured image on the main page
How to install featured post extension and get daily featured image on the main page Tanishbaansal (talk) 10:03, 1 March 2020 (UTC)
- @Tanishbaansal How to know what is "featured post extension" without any further information or links? :) Malyacko (talk) 11:56, 1 March 2020 (UTC)
API Edit Error
I have a error when I was trying edit via api.
This is my python code:
#logined before , the request session is called S
PARAMS_edit = {
"action": "edit",
"title": "Page_On_My_Test_Wiki_Which_Hosted_On_My_Com",
"token": CSRF_TOKEN,
"format": "json",
"appendtext": "Hello",
"bot": "True"
}
R = S.post(url=URL, params=PARAMS_edit)
print(R.json())
And This is my error code:
{
'error': {
'code': 'mustpostparams',
'info': 'The following parameter was found in the query string, but must be in the POST body: token.',
'*': 'See http://yourwiki.hostname/path/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'
}
}
How to solve it?Thanks. Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:25, 1 March 2020 (UTC)
- See existing questions: Project:Support desk/Flow/2019/03#h-API_Issue_log_in_1.32.0-2019-03-25T14:22:00.000Z Malyacko (talk) 11:55, 1 March 2020 (UTC)
- I'm used the post body by command requests.post(url) Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 02:12, 2 March 2020 (UTC)
- What is the value of the URL variable? Bawolff (talk) 23:01, 1 March 2020 (UTC)
- @Bawolff the
PARAMS_editOn the python3 code. Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 02:11, 2 March 2020 (UTC) - If that was true, your code wouldn't even work as much as you say it does, so I doubt that that is the case... Bawolff (talk) 06:32, 2 March 2020 (UTC)
- this is my whole code:User:Emojiwiki/Talk/Project:Support desk/Flow/2020/03#h-API_Edit_Error-2020-03-01T10:25:00.000Z/autocreatearticle.py Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 08:23, 3 March 2020 (UTC)
how to show random page content on main page
i am trying to use the extension <randompageincategory cat="Tea" content="true" parse="true" exclude="1,26"/> but it is outputing the whole page content .. i want to show only about 400 words how can i do that Tanishbaansal (talk) 11:53, 1 March 2020 (UTC)
- What extension is this? Bawolff (talk) 22:57, 1 March 2020 (UTC)
Just installed MediaWiki 1.34 with a one-click installer. Website now returns a 404.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just installed MediaWiki 1.34 with Softaculous from my Namecheap cPanel. It said MediaWiki was installed successfully but the website now returns a 404. Need help installing MediaWiki. Checked PHP extensions and all that and it looks rather okay/complete. Where do I start from here?
See: https://wikipinas.com/ Dreaded45 (talk) 15:25, 1 March 2020 (UTC)
- You need to tell the server to point the domain to your MediaWiki installation. This tool may help you with that. You're probably going to want to edit your server's .htaccess file. Þjarkur (talk) 16:59, 1 March 2020 (UTC)
- "Sorry, this does not look like a wiki." Returned by the tool you suggested.
Dreaded45 (talk) 17:04, 1 March 2020 (UTC)- Do you see in which directory MediaWiki has been installed? What is the document root listed under "Domains" in cPanel? Þjarkur (talk) 17:13, 1 March 2020 (UTC)
- Nvm. Figured it out. Turns out the .htaccess file from DokuWiki was retained even after MediaWiki installation. Thanks. Dreaded45 (talk) 17:15, 1 March 2020 (UTC)
Link to pdf page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Dear All,
How can I link internally to a certain page of a pdf file?
Take File:CX2-regression-testing-checklist_v2.pdf
Media:CX2-regression-testing-checklist_v2.pdf#page=4 will gulp the page reference.
Special:Redirect/file/CX2-regression-testing-checklist_v2.pdf#page=4 will in my wiki make the page reference become #page.3D9 (and not working).
Thank you in advance for your answers.
Yours, Ciciban (talk) 16:46, 1 March 2020 (UTC)
- While i filed https://phabricator.wikimedia.org/T246595 for the media links not working.
- For the Special:Redirect, you can fix that by setting $wgFragmentMode = [ 'html5', 'legacy' ]; which would fragments used by all links. See manual:$wgFragmentMode for details. This setting is enabled on this wiki, which is why your example with Special:Redirect actually works here.
- An alternative solution is
[{{filepath:CX2-regression-testing-checklist_v2.pdf}}#page=4 CX2-regression-testing-checklist_v2.pdf](Which makes: CX2-regression-testing-checklist_v2.pdf) which should preserve the fragment properly in all cases Bawolff (talk) 22:55, 1 March 2020 (UTC) - Thanx!
- I cant't access the configuration files, but the filepath-trick is good enough.
- Yours, Ciciban (talk) 14:43, 2 March 2020 (UTC)
How to recover without a proper back up
I had two wikis running on my local machine. Both are private (only used on my laptop).
A few weeks ago, I had a crash on the machine (linux mint 18.3) and I was running mediawiki (a two year old version I believe).
Rebuild machine in Linux Mint 19.3
I have a TimeShift backup just before the crash, but do NOT have a proper database back up. (The timeshift contains all of my drive, including things like the /var/lib/mysql directories, and the full mediawiki directories for my two wikis).
Is there any way possible to recover?
(I have tried several things including copying the old db over and chowning the directory to mysql/mysql and attempting to use the myphpadmin gui to do an export/import. That doesn't seem to be working either.)
At this point, I'm frustrated and don't want to have to start these wikis over from scratch - so if there is some kind of a process that will help me, I'd sincerely appreciate the assistance.
Rick Rick Donaldson (talk) 23:33, 1 March 2020 (UTC)
- You need to restore your mysql server. If you have the on-disk mysql stuff all backed up, that should be possible (Especially if you were using innodb). A starting point to try would be to just put the files back, start mysql, and see if it works.
- If you need specific advice about restoring mysql from backups, you may have better luck at a mysql specific forum. Bawolff (talk) 06:29, 2 March 2020 (UTC)
- Thanks.
- I have tried that. I went through everything I could think of beforehand. I couldn't get the php5 to work under linux 19.3 at all. I wound up switching to mariadb-server, and that works. It appears all the files are present.
- I have tried more things than I have space to list here.
- Last night I was able to copy my old db's back to /var/lib/mysql directory and see them using myphpadmin, but I can't export them without massive errors for some reason.
- I've been using mint for several years now, and linux for a couple of decades but have never really gotten as familiar as I might have. So, I'm shooting in the dark at this point.
- As to restoring "just the server" from old files, I don't think that will work. Part of the reason I wound up rebuilding was I believe something became corrupted on the drive. I went back to a previous backup but it's all under TimeShift, and it restores, overwriting some of the newer stuff. That would probably break my new build.
Rick Donaldson (talk) 16:06, 2 March 2020 (UTC)- Here's a bit of new information.
- I got to the point of being able to go into the mw-config and attempt an update from there. Actually things were working up until I entered the upgrade key from the LocalSettings file.
- I then received the following information:
- Turning off Content Handler DB fields for this part of upgrade.
- Adding ipb_id field to table ipblocks ...
- An error occurred:
- A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: ALTER TABLE `ipblocks`
- ADD ipb_auto tinyint NOT NULL default '0',
- ADD ipb_id int NOT NULL auto_increment,
- ADD PRIMARY KEY (ipb_id)
- Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/wikiwrite/maintenance/archives/patch-ipblocks.sql )
- Error: 1932 Table 'wikiwrite.ipblocks' doesn't exist in engine (localhost)
- Purging caches...<!DOCTYPE html>
- <html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
- <div class="errorbox mw-content-ltr"><p>[ea94e8a06a4cb3119f179075] /wikiwrite/mw-config/index.php?page=Upgrade Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/html/wikiwrite/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? <br />
- Query: DELETE FROM `objectcache`<br />
- Function: DatabaseUpdater::purgeCache<br />
- Error: 1932 Table 'wikiwrite.objectcache' doesn't exist in engine (localhost)<br />
- </p><p>Backtrace:</p><p>#0 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)<br />
- #1 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)<br />
- #2 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query(string, string)<br />
- #3 /var/www/html/wikiwrite/includes/installer/DatabaseUpdater.php(1010): Wikimedia\Rdbms\Database->delete(string, string, string)<br />
- #4 /var/www/html/wikiwrite/includes/installer/DatabaseInstaller.php(394): DatabaseUpdater->purgeCache()<br />
- #5 /var/www/html/wikiwrite/includes/installer/WebInstallerUpgrade.php(65): DatabaseInstaller->doUpgrade()<br />
- #6 /var/www/html/wikiwrite/includes/installer/WebInstaller.php(281): WebInstallerUpgrade->execute()<br />
- #7 /var/www/html/wikiwrite/mw-config/index.php(79): WebInstaller->execute(array)<br />
- #8 /var/www/html/wikiwrite/mw-config/index.php(38): wfInstallerMain()<br />
- #9 {main}</p></div>
- </body></html>
- This is the actual version of the mediawiki software as noted by the engine:
- MediaWiki 1.31.1 installation
- I have also discovered this:
- rick@estrellita:~$ php upgrade.php
- PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ./opcache.so (./opcache.so: cannot open shared object file: No such file or directory), ./opcache.so.so (./opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: ./mysqlnd.so (./mysqlnd.so: cannot open shared object file: No such file or directory), ./mysqlnd.so.so (./mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: ./pdo.so (./pdo.so: cannot open shared object file: No such file or directory), ./pdo.so.so (./pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: ./xml.so (./xml.so: cannot open shared object file: No such file or directory), ./xml.so.so (./xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: ./apcu.so (./apcu.so: cannot open shared object file: No such file or directory), ./apcu.so.so (./apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: ./bcmath.so (./bcmath.so: cannot open shared object file: No such file or directory), ./bcmath.so.so (./bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'calendar.so' (tried: ./calendar.so (./calendar.so: cannot open shared object file: No such file or directory), ./calendar.so.so (./calendar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: ./ctype.so (./ctype.so: cannot open shared object file: No such file or directory), ./ctype.so.so (./ctype.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: ./curl.so (./curl.so: cannot open shared object file: No such file or directory), ./curl.so.so (./curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: ./dom.so (./dom.so: cannot open shared object file: No such file or directory), ./dom.so.so (./dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'exif.so' (tried: ./exif.so (./exif.so: cannot open shared object file: No such file or directory), ./exif.so.so (./exif.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo.so' (tried: ./fileinfo.so (./fileinfo.so: cannot open shared object file: No such file or directory), ./fileinfo.so.so (./fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'ftp.so' (tried: ./ftp.so (./ftp.so: cannot open shared object file: No such file or directory), ./ftp.so.so (./ftp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: ./gd.so (./gd.so: cannot open shared object file: No such file or directory), ./gd.so.so (./gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: ./gettext.so (./gettext.so: cannot open shared object file: No such file or directory), ./gettext.so.so (./gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'iconv.so' (tried: ./iconv.so (./iconv.so: cannot open shared object file: No such file or directory), ./iconv.so.so (./iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: ./json.so (./json.so: cannot open shared object file: No such file or directory), ./json.so.so (./json.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: ./mysqli.so (./mysqli.so: cannot open shared object file: No such file or directory), ./mysqli.so.so (./mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: ./pdo_mysql.so (./pdo_mysql.so: cannot open shared object file: No such file or directory), ./pdo_mysql.so.so (./pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: ./phar.so (./phar.so: cannot open shared object file: No such file or directory), ./phar.so.so (./phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: ./posix.so (./posix.so: cannot open shared object file: No such file or directory), ./posix.so.so (./posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: ./readline.so (./readline.so: cannot open shared object file: No such file or directory), ./readline.so.so (./readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: ./shmop.so (./shmop.so: cannot open shared object file: No such file or directory), ./shmop.so.so (./shmop.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: ./simplexml.so (./simplexml.so: cannot open shared object file: No such file or directory), ./simplexml.so.so (./simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sockets.so' (tried: ./sockets.so (./sockets.so: cannot open shared object file: No such file or directory), ./sockets.so.so (./sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: ./sysvmsg.so (./sysvmsg.so: cannot open shared object file: No such file or directory), ./sysvmsg.so.so (./sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvsem.so' (tried: ./sysvsem.so (./sysvsem.so: cannot open shared object file: No such file or directory), ./sysvsem.so.so (./sysvsem.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: ./sysvshm.so (./sysvshm.so: cannot open shared object file: No such file or directory), ./sysvshm.so.so (./sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer.so' (tried: ./tokenizer.so (./tokenizer.so: cannot open shared object file: No such file or directory), ./tokenizer.so.so (./tokenizer.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried: ./wddx.so (./wddx.so: cannot open shared object file: No such file or directory), ./wddx.so.so (./wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: ./xmlreader.so (./xmlreader.so: cannot open shared object file: No such file or directory), ./xmlreader.so.so (./xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: ./xmlwriter.so (./xmlwriter.so: cannot open shared object file: No such file or directory), ./xmlwriter.so.so (./xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: ./xsl.so (./xsl.so: cannot open shared object file: No such file or directory), ./xsl.so.so (./xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: ./zip.so (./zip.so: cannot open shared object file: No such file or directory), ./zip.so.so (./zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- Could not open input file: upgrade.php
- And:
- rick@estrellita:~$ php -v
- PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ./opcache.so (./opcache.so: cannot open shared object file: No such file or directory), ./opcache.so.so (./opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: ./mysqlnd.so (./mysqlnd.so: cannot open shared object file: No such file or directory), ./mysqlnd.so.so (./mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: ./pdo.so (./pdo.so: cannot open shared object file: No such file or directory), ./pdo.so.so (./pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: ./xml.so (./xml.so: cannot open shared object file: No such file or directory), ./xml.so.so (./xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: ./apcu.so (./apcu.so: cannot open shared object file: No such file or directory), ./apcu.so.so (./apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: ./bcmath.so (./bcmath.so: cannot open shared object file: No such file or directory), ./bcmath.so.so (./bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'calendar.so' (tried: ./calendar.so (./calendar.so: cannot open shared object file: No such file or directory), ./calendar.so.so (./calendar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: ./ctype.so (./ctype.so: cannot open shared object file: No such file or directory), ./ctype.so.so (./ctype.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: ./curl.so (./curl.so: cannot open shared object file: No such file or directory), ./curl.so.so (./curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: ./dom.so (./dom.so: cannot open shared object file: No such file or directory), ./dom.so.so (./dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'exif.so' (tried: ./exif.so (./exif.so: cannot open shared object file: No such file or directory), ./exif.so.so (./exif.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo.so' (tried: ./fileinfo.so (./fileinfo.so: cannot open shared object file: No such file or directory), ./fileinfo.so.so (./fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'ftp.so' (tried: ./ftp.so (./ftp.so: cannot open shared object file: No such file or directory), ./ftp.so.so (./ftp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: ./gd.so (./gd.so: cannot open shared object file: No such file or directory), ./gd.so.so (./gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: ./gettext.so (./gettext.so: cannot open shared object file: No such file or directory), ./gettext.so.so (./gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'iconv.so' (tried: ./iconv.so (./iconv.so: cannot open shared object file: No such file or directory), ./iconv.so.so (./iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: ./json.so (./json.so: cannot open shared object file: No such file or directory), ./json.so.so (./json.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: ./mysqli.so (./mysqli.so: cannot open shared object file: No such file or directory), ./mysqli.so.so (./mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: ./pdo_mysql.so (./pdo_mysql.so: cannot open shared object file: No such file or directory), ./pdo_mysql.so.so (./pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: ./phar.so (./phar.so: cannot open shared object file: No such file or directory), ./phar.so.so (./phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: ./posix.so (./posix.so: cannot open shared object file: No such file or directory), ./posix.so.so (./posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: ./readline.so (./readline.so: cannot open shared object file: No such file or directory), ./readline.so.so (./readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: ./shmop.so (./shmop.so: cannot open shared object file: No such file or directory), ./shmop.so.so (./shmop.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: ./simplexml.so (./simplexml.so: cannot open shared object file: No such file or directory), ./simplexml.so.so (./simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sockets.so' (tried: ./sockets.so (./sockets.so: cannot open shared object file: No such file or directory), ./sockets.so.so (./sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: ./sysvmsg.so (./sysvmsg.so: cannot open shared object file: No such file or directory), ./sysvmsg.so.so (./sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvsem.so' (tried: ./sysvsem.so (./sysvsem.so: cannot open shared object file: No such file or directory), ./sysvsem.so.so (./sysvsem.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: ./sysvshm.so (./sysvshm.so: cannot open shared object file: No such file or directory), ./sysvshm.so.so (./sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer.so' (tried: ./tokenizer.so (./tokenizer.so: cannot open shared object file: No such file or directory), ./tokenizer.so.so (./tokenizer.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried: ./wddx.so (./wddx.so: cannot open shared object file: No such file or directory), ./wddx.so.so (./wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: ./xmlreader.so (./xmlreader.so: cannot open shared object file: No such file or directory), ./xmlreader.so.so (./xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: ./xmlwriter.so (./xmlwriter.so: cannot open shared object file: No such file or directory), ./xmlwriter.so.so (./xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: ./xsl.so (./xsl.so: cannot open shared object file: No such file or directory), ./xsl.so.so (./xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: ./zip.so (./zip.so: cannot open shared object file: No such file or directory), ./zip.so.so (./zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- PHP 7.3.15-3+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb 23 2020 07:23:33) ( NTS )
- Copyright (c) 1997-2018 The PHP Group
- Zend Engine v3.3.15, Copyright (c) 1998-2018 Zend Technologies Rick Donaldson (talk) 19:35, 2 March 2020 (UTC)
- This is the page when I step through upgrade:
- =MediaWiki 1.31.1 installation=
- Language
- Existing wiki
- Welcome to MediaWiki!
- Connect to database
- Upgrade existing installation
- Database settings
- Name
- Options
- Install
- Complete!
- ==Welcome to MediaWiki!==
- ===Environmental checks===
- Basic checks will now be performed to see if this environment is suitable for MediaWiki installation. Remember to include this information if you seek support on how to complete the installation.
- PHP 7.3.15-3+ubuntu18.04.1+deb.sury.org+1 is installed.
- Found ImageMagick:
/usr/bin/convert. - Image thumbnailing will be enabled if you enable uploads.
- Found the Git version control software:
/usr/bin/git. - Using server name "http://localhost".
- Using server URL "http://localhost/wikiwrite".
- Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation.
- If you run a high-traffic site, you should read a little on Unicode normalization.
- The environment has been checked. You can install MediaWiki.
Rick Donaldson (talk) 19:45, 2 March 2020 (UTC) - so you have some tables but not others, and all your php extensions went away.
- The php extension bit is easy enough, just reinstall php. You do need to try and get the missing mysql tables. If they are non critical like ipblocks and objectcache, you can reinstall just those tables from maintenance/tables.sql Bawolff (talk) 19:47, 2 March 2020 (UTC)
- I have reinstalled php and it's functioning.
- I don't know precisely how to reinstall tables using the .sql file.
Rick Donaldson (talk) 22:33, 2 March 2020 (UTC)
- Finally, just to ensure everything is right:
- rick@estrellita:~$ sudo apt install php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- php7.3 is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-cli is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-common is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-curl is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-gd is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-mysql is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- php7.3-opcache is already the newest version (7.3.15-3+ubuntu18.04.1+deb.sury.org+1).
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Rick Donaldson (talk) 19:54, 2 March 2020 (UTC)
- I just finished this part:
sudo apt-get updatesudo apt-get upgradesudo apt install php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysqlrick@estrellita:~$ php -vPHP 7.4.3 (cli) (built: Feb 23 2020 07:24:28) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologieswith Zend OPcache v7.4.3, Copyright (c), by Zend Technologies- So... that cleared all the issues with missing extensions apparently. Let's see where things go from here.
Rick Donaldson (talk) 20:02, 2 March 2020 (UTC)- And this is the result, going through the upgrade window from mw-config:
- Turning off Content Handler DB fields for this part of upgrade.
- Adding ipb_id field to table ipblocks ...
- An error occurred:
- A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: ALTER TABLE `ipblocks`
- ADD ipb_auto tinyint NOT NULL default '0',
- ADD ipb_id int NOT NULL auto_increment,
- ADD PRIMARY KEY (ipb_id)
- Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/wikiwrite/maintenance/archives/patch-ipblocks.sql )
- Error: 1932 Table 'wikiwrite.ipblocks' doesn't exist in engine (localhost)
- Purging caches...<!DOCTYPE html>
- <html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
- <div class="errorbox mw-content-ltr"><p>[b13d26638b5d4a25f9392777] /wikiwrite/mw-config/?page=Upgrade Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/html/wikiwrite/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? <br />
- Query: DELETE FROM `objectcache`<br />
- Function: DatabaseUpdater::purgeCache<br />
- Error: 1932 Table 'wikiwrite.objectcache' doesn't exist in engine (localhost)<br />
- </p><p>Backtrace:</p><p>#0 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)<br />
- #1 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)<br />
- #2 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query(string, string)<br />
- #3 /var/www/html/wikiwrite/includes/installer/DatabaseUpdater.php(1010): Wikimedia\Rdbms\Database->delete(string, string, string)<br />
- #4 /var/www/html/wikiwrite/includes/installer/DatabaseInstaller.php(394): DatabaseUpdater->purgeCache()<br />
- #5 /var/www/html/wikiwrite/includes/installer/WebInstallerUpgrade.php(65): DatabaseInstaller->doUpgrade()<br />
- #6 /var/www/html/wikiwrite/includes/installer/WebInstaller.php(281): WebInstallerUpgrade->execute()<br />
- #7 /var/www/html/wikiwrite/mw-config/index.php(79): WebInstaller->execute(array)<br />
- #8 /var/www/html/wikiwrite/mw-config/index.php(38): wfInstallerMain()<br />
- #9 {main}</p></div>
- </body></html> Rick Donaldson (talk) 20:04, 2 March 2020 (UTC)
- ==Upgrade existing installation==
- Warning: Database is using unrecognized collation. Rick Donaldson (talk) 20:15, 2 March 2020 (UTC)
- Could not open input file: upgrade.php
- How do I fix THIS.
Rick Donaldson (talk) 21:08, 2 March 2020 (UTC)- well the file is named maintenance/update.php not upgrade Bawolff (talk) 00:15, 3 March 2020 (UTC)
- Yes, sorry, figured that out.
- Rick 72.214.200.4 (talk) 00:58, 4 March 2020 (UTC)
- Last post here. I do not get past this now:
- Turning off Content Handler DB fields for this part of upgrade.
- Adding ipb_id field to table ipblocks ...
- An error occurred:
- A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: ALTER TABLE `ipblocks`
- ADD ipb_auto tinyint NOT NULL default '0',
- ADD ipb_id int NOT NULL auto_increment,
- ADD PRIMARY KEY (ipb_id)
- Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/wikiwrite/maintenance/archives/patch-ipblocks.sql )
- Error: 1932 Table 'wikiwrite.ipblocks' doesn't exist in engine (localhost)
- Purging caches...<!DOCTYPE html>
- <html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
- <div class="errorbox mw-content-ltr"><p>[a29e48ea1d926a2290e895a9] /wikiwrite/mw-config/?page=Upgrade Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/html/wikiwrite/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? <br />
- Query: DELETE FROM `objectcache`<br />
- Function: DatabaseUpdater::purgeCache<br />
- Error: 1932 Table 'wikiwrite.objectcache' doesn't exist in engine (localhost)<br />
- </p><p>Backtrace:</p><p>#0 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)<br />
- #1 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)<br />
- #2 /var/www/html/wikiwrite/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query(string, string)<br />
- #3 /var/www/html/wikiwrite/includes/installer/DatabaseUpdater.php(1010): Wikimedia\Rdbms\Database->delete(string, string, string)<br />
- #4 /var/www/html/wikiwrite/includes/installer/DatabaseInstaller.php(394): DatabaseUpdater->purgeCache()<br />
- #5 /var/www/html/wikiwrite/includes/installer/WebInstallerUpgrade.php(65): DatabaseInstaller->doUpgrade()<br />
- #6 /var/www/html/wikiwrite/includes/installer/WebInstaller.php(281): WebInstallerUpgrade->execute()<br />
- #7 /var/www/html/wikiwrite/mw-config/index.php(79): WebInstaller->execute(array)<br />
- #8 /var/www/html/wikiwrite/mw-config/index.php(38): wfInstallerMain()<br />
- #9 {main}</p></div>
- </body></html> Rick Donaldson (talk) 21:45, 2 March 2020 (UTC)
- Well ideally you would locate in the backup the ipblocks and objectcache tables and use them.
- If not you can try to recreate (but you probably have other tables missing that are actually important, so this whole thing is a bit iffy). To do that you have to find the table definition in the maintenance/tables.sql (starts with CREATE TABLE /*_*/ipblocks ). Copy all that and any CREATE INDEX (basically everything until the next CREATE TABLE) to a separate file, then feed that file to maintenance/sql.php. Do that for both ipblocks and objectcache. Bawolff (talk) 00:33, 3 March 2020 (UTC)
- Thanks. I'm traveling across country at the moment so will attack this again in a few days.
- Rick 72.214.200.4 (talk) 01:00, 4 March 2020 (UTC)
Restrict FullText Search on particular categories
I'm looking for a feature that I have not found some information about. Is it somehow possible: a) to place a separate fulltext-search-field somewhere in the wiki b) configure it to only search pages (or filter the results) on particular categories Carchaias (talk) 09:01, 2 March 2020 (UTC)
- extension:cirrusSearch allows adding an incategory: parameter to searches
- Extension:InputBox may be helpful, although i dont know if it supports categories. Bawolff (talk) 00:13, 3 March 2020 (UTC)
- While sniffing around this issue I found exact the same solution (CirrusSearch and InputBox). InputBox supports the 'searchfilter' parameter that could contain something like 'incategory:MyCategory'. Carchaias (talk) 09:44, 3 March 2020 (UTC)
Server name
So i have multiple domains, and i want to make sure that it detects the servername easily And uses that instead of redirecting to that domain. How can i do that? 83.143.188.108 (talk) 13:05, 2 March 2020 (UTC)
- Example: the servername in localsettings.php is example.org
- domain (example.com) redirects to example.org
- i want it to stay example.com instead of redirecting too example.com 83.143.188.108 (talk) 13:08, 2 March 2020 (UTC)
- $wgServer = WebRequest::detectServer();
- Note there can be mild security issues with this if someone tries to connect to your server with a malicious host header (so-called host injection attack). Bawolff (talk) 00:11, 3 March 2020 (UTC)
Using like Extension:ClipUpload while using Extension:TinyMCE
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I trying to directly upload file like I can with the extension ClipUpload while I am using the extension TinyMCE. It says its not supported. But this feature would be really nice. 217.224.156.147 (talk) 20:56, 2 March 2020 (UTC)
- See "Report a bug" on Extension:TinyMCE if you want maintainers to be able to see your request. Malyacko (talk) 13:24, 3 March 2020 (UTC)
- Okay, thanks. Did it.
- Greets Yaron666 (talk) 20:40, 3 March 2020 (UTC)
bugs on mediawiki (kor)
로그인 시 "로그인 세션에 문제가 발생한 것 같습니다. 세션 하이재킹을 막기 위해 동작이 취소되었습니다. 양식을 다시 제출해 주십시오." 라는 메시지가 나오면서 로그인이 되지 않습니다. 이유가 궁금합니다. 1.233.163.194 (talk) 04:14, 3 March 2020 (UTC)
- "There may be problem with login session, action was cancelled to prevent session hijacking." 1.233.163.194 (talk) 04:17, 3 March 2020 (UTC)
- If its your own wiki, caching could be misconfigured or too small. try setting
$wgSessionCacheType = CACHE_DB;Bawolff (talk) 06:53, 3 March 2020 (UTC) - Actually I did it already but i didn't work. 1.233.163.194 (talk) 10:25, 3 March 2020 (UTC)
- Manual:How to debug/Login problems Ciencia Al Poder (talk) 11:16, 3 March 2020 (UTC)
- @1.233.163.194: You must put it to the LocalSettings.php file. C.Ezra.M (talk) 19:15, 4 March 2020 (UTC)
How do I delete my account?
I created an account and shouldn't have, how do I delete the account? Ottorestoration (talk) 04:41, 3 March 2020 (UTC)
- @Ottorestoration See Project:Support desk/Flow/2015/02#h-How_to_delete_my_account?-2015-02-16T15:28:00.000Z User:SSethi_(WMF) 04:58, 3 March 2020 (UTC)
Preventing article names too similar to existing ones
Is it possible to prevent creating or renaming articles where it will be too similar to an existing name? I'd like to prevent multiple pages where the title is the same string of characters, but vary in cases.
For example, if "Rhode Island" is created, I'd like to prevent pages like:
- RHODE ISLAND
- rhode island
- Rhode island
- rhode Island Jer Hughes (talk) 06:56, 3 March 2020 (UTC)
- Extension:SaneCase may help when someone writes that title on the URL directly, but not when someone puts a red link on a page with a similar name. There's no extension I know of that provides such functionality. Ciencia Al Poder (talk) 11:23, 3 March 2020 (UTC)
- Thanks, but that extension doesn't seem to be the best match.
- I could write a script to check if a proposed name should be allowed or not. Is there a hook I could use which runs on new page saves or moves to see if the page name is ok? Jer Hughes (talk) 04:58, 4 March 2020 (UTC)
- Manual:Hooks/MovePageIsValidMove and Manual:Hooks/PageContentSave Ciencia Al Poder (talk) 10:33, 4 March 2020 (UTC)
- Thank you so much, that worked really well.
- For the PageContentSave hook, I return false if it would result in a name too similar. The user will get a "Edit aborted by hook. It gave no explanation." message. Is it possible to give a message? Jer Hughes (talk) 00:52, 8 March 2020 (UTC)
- Would you like to share jour script? I'm looking for the same functionality. Lorangeo (talk) 20:16, 10 June 2020 (UTC)
- There's an example on the hook page, did it not work for you? Ciencia Al Poder (talk) 10:50, 8 March 2020 (UTC)
How to connect photo and article
Today I've made a post https://sl.wikipedia.org/wiki/Alojzij_Knap and I've upload photo yesterday https://commons.wikimedia.org/wiki/File:Alojzij_Knap,_pilot_-_lovec.jpg Now I don't know how to place photo in post, because when i want to upload photo in post I get a warning, that something is wrong, because photo already exist. Please help! 90.157.246.45 (talk) 09:55, 4 March 2020 (UTC)
Polish characters problem on MediaWiki 1.34
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I've installed MediaWiki 1.34 on IIS with Windows Sever Standard 2016. MySql database is 8.0.19. PHP version is 7.4.3.
Problem is when i try to edit page content with polish special characters like "śćż" etc. When I edit content and write "Na skróty" and click preview content then characters ar displayed as "Na skróty",
Sometimes it work properly and characters are displayed properly and sometimes not.
What should i check?
Additionally other polish words in MediaWiki "core" are displayed properly. Problem is only with preview area and with edit area. Adrianzlobinski (talk) 14:28, 4 March 2020 (UTC)
- Is the problem consistent? I'm going to guess that IIS is serving some bad headers. Do you know how to check the http headers? ☠MarkAHershberger☢(talk)☣ 14:48, 4 March 2020 (UTC)
- Problem is not consistent. It happends from time to time. Yes i know how to check http headers. I will compare them when it is ok and it is not. Adrianzlobinski (talk) 16:49, 4 March 2020 (UTC)
- empty Adrianzlobinski (talk) 17:51, 4 March 2020 (UTC)
- I think it's a problem with the site's default character set, which should be UTF-8. C.Ezra.M (talk) 19:14, 4 March 2020 (UTC)
- Is your site public? Maybe we could look. ☠MarkAHershberger☢(talk)☣ 20:10, 4 March 2020 (UTC)
- maybe something like https://forums.iis.net/t/1229593.aspx?URL+Rewrite+Module+decodes+UTF+8+encoded+querystring+as+if+it+were+iso+8859+1 is related? Bawolff (talk) 01:09, 5 March 2020 (UTC)
- @MarkAHershberger - Site is not public.
- I've made few test.
- This is how page looks when its displayed:
- https://drive.google.com/open?id=1Xs9rS6kAvPoZnDQz37XISoG7t3dUtlLr
- And the headers:
- https://drive.google.com/open?id=1nOsd58cq2ckFpF8z4em35xQIyFwlh740
- Here how it looks when i press preview:
- https://drive.google.com/open?id=1--gKDZBZWJaIDdbrFazDrrclQ9Gne6A6
- and the headers:
- https://drive.google.com/open?id=1eKBrdtYuSQ6bZgTA6WRjrqsSLsHFPR3z
- When i open both headers on notepad++ they look good.
- Now i'am realy confused and don't know where to check. Adrianzlobinski (talk) 07:42, 5 March 2020 (UTC)
- It also looks like you're running MediaWiki as a plugin to WordPress. Is that the case?
- If so, how do you have them set up and what versions? ☠MarkAHershberger☢(talk)☣ 16:47, 5 March 2020 (UTC)
- No, Media Wiki work's standalone. Adrianzlobinski (talk) 17:51, 5 March 2020 (UTC)
- feh... Sorry, I got distracted by the wpUnicodeCheck header that I didn't recognize. ☠MarkAHershberger☢(talk)☣ 18:07, 5 March 2020 (UTC)
- @MarkAHershberger wpUnicodeCheck is needed to check if characters are properly encoded. Adrianzlobinski (talk) 05:25, 6 March 2020 (UTC)
- Now i see another regularity. When i have problem with polish characters. Then i visit phpmyadmin website located on the same IIS Server and go back to mediawiki page. After refresh page all polish characters are displayed properly. Adrianzlobinski (talk) 14:55, 12 March 2020 (UTC)
- Do you have any extensions or skins? wargo (talk) 10:39, 19 March 2020 (UTC)
- I use default skin. Yes i have few extensions like wikieditor. But even if i disable all extensions problem still exists. Adrianzlobinski (talk) 09:55, 26 March 2020 (UTC)
- I've tried to disable extensions like WikiEditor, Code, Highlight-Js etc. No results. I've tried to change skin - no result. I've checked Headers and there text is encoded properly. What to check else?
- I've tried to install new instance of MediaWiki 1.34.1 and problem is the same. I think, that there is same issue with configuration on IIS. Adrianzlobinski (talk) 10:53, 24 April 2020 (UTC)
- If you find a solution, let us know since other IIS users will be interested. ☠MarkAHershberger☢(talk)☣ 13:39, 24 April 2020 (UTC)
- Yes i've found the solution. Problem was in php.ini configuration. I have mbstring conf. like this in my file:
mbstring.language = all mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = UTF-8 mbstring.substitute_character = none; mbstring.func_overload = 0 mbstring.strict_encoding = Off
- When i comment all this lines - everything works fine. Adrianzlobinski (talk) 06:08, 30 April 2020 (UTC)
Recuperate acount
Hi, my old user acount is WilChea, but I dont remember password and when I fill the form to recuperate password, I dont receive a email to recuperate.
Please Helpme How I recuperate a Wilchea user if a dont remember password neither email.
Thx and have a good day. 181.234.172.194 (talk) 15:28, 4 March 2020 (UTC)
Not done - this is not possible. C.Ezra.M (talk) 19:13, 4 March 2020 (UTC)- If you don't remember the corresponding email address, how to prove that it's really you who owned this account? :) Malyacko (talk) 22:13, 4 March 2020 (UTC)
System message question
What is the system message for "In other languages" on the sidebar? C.Ezra.M (talk) 19:17, 4 March 2020 (UTC)
- See Help:System message#Finding messages and documentation and use https://www.mediawiki.org/wiki/Project:Support_desk?uselang=qqx Malyacko (talk) 22:11, 4 March 2020 (UTC)
Mediawiki 1.25 -> 1.33 upgrading: Error 1504 "Unknown column..."
My enviroment:
PHP: 7.0.33-23+ubuntu16.04.1+deb.sury.org+1
MySQL: 5.7.29-0ubuntu0.16.04.1
The error messages are seen clearly directly visiting http://showapops.com/wiki/Home
Pretty sure this is version 1.33 since "RELEASE-NOTES-1.33" is there and I have patched update.php for times and it returns with a long output of "...done... already..." with no error logs.
I have tried similar topics after searching here but none of them solved my problem. Can anyone help? Very appreciated. Dachy (talk) 17:26, 5 March 2020 (UTC)
- Your Special:Version indicates this is 1.25. I bet if you pointed your browser to the 1.33 code it would work better.
- But, if not, could you add the the following to the top of your LocalSettings.php file just after the
<?phpline as indicated in How to debug? - ☠MarkAHershberger☢(talk)☣ 19:44, 5 March 2020 (UTC)
error_reporting( -1 ); ini_set( 'display_errors', 1 ); $wgDebugDumpSql = true; $wgShowSQLErrors = true; $wgShowDBErrorBacktrace = true;
- Thank you so much for the hint, I forgot to modify .htaccess and the $wgScriptPath = "/wiki" was unmatched.
- Besides this, the debug output had been out there without the debug lines added to LocalSettings.php which just freaked me out :) Dachy (talk) 03:18, 6 March 2020 (UTC)
How to redirect to different namespace dynamically
we're using our mediawiki for software documentation. For each feature, we have a wiki page. For each version of the software, we have a page of the same name in a different namespace. Let's say the feature is called This feature, then we have Reference1:This_feature for version 1 and Reference2:This_feature for version 2.
From the software UI, we have links in to the wiki which are prefixed with the software version namespace, so each version points to its own pages. However, many of the pages do not change with a new version (as the specific feature does not change). If so, we want to avoid duplicating the pages. So when the page Reference2:This_feature is requested and it does not exist, then the page Reference1:This_feature should be delivered instead (if this exists).
Before, I had implemented this (in mw1.9.3) as a brute force change of the wiki code. Now that we're upgrading to mw1.34 I'd like to implement this as a proper extension.
Is there an extension available already that does it?
If not, any suggestions how to implement it as a custom extension?
Thanks, Chris 78.55.29.54 (talk) 22:03, 5 March 2020 (UTC)
- I would probably have used subpages rather than namespaces, but it's mostly a cosmetic issue.
- As for your request, you could handle the links via a wrapper template that did something similar to [[{{#ifexist:{{{1}}}|{{NAMESPACE}}:{{{1}}}|{{NAMESPACE}}:{{{1}}}|{{ns: {{#expr: {{NAMESPACENUMBER}} - 2 }} }}:{{{1}}} ]].
- However, that doesn't avoid the issue for people going directly to the page, and would make following the links complex (as you would be sending people to previous versions).
- A more advanced procedure would be to do some fallback like that on MediaWiki:noarticletext
- Or, actually going to php, simply create a MediaWiki extension that hooks BeforeDisplayNoArticleText Platonides (talk) 22:23, 5 March 2020 (UTC)
- InitializeArticleMaybeRedirect is another potential hook you could use Bawolff (talk) 07:59, 7 March 2020 (UTC)
SQL Database issue when upgrading from 1.31.16 to 1.32.0
I am attempting to migrate our Wiki to a new server running CentOS 7, PHP 7.1.33 and MariaDB 10.4.12.
After installing the files and running the upgrade process, we get a blank page.
It appears there is an issue with our existing database and the new version. If I install on a clean database, there is no issue.
We have the same issue no matter what version we go to.
Was there a change in how MediaWiki works with SQL documents?
I realize this isn't a recent version but we can't seem to update to a new release without these database issues. Patrickr2020 (talk) 04:39, 6 March 2020 (UTC)
- See Manual:Errors and symptoms#You see a Blank Page Malyacko (talk) 10:28, 6 March 2020 (UTC)
- I have done that. The issue is that the problem resolves itself when we use a clean database instead of the one from 1.31.16. There seems to be an issue with the update process for the database. Patrickr2020 (talk) 14:32, 6 March 2020 (UTC)
- Hmm, could you check database queries for issues? See Manual:How to debug#SQL errors Malyacko (talk) 20:23, 6 March 2020 (UTC)
- I can try that. Our concern is that there appears to be differences in the database between 1.31 and future versions that aren't being fixed by the upgrade script.
- Is there any documentation or information about known issues when upgrading from 1.31 to a higher release? Patrickr2020 (talk) 22:52, 6 March 2020 (UTC)
- blank page is unlikely to (directly) be a db error. Please check your php/webserver error log. Bawolff (talk) 07:55, 7 March 2020 (UTC)
- If it's unlikely to be a db error, then why does the wiki work when I delete the old (1.31) db and run the installation to a new db? Patrickr2020 (talk) 17:23, 7 March 2020 (UTC)
- Here is the log from updating from 1.31.6 to 1.34:
- Turning off Content Handler DB fields for this part of upgrade.
- ...have ipb_id field in ipblocks table.
- ...have ipb_expiry field in ipblocks table.
- ...already have interwiki table
- ...indexes seem up to 20031107 standards.
- ...have rc_type field in recentchanges table.
- ...index new_name_timestamp already set on recentchanges table.
- ...have user_real_name field in user table.
- ...querycache table already exists.
- ...objectcache table already exists.
- ...categorylinks table already exists.
- ...have pagelinks; skipping old links table updates
- ...il_from OK
- ...have rc_ip field in recentchanges table.
- ...index PRIMARY already set on image table.
- ...have rc_id field in recentchanges table.
- ...have rc_patrolled field in recentchanges table.
- ...logging table already exists.
- ...have user_token field in user table.
- ...have wl_notificationtimestamp field in watchlist table.
- ...watchlist talk page rows already present.
- ...user table does not contain user_emailauthenticationtimestamp field.
- ...page table already exists.
- ...have log_params field in logging table.
- ...logging table has correct log_title encoding.
- ...have ar_rev_id field in archive table.
- ...have page_len field in page table.
- ...revision table does not contain inverse_timestamp field.
- ...have rev_text_id field in revision table.
- ...have rev_deleted field in revision table.
- ...have img_width field in image table.
- ...have img_metadata field in image table.
- ...have user_email_token field in user table.
- ...have ar_text_id field in archive table.
- ...page_namespace is already a full int (int(11)).
- ...ar_namespace is already a full int (int(11)).
- ...rc_namespace is already a full int (int(11)).
- ...wl_namespace is already a full int (int(11)).
- ...qc_namespace is already a full int (int(11)).
- ...log_namespace is already a full int (int(11)).
- ...have img_media_type field in image table.
- ...already have pagelinks table.
- ...image table does not contain img_type field.
- ...already have unique user_name index.
- ...user_groups table exists and is in current format.
- ...have ss_total_pages field in site_stats table.
- ...user_newtalk table already exists.
- ...have iw_trans field in interwiki table.
- ...wl_notificationtimestamp is already nullable.
- ...index times already set on logging table.
- ...have ipb_range_start field in ipblocks table.
- ...no page_random rows needed to be set
- ...have user_registration field in user table.
- ...templatelinks table already exists
- ...externallinks table already exists.
- ...job table already exists.
- ...have ss_images field in site_stats table.
- ...langlinks table already exists.
- ...querycache_info table already exists.
- ...filearchive table already exists.
- ...have ipb_anon_only field in ipblocks table.
- ...have user_newpass_time field in user table.
- ...redirect table already exists.
- ...querycachetwo table already exists.
- ...have ipb_enable_autoblock field in ipblocks table.
- ...index pl_namespace on table pagelinks includes field pl_from.
- ...index tl_namespace on table templatelinks includes field tl_from.
- ...index il_to on table imagelinks includes field il_from.
- ...have rc_old_len field in recentchanges table.
- ...have user_editcount field in user table.
- ...page_restrictions table already exists.
- ...have log_id field in logging table.
- ...have rev_parent_id field in revision table.
- ...have pr_id field in page_restrictions table.
- ...have rev_len field in revision table.
- ...have rc_deleted field in recentchanges table.
- ...have log_deleted field in logging table.
- ...have ar_deleted field in archive table.
- ...have ipb_deleted field in ipblocks table.
- ...have fa_deleted field in filearchive table.
- ...have ar_len field in archive table.
- ...have ipb_block_email field in ipblocks table.
- ...index cl_sortkey on table categorylinks includes field cl_from.
- ...have oi_metadata field in oldimage table.
- ...have ar_page_id field in archive table.
- ...have img_sha1 field in image table.
- ...protected_titles table already exists.
- ...page_props table already exists.
- ...updatelog table already exists.
- ...category table already exists.
- ...category table already populated.
- ...have ar_parent_id field in archive table.
- ...have user_last_timestamp field in user_newtalk table.
- ...protected_titles table has correct pt_title encoding.
- ...have ss_active_users field in site_stats table.
- ...ss_active_users user count set...
- ...have ipb_allow_usertalk field in ipblocks table.
- ...change_tag table already exists.
- ...user_properties table already exists.
- ...log_search table already exists.
- ...l10n_cache table already exists.
- ...ct_rc_id key doesn't exist.
- ...have rd_interwiki field in redirect table.
- ...*_mime_minor fields are already long enough.
- ...iwlinks table already exists.
- ...index iwl_prefix_title_from already set on iwlinks table.
- ...have ul_value field in updatelog table.
- ...have iw_api field in interwiki table.
- ...iwl_prefix key doesn't exist.
- ...have cl_collation field in categorylinks table.
- ...categorylinks up-to-date.
- ...module_deps table already exists.
- ...ar_page_revid key doesn't exist.
- ...skipping index ar_revid because index ar_revid already set on archive table.
- ...ll_lang is up-to-date.
- ...user_last_timestamp is already nullable.
- ...index user_email already set on user table.
- ...up_property in table user_properties already modified by patch patch-up_property.sql.
- ...uploadstash table already exists.
- ...user_former_groups table already exists.
- ...have rev_sha1 field in revision table.
- ...batch conversion of user_options: nothing to migrate. done.
- ...user table does not contain user_options field.
- ...have ar_sha1 field in archive table.
- ...index page_redirect_namespace_len already set on page table.
- ...have us_chunk_inx field in uploadstash table.
- ...have job_timestamp field in job table.
- ...index page_user_timestamp already set on revision table.
- ...have ipb_parent_block_id field in ipblocks table.
- ...index ipb_parent_block_id already set on ipblocks table.
- ...category table does not contain cat_hidden field.
- ...have rev_content_format field in revision table.
- ...have rev_content_model field in revision table.
- ...have ar_content_format field in archive table.
- ...have ar_content_model field in archive table.
- ...have page_content_model field in page table.
- Content Handler DB fields should be usable now.
- ...site_stats table does not contain ss_admins field.
- ...recentchanges table does not contain rc_moved_to_title field.
- ...sites table already exists.
- ...have fa_sha1 field in filearchive table.
- ...have job_token field in job table.
- ...have job_attempts field in job table.
- ...have us_props field in uploadstash table.
- ...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
- ...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
- ...index pp_propname_page already set on page_props table.
- ...index img_media_mime already set on image table.
- ...iwl_prefix_title_from index is already non-UNIQUE.
- ...index iwl_prefix_from_title already set on iwlinks table.
- ...have ar_id field in archive table.
- ...have el_id field in externallinks table.
- ...have rc_source field in recentchanges table.
- ...have page_links_updated field in page table.
- ...have user_password_expires field in user table.
- ...have pp_sortkey field in page_props table.
- ...recentchanges table does not contain rc_cur_time field.
- ...index wl_user_notificationtimestamp already set on watchlist table.
- ...have page_lang field in page table.
- ...have pl_from_namespace field in pagelinks table.
- ...have tl_from_namespace field in templatelinks table.
- ...have il_from_namespace field in imagelinks table.
- ...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
- ...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
- ...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
- ...comment fields are up to date.
- ...hitcounter doesn't exist.
- ...site_stats table does not contain ss_total_views field.
- ...page table does not contain page_counter field.
- ...msg_resource_links doesn't exist.
- ...msg_resource doesn't exist.
- ...bot_passwords table already exists.
- ...have wl_id field in watchlist table.
- ...cl_collation key doesn't exist.
- ...index cl_collation_ext already set on categorylinks table.
- ...collations up-to-date.
- ...index rc_name_type_patrolled_timestamp already set on recentchanges table.
- ...rev_page_id index not found on revision.
- ...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
- ...have ct_id field in change_tag table.
- ...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
- ...have el_index_60 field in externallinks table.
- ...ug_user_group key doesn't exist.
- ...have ug_expiry field in user_groups table.
- ...img_media_type in table image already modified by patch patch-add-3d.sql.
- ...ip_changes table already exists.
- ...index PRIMARY already set on categorylinks table.
- ...index PRIMARY already set on templatelinks table.
- ...index PRIMARY already set on pagelinks table.
- ...index PRIMARY already set on text table.
- ...index PRIMARY already set on imagelinks table.
- ...index PRIMARY already set on iwlinks table.
- ...index PRIMARY already set on langlinks table.
- ...index PRIMARY already set on log_search table.
- ...index PRIMARY already set on module_deps table.
- ...index PRIMARY already set on objectcache table.
- ...index PRIMARY already set on querycache_info table.
- ...index PRIMARY already set on site_stats table.
- ...index PRIMARY already set on user_former_groups table.
- ...index PRIMARY already set on user_properties table.
- ...comment table already exists.
- ...revision_comment_temp table already exists.
- ...have ar_comment_id field in archive table.
- ...have fa_description_id field in filearchive table.
- ...img_description in table image already modified by patch patch-image-img_description-default.sql.
- ...have ipb_reason_id field in ipblocks table.
- ...have log_comment_id field in logging table.
- ...have oi_description_id field in oldimage table.
- ...have pt_reason_id field in protected_titles table.
- ...have rc_comment_id field in recentchanges table.
- ...rev_comment in table revision already modified by patch patch-revision-rev_comment-default.sql.
- ...have img_description_id field in image table.
- Migrating comments to the 'comments' table, printing progress markers. For large
- databases, you may want to hit Ctrl-C and do this manually with
- maintenance/migrateComments.php.
- Beginning migration of revision.rev_comment to revision_comment_temp.revcomment_comment_id
- ... 170
- ... 288
- ... 422
- ... 526
- ... 638
- ... 749
- ... 854
- ... 954
- ... 1064
- ... 1168
- ... 1270
- ... 1372
- ... 1485
- ... 1586
- ... 1687
- ... 1793
- ... 1898
- ... 2004
- ... 2112
- ... 2229
- ... 2329
- ... 2429
- ... 2529
- ... 2630
- ... 2730
- ... 2846
- ... 3080
- ... 3228
- ... 3377
- ... 3483
- ... 3583
- ... 3609
- Completed migration, updated 3126 row(s) with 743 new comment(s)
- Beginning migration of archive.ar_comment to archive.ar_comment_id
- ... 100
- ... 275
- ... 401
- ... 531
- ... 641
- Completed migration, updated 478 row(s) with 143 new comment(s)
- Beginning migration of ipblocks.ipb_reason to ipblocks.ipb_reason_id
- ... 6
- Completed migration, updated 5 row(s) with 1 new comment(s)
- Beginning migration of image.img_description to image.img_description_id
- ... WalledGarden.jpg
- Completed migration, updated 26 row(s) with 0 new comment(s)
- Beginning migration of oldimage.oi_description to oldimage.oi_description_id
- ... Tools.svg 20081017231750
- Completed migration, updated 5 row(s) with 0 new comment(s)
- Beginning migration of filearchive.fa_deleted_reason to filearchive.fa_deleted_reason_id
- Completed migration, updated 0 row(s) with 0 new comment(s)
- Beginning migration of filearchive.fa_description to filearchive.fa_description_id
- Completed migration, updated 0 row(s) with 0 new comment(s)
- Beginning migration of recentchanges.rc_comment to recentchanges.rc_comment_id
- ... 3637
- Completed migration, updated 38 row(s) with 0 new comment(s)
- Beginning migration of logging.log_comment to logging.log_comment_id
- ... 100
- ... 200
- ... 300
- ... 400
- ... 500
- ... 600
- ... 700
- ... 800
- ... 900
- ... 1000
- ... 1100
- ... 1200
- ... 1300
- ... 1400
- ... 1500
- ... 1600
- ... 1700
- ... 1800
- ... 1900
- ... 2000
- ... 2100
- ... 2200
- ... 2300
- ... 2400
- ... 2500
- ... 2600
- ... 2646
- Completed migration, updated 2646 row(s) with 92 new comment(s)
- Beginning migration of protected_titles.pt_reason to protected_titles.pt_reason_id
- Completed migration, updated 0 row(s) with 0 new comment(s)
- done.
- ...index PRIMARY already set on l10n_cache table.
- ...bot_passwords.bp_user is already unsigned int.
- ...change_tag.ct_log_id is already unsigned int.
- ...change_tag.ct_rev_id is already unsigned int.
- ...page_restrictions.pr_user is already unsigned int.
- ...user_newtalk.user_id is already unsigned int.
- ...user_properties.up_user is already unsigned int.
- ...slots table already exists.
- ...have slot_origin field in slots table.
- ...content table already exists.
- ...slot_roles table already exists.
- ...content_models table already exists.
- ...actor table already exists.
- ...revision_actor_temp table already exists.
- ...have ar_actor field in archive table.
- ...have ipb_by_actor field in ipblocks table.
- ...have img_actor field in image table.
- ...have oi_actor field in oldimage table.
- ...have fa_actor field in filearchive table.
- ...have rc_actor field in recentchanges table.
- ...have log_actor field in logging table.
- Migrating actors to the 'actor' table, printing progress markers. For large
- databases, you may want to hit Ctrl-C and do this manually with
- maintenance/migrateActors.php.
- Creating actor entries for all registered users
- ... 1 - 13
- Completed actor creation, added 13 new actor(s)
- Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
- ... rev_id=170
- ... rev_id=288
- ... rev_id=422
- ... rev_id=526
- ... rev_id=638
- ... rev_id=749
- ... rev_id=854
- ... rev_id=954
- ... rev_id=1064
- ... rev_id=1168
- ... rev_id=1270
- ... rev_id=1372
- ... rev_id=1485
- ... rev_id=1586
- ... rev_id=1687
- ... rev_id=1793
- ... rev_id=1898
- ... rev_id=2004
- ... rev_id=2112
- ... rev_id=2229
- ... rev_id=2329
- ... rev_id=2429
- ... rev_id=2529
- ... rev_id=2630
- ... rev_id=2730
- ... rev_id=2846
- ... rev_id=3080
- ... rev_id=3228
- ... rev_id=3377
- ... rev_id=3483
- ... rev_id=3583
- ... rev_id=3609
- Completed migration, updated 3126 row(s) with 40 new actor(s), 0 error(s)
- Beginning migration of archive.ar_user and archive.ar_user_text to archive.ar_actor
- ... ar_id=100
- ... ar_id=275
- ... ar_id=401
- ... ar_id=531
- ... ar_id=641
- Completed migration, updated 478 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of ipblocks.ipb_by and ipblocks.ipb_by_text to ipblocks.ipb_by_actor
- ... ipb_id=6
- Completed migration, updated 5 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of image.img_user and image.img_user_text to image.img_actor
- ... img_name=WalledGarden.jpg
- Completed migration, updated 26 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor
- ... oi_name=Tools.svg oi_timestamp=20081017231750
- Completed migration, updated 5 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor
- Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor
- ... rc_id=3637
- Completed migration, updated 38 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
- ... log_id=100
- ... log_id=200
- ... log_id=300
- ... log_id=400
- ... log_id=500
- ... log_id=600
- ... log_id=700
- ... log_id=800
- ... log_id=900
- ... log_id=1000
- ... log_id=1100
- ... log_id=1200
- ... log_id=1300
- ... log_id=1400
- ... log_id=1500
- ... log_id=1600
- ... log_id=1700
- ... log_id=1800
- ... log_id=1900
- ... log_id=2000
- ... log_id=2100
- ... log_id=2200
- ... log_id=2300
- ... log_id=2400
- ... log_id=2500
- ... log_id=2600
- ... log_id=2646
- Completed migration, updated 2646 row(s) with 0 new actor(s), 0 error(s)
- Beginning migration of log_search
- Completed migration, inserted 0 row(s) with 0 new actor(s), 0 error(s)
- done.
- ...rev_text_id in table revision already modified by patch patch-rev_text_id-default.sql.
- ...table site_stats already modified by patch patch-site_stats-modify.sql.
- ...index rc_namespace_title_timestamp already set on recentchanges table.
- Creating change_tag_def table ...done.
- Populating el_index_60 field, printing progress markers. For large
- databases, you may want to hit Ctrl-C and do this manually with
- maintenance/populateExternallinksIndex60.php.
- Populating externallinks.el_index_60...
- el_id 0 - 200 of 255
- el_id 200 - 400 of 255
- Done, 213 rows updated.
- done.
- Modifying el_index_60 field of table externallinks ...done.
- Running maintenance/deduplicateArchiveRevId.php...
- Deduplicating ar_rev_id...
- ... 2-3417
- Finished deduplicating ar_rev_id. 0 rows deleted, 0 assigned new IDs.
- done.
- Adding ct_tag_id field to table change_tag ...done.
- Adding index ar_revid_uniq to table archive ...done.
- Migrating revision data to the MCR 'slot' and 'content' tables, printing progress markers.
- For large databases, you may want to hit Ctrl-C and do this manually with
- maintenance/populateContentTables.php.
- Populating revision...
- ... revision processed up to revision id 500 of 3609 (376 rows in 0.032840967178345 seconds)
- ... revision processed up to revision id 1000 of 3609 (845 rows in 0.055554866790771 seconds)
- ... revision processed up to revision id 1500 of 3609 (1315 rows in 0.076575040817261 seconds)
- ... revision processed up to revision id 2000 of 3609 (1796 rows in 0.099241971969604 seconds)
- ... revision processed up to revision id 2500 of 3609 (2271 rows in 0.12069487571716 seconds)
- ... revision processed up to revision id 3000 of 3609 (2637 rows in 0.13884806632996 seconds)
- ... revision processed up to revision id 3500 of 3609 (3017 rows in 0.15584087371826 seconds)
- ... revision processed up to revision id 3609 of 3609 (3126 rows in 0.16278290748596 seconds)
- Done populating revision table. Processed 3126 rows in 0.16280293464661 seconds
- Populating archive...
- ... archive processed up to revision id 501 of 3417 (124 rows in 0.011390924453735 seconds)
- ... archive processed up to revision id 1001 of 3417 (156 rows in 0.016263008117676 seconds)
- ... archive processed up to revision id 1501 of 3417 (185 rows in 0.022576093673706 seconds)
- ... archive processed up to revision id 2001 of 3417 (204 rows in 0.029238939285278 seconds)
- ... archive processed up to revision id 2501 of 3417 (229 rows in 0.03640604019165 seconds)
- ... archive processed up to revision id 3001 of 3417 (363 rows in 0.048792123794556 seconds)
- ... archive processed up to revision id 3417 of 3417 (478 rows in 0.056800127029419 seconds)
- Done populating archive table. Processed 478 rows in 0.056807994842529 seconds
- Done. Processed 3604 rows in 0.22982287406921 seconds
- done.
- Adding index log_type_action to table logging ...done.
- Dropping type_action index from table logging ...done.
- Renaming index iw_prefix into PRIMARY to table interwiki ...done.
- ...index PRIMARY already set on page_props table.
- ...index PRIMARY already set on protected_titles table.
- Renaming index site_ids_type into PRIMARY to table site_identifiers ...done.
- Adding index rc_this_oldid to table recentchanges ...done.
- Dropping table transcache ...done.
- Running maintenance/populateChangeTagDef.php...
- No user defined tags to set, moving on...
- done.
- Adding index change_tag_rc_tag_id to table change_tag ...done.
- Adding ipb_sitewide field to table ipblocks ...done.
- Creating ipblocks_restrictions table ...done.
- Merging image_comment_temp into the image table
- Merging image_comment_temp into the image table...
- Completed merge of image_comment_temp into the image table, 0 image rows updated, 0 image_comment_temp rows deleted.
- done.
- Dropping table image_comment_temp ...done.
- Table change_tag contains ct_tag field. Dropping ...done.
- Dropping table valid_tag ...done.
- Dropping table tag_summary ...done.
- Table protected_titles contains pt_reason field. Dropping ...done.
- Modifying table job ...done.
- ...ar_usertext_timestamp key doesn't exist.
- Dropping usertext_timestamp index from table archive ...done.
- Table logging contains log_user field. Dropping ...done.
- Adding index un_user_ip to table user_newtalk ...done.
- ...site_stats is populated...done.
- Purging caches...done.
- As you can see, there doesn't appear to be any errors or issues, yet I am still getting a blank page.
- I have tried to turn logging on but don't get any php messages or errors. Patrickr2020 (talk) 18:34, 7 March 2020 (UTC)
- I created a second database and ran a new installation. The page loads successfully. This points to some kind of database issue that the update script is not reading or fixing.
Patrickr2020 (talk) 18:51, 7 March 2020 (UTC)- Its likely if you have a new db, your wiki has no content, and thus you're not doing the thing causing the error. (Why I said "directly").
- Regardless, please enable php error reporting and tell us what your php and apache error logs say after you go to the blank page. Normally blank pages are caused by php fatal errors (Or in extremely rare cases, php segfaulting). Your error logs should have more details on the cause of the blank page. Bawolff (talk) 08:11, 9 March 2020 (UTC)
- I turned on
$wgShowExceptionDetails$wgDebugToolbar$wgShowDebugand$wgDevelopmentWarnings - Here is the output from version 1.31.6:
- [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
- [SQLBagOStuff] Connection 340 will be used for SqlBagOStuff
- [session] SessionBackend "hocu5rn7ulvuqjp5adtd21hrak2grtat" is unsaved, marking dirty in constructor
- [session] SessionBackend "hocu5rn7ulvuqjp5adtd21hrak2grtat" save: dataDirty=1 metaDirty=1 forcePersist=0
- [cookie] already deleted setcookie: "wikidb_session", "", "1552251018", "/", "", "1", "1"
- [cookie] already deleted setcookie: "wikidbUserID", "", "1552251018", "/", "", "1", "1"
- [cookie] already deleted setcookie: "wikidbToken", "", "1552251018", "/", "", "1", "1"
- [cookie] already deleted setcookie: "forceHTTPS", "", "1552251018", "/", "", "", "1"
- [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
- [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired, loading from database
- Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
- [ContentHandler] Created handler for wikitext: WikitextContentHandler
- Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->transform
- Parser: using preprocessor: Preprocessor_DOM
- Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
- MediaWiki::preOutputCommit: primary transaction round committed
- MediaWiki::preOutputCommit: pre-send deferred updates completed
- MediaWiki::preOutputCommit: LBFactory shutdown completed
- On 1.33.2, I see the debug messages but the page goes blank before I can read them. Any idea on how to get them to display?
Patrickr2020 (talk) 20:23, 9 March 2020 (UTC)- So the issue appears to be when $wgUseSiteJs is enabled.
- What could be causing this?
Patrickr2020 (talk) 23:03, 9 March 2020 (UTC)- One of your scripts may be using
document.write, which will cause the entire page to be replaced (and becoming blank). Locate the script that includes those instructions and remove them altogether. Ciencia Al Poder (talk) 10:26, 10 March 2020 (UTC)
Data Analytics
what is the sole responsibility of a Data Analysis ? NAOMITEE (talk) 10:52, 6 March 2020 (UTC)
- @NAOMITEE How is this question related to the MediaWiki software? Malyacko (talk) 11:11, 6 March 2020 (UTC)
All my pages appear blank after installing advancedmeta
Greetings, after installing this extension I get this error, thanks for reading ....
thrown in /home/(user)/public_html/includes/registration/ExtensionRegistry.php on line 438
[06-Mar-2020 08:09:30 America/New_York] PHP Warning: Use of undefined constant ‘display_errors’ - assumed '‘display_errors’' (this will throw an Error in a future version of PHP) in /home/(user)/public_html/LocalSettings.php on line 200
[06-Mar-2020 08:09:30 America/New_York] PHP Fatal error: Uncaught UnexpectedValueException: callback '\AdvancedMeta\Extension::onRegistration' is not callable in /home/(user)/public_html/includes/registration/ExtensionRegistry.php:438
Stack trace:
#0 /home/(user)/public_html/includes/registration/ExtensionRegistry.php(187): ExtensionRegistry->exportExtractedData(Array)
#1 /home/(user)/public_html/includes/Setup.php(143): ExtensionRegistry->loadFromQueue()
#2 /home/(user)/public_html/includes/WebStart.php(81): require_once('/home/(user)/...')
#3 /home/(user)/public_html/index.php(41): require('/home/(user)/...')
#4 {main}
thrown in /home/(user)/public_html/includes/registration/ExtensionRegistry.php on line 438 SamiWey (talk) 13:23, 6 March 2020 (UTC)
- Hi, which exact extension version and branch? Which exact MediaWiki version? Malyacko (talk) 20:24, 6 March 2020 (UTC)
- MediaWiki 1.34.0 PHP 7.2.28 (litespeed) MariaDB 10.2.31-MariaDB-cll-lve ICU 63.1
- and Advanced meta extension version for mediawiki 1.34 SamiWey (talk) 20:42, 6 March 2020 (UTC)
- kernel version 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 SamiWey (talk) 20:50, 6 March 2020 (UTC)
- sounds like the AdvancedMeta extension is broken. Try uninstalling it and if that fixes it, complain to its author. Bawolff (talk) 07:53, 7 March 2020 (UTC)
Page content missing after 1.34.0 upgrade
Hi Mediawiki folks!
I am running a deployment of Mediawiki that has quite some history to it. Late last year I upgraded it from 1.21 to 1.33 without much hassle. A few days ago I upgraded to mediawiki 1.34.0. I ran the upgrade.php and did some quick testing, all looked good. Today however, a user showed me that some pages are coming up blank. For example: https://wiki.redbrick.dcu.ie/index.php/Committee_Timeline. This was definitely OK in 1.33.
I enabled all the debug options I could, and came to the conclusion that this is likely some sort of database corruption. The content is, fortunately, still there as you can see from the page history, and it appears when you try to edit the page. However even looking at previous versions of the page it comes up blank.
I have collected a debug log containing the Apache error.log, plus the error log for the virtualhost itself, plus the mediawiki debug log with the $wgDebugDumpSql option set. I wasn't able to spot any immediate issues but I am happy to send this on however suits you best for investigation. Versions are:
| Product | Version |
|---|---|
| MediaWiki | 1.34.0 |
| PHP | 7.3.14 (fpm-fcgi) |
| MySQL | 8.0.13-4 |
| ICU | 64.2 |
Thanks
m1cr0man (but that name was taken) Redbrickie (talk) 20:07, 6 March 2020 (UTC)
- Unlikely to be related, but that URL has broken wiki markup at the end of the table, which might be worth to fix first.
- Indeed there is no parser output currently, also see https://wiki.redbrick.dcu.ie/api.php?action=parse&page=Committee_Timeline&format=json Malyacko (talk) 20:35, 6 March 2020 (UTC)
- Hi Malyacko,
- Thanks! That seemed to fix it... What I did notice though was the edit preview before I saved was working, but the Notes section on that page was rendering above the table.
- Is there an option in Mediawiki to control how strict the parser is? Redbrickie (talk) 21:14, 6 March 2020 (UTC)
- Actually, would it be possible to have Mediawiki log these parse errors, so we can track down other broken pages on our Wiki?
- EDIT: Found another broken page, https://wiki.redbrick.dcu.ie/index.php/RBVM_Vnc, and the editing preview on this page is gone aswell. However I removed {{rbvm}} from the bottom and that fixed it. Surely there's a way to get errors on this? Redbrickie (talk) 21:20, 6 March 2020 (UTC)
- I think the problem is not the broken table, but the use of bullet characters "•" encoded as windows-1252 instead of UTF-8. Perhaps something changed in how MediaWiki processes invalid unicode in MediaWiki 1.34. For example, some libraries return false on invalid unicode, which in php can be automatically cast to the empty string. Its likely somewhere something like that was added without sufficient error checking.
- I'm not sure how the misencoded bullets got in your wiki in the first place. MediaWiki should have automatically converted to unicode starting in MediaWiki 1.6. Bawolff (talk) 03:54, 9 March 2020 (UTC)
- Filed as https://phabricator.wikimedia.org/T247222 Bawolff (talk) 05:14, 9 March 2020 (UTC)
Database issues upgrading from 1.20 to 1.34
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've had to upgrade php to 7 and the old version wouldn't play nicely with php7 so I've upgraded, have backups of everything. I followed the upgrading guide: Manual:Upgrading and got to the point where it wanted me to run the update.php script.
I get this:
MediaWiki 1.34.0 Updater
Your composer.lock file is up to date with current dependencies!
Wikimedia\Rdbms\DBConnectionError from line 1380 of /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error ()
#0 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'mediawikidb-med...', 4)
#2 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(-2, Array, 'mediawikidb-med...', 4)
#3 /home/evageeks/wiki.evageeks.org/maintenance/Maintenance.php(1401): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(-2, Array, 'mediawikidb-med...')
#4 /home/evageeks/wiki.evageeks.org/maintenance/update.php(147): Maintenance->getDB(-2)
#5 /home/evageeks/wiki.evageeks.org/maintenance/doMaintenance.php(99): UpdateMediaWiki->execute()
#6 /home/evageeks/wiki.evageeks.org/maintenance/update.php(277): require_once('/home/evageeks/...')
#7 {main}
I've turned on the debugging:
$wgDebugLogFile = "/var/log/mediawiki-debug.log"; $wgDebugDumpSql = true;
And I see this:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store SqlBagOStuff
IP: 127.0.0.1
Start command line script update.php
[localisation] LocalisationCache: using store LCStoreNull
[session] SessionManager using store SqlBagOStuff
Unstubbing $wgParser on call of $wgParser::setHook from require_once
ParserFactory: using preprocessor: Preprocessor_Hash
[DBConnection] Error connecting to [Null] as user [Null]: Got schema 'mediawiki'; not supported.
#0 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/database/DatabaseMysqlBase.php(126): Wikimedia\Rdbms\Database->newExceptionAfterConnectError(string)
#1 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/database/Database.php(307): Wikimedia\Rdbms\DatabaseMysqlBase->open(string, string, string, string, string, string)
#2 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/database/Database.php(291): Wikimedia\Rdbms\Database->doInitConnection()
#3 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1319): Wikimedia\Rdbms\Database->initConnection()
#4 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1094): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(array, Wikimedia\Rdbms\DatabaseDomain)
#5 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(926): Wikimedia\Rdbms\LoadBalancer->getLocalConnection(integer, integer)
#6 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#7 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#8 /home/evageeks/wiki.evageeks.org/maintenance/Maintenance.php(1401): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)
#9 /home/evageeks/wiki.evageeks.org/maintenance/update.php(147): Maintenance->getDB(integer)
#10 /home/evageeks/wiki.evageeks.org/maintenance/doMaintenance.php(99): UpdateMediaWiki->execute()
#11 /home/evageeks/wiki.evageeks.org/maintenance/update.php(277): require_once(string)
#12 {main}
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "127.0.0.1",
"UserAgent": false,
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: failed to connect to database 0 at 'localhost'.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::reportConnectionError: connection error: Unknown error ([Null])
I've also tried running the web upgrade script, although that gets stuck in the db upgrade section, it does appear to get to the point where it says the site is ready. But going to the site shows a similar set of errors:
(Cannot access the database)
Backtrace:
#0 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection()
#2 /home/evageeks/wiki.evageeks.org/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection()
#3 /home/evageeks/wiki.evageeks.org/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef()
#4 /home/evageeks/wiki.evageeks.org/includes/user/User.php(458): wfGetDB()
#5 /home/evageeks/wiki.evageeks.org/includes/libs/objectcache/wancache/WANObjectCache.php(1424): User->{closure}()
#6 /home/evageeks/wiki.evageeks.org/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate()
#7 /home/evageeks/wiki.evageeks.org/includes/user/User.php(485): WANObjectCache->getWithSetCallback()
#8 /home/evageeks/wiki.evageeks.org/includes/user/User.php(404): User->loadFromCache()
#9 /home/evageeks/wiki.evageeks.org/includes/user/User.php(340): User->loadFromId()
#10 /home/evageeks/wiki.evageeks.org/includes/session/UserInfo.php(89): User->load()
#11 /home/evageeks/wiki.evageeks.org/includes/session/CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId()
#12 /home/evageeks/wiki.evageeks.org/includes/session/SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo()
#13 /home/evageeks/wiki.evageeks.org/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest()
#14 /home/evageeks/wiki.evageeks.org/includes/WebRequest.php(806): MediaWiki\Session\SessionManager->getSessionForRequest()
#15 /home/evageeks/wiki.evageeks.org/includes/session/SessionManager.php(129): WebRequest->getSession()
#16 /home/evageeks/wiki.evageeks.org/includes/Setup.php(827): MediaWiki\Session\SessionManager::getGlobalSession()
#17 /home/evageeks/wiki.evageeks.org/includes/WebStart.php(81): require_once('/home/evageeks/...')
#18 /home/evageeks/wiki.evageeks.org/index.php(41): require('/home/evageeks/...')
#19 {main}
Any ideas? Evageeks (talk) 20:09, 6 March 2020 (UTC)
- I don't know why for the life of me I can't format the output. Evageeks (talk) 20:20, 6 March 2020 (UTC)
- I've commented out these lines from the LocalSettings.php:
#$wgDBmwschema = "mediawiki";#$wgDBts2schema = "public";- And I was able to run the update.php script, and afterwards I no longer get the error displayed on the web. However, instead of an error, every page I go to is now a 404.
- I see all that pages in the database, none of them show up through mediawiki. Evageeks (talk) 20:45, 6 March 2020 (UTC)
- Looks like the old htaccess file needed to be added back in Evageeks (talk) 23:53, 6 March 2020 (UTC)
Passing value from LocalSettings to skin file
Hey!
I want to do some A/B testing on my wiki. I have 2 different scripts that I am importing in LocalSettings.php using hooks:
$wgHooks['BeforePageDisplay'][] ='customScripts';
function customScripts( OutputPage &$out, Skin &$skin )
{
if (rand(0, 1)) {
$script .= "<script 1 here...>";
} else {
$script .= "<script 2 here...>";
}
$out->addHeadItem("customScripts", $script);
return true;
};
There is basically a 50/50 chance to load each script. I now need to know which one of those scipts were loaded within my skin php file so that I can render it based on which script was loaded. I tried creating variables in LocalSettings and tried to access them from my skin php file but it didn't work. Does someone how this could be done and can point me in the right direction? Thanks!
Mukilol2 (talk) 13:28, 7 March 2020 (UTC)
- Why didn't that work? You would have to create it outside of your customScripts hook, and then access it with a
globaldeclaration, but i don't see why that wouldn't work. Bawolff (talk) 03:42, 9 March 2020 (UTC)
Configure LDAP.
Hello, I am trying to configure LDAP with Active directory so that any member of a particular group 'GROUP' should be with role 'user'. I tried reading the documentaiton for LDAP Stack and tried the page Manual:Active Directory Integration. and implemented it, and I could login but I get errors regarding sync groups, and I am very confused.
I don't want all users in basedn to be able to login. Only members of 'Group' as 'user' role in mediawiki. Also, I want to allow creation and login of local account.
Appreciate you help. Salem-talem (talk) 20:26, 7 March 2020 (UTC)
Revisions table did not update in 1.34
I recently upgraded my wiki from 1.33 to 1.34 and while the other database tables have appeared to update its columns, the revision table still has rev_user and rev_user_text instead of rev_actor. I tried running migrateActors.php but it said it was already completed so nothing changed.
How do I fix this? Vishkujo (talk) 01:27, 8 March 2020 (UTC)
- That's expected. The revision table migration is planned to be completed in a future version. For now there is revision_actor_temp table. Bawolff (talk) 03:39, 9 March 2020 (UTC)
- Oh, thanks. I guess it's an issue with the SocialProfile extension then? The user stats and points in that extension no longer update and I get this notice when deleting an image: Undefined property: stdClass::$rev_actor Vishkujo (talk) 05:28, 9 March 2020 (UTC)
- ping User:Jack Phoenix Bawolff (talk) 05:53, 9 March 2020 (UTC)
- Discussed more on phab:T247184 but tl,dr: should be fixed in master, please upgrade and let me know if that isn't the case. Thanks! Jack Phoenix (Contact) 23:04, 10 March 2020 (UTC)
zoywiki.com refuses to recognize login
zoywiki.com refuses to recognize my log-in even though I have not disabled cookies.
How do I fix this problem? TheCajunPhoenix (talk) 04:42, 8 March 2020 (UTC)
- Please contact the owners of zoywiki.com (which also runs an ancient and insecure MediaWiki version). Malyacko (talk) 13:37, 8 March 2020 (UTC)
- How do I do that when there is no way for me to address them directly? TheCajunPhoenix (talk) 01:09, 19 March 2020 (UTC)
- Apologies, but since this website or the Wikimedia Foundation is not linked with Zoywiki, contributors here will not be able to help you contact Zoywiki admins. AhmadF.Cheema (talk) 18:27, 19 March 2020 (UTC)
Uploading not possible "Could not open lock file for "mwstore://local-backend/local-public/"
Hi,
I am trying to set up mediawiki 1.34.0 on CentOS-8.1.1911 in a virtual machine in "Virutal Box".
So i found this procedure how to do it: https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux
Everything is working fine besides uploading images to the WIKI. Uploading to WIKI gives me:
"Could not open lock file for "mwstore://local-backend/local-public/1/18/Index.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information."
After enabling debugging with "$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";" I get:
[DBQuery] startAtomic: entering level 0 (LocalFile::lockingTransaction)
[LockManager] Cannot create directory '/var/www/mediawiki-1.34.0/images/lockdir'.
[LockManager] Cannot create directory '/var/www/mediawiki-1.34.0/images/lockdir'.
…..
[LockManager] Cannot create directory '/var/www/mediawiki-1.34.0/images/lockdir'.
[DBQuery] endAtomic: leaving level 0 (LocalFile::lockingTransaction)
[LocalFile] Failed to lock '2020-03-02_21_50_46-Window.png'
Things that i checked:
in the php.ini (under /etc/php.ini)
file_uploads = On
I add "/var/www/mediawiki/images" at the end of:
open_basedir = open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/var/www/mediawiki/images
I checked the rights of the link / folder "mediawiki"
cd /var/www
ls -ld mediawiki
lrwxrwxrwx. 1 apache apache 17 1. Mär 16:31 mediawiki -> mediawiki-1.34.0/
I checked the rights of the folder "images"
cd /var/www/mediawiki
ls -ld images gives:
drwxr-xr-x. 2 apache apache 37 1. Mär 16:31 images
I changed folder permissions from 755 to 777
chmod -R 777 images
tried to upload a file -->same issue so i switched back to 755
I logged in as apache user:
sudo -u apache bash
navigated to "cd /var/www/mediawiki/images" and created a file with nano test.txt and stored it.
I tried
sudo chown apache. /var/www/mediawiki/images
no success
I tried
sudo chown -R apache:apache images/
no success
So i tried everything that i found on google. Is there anyone having an idea what to do next?
Thank you in advance. Bobbythemoh (talk) 08:37, 8 March 2020 (UTC)
- Check apache/php error log. Check SELinux audit log. Bawolff (talk) 03:37, 9 March 2020 (UTC)
- any ideas? 188.23.63.44 (talk) 18:54, 10 March 2020 (UTC)
- Furthermore I tried https://askubuntu.com/questions/58725/how-do-we-know-that-a-directory-is-apache-writable
- sudo chgrp apache /var/www/mediawiki/images
- sudo chmod g+w /var/www/mediawiki/images
- no success
- sudo chgrp apache /var/www/mediawiki/
- sudo chmod g+w /var/www/mediawiki/
- no success Bobbythemoh (talk) 19:19, 10 March 2020 (UTC)
- Update: Success on UBUNTU with the following commands: sudo -i
- chgrp www-data /var/lib/mediawiki/images
- chmod g+w /var/lib/mediawiki/images
- no restart of linux needed, no apache restart needed.
- What is the difference to CentOS? UBUNTU is apache2. (www-data vs. apache) Bobbythemoh (talk) 19:32, 10 March 2020 (UTC)
- Hi, thanks for the hints. I tried to install on UBUNTU 18.04.4. Same issue. Can't upload files.
- I used this procedure: Manual:Running MediaWiki on Debian or Ubuntu
- Back in CentOS under /var/log/httpd/error.log i found:
- [Mon Mar 09 20:27:32.544243 2020] [core:notice] [pid 1277:tid 140434296350976] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
- [Mon Mar 09 20:27:32.557794 2020] [suexec:notice] [pid 1277:tid 140434296350976] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
- AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
- [Mon Mar 09 20:27:32.695546 2020] [lbmethod_heartbeat:notice] [pid 1277:tid 140434296350976] AH02282: No slotmem from mod_heartmonitor
- [Mon Mar 09 20:27:32.705738 2020] [http2:warn] [pid 1277:tid 140434296350976] AH02951: mod_ssl does not seem to be enabled
- [Mon Mar 09 20:27:32.745526 2020] [mpm_event:notice] [pid 1277:tid 140434296350976] AH00489: Apache/2.4.37 (centos) configured -- resuming normal operations
- [Mon Mar 09 20:27:32.745555 2020] [core:notice] [pid 1277:tid 140434296350976] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
- [Mon Mar 09 20:28:22.069272 2020] [proxy_fcgi:error] [pid 1386:tid 140433459824384] [client 192.168.0.10:50248] AH01071: Got error 'Primary script unknown\n'
- Using: "sudo ausearch --start today -i" gives me approx 50 times this message in a similar way:
- type=PROCTITLE msg=audit(2020-03-09 20:46:38.698:197) : proctitle=php-fpm: pool www
- type=SYSCALL msg=audit(2020-03-09 20:46:38.698:197) : arch=x86_64 syscall=mkdir success=no exit=EACCES(Keine Berechtigung) a0=0x7ffccf6b2150 a1=0777 a2=0x8 a3=0x0 items=0 ppid=1305 pid=1377 auid=unset uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=unset comm=php-fpm exe=/usr/sbin/php-fpm subj=system_u:system_r:httpd_t:s0 key=(null)
- type=AVC msg=audit(2020-03-09 20:46:38.698:197) : avc: denied { write } for pid=1377 comm=php-fpm name=images dev="dm-0" ino=50571834 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir permissive=0 Bobbythemoh (talk) 19:40, 9 March 2020 (UTC)
- You could try doing something like
chcon -R -t httpd_user_rw_content_t /var/www/mediawiki/images[I'm not that familar with selinux, not sure if that's the right command] Bawolff (talk) 19:59, 10 March 2020 (UTC) - Did not work for me. I switched to UBUNTU Server, now it works, but thanks for the help. Bobbythemoh (talk) 10:26, 28 March 2020 (UTC)
How can I check if a user can edit a page?
I'd like to know if there is an automated way to check if check if a user has the permissions needed to edit a specific page. I'd like to chain this before using the edit.php script as the edit.php script does not check permissions before executing.
php ableToEdit.php "Guy Fawkes" "House of Commons of the United Kingdom" && php edit.php -u "Guy Fawkes" "House of Commons of the United Kingdom" < Updated_Wikitext
To my knowledge, an existing script does not exist, but I'm wondering the best way I can check this. Jer Hughes (talk) 18:51, 8 March 2020 (UTC)
- (Assuming MW 1.33) Not really, but you can use eval.php (The following is supposed to be one line)
echo '\MediaWiki\MediaWikiServices::getInstance()->getPermissionManager()->userCan( "edit", User::newFromName( "Username here" ), Title::newFromText( "Name_of_page_here" ) ) ? exit(0) : exit(1);' | php eval.php
- which will exit with an exit code of 1 or 0, so you could use it in an if statement in the shell. Note, this will not check edit throttling Bawolff (talk) 03:35, 9 March 2020 (UTC)
Upgrading from MediaWiki 1.18 to 1.33 and it's going badly.
Hello. My webhost recently upgraded my server's PHP from 5.4 to 7.2, and my wiki - which was running on 1.18 - stopped working. So, I attempted to upgrade from 1.18 to 1.33. This has not worked out thus far. I have enabled error logging: http://history.sydlexia.com/
Can anyone give me any advice on what to do?
I imagine my LocalSettings file is also a bit of mess, being as it's very old. Is there anywhere I can find a template of what a current LocalSettings file SHOULD look like? FloydDoors (talk) 23:26, 8 March 2020 (UTC)
- Hmm. Can you tell me what the value of $wgDBname $wgDBprefix and $wgDBmwschema (And any other DB related settings other than your password) are in your LocalSettings.php ($wgDBmwschema may not exist, its ok (probably better) if it doesn't). Are you using mysql as the database backend? Bawolff (talk) 03:28, 9 March 2020 (UTC)
- Yes, it is using mysql
- $wgDBtype = "mysql";
- $wgDBserver = "fakeforums.sydlexia.com";
- $wgDBname = "sydwiki";
- # MySQL specific settings
- $wgDBprefix = "syd_";
- # MySQL table options to use during installation or update
- $wgDBTableOptions = "TYPE=InnoDB";
- # Experimental charset support for MySQL 4.1/5.0.
- $wgDBmysql5 = false;
- # Postgres specific settings
- $wgDBport = "5432";
- $wgDBmwschema = "mediawiki";
- $wgDBts2schema = "public"; FloydDoors (talk) 18:17, 9 March 2020 (UTC)
- Try commenting out these two lines:
- Bawolff (talk) 19:53, 10 March 2020 (UTC)
$wgDBmwschema = "mediawiki"; $wgDBts2schema = "public";
- I commented out those lines and these are the errors I am currently getting:
- [XmgYrzSMFEiiNuhf7sfJJAAAAAI] / Wikimedia\Rdbms\DBQueryError from line 1587 of /home/mrmiyagi/history.sydlexia.com/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 `syd_revision` JOIN `syd_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `syd_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `syd_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `syd_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `syd_page` ON ((page_id = rev_page)) LEFT JOIN `syd_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 'sydwiki.syd_revision_comment_temp' doesn't exist (fakeforums.sydlexia.com)
- Backtrace:
- #0 /home/mrmiyagi/history.sydlexia.com/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
- #1 /home/mrmiyagi/history.sydlexia.com/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #2 /home/mrmiyagi/history.sydlexia.com/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
- #3 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(546): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
- #4 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(439): MessageCache->loadFromDB(string, NULL)
- #5 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(359): MessageCache->loadFromDBWithLock(string, array, NULL)
- #6 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(1050): MessageCache->load(string)
- #7 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(977): MessageCache->getMsgFromNamespace(string, string)
- #8 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(947): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
- #9 /home/mrmiyagi/history.sydlexia.com/includes/cache/MessageCache.php(889): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
- #10 /home/mrmiyagi/history.sydlexia.com/includes/Message.php(1308): MessageCache->get(string, boolean, LanguageEn)
- #11 /home/mrmiyagi/history.sydlexia.com/includes/Message.php(863): Message->fetchMessage()
- #12 /home/mrmiyagi/history.sydlexia.com/includes/Message.php(955): Message->toString(string)
- #13 /home/mrmiyagi/history.sydlexia.com/includes/Title.php(633): Message->text()
- #14 /home/mrmiyagi/history.sydlexia.com/includes/MediaWiki.php(120): Title::newMainPage()
- #15 /home/mrmiyagi/history.sydlexia.com/includes/MediaWiki.php(140): MediaWiki->parseTitle()
- #16 /home/mrmiyagi/history.sydlexia.com/includes/MediaWiki.php(781): MediaWiki->getTitle()
- #17 /home/mrmiyagi/history.sydlexia.com/includes/MediaWiki.php(515): MediaWiki->main()
- #18 /home/mrmiyagi/history.sydlexia.com/index.php(42): MediaWiki->run()
- #19 {main}
FloydDoors (talk) 22:48, 10 March 2020 (UTC)- Can you re-run update.php with those lines commented out? Bawolff (talk) 02:20, 11 March 2020 (UTC)
- Done. So, I've got a weird thing going on now where the wiki briefly loads and then immediately displays a blank page with no error. How do I fix this? FloydDoors (talk) 03:03, 11 March 2020 (UTC)
- See the last paragraph of Blank page Ciencia Al Poder (talk) 10:46, 11 March 2020 (UTC)
- This is the current error:
- Warning: include(): Could not call the sapi_header_callback in /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php on line 31
- X-Content-Type-Options: nosniff Content-type: text/html; charset=UTF-8
- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Flash has a deprecated constructor in /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php on line 31
- Warning: session_name(): Cannot change session name when headers already sent in /home/mrmiyagi/history.sydlexia.com/includes/Setup.php on line 803
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/libs/HttpStatus.php on line 112
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- Warning: Cannot modify header information - headers already sent by (output started at /home/mrmiyagi/history.sydlexia.com/extensions/Flash.php:31) in /home/mrmiyagi/history.sydlexia.com/includes/WebResponse.php on line 72
- This is the code causing the error:
- class Flash {
- /* Constructor */
- function Flash( $input ) {
- Flash::parseInput( $input ); // Parse the input
- Flash::genCode(); // Generate the final code
- }
- /* Parser */
- function parseInput( $input ) {
- for($pos=0; $pos<strlen($input); $pos++) { // go through all arguments
- if($input{$pos}=='=') { // separator between command
- //ignore '=' if the attribute is flashvars
- //this will enable to pass query string to flash files
- if($gotflashvars) {
- $this->tmp .= $input{$pos};
- continue;
- }
- $this->instr = $this->tmp;
- $this->tmp = '';
- //set the flag for flashvars
- if($this->instr == 'flashvars') $gotflashvars = 1;
- }
- else if($input{$pos}=='|') { // separator between arguments
- //reset the flags for other attributes
- if($gotflashvars) $gotflashvars = 0;
- Flash::setValue();
- $this->tmp='';
- } else {
- $this->tmp .= $input{$pos};
- }
- }
- if($this->tmp!='') Flash::setValue(); // Deal with the rest of the input string
- }
- Line 31 is the first line. FloydDoors (talk) 16:39, 11 March 2020 (UTC)
- You must ask the person maintaining that Flash extension to fix the code Ciencia Al Poder (talk) 18:08, 11 March 2020 (UTC)
Question regarding the Bigdelete permission
For weeks now, I've been trying to find the answer to my question as to whether or not the (bigdelete) permission can be used to delete pages with large histories without the (delete) permission. Obviously users would no longer be able to delete pages that don't have more than a certain number of revisions. But would that mean that they would no longer be able to delete pages with large histories?
Judging by how certain other permissions that delete stuff work, I'm guessing the answer to that would be "yes". Since I've done some tests on some of the permissions. (nuke) requires (delete) to work or it lets users access the page but doesn't let them delete the requested pages. Only permissions like (deleterevision) and (commentadmin) which are both completely unrelated to (delete) are capable of working without the (delete) permission.
I would test this out for myself, but I only have access to (bigdelete) on one site, and I also have (delete) on that site. However I don't have any permission that allows me to modify the permissions of usergroups. So I'm afraid I can't answer this question myself. I'm sorry if this topic doesn't seem like it belongs here, but I was really hoping someone here could answer the question, since I wanted to add the research to a page that I'm writing about various usergroup permissions, and what parent permissions are needed for those certain permissions to work. ― C.Syde (talk | contribs) 05:34, 9 March 2020 (UTC)
- You need both delete & bigdelete to delete big pages. If you don't have delete, bigdelete does nothing. (If you want to look in code, PermissionManager::checkQuickPermissions which looks at delete rights, happens before PermissionsManager::checkActionPermissions which checks bigdelete. If you don't have delete, the code will never get to the part that checks bigdelete) Bawolff (talk) 05:52, 9 March 2020 (UTC)
- @Bawolff - So how do I do the following? Since I'm not very clear on how to perform this correctly:
(If you want to look in code, PermissionManager::checkQuickPermissions which looks at delete rights, happens before PermissionsManager::checkActionPermissions which checks bigdelete. If you don't have delete, the code will never get to the part that checks bigdelete)
- Also once I know how to do this correctly, will this help me to answer my own questions regarding certain other permissions? Because I have a feeling I'm going to be needing answers to similar questions regarding certain other permissions in the future. ― C.Syde (talk | contribs) 10:04, 9 March 2020 (UTC)
- There may be a bit of a learning curve if you're new to PHP, for doing this. Anyways, the permission checks happen at https://github.com/wikimedia/mediawiki/blob/master/includes/Permissions/PermissionManager.php#L355-L409 . Near the bottom of that function there is a list of what specific checks to run, which are run in order.
- If you look in checkQuickPermissions, near the bottom is https://github.com/wikimedia/mediawiki/blob/master/includes/Permissions/PermissionManager.php#L801
$this->userHasRight( $user, $action )in the delete case, this is checking if the user is in a group that has the delete right. - Later on, we come to checkActionPermissions https://github.com/wikimedia/mediawiki/blob/master/includes/Permissions/PermissionManager.php#L979-L993 This will check when checking if the user can delete, if the page being deleted is big, and if so start the whole process over, but for the
bigdeleteright instead ofdeleteright. - Thus, if the user can't delete, you get an error that happens before checking the bigdelete right [It may still check bigdelete so that the error message might be adjusted to mention you need both] Bawolff (talk) 19:47, 10 March 2020 (UTC)
- @Bawolff There's a few other permissions that I've been wanting to know if they can work on their own, or if they require another permission to work. On the left hand side are the permissions that I've been wanting to know if they can work on their own, and on the right are the permissions that I suspect are required in order for them to work.
- (collectionsaveascommunitypage) = (edit)
- (collectionsaveasuserpage) = (edit)
- (editrestrictedfields) = (edit)
- (multipageedit) = (edit)
- (rateimage) = (edit)
- (suppressrevision) = (deleterevision) and possibly (deletelogentry) ― C.Syde (talk | contribs) 03:09, 11 March 2020 (UTC)
PHP Warning: Cannot modify header information - headers already sent by (output started at (wiki folder)\w\includes\export\DumpOutput.php:83) in (wiki folder)\w\includes\WebResponse.php on line 154
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello. I am trying to export a xml file using dumpgenerator.py, but I get an 500 server error.
So I tried to manually export the main page of my wiki, but I got the same error too.
I debugged my wiki and found the error message, which is written below. What should I do to fix this error?
PHP Warning: Cannot modify header information - headers already sent by (output started at (wiki folder)\w\includes\export\DumpOutput.php:83) in (wiki folder)\w\includes\WebResponse.php on line 154 79brue (talk) 05:52, 9 March 2020 (UTC)
- That's usually not the main error, but an error message caused by other errors. Check to see if you have any other errors being reported. Bawolff (talk) 05:53, 9 March 2020 (UTC)
- The errors I can find right now is only this (but this error is shown twice, I don't know why). I'm checking if there is a hidden error message. 79brue (talk) 06:01, 9 March 2020 (UTC)
- Also, what happens when you get this error? Is it only this error? Or do you get the dump too? something else? Bawolff (talk) 08:07, 9 March 2020 (UTC)
- I don't get the dump, I only get this error. So I upgraded the debug level, and this issue was fixed! 79brue (talk) 10:12, 9 March 2020 (UTC)
Minerva Neue - unable to add new page from search
Hi!
I've recently immersed myself in your wonderful platform, and have installed Minerva Neue skin - looking great. I am however missing the ability to create non existing pages when searching for them - as I am used to with the standard skin (Vector, is it?)
Thanks
Tommy Rønningsveen 2001:4649:4DF:0:8C72:3BD8:2C3F:C6A3 (talk) 15:07, 9 March 2020 (UTC)
- Minerva Neue is heavily optimized for mobile use, it does not show the traditional redlink on its search result page. You can try creating pages either by using the 'desktop view', by directly editing the url or probably by making use of Extension:CreatePageUw or Extension:InputBox. – Ammarpad (talk) 21:46, 9 March 2020 (UTC)
- The relevant code is there, just hidden with css. :(
- As a workaround just add a simple custom css
.searchresults .mw-search-createlink{display: block;}- for example this can be added in the theme folder in a file skins/MinervaNeue/custom.css and loaded from LocalSettings.php
#see hook BeforePageDisplayfunction CustomCss(&$out, &$skin ) {if($skin->skinname == "minerva"){$out->addStyle("MinervaNeue/custom.css");}}$wgHooks['BeforePageDisplay'][] = 'CustomCss';AndresBott (talk) 14:37, 2 April 2021 (UTC)
MWException throws when using Mathoid's CLI interface
My environment:
| Mediawiki | 1.34 |
| PHP | 7.3.14 |
.
When I visit a page that with <math>, the page displays
MWException from line 134 of extensions/Math/src/MathMathMLCli.php: Failed to execute Mathoid cli '/usr/local/mathoid/cli.js', reason: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8): No such file or directory
#
# Fatal error in heap setup
# Allocation failed - process out of memory
#
includes/shell/limit.sh: line 101: 30636 Illegal instruction /usr/bin/timeout $MW_WALL_CLOCK_LIMIT /bin/bash -c "$1" 3>&-
#0 extensions/Math/src/MathMathMLCli.php(34): MathMathMLCli::evaluateWithCli(array, integer)
#1 extensions/Math/src/MathHooks.php(354): MathMathMLCli::batchEvaluate(array)
#2 includes/Hooks.php(174): MathHooks::onParserAfterTidy(Parser, string)
#3 includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#4 includes/parser/Parser.php(1617): Hooks::run(string, array)
#5 includes/parser/Parser.php(596): Parser->internalParseHalfParsed(string, boolean, boolean)
#6 includes/content/WikitextContent.php(368): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#7 includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#8 includes/EditPage.php(4120): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
#9 includes/EditPage.php(4025): EditPage->doPreviewParse(WikitextContent)
#10 includes/EditPage.php(2811): EditPage->getPreviewText()
#11 includes/EditPage.php(703): EditPage->showEditForm()
#12 includes/actions/EditAction.php(55): EditPage->edit()
#13 includes/actions/SubmitAction.php(38): EditAction->show()
#14 includes/MediaWiki.php(511): SubmitAction->show()
#15 includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#16 includes/MediaWiki.php(900): MediaWiki->performRequest()
#17 includes/MediaWiki.php(527): MediaWiki->main()
#18 index.php(44): MediaWiki->run()
#19 {main}
How do I fix it? 星耀晨曦 (talk) 15:17, 9 March 2020 (UTC)
- That does not sound like a MediaWiki issue... Have you tried an internet search engine? :) For example:
- the locale thing can probably be ignored. Or at least i dont think its main issue.
- It sounds like the main issue is memory limit (and whatever the illegal instruction thing is. Maybe somehow triggered by men limits? Not sure). Try increasing $wgMaxShellMemory Bawolff (talk) 19:17, 9 March 2020 (UTC)
- Running Mathoid via CLI, is 1G of RAM enough? 星耀晨曦 (talk) 11:55, 10 March 2020 (UTC)
- 1G of ram is probably enough, but you probably need to change the value of $wgMaxShellMemory. ☠MarkAHershberger☢(talk)☣ 15:35, 11 March 2020 (UTC)
Confirmation emails not being received?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
$wgEnableEmail, $wgEnableUserEmail, $wgEmailAuthentication, $wgEmailConfirmToEdit are all true.
| MediaWiki | 1.34.0 |
| PHP | 7.2.26 (litespeed) |
| MySQL | 5.6.44-cll-lve |
A new user has written me off-wiki to say that he never received a confirmation email upon signup, and that he tried the email options in Preferences but still couldn't get a confirmation email. I have confirmed that the hosting platform (Godaddy) isn't blocking mail; I get mine.
1) Is there any way I can see into his account, e.g. to confirm that the email he entered is OK?
2) Can I send him an email via the wiki as a test? On his own page (which actually doesn't exist yet) I don't see an "email this user" link, presumably because he hasn't confirmed his email, which is the problem in the first place.
3) Can I somehow bypass the confirmation step and simply mark his email verified? I didn't see how to do this, and I'd hate to do without doing #1 to look at the email. OTOH I know the guy personally and he's trustworthy.
4) Any other advice on debugging/workarounds?
Any help appreciated. Larrydberg (talk) 02:38, 10 March 2020 (UTC)
- The email is stored on the user table and the flag/date of email confirmation. You can update that record.
- Once enabled you may send him an email through Special:Emailuser Ciencia Al Poder (talk) 10:23, 10 March 2020 (UTC)
- This worked. Still don't know why he didn't get it through usual channels, but sufficient unto the day is the evil thereof. Larrydberg (talk) 13:11, 10 March 2020 (UTC)
How can I transfer database (contents) from previous DB to MediaWiki?
I installed MediaWiki 1.23.9 in my web hosting (due to php version).
I have 1.5K contents in previous DB (not wiki engine)
Can somebody let me know how to transfer these contents?
(I didn't totally understand the database structure of MediaWiki)
Thank you in advance. 220.121.235.23 (talk) 06:34, 10 March 2020 (UTC)
- so you have a bunch of documents in a non-mediawiki db?
- Use a script to transfer with the api (check out pywikibot) or edit.php command line program. Bawolff (talk) 09:57, 10 March 2020 (UTC)
importImages.php Mime Type trouble
Using Mediawiki 1.32.0, PHP 7.2.14, MySQL 5.5.62, running on a Debian 8 (jessie) server.
I'm trying to import .exe files through the importImages.php command-line script.
Import is successful, no errors. When I open the file page, everything looks fine and I can download the file. So far, so good.
But I noticed "MIME type: unknown/unknown" and I think that's the reason that I get the error "The new file extension does not match its type." when I try to Move the file page (i.e. change the name or the namespace). Could I have stumbled upon a bug or a as-yet missing feature in importImages.php? I tried a bunch of things, e.g. altering $wgFileExtensions and $wgFileBlacklist in LocalSettings to make sure .exe was accepted. Didn't expect this to be taken into account by importImages.php, but just in case. Indeed, this didn't matter. Also had a look at lines 302-306 of importImages.php to see if there's something there preventing the identification of what I think should be application/octet-stream as the Mime Type. The code looks good to me though.
So I'm stuck. Anyone? 80.127.226.90 (talk) 13:59, 10 March 2020 (UTC)
- On an unrelated note, 1.32.0 is an insecure unsupported version with security vulnerabilities. Please upgrade for your own safety. Malyacko (talk) 14:18, 10 March 2020 (UTC)
I think its because $wgMimeTypeFile & $wgMimeInfoFile is currently set wrong...(Nevermind, there is weird back-compat code that made me confused) Bawolff (talk) 19:16, 10 March 2020 (UTC)- I am able to reproduce this issue and can confirm its happening on latest mediawiki.
- I filed this as https://phabricator.wikimedia.org/T247348 Bawolff (talk) 19:35, 10 March 2020 (UTC)
- That's great, thank you! And thank you also to Malyacko - good point, I'll upgrade to 1.34 later today. Llanddewi (talk) 08:18, 11 March 2020 (UTC)
- I've been thinking about a temporary workaround for my problem. One option, I think, might be to manually alter the database, i.e., the img_major_mime and img_minor_mime values of the file in the image table. Would that work? I wanted to try this on my local installation, but the values are encrypted. Any ideas/help? Llanddewi (talk) 16:33, 14 March 2020 (UTC)
- Values are not encrypted. They are listed as VARBINARY, which some mysql clients (I think phpmyadmin) refuse to display, but they are just utf-8.
- Honestly, I have no idea. Their may be situations where the mime type is re-extracted and re-added to the db, so your change might not be permenent. I don't know if it would fix your problem, but it probably wouldn't make it any worse. As far as DB manipulations go (Which I usually almost always recommend against) it is probably pretty low risk Bawolff (talk) 23:16, 14 March 2020 (UTC)
- Alrighty, thanks for the tip! I managed to change the img_major_mime to application and img_minor_mime to octet-stream directly through the MySQL console. That solved my problem. :) Thanks again! Llanddewi (talk) 20:32, 15 March 2020 (UTC)
- FWIW, i tracked down the problem. In includes/libs/MimeAnalyzer.php, for some reason it was listing application/octet-stream as being an alias of unknown/unknown, which was causing all sorts of confusion. I submitted a patch to fix it [1] Bawolff (talk) 03:20, 16 March 2020 (UTC)
- "The new file extension does not match its type." issue when trying to move a page is
- https://phabricator.wikimedia.org/T31408 , I think ATDT (talk) 19:12, 22 May 2020 (UTC)
Migrating from 1.9.3 to 1.34 - mw tries to write to '/en.l10n.php' in includes\cache\localisation\LCStoreStaticArray.php:124
I am migrating from 1.9 to the latest greatest. After struggling with same PHP errors and db schema issues I have now successfully run update.php. Most pages show up fine now, however some stay blank (more precisely: they show up nicely but ar completely emptied out when the last GET was done to http://class.innovaphone.com:81/load.php?lang=en&modules=jquery%2Csite%7Cjquery.client%2CgetAttrs%2ChighlightText%2Csuggestions%7Cmediawiki.String%2CTitle%2Capi%2Cbase%2Ccldr%2CjqueryMsg%2Clanguage%2Cnotify%2CsearchSuggest%2Cutil%7Cmediawiki.action.view.rightClickEdit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.page.watch.ajax%7Cskins.monobook.mobile%7Cuser.defaults&skin=monobook&version=njx8h) [ sorry, this wiki is not reachable externally ]
To debug, I added ' require_once "$IP/includes/DevelopmentSettings.php";' to my LocalSettings.
Now I get a warning about file_put_contents() writing to '/en.l10n.php' in includes\cache\localisation\LCStoreStaticArray.php:124
I can see that the file name to write to ($this->fname) is constructed in LCStoreStaticArray::startWrite as "$this->fname = $this->directory . '/' . $code . '.l10n.php';". $this->directory however is false.
It seems that $this->directory is related to $wgLocalisationCacheConf-> storeDirectory (an assumption, I might be wrong). The docs say "If the store class puts its data in files, this is the directory it will use. If this is false, $wgCacheDirectory will be used." $wgCacheDirectory in turn has a default value of 'false'.
Am I right and LCStoreStaticArray.php should do nothing if its cache directory is not set?
And of course if somebody can explain my page-is-rendered-but-cleared-ultimately miracle I'd apprecuiate it too :-)
Regards, Christoph 46.232.228.6 (talk) 15:20, 10 March 2020 (UTC)
- you're correct. If false, directory should not be used if other settings are default.
- However, if $wgLocalisationCacheConf is set to used a store other then the default (e.g. if set to "array") of "detect", it may use the directory, even if set to false (LocalisationCache::getStoreFromConf).
- For the blanking issue, check to see if the page MediaWiki:Common.js (or MediaWiki:Vector.js / whatever skin you are using) has
document.writeanywhere in it. Bawolff (talk) 19:10, 10 March 2020 (UTC)
No Hamburger Menu in Mobile View
Mediawiki 1.34
PHP 7.3.11
MySQL 5.6.44
Installed the MobileFrontend extension to the extension folder, put the following code at the bottom of the localsettings:
# extension mobilefrontend - mobile Seite
wfLoadExtension( 'MobileFrontend' );
wfLoadSkin( 'Vector' );
$wgMFDefaultSkinClass = 'SkinVector'; // use Vector skin
Mobile version appears in principal, but there is no hamburger menu. All sidebar topics appear at the bottom of the main page.
Any idea, what happened and how to fix it? 109.41.195.182 (talk) 15:32, 10 March 2020 (UTC)
- Seems like Vector skin is meant to be like that (not very intuitive). Changed to Timeless. 109.41.195.182 (talk) 16:25, 10 March 2020 (UTC)
- Vector on mobile is also affected by
$wgVectorResponsive = true; - If you want MobileFrontend to look like it does on Wikipedia, you need to use the MinervaNeue skin. Timeless is also a popular choice for a mobile skin. Bawolff (talk) 18:54, 10 March 2020 (UTC)
- Thank you for the hint. I shall try that, too. But Timeless is a nice alternative really. 109.41.192.203 (talk) 19:36, 10 March 2020 (UTC)
Migrating from 1.9.3 to 1.34 - Geshi no longer available
I was using the Geshi extension o 1.9.3 with content like
<code xml>
...
<customcerts
dir="certs"
/>
...
</code>
Now the Geshi extension is gone and I could use Extension:SyntaxHighlight. However, I have hundreds of pages using the <code ''lang''> tag instead of <syntaxhighlight lang="''lang''">. Is there a solution to that apart from manually editing all of them?
Thanks and Regards, Christoph 46.232.228.6 (talk) 15:57, 10 March 2020 (UTC)
- You can try making use of Extension:Replace Text. AhmadF.Cheema (talk) 18:32, 10 March 2020 (UTC)
- Thanks for pointing me to Replace Text, @AhmadF.Cheema!
- However, I do not get the extension to work on a Windows system:
- syntaxhighlight uses Pygmentize directly (such as 'C:\...\SyntaxHighlight_GeSHi\includes/../pygments/pygmentize" "-l" "xml" "-f" "html" "-O" "cssclass"').
- pygmentize is a script starting with "#!/usr/bin/env python3" which is going to work on *nix'ish systems fine but won't work on Windows. So I get an expection "PHP Notice: Failed to invoke Pygments" when the extensions tries to render a page.
- I installed python 3.8 on the box which seems to run fine (at least, I can get a python prompt with now errors).
- So as far as I am concerned, this won't ever work on Windows, does it?
- Some googling yields a page saying you need to install ez_install.py and run it. I did so (downloading it from pypi.org) and it bails out saying "SSL required". So I edited it and changed the download URL from http to https.
- Now it bails out saying "in self.chown(tarinfo, dirpath) TypeError: chown() missing 1 required positional argument: 'numeric_owner'".
- It is frustrating :-|
- Am I on the right track with getting ez_install to run?
- Or is there a way to tell mediawiki to just call upon python.exe directly? 46.232.228.6 (talk) 15:29, 11 March 2020 (UTC)
- This SO answer seems to have a hint. ☠MarkAHershberger☢(talk)☣ 15:33, 11 March 2020 (UTC)
- @MarkAHershberger you made my day - almost!
- here it is in a nutshell:
- [ install python 3.8 ]
- python -m ensurepip --default-pip
- python -m pip install --upgrade pip setuptools wheel
- easy_install Pygments
- now there is a Windows pygmentize.exe in .../python/Scripts
- set "$wgPygmentizePath = "C:/.../python/Scripts/pygmentize.exe"; in LocalSettings.php
- I can run pygmentize from the shell.
- But: although $wgPygmentizePath is set correctly, I keep getting
- PHP Notice: fwrite(): write of 1597 bytes failed with errno=22 Invalid argument in C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\shell\Command.php on line 475
- Apparently, proc_open in Command.php cannot start the executable.
- Has anyone got SyntaxHighlight_GeSHi to work on a Windows/IIS system? (IIS 8.5, latest PHP 7) ? 46.232.228.6 (talk) 20:08, 11 March 2020 (UTC)
- You seem to have stumbled upon a windows-only bug. Can you get a stacktrace of the error? Try the following:
$wgShowExceptionDetailsEnable more details (like a stack trace) to be shown on the "Fatal error" page.$wgShowDebugAdds the "log messages" part of wgDebugToolbar as a raw list to the page. ☠MarkAHershberger☢(talk)☣ 22:03, 11 March 2020 (UTC)
- @MarkAHershberger
- Here is the trace:
- PHP Notice: fwrite(): write of 53 bytes failed with errno=22 Invalid argument in C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\shell\Command.php on line 474
- PHP Stack trace:
- PHP 17. PPFrame_Hash->expand() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\parser\Parser.php:3330
- PHP 18. Parser->extensionSubstitution() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\parser\PPFrame_Hash.php:328
- PHP 19. SyntaxHighlight::parserHook() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\parser\Parser.php:4293
- PHP 20. SyntaxHighlight::highlight() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:117
- PHP 21. WANObjectCache->getWithSetCallback() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:348
- PHP 22. WANObjectCache->fetchOrRegenerate() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\libs\objectcache\wancache\WANObjectCache.php:1278
- PHP 23. SyntaxHighlight::{closure:C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:306-348}() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\libs\objectcache\wancache\WANObjectCache.php:1424
- PHP 24. MediaWiki\Shell\Command->execute() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:320
- PHP 25. fwrite() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\shell\Command.php:474
- PHP Notice: Failed to invoke Pygments: Der Befehl "C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\python38\Scripts\pygmentize.exe" "-l" "xml" "-f" "html" "-O" "cssclass" ist entweder falsch geschrieben oder
- konnte nicht gefunden werden.
- [Called from SyntaxHighlight::highlight in C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php at line 353] in C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\debug\MWDebug.php on line 333
- PHP 19. SyntaxHighlight::parserHook() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\parser\Parser.php:4293
- PHP 20. SyntaxHighlight::highlight() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:117
- PHP 21. wfWarn() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php:353
- PHP 22. MWDebug::warning() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\GlobalFunctions.php:1066
- PHP 23. MWDebug::sendMessage() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\debug\MWDebug.php:188
- PHP 24. trigger_error() C:\inetpub\wwwroot\wiki\mediawiki-1.34.0\includes\debug\MWDebug.php:334
- [ I needed to shorten the trace cause mediwaiki was complaining about "Flow spam filter: large amount of consonant/vowel clusters" ]
- I saw a note in PHP's doc for popen:
- Example #2 proc_open() quirk on Windows
- While one may expect the following program to search the file filename.txt for the text search and to print the results, it behaves rather differently.The above example will output:
<?php $descriptorspec = [STDIN, STDOUT, STDOUT]; $cmd = '"findstr" "search" "filename.txt"'; $proc = proc_open($cmd, $descriptorspec, $pipes); proc_close($proc); ?>
'findstr" "search" "filename.txt' is not recognized as an internal or external command,operable program or batch file.- To work around that behavior, it is usually sufficient to enclose the
cmdin additional quotes: $cmd = '""findstr" "search" "filename.txt""';- But I don't think its true. The symptom is exactly what I saw, however the solution doesn't work. 46.232.228.6 (talk) 22:21, 11 March 2020 (UTC)
- I finally got tired of this and sort of "fixed" it by changing the code in mediawiki-1.34.0\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php from to:
$result = Shell::command( self::getPygmentizePath(), '-l', $lexer, '-f', 'html', '-O', implode( ',', $optionPairs ) ) ->input( $code ) ->restrict( Shell::RESTRICT_DEFAULT | Shell::NO_NETWORK ) ->execute(); if ( $result->getExitCode() != 0 ) { $ttl = WANObjectCache::TTL_UNCACHEABLE; $error = $result->getStderr(); return null; } return $result->getStdout();
This is of course ugly to say the least but it works somehow and should be fine until a fix is there.$cmd = '"' . self::getPygmentizePath() . '" ' . '-l ' . '"' . $lexer . '" ' . '-f ' . 'html ' . '-O ' . implode( ',', $optionPairs ); $filebase = @tempnam(wfTempDir(), "geshi"); $ioi = "$filebase-i.txt"; file_put_contents($ioi, $code); $pyg = shell_exec("$cmd < \"$ioi\""); if (false) { // debug, keep in/out put $ioo = "$filebase-o.txt"; file_put_contents($ioo, $pyg); } else { unlink($ioi); } return $pyg;
- Let me add that I felt the Shell:: code to be overly complicated. However, I was perhaps just not fair cause it refused to work for me for so long ;-) 46.232.228.6 (talk) 22:06, 11 March 2020 (UTC)
- Many thanks! that worked for me. Greetings 200.40.50.115 (talk) 15:46, 28 October 2020 (UTC)
- This fix also worked for me on Windows. Thank you!
- How can we get this issue logged and fixed in the production code? Check to the King (talk) 12:45, 25 June 2021 (UTC)
- I was just working on something similar, but now just made a copy&paste of your code and it works fine for me too, thanks.
- PS: I too was overwhelmed by the complexity of Shell::code Eddi27L (talk) 17:30, 25 June 2021 (UTC)
It looks like this might be T193613.Four months later, I don't know why I wrote this. It must be a typo. ☠MarkAHershberger☢(talk)☣ 23:07, 11 March 2020 (UTC)- I have the same problem too... So what you are saying is that this error should disappear with mw 1.35? Berot3 (talk) 06:20, 9 July 2020 (UTC)
- I'm not sure why I thought a stable interface policy would help. That must be a typo. ☠MarkAHershberger☢(talk)☣ 12:46, 9 July 2020 (UTC)
- I have exactly the same problem. 79.208.145.217 (talk) 23:43, 18 March 2020 (UTC)
- So this bug is still present in version 1.35. I had to include the hack here (https://www.mediawiki.org/w/index.php?title=Project%3ASupport%20desk/Flow/2020/03#c-46.232.228.6-2020-03-11T22%3A06%3A00.000Z-46.232.228.6-2020-03-10T15%3A57%3A00.000Z) to get the extension to work in version 1.35. JGTompkins (talk) 14:28, 23 December 2020 (UTC)
- This is still broken in 1.37.1; and in that version the relevant code has been rewritten so the "patch" above no longer works. I could find no bypass, so ended up using Highlightjs_Integration (i.e. wfLoadExtension( 'Highlightjs_Integration' ); )
- This uses the identical syntax (i.e. syntaxhighlight).
- To enable this functionality, Download the extension and add these lines to LocalSettings.php (ensure that you comment out #wfLoadExtension( 'SyntaxHighlight_GeSHi' ); and #$wgPygmentizePath = "j:/Python3/Scripts/pygmentize.exe";):
wfLoadExtension( 'Highlightjs_Integration' );- (I got the spam warning so had to divide this in 2 parts)
- As of Jan 2022, the default version is 9.12. To upgrade to version 10:
- Go to the download page (https://highlightjs.org/download/) and build a "custom" package with the additional languages you want.
- Remove or rename the
extensions/Highlightjs_Integration/highlightfolder. - Uncompress the custom package in
extensions/Highlightjs_Integration. You should have a fresh newextensions/Highlightjs_Integration/highlightfolder. - Modify
extension.jsonwith the following:- Change "
highlight.pack.js" to "highlight.min.js", and - Change "
vs2015.css" to "vs2015.min.css". Mwgbell (talk) 16:24, 25 January 2022 (UTC)
- Change "
- any new with 1.38.1? Nicolas senechal (talk) 15:07, 29 June 2022 (UTC)
Error in LocalSettings.php and Database update Script
I'm trying to update our stone-old mediawiki 1.24 to 1.34.
At the moment I'm hangig at two things: I use the giant family case in the LocalSettings.php, with only one case active and the default set. When trying to load the site I get "Parse error: syntax error, unexpected end of file in /var/www/mediawiki-1.34.0/LocalSettings.xxx.php on line 198" and I have no clue what it means. I did basically take the settings files from the old version and updates it. For some reason I had to move several options like $wgDebugDumpSql and wfLoadExtension( 'ParserFunctions' ); to the main LocalSettings.php file. At least I don't know how else I should fix the errors where it doesn't say "unexpected end of file" but "unexpected '$wgDebugDumpSql'. But I don't see anything missing to end the file.
When trying to run the update.php for database update from the bash I only get "PHP Notice: Undefined index: SERVER_NAME in /var/www/mediawiki-1.34.0/LocalSettings.php on line 6". I know that this can't work from CLI and to fix it it was already said to use php_uname, but I have no clue how and where to use that
Debian 10.3
PHP 7.3.14
MariaDB 10.3.22 134.130.104.116 (talk) 15:59, 10 March 2020 (UTC)
- usually the first error means you forgot a ; or ' somewhere (Probably not on the line number being reported, but on an earlier line). Try putting the file through a syntax highlighter to see if that helps you find the error.
- php_uname is not a suitable replacement for SERVER_NAME when running on the commandline. If you specify --server servername as an option to update.php, it will define $_SERVER['SERVER_NAME'] appropriately. Bawolff (talk) 18:45, 10 March 2020 (UTC)
- thanks, I'll try that 134.130.104.116 (talk) 11:03, 11 March 2020 (UTC)
- ok, it was a missing ; I should have been able to think about that myself. Anyway...
- Now the only problem seems to be the database update. I used your method but I only get "Invalid address" back. I tried with and without https: infront, I tried with both the website and the server name, nothing. So I'm a bit confused what else it wants 134.130.104.116 (talk) 11:59, 11 March 2020 (UTC)
- --server should be exactly the sane format as SERVER_NAME (protocol and host but no path). So for https://example.com/mywiki something like
- php update.php --server "https://example.com"
- If all else fails, you can try using the web updater by navigating to mw-config subdirectory. Bawolff (talk) 15:29, 11 March 2020 (UTC)
- I'll try that tomorrow. The Server name in the config is "//wiki x y de" (or is that an old scheme?) and I tried both "wiki x y de" and "https // wiki x y de" both failed. I tried even with IP adress.
- I'll try to get to the web updater, yesterday that failed, maybe because of the still existing errors with the LocalSettings
- So the web updater would be accessable via "wiki x y de/mw-config/<"nowiki>" instead of the normal "<nowiki>wiki x y de/index php"? 2A02:908:1018:7D80:445D:CBFF:2F87:1E8C (talk) 22:07, 11 March 2020 (UTC)
- PS: I had to rip the URLs apart to post it, so every space between quotes stands for a dot 2A02:908:1018:7D80:445D:CBFF:2F87:1E8C (talk) 22:09, 11 March 2020 (UTC)
- so. I tried it now. I used the server name exactly as is in the LocalSettings file (of course without the leading //, don't know with what I confused that).
- It's still invalid address. Furthermore I can't manage to get to the web interface of the database update. In the Link you can see a picture of the errors (I added
error_reporting( -1 );ini_set( 'display_errors', 1 );- to the LocalSettings.php to get to them)
- http //img4web com/i/DVERS png 134.130.104.116 (talk) 11:58, 12 March 2020 (UTC)
- Edit: I achieved something but not much: I startet the update .php with -S wiki x y de:8080 and then bound that port to my local PC's port 8080 with ssh -L. Now I can go into a browser on localhost:8080. Still I can't access anything but I get a page with a purple top bar, so it's something. 134.130.104.116 (talk) 12:34, 12 March 2020 (UTC)
- Edit2: I did that again but this time with "-t ../" so teh document root wouldn't be the maintenance folder. I managend to get to some page und /mw-config/ where I could set my language and the wiki language (the latter I suppose is set to german, at least the content is german) but upon continuing I only see "This wiki is not available. Check configuration." 134.130.104.116 (talk) 12:46, 12 March 2020 (UTC)
- ok, I'm getting closer: I started the index.php in mw-config with "php -f index.php -S 127.0.0.1:8080 -t ../". It's giving back the error "127.0.0.1:43802 [404]: /mw-config/?page=ExistingWiki". But I can't find the string in any file in mw-config.
- So it seems it's somehow searching for the existing wiki. Now how do I tell it what where that is located? 134.130.104.116 (talk) 13:54, 13 March 2020 (UTC)
- I now solved it by replacing the LocalSettings by the file for the specific site. It still didn't want to update with the error
Database is read-only: Down for maintenance, access will be restored shortlybut that can be fixed by adding$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'This wiki is currently being upgraded to a newer software version.'2A02:908:1015:3A80:9D45:4F52:F750:C423 (talk) 15:02, 27 March 2020 (UTC)
Wikipedia history pages
I need 2011 dumps of wikipedia from where I can download those pages. Or how can I get text from recent dumps which is older than 2011 thanks 217.224.116.153 (talk) 16:49, 10 March 2020 (UTC)
- See https://dumps.wikimedia.org/. Malyacko (talk) 18:32, 10 March 2020 (UTC)
- Thanks @Malyacko for your answer but I need the 2011 version XML files which have all the article text. I don't know how to extract that specific Wikipedia dumps? can I get it from the recent dumps? Thanks 2001:638:502:778:B861:339A:6FC8:1429 (talk) 18:59, 12 March 2020 (UTC)
Can't get infoboxes to work on my wiki
I was following the instructions from https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial and when I try to import the infobox template from Wikipedia, I get this error.
http://thapeastenator.com/SimsWiki/InternalError.png ThaPeastenator (talk) 04:04, 11 March 2020 (UTC)
- See Extension talk:TemplateStyles/2018#h-How_to_do-2018-09-16T19:44:00.000Z Malyacko (talk) 10:06, 11 March 2020 (UTC)
<math> not working in China
H!
Any idea why MediaWiki and for instance <math> doesn't work in china anymore?
Thanks ! Marc wH (talk) 14:24, 11 March 2020 (UTC)
- Hi, can you please elaborate, provide links, explain what "doesn't work" means exactly? Thanks! Malyacko (talk) 14:52, 11 March 2020 (UTC)
Login post or get URL.
Hello, I want to enter my mediawiki through url which contains username and password and used two methods.
START CODE
<?php
/*
login.php
MediaWiki API Demos
Demo of `Login` module: Sending post request to login
MIT license
*/
$endPoint = "http://192.168.73.129/mediawiki-1.34.0/api.php";
$login_Token = getLoginToken(); // Step 1
loginRequest( $login_Token ); // Step 2
// Step 1: GET request to fetch login token
function getLoginToken() {
global $endPoint;
$params1 = [
"action" => "query",
"meta" => "tokens",
"type" => "login",
"format" => "json"
];
$url = $endPoint . "?" . http_build_query( $params1 );
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_COOKIEJAR, "/tmp/cookie.txt" );
curl_setopt( $ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt" );
$output = curl_exec( $ch );
curl_close( $ch );
$result = json_decode( $output, true );
return $result["query"]["tokens"]["logintoken"];
}
// Step 2: POST request to log in. Use of main account for login is not
// supported. Obtain credentials via Special:BotPasswords
// (https://www.mediawiki.org/wiki/Special:BotPasswords) for lgname & lgpassword
function loginRequest( $logintoken ) {
global $endPoint;
$username = "Alexander@alexander";
$password = "lgb0plp3ri0ont3n73at5kna8rkbd2e9";
$post_data = "?action=login&lgname=$username&lgpassword=$password&logintoken=$logintoken&format=json";
echo ($urlfinal=$endPoint.$post_data);
echo "<br/>";
$post_test="http://192.168.73.129/mediawiki-1.34.0/index.php?title=Special:UserLogin&action=submitlogin&wpName=alexander&wpPassword=a12345ba12345b&returnto=index.php";
echo ($urlfinal=$post_test);
}
END CODE
the urls i get are
method I: http://192.168.73.129/mediawiki-1.34.0/api.php?action=login&lgname=Alexander@alexander&lgpassword=lgb0plp3ri0ont3n73at5kna8rkbd2e9&logintoken=4b751c26da1bc5c538044c4de299442c5e6959d8+\&format=json
error I:
{"error":{"code":"mustpostparams","info":"The following parameter was found in the query string, but must be in the POST body: lgpassword.","*":"See http://192.168.73.129/mediawiki-1.34.0/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."}}
method II: http://192.168.73.129/mediawiki-1.34.0/index.php?title=Special:UserLogin&action=submitlogin&wpName=alexander&wpPassword=a12345b&returnto=index.php
Error II: NO login
thanks
191.103.84.98 (talk) 21:41, 11 March 2020 (UTC)
- You can't login through GET. You must use POST, as the error message says. Ciencia Al Poder (talk) 10:33, 12 March 2020 (UTC)
Fresh install error
While performing the environmental check after a fresh install. I am getting a backtrace.
PHP 7.4.3 is installed.
Found ImageMagick: /usr/local/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/local/bin/git.
Using server name "http://192.168.1.91".
Using server URL "http://192.168.1.91".
[c417810b1c3de017dacc2b2d] /mw-config/index.php Error from line 96 of /usr/local/www/mediawiki/vendor/guzzlehttp/psr7/src/Response.php: Call to undefined function GuzzleHttp\Psr7\filter_var()
Backtrace:
#0 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php(114): GuzzleHttp\Psr7\Response->__construct(string, array, MWCallbackStream, string, string)
#1 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php(49): GuzzleHttp\Handler\StreamHandler->createResponse(GuzzleHttp\Psr7\Request, array, GuzzleHttp\Psr7\Stream, NULL)
#2 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(37): GuzzleHttp\Handler\StreamHandler->__invoke(GuzzleHttp\Psr7\Request, array)
#3 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(GuzzleHttp\Psr7\Request, array)
#4 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(54): GuzzleHttp\Middleware::GuzzleHttp\{closure}(GuzzleHttp\Psr7\Request, array)
#5 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Middleware.php(58): GuzzleHttp\RedirectMiddleware->__invoke(GuzzleHttp\Psr7\Request, array)
#6 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(GuzzleHttp\Psr7\Request, array)
#7 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(GuzzleHttp\Psr7\Request, array)
#8 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Client.php(98): GuzzleHttp\Client->transfer(GuzzleHttp\Psr7\Request, array)
#9 /usr/local/www/mediawiki/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\Client->sendAsync(GuzzleHttp\Psr7\Request, array)
#10 /usr/local/www/mediawiki/includes/http/GuzzleHttpRequest.php(174): GuzzleHttp\Client->send(GuzzleHttp\Psr7\Request)
#11 /usr/local/www/mediawiki/includes/http/HttpRequestFactory.php(124): GuzzleHttpRequest->execute()
#12 /usr/local/www/mediawiki/includes/http/HttpRequestFactory.php(146): MediaWiki\Http\HttpRequestFactory->request(string, string, array, string)
#13 /usr/local/www/mediawiki/includes/installer/Installer.php(1215): MediaWiki\Http\HttpRequestFactory->get(string, array, string)
#14 /usr/local/www/mediawiki/includes/installer/Installer.php(1084): Installer->dirIsExecutable(string, string)
#15 /usr/local/www/mediawiki/includes/installer/Installer.php(504): Installer->envCheckUploadsDirectory()
#16 /usr/local/www/mediawiki/includes/installer/WebInstallerWelcome.php(32): Installer->doEnvironmentChecks()
#17 /usr/local/www/mediawiki/includes/installer/WebInstaller.php(270): WebInstallerWelcome->execute()
#18 /usr/local/www/mediawiki/mw-config/index.php(80): WebInstaller->execute(array)
#19 /usr/local/www/mediawiki/mw-config/index.php(38): wfInstallerMain()
#20 {main} 68.60.170.197 (talk) 04:06, 12 March 2020 (UTC)
- what method did you use to install? (Git? Downloaded official tarball, something else?)
- Try running the following command in the mediawiki directory and let me know if that fixes it:
- composer update --no-dev Bawolff (talk) 04:42, 12 March 2020 (UTC)
- I mostly followed the instructions here Manual:Running MediaWiki on FreeBSD I installed php 74 instead of 56
- when I run composer I get multiple errors
- root@wiki:/usr/local/www/mediawiki # composer update --no-dev
- > ComposerHookHandler::onPreUpdate
- Loading composer repositories with package information
- Updating dependencies
- Your requirements could not be resolved to an installable set of packages.
- Problem 1
- - Installation request for nikic/php-parser 3.1.5 -> satisfiable by nikic/php-parser[v3.1.5].
- - nikic/php-parser v3.1.5 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- Problem 2
- - Installation request for psy/psysh 0.9.9 -> satisfiable by psy/psysh[v0.9.9].
- - psy/psysh v0.9.9 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- Problem 3
- - squizlabs/php_codesniffer 3.5.0 requires ext-tokenizer * -> the requestedPHP extension tokenizer is missing from your system.
- - mediawiki/mediawiki-codesniffer v28.0.0 requires squizlabs/php_codesniffer 3.5.0 -> satisfiable by squizlabs/php_codesniffer[3.5.0].
- - Installation request for mediawiki/mediawiki-codesniffer 28.0.0 -> satisfiable by mediawiki/mediawiki-codesniffer[v28.0.0].
- To enable extensions, verify that they are enabled in your .ini files:
- then it goes on to list a boat load of extensions 68.60.170.197 (talk) 21:54, 12 March 2020 (UTC)
- In order to fix the the issue composer encountered I had to install
- php parser
- php tokenizer
- php extensions
- Once composer finished I restarted the VM and was able to continue on with the installer. 68.60.170.197 (talk) 23:48, 12 March 2020 (UTC)
- So the only distro package MediaWiki maintainers are involved with is the debian one. All the others are made by people not associated with us. I suspect the freebsd package was just somewhat broken. I would generally recommend downloading the official tarball instead of relying on an operating system package (Unless you are using debian) Bawolff (talk) 23:31, 13 March 2020 (UTC)
Issue launching MATLAB as interactive job?
[banatali@eu-login-01 ~]$ bsub -XF -R "rusage[mem=64000]" -W 24:00 -Is matlab
MATLAB job.
Job <114249194> is submitted to queue <bigmem.24h>.
<<ssh X11 forwarding job>>
<<Waiting for dispatch ...>>
key_cert_check_authority: invalid certificate
Certificate invalid: name is not a listed principal
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:D+TQ/W+XXX.
Please contact your system administrator.
Add correct host key in /cluster/home/banatali/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /cluster/home/banatali/.ssh/known_hosts:26
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
X11 forwarding is disabled to avoid man-in-the-middle attacks.
Mar 12 10:20:50 2020 435 3 10.1 xagent main: getenv(DISPLAY) failed. 2001:67C:10EC:5782:8000:0:0:1431 (talk) 09:26, 12 March 2020 (UTC)
- To clarify, it now works, but maybe this is something you should be made aware of. 2001:67C:10EC:5782:8000:0:0:1431 (talk) 09:34, 12 March 2020 (UTC)
- Welcome to the support desk for the MediaWiki software. Why do you think that we know anything about "Matlab" here? Malyacko (talk) 10:05, 12 March 2020 (UTC)
why list of active users showing 0 in statistics page ? even i do editings
in my MediaWiki active users displays 0 even after editing the articles daily . I don't know why it is not changing . Does user need any parameters to become the active user? Ramu ummadishetty (talk) 12:33, 12 March 2020 (UTC)
- In your root MediaWiki directory, try running the following command through SSH:If this causes the active users to update correctly, then this is an old bug (T140079). AhmadF.Cheema (talk) 15:21, 12 March 2020 (UTC)
php maintenance/initSiteStats.php --active --update
Embed Google Calendar
I'm trying to embed a Google Calendar on my Wiki. However, I'm having trouble using the link provided on the Widget page. Would someone be able to help? 2600:8802:5300:9B9:1C9B:64BE:D89D:64D4 (talk) 14:52, 12 March 2020 (UTC)
- Which widget page? Please also elaborate what "trouble" means - what have you tried, what happens? Which MediaWiki version? Malyacko (talk) 17:18, 12 March 2020 (UTC)
Extension to quickly add content to a page without going through edit and then save
Is there such a thing? What I would like to have is a function to add tags to a page with the click of a button rather than by going to the edit page and then saving. 147.253.37.121 (talk) 00:57, 13 March 2020 (UTC)
- The Page Forms extension's autoedit function might do what you want. Sam Wilson 01:17, 13 March 2020 (UTC)
- also consider looking into the hotcat gadget Bawolff (talk) 01:56, 13 March 2020 (UTC)
Can I earn money with mediawiki?
I heard that mediawiki is a non-profit organization. But I want to earn money with mediawiki by posting an advertisement or other ways. So is it okay to earn money with mediawiki? 211.44.60.179 (talk) 07:41, 14 March 2020 (UTC)
- NO. As Mediawiki is a non-profit organization. Here advertisement are not allowed! All users are working as volunteer. Regards, ZI Jony (Talk) 08:03, 14 March 2020 (UTC)
- Reopening this topic as the previous answer is either misleading or incorrect. "Mediawiki" is NOT a non-profit organization, but the Wikimedia Foundation is. See Differences between Wikipedia, Wikimedia, MediaWiki, and wiki. Of course you could take the MediaWiki software and find ways to "earn money" with it, as far as its license allows. Malyacko (talk) 09:00, 14 March 2020 (UTC)
- Yes you definitely are allowed to use the MediaWiki software for commerical purposes. One of the fundamental principles of the GPL (which MediaWiki is licensed under) is that you can reuse the software for whatever purpose you want, including commercial purposes. If you're interested in some of the underpinning ideology, see https://www.gnu.org/philosophy/free-sw.en.html
- For reference, there exist several websites that use mediawiki with ads. https://wikia.com is probably the most well-known one.
- However, to be clear, well you are allowed to use the MediaWiki software for commercial purposes, you are not generally allowed to post advertisements on this website - https://mediawiki.org . The website mediawiki.org (different from the software named "MediaWiki") is for documenting the MediaWiki software. The only adverts allowed are for people offering professional services related to MediaWiki at Professional_development_and_consulting Bawolff (talk) 22:51, 14 March 2020 (UTC)
- I'm the writer of the question. Thank you so much for each of you. 211.44.60.179 (talk) 02:42, 15 March 2020 (UTC)
I keep getting an error message
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to create a wiki for class, but when I submit to publish I get a Minorax test error. What should I do? Obryant51 (talk) 19:39, 14 March 2020 (UTC)
- Which Wiki is this about? Is this related to MediaWiki? AhmadF.Cheema (talk) 21:35, 14 March 2020 (UTC)
- Yes, MediaWiki Obryant51 (talk) 21:45, 14 March 2020 (UTC)
- I don't know what Minorax is. What's the precise text of the error message?
- I see that you previously posted at Talk:ITE 119 Addiction to technology. That place is for discussing the MediaWiki software not for making your own wiki. If you want to make your own wiki, see Download for how to setup one yourself, although it might be easier for you if you use a wikihost like ShoutWiki or Miraheze. You may also find tiddlywiki interesting. Bawolff (talk) 22:44, 14 March 2020 (UTC)
- It's a test filter I made to prevent new users from creating pages in mainspace. Also, are Vgm214, Btrieu, Laureneast12, Laureneast03 related to you in any way? They've been trying to create similar articles just like you. Minorax (talk) 04:41, 16 March 2020 (UTC)
- Please stop creating those pages. They’re not within the scope of MediaWiki. Minorax (talk) 17:01, 17 March 2020 (UTC)
Talented Deviants Page Not Working
I have tried to go on any of the pages links and it continues to take me to stating this;
Permission error
You do not have permission to read this page, for the following reason:
The action you have requested is limited to users in one of the groups: Administrators, Members.
And when i click to try to talk to someone about this, it continues to give me an error. Can someone please help me, what happen?? i can't even check out none of the talented deviants page 2601:83:4201:2D60:5CCF:B658:4BDD:CDE2 (talk) 02:32, 16 March 2020 (UTC)
- This website doesn't have any official links with Miraheze wikis, therefore you're unlikely to find the required support here. If the talenteddeviants admin(s) have restricted all methods of contact, then you're probably out of luck.
- For the moment, you can try contacting the admin users on their meta.miraheze user pages:User:JeagerEX12, User:Theresnoname, User:TheChisatoFan, User:Queenspace, and User:Popzikles. AhmadF.Cheema (talk) 11:33, 16 March 2020 (UTC)
- It seems this is case of phab:T209335. Talenteddeviants is using a very old version of MediaWiki which is before that task was resolved. Their sidebar helplink still links to mediawiki.org, probably that's why the IP's here – Ammarpad (talk) 18:26, 16 March 2020 (UTC)
Geological epoch box customizable variables for dates, title, color, etc.
I have been working on a geological epochs template, and I want to add an option to my code that if the variables 'from', 'to', 'color' and 'title' were used when invoking the template on a page, the template would accept a custom string they'd store to set a period color, date range, etc. if only some of them or none of them were used, it would instead grab the page name to fill that missing info in. (The page I'm trying to do this on: https://en.wikipedia.org/wiki/Template:Geological_epoch)
Here's the template code that grabs the name, start time, stop time, etc. for the periods:
<includeonly>{| class="wikitable" style="float:right; margin-left:1em; width: {{{width|20}}}em; text-align: center;"
|-
| colspan="2" style="background-color: {{period color|{{{period|{{PAGENAME}}}}}}}" |'''{{{period|{{PAGENAME}}}}} Period'''<br />''{{period start|{{{period|{{PAGENAME}}}}}}}–{{Period end|{{{period|{{PAGENAME}}}}}}} million years ago''<br />{{Time scale}}
and here's my attempt at it:
<includeonly>{| class="wikitable" style="float:right; margin-left:1em; width: {{{width|20}}}em; text-align: center;"
|colspan="2"
{{#switch:{{if#:{{{custom|}}}}}| yes =
{{!}} style="background-color: {{period color|{{{period|{{{custom}}}}}}}}" {{!}}'''{{{period|{{{custom}}}}}} epoch'''<br />''{{period start|{{{period|{{{custom}}}}}}}}–{{Period end|{{{period|{{{custom}}}}}}}} million years ago''<br />{{Time scale}}
| no = {{!}} style="background-color: {{period color|{{{period|{{PAGENAME}}}}}}}" {{!}}'''{{{period|{{PAGENAME}}}}} epoch'''<br />''{{period start|{{{period|{{PAGENAME}}}}}}}–{{Period end|{{{period|{{PAGENAME}}}}}}} million years ago''<br />{{Time scale}} Benniboi01 (talk) 19:35, 16 March 2020 (UTC)
- if you need any more info, let me know! Benniboi01 (talk) 19:36, 16 March 2020 (UTC)
- I'm not sure what the question is here. Bawolff (talk) 21:58, 16 March 2020 (UTC)
- Thanks, I think I got it now. sorry I wasn't clear enough. Benniboi01 (talk) 23:16, 17 March 2020 (UTC)
I’m logged out frequently
Hi. My wiki has an issue that for some reason it logs out users. What could it be? Thanks
190.218.64.184 (talk) 20:42, 16 March 2020 (UTC)
- See Manual:How to debug/Login problems how you can debug this. Malyacko (talk) 08:00, 17 March 2020 (UTC)
Doubling URL after save changes
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just upgraded to 1.34, and using PHP 7.2.28. This upgrade was a struggle but my webhost figured out the sql database issues.
However one issue persists, and Google results haven't been helpful.
When I edit a page, upon the redirect, it doubles the URL line.
So the main page,
https://necrat.us/biz/wiki_testgg/index.php/Main_Page,
after the edit, the URL looks like this.
https://necrat.us/biz/wiki_testgg/necrat.us/biz/wiki_testgg/index.php/Main_Page
The edit sticks, mind you, but the refresh to the doubled URL is where my issue lies. Necrat (talk) 23:24, 16 March 2020 (UTC)
- what is the value of $wgServer, $wgArticlePath and $wgScriptPath in LocalSettings.php? Bawolff (talk) 00:20, 17 March 2020 (UTC)
- $wgServer = "necrat.us";
- $wgScriptPath = "/biz/wiki_testgg";
- No line for $wgArticlePath Necrat (talk) 01:07, 17 March 2020 (UTC)
- $wgServer needs to be "https://netcrat.us" (or http if not using https. If you want to support both http and https set it to "//netcrat.us" but in that case you should also set $wgCanonicalServer with the prefered protocol + server) Bawolff (talk) 05:14, 17 March 2020 (UTC)
- That did it. Thank You! Necrat (talk) 20:29, 17 March 2020 (UTC)
Timeless Skin, Tools en Sidebar
Hi. On a wiki I'm using the Timeless Skin. Because I have quite a few links on the sidebar. I would like to move the "Tools block" to the right and another block from the CreateRedirect extension. Is that possible? Hispano76 (talk) 00:45, 17 March 2020 (UTC)
JavaScript errors "unknown module"
- Hi!
- I've locally installed a wiki and everything worked so far until I wanted to install WikiEditor (I didn't want to go through the installation of VisualEditor on Windows and I want to wait for the php port). After installation the WikiEditor toolbar doesn't show up in the settings nor on the edit page, only in the version site as successfully installed extension.
- I then saw that I have JavaScript errors, not only with this extension but also already on the main page with the Vector Skin! What's the problem here?
- I've cleared my browers cache quiet often but it doesn't help.
- My config:
- MediaWiki 1.35.0-alpha (ac09138)
- PHP 7.4.3 (apache2handler)
- MariaDB 10.4.11-MariaDB
- ICU 65.1
- Vector– REL1_34
- FireFox Console Log from the main page:
- Skipped unresolvable module skins.vector.js load.php:9:593
- Exception in resolve: load.php:2:530
- Error: "Unknown module: jquery.tabIndex" load.php:2:567
- sortDependencies http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:8
- sortDependencies http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:9
- resolveStubbornly http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:9
- load http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:20
- <anonymous> http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:35
- <anonymous> http://mywiki.local/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:35
- JQMIGRATE: Migrate is installed with logging active, version 3.1.0
- On the edit page there are even more exceptions. The first two are:
- JQMIGRATE: jQuery.fn.bind() is deprecated load.php:144:746
- jQuery.Deferred exception: wikEd.frameBody is null wikEd.UpdateTextarea@......................
79.208.145.253 (talk) 02:25, 17 March 2020 (UTC)- "wikEd.frameBody" you are using wikEd, which is practically abandonware at this point in time.. —TheDJ (Not WMF) (talk • contribs) 09:50, 17 March 2020 (UTC)
- if using mediawiki master you should use the master version of the vector skin (and wikieditor extension).
- If after switching version of skin the error is still there, let us know. Bawolff (talk) 05:17, 17 March 2020 (UTC)
- Thx Bawollf. The problem is solved. I guess I shouldn't have tried to install everything with the tarballs manually. I reinstalled everything with git and WikiEditor works smoothly now. 79.208.144.118 (talk) 14:47, 17 March 2020 (UTC)
Log in help
Hi, this is Burr Patterson, Jr.
I can't log in, you do not send to my email address. pitz@iwvisp.
I have supported you for years 110.54.160.63 (talk) 03:33, 17 March 2020 (UTC)
- Is this related to the Wikimedia Foundation? AhmadF.Cheema (talk) 03:48, 17 March 2020 (UTC)
VisualEditor does not refresh page after saving changes
I got a weird issue that VE does not refresh the page after edit and saving changes.
Step to reproduce:
- Go on a random page
- Press the edit button
- Edit the page with VE (visual or source)
- Save changes
Expected result:
The URL should be https://wiki.com/w/Page. Javascript should be loaded.
Actual result:
The URL stayed at https://wiki.com/w/Page?action=edit. Javascript is not loaded.
The issue also happens when editing using direct link https://wiki.com/index.php?title=Page&action=edit as well.
Setup:
| Product | Version |
|---|---|
| MediaWiki | 1.31.6 |
| PHP | 7.2.24-0ubuntu0.18.04.3 (fpm-fcgi) |
| MySQL | 5.7.29-0ubuntu0.18.04.1 |
| VisualEditor | 0.1.0 (c3c9140) |
| Parsoid | 0.10.0 |
Btw no RESTBase is installed on the wiki. Alistair3149 (talk) 06:29, 17 March 2020 (UTC)
- With the normal editor (not VE), after hitting save, the page doesn't reload? In that case, can you open the browser console (F12) and see what the response from the server is? Ciencia Al Poder (talk) 10:36, 17 March 2020 (UTC)
- @Ciencia Al Poder The problem does not affect WikiEditor, only VE is affected.
- I just checked the network panel in the Chrome DevTools.
- When I clicked edit with VE, the
?action=editHTML is downloaded, but after I clicked save, there is no new assets being loaded. - In comparison, with WikiEditor, the article page HTML is being loaded after save. Alistair3149 (talk) 19:04, 17 March 2020 (UTC)
- You said "The issue also happens when editing using direct link ***/index.php?title=Page&action=edit as well.", and I interpreted it was happening with the normal editor as well... In that case, I don't know extensively about VE to help. Ciencia Al Poder (talk) 10:24, 18 March 2020 (UTC)
- Sorry for the confusion. The wiki is defaulted to VE.
- Btw here's the wiki link: https://starcitizen.tools/ Alistair3149 (talk) 19:11, 18 March 2020 (UTC)
Cant Upload .png && .jpg Files..
Hey i tired to upload .png & .jpg Files to my MediaWiki but it dont work. I already tried everything from your "Manual:Configuring_file_uploads" but it still dont work.
The Error message is: "Files with the MIME-type "text / html" will not be uploaded." But why html? I tried to upload .png files...
Please help ^^ 2A02:8108:1680:2C52:6402:DB37:48B9:9745 (talk) 11:13, 17 March 2020 (UTC)
- Please provide your exact MediaWiki version, and exact steps, click by click, step by step, to reproduce the situation. Malyacko (talk) 12:40, 17 March 2020 (UTC)
- can you try uploading a known good file, like media:Example.png? Just to rule out a problem with the file you ae testing with? Bawolff (talk) 07:15, 18 March 2020 (UTC)
need some help with Sites Table
hello all, I need some help with populating my Sites Table in my Wikibase repo that i am trying to set up. I've just run the maintenance script populateSitestable.php as instructed here: https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#populateSitesTable.php However, i still am getting not getting the regular sitelinks edit options that I am used from Wikipedia/wikidata when i press "edit" besides for example "Wikipedia" on an item in my Wikibase repo. All i get is the words "save" and "cancel", but not the usual options to enter A) the wiki and B) the page. Can anyone provide advice? Wikirik123 (talk) 21:03, 17 March 2020 (UTC)
Sharing users between an old wiki and a new wiki
I have an old wiki installed on domain.com/wiki which runs 1.31.0. I would like to install a new wiki on domain.com/newiki but have those two wikis share the user table. Do I simply make the necessary changes to the LocalSettings for the new wiki as suggested in Manual:Shared database and leave the LocalSettings for the old wiki untouched? Also, do I need to have the same versions of Mediawiki installed for both in order to make this work? Mukilol2 (talk) 23:17, 17 March 2020 (UTC)
- if you're using shared tables, its probably a good idea to use the same version. If its just user, it might work with different versions, but if possible id reccomend same version Bawolff (talk) 07:13, 18 March 2020 (UTC)
- I just setup a new wiki and configured the shared user table:
$wgSharedDB = 'miandb'; # The $wgDBname for the wiki database holding the main user table$wgSharedTables[] = 'actor';$wgSharedPrefix = ''; # The $wgDBprefix for the database. Defaults to the prefix of the current wiki if not specified- and when I try to login from the new wiki it gives me the following error message:
Auto-creation of a local account failed: Username entered already in use. Please choose a different name.- It might be worth mentioning that the old wiki is running 1.31.0 and the new one is running 1.34.0. Could the error message be due to different versions? Mukilol2 (talk) 13:55, 25 March 2020 (UTC)
Error: invalid magic word 'haclaccess'
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a similar problem after the update I only get the page displayed. does anyone know a solution?
[8c334f7ff0e212ae36fc7dfb] /wiki/index.php?title=Hauptseite MWException from line 182 of /var/www/html/mediawiki-1.32.0/includes/MagicWord.php: Error: invalid magic word 'haclaccess'
Backtrace:
#0 /var/www/html/mediawiki-1.32.0/includes/MagicWordFactory.php(222): MagicWord->load(string)
#1 /var/www/html/mediawiki-1.32.0/includes/parser/Parser.php(5288): MagicWordFactory->get(string)
#2 /var/www/html/mediawiki-1.32.0/includes/StubObject.php(112): Parser->setFunctionHook(string, string)
#3 /var/www/html/mediawiki-1.32.0/includes/StubObject.php(138): StubObject->_call(string, array)
#4 /var/www/html/mediawiki-1.32.0/extensions/IntraACL/includes/GlobalFunctions.php(323): StubObject->__call(string, array)
#5 /var/www/html/mediawiki-1.32.0/includes/Setup.php(906): haclfSetupExtension()
#6 /var/www/html/mediawiki-1.32.0/includes/WebStart.php(81): require_once(string)
#7 /var/www/html/mediawiki-1.32.0/index.php(41): require(string)
#8 {main} Blueeyestar (talk) 00:37, 18 March 2020 (UTC)
- try disabling hacl extension Bawolff (talk) 07:12, 18 March 2020 (UTC)
- I have no hacl extension in the folder only:
- CategoryTree, Cite, CiteThisPage, CodeEditor, ConfirmEdit, Gagdets, ImageMap, InputBox, Interwiki, IntraACL, LocalisationUpdate, MultimediaViewer, Nuke, OATHAuth, ParserFunctionsm PdfHandler, Poem, Renameuser, ReplaceText, ReplaceText, SpamBlacklist, SyntaxHighlight_GeSHi, TitleBlacklist, WikiEditor, Youtube.
- Unfortunately there is nothing ... what can I do now? am desperate Blueeyestar (talk) 08:51, 18 March 2020 (UTC)
- I think I have found an extension that can be related to this - >> IntraACL I will test this time Blueeyestar (talk) 09:10, 18 March 2020 (UTC)
- I did that. Now there is only one white page left. Do I have to do anything else? Blueeyestar (talk) 14:09, 18 March 2020 (UTC)
- I have no hacl extension in the folder only:
- CategoryTree, Cite, CiteThisPage, CodeEditor, ConfirmEdit, Gagdets, ImageMap, InputBox, Interwiki, IntraACL, LocalisationUpdate, MultimediaViewer, Nuke, OATHAuth, ParserFunctionsm PdfHandler, Poem, Renameuser, ReplaceText, ReplaceText, SpamBlacklist, SyntaxHighlight_GeSHi, TitleBlacklist, WikiEditor, Youtube.
- Unfortunately there is nothing ... what can I do now? am desperate
2003:E2:B703:1300:D8C2:A510:D7F5:345 (talk) 08:50, 18 March 2020 (UTC)
Error after update to 1.34
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Since the update to 1.34 I have struggled through some levels to get it there. Does anyone know what to do about the mistake?
[d012acaf43c13e5899620d6e] /wiki/index.php?title=Features:Subzonen&action=submit Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/html/mediawiki-1.32.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: INSERT IGNORE INTO `wikipage` (page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES ('0','Features:Subzonen','','0','1','0.580075978529','20200318141914','0','0')
Function: WikiPage::insertOn
Error: 1305 PROCEDURE wiki.wikirefresh_all_parents_for_page does not exist (localhost)
Backtrace:
#0 /var/www/html/mediawiki-1.32.0/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/mediawiki-1.32.0/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/mediawiki-1.32.0/includes/libs/rdbms/database/Database.php(2140): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/mediawiki-1.32.0/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert(string, array, string, string)
#4 /var/www/html/mediawiki-1.32.0/includes/libs/rdbms/database/DBConnRef.php(371): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 /var/www/html/mediawiki-1.32.0/includes/page/WikiPage.php(1355): Wikimedia\Rdbms\DBConnRef->insert(string, array, string, array)
#6 /var/www/html/mediawiki-1.32.0/includes/Storage/PageUpdater.php(1106): WikiPage->insertOn(Wikimedia\Rdbms\DBConnRef)
#7 /var/www/html/mediawiki-1.32.0/includes/Storage/PageUpdater.php(758): MediaWiki\Storage\PageUpdater->doCreate(CommentStoreComment, User, integer)
#8 /var/www/html/mediawiki-1.32.0/includes/page/WikiPage.php(1931): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
#9 /var/www/html/mediawiki-1.32.0/includes/EditPage.php(2341): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User, string, array, integer)
#10 /var/www/html/mediawiki-1.32.0/includes/EditPage.php(1617): EditPage->internalAttemptSave(array, boolean)
#11 /var/www/html/mediawiki-1.32.0/includes/EditPage.php(682): EditPage->attemptSave(array)
#12 /var/www/html/mediawiki-1.32.0/includes/actions/EditAction.php(55): EditPage->edit()
#13 /var/www/html/mediawiki-1.32.0/includes/actions/SubmitAction.php(38): EditAction->show()
#14 /var/www/html/mediawiki-1.32.0/includes/MediaWiki.php(511): SubmitAction->show()
#15 /var/www/html/mediawiki-1.32.0/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#16 /var/www/html/mediawiki-1.32.0/includes/MediaWiki.php(900): MediaWiki->performRequest()
#17 /var/www/html/mediawiki-1.32.0/includes/MediaWiki.php(527): MediaWiki->main()
#18 /var/www/html/mediawiki-1.32.0/index.php(44): MediaWiki->run()
#19 {main} Blueeyestar (talk) 14:24, 18 March 2020 (UTC)
- I do not know how to change the problem ... I hope someone knows the solution that would be great. Because unfortunately I can no longer create pages :( Blueeyestar (talk) 20:25, 18 March 2020 (UTC)
- Whatever random extension defines something called "wikirefresh_all_parents_for_page" (which I have never heard of), fix or uninstall that extension? Malyacko (talk) 09:37, 19 March 2020 (UTC)
- I only have these extensions in my wiki and I can't find wikirefresh_all_parents_for_page there. I am at a loss ...
- CategoryTree, Cite, CiteThisPage, CodeEditor, ConfirmEdit, Gagdets, ImageMap, InputBox, Interwiki, IntraACL, LocalisationUpdate, MultimediaViewer, Nuke, OATHAuth, ParserFunctionsm PdfHandler, Poem, Renameuser, ReplaceText, ReplaceText, SpamBlacklist, SyntaxHighlight_GeSHi, TitleBlacklist, WikiEditor, Youtube. Blueeyestar (talk) 12:28, 19 March 2020 (UTC)
- Is this mysql?
- Afaik mediawiki does not (nor ever has) used db triggers or procedures (for that matter, im not even aware of any extensions that do that). You will have to figure out how one got into your db. It is not a feature mw uses.
- https://dev.mysql.com/doc/refman/8.0/en/drop-trigger.html might be helpful to you. E.g running DROP TRIGGER wikirefresh_all_parents_for_page; in mysql Bawolff (talk) 00:43, 20 March 2020 (UTC)
- Actually it does look like intraacl uses triggers https://github.com/mediawiki4intranet/IntraACL/blob/37e72855b5ad44f47e1c8a06dd0bdd1eded96be3/storage/intraacl-functions-mysql.sql i would suggest not using that extension, its messing with a lot of very internalish things.
- It doesnt look like it provides any method to uninstall the db modifications Bawolff (talk) 00:47, 20 March 2020 (UTC)
- what can I do now? should i delete wikirefresh_all_parents_for_page from the database? what further steps do you recommend Blueeyestar (talk) 09:54, 20 March 2020 (UTC)
- Yes, find all triggers present on MediaWiki database and delete those triggers Ciencia Al Poder (talk) 10:44, 20 March 2020 (UTC)
- Unfortunately, I am a newcomer to this. I don't know what to do now. I'm afraid that I'm doing something wrong and thus deleting everything Blueeyestar (talk) 11:08, 20 March 2020 (UTC)
- https://www.bilder-upload.eu/bild-4a6d70-1584703116.png.html
- should i delete that? Blueeyestar (talk) 11:19, 20 March 2020 (UTC)
- Yes, all triggers that you find on the MediaWiki database should be deleted. Ciencia Al Poder (talk) 17:27, 20 March 2020 (UTC)
- Thank you very much. Super finally I can use the wiki normally again .... I'm really happy Blueeyestar (talk) 19:09, 20 March 2020 (UTC)
Unsigned messages
Is there a way to automatically sign messages left by users? (No Flow) I was thinking on AbuseFilter (to warn) but I have no knowledge of that.
Thanks. 190.218.64.184 (talk) 00:04, 19 March 2020 (UTC)
- You could use a bot to do it, as we do on Wikipedia. It could run on the server. Rich Farmbrough (talk) 10:52, 20 March 2020 (UTC)
Wikipedia Kiwix Zim Old Archives
Hello Everyone,
I have been searching for a download of the old Wikipedia zim databases dated at 2015 and no later. I've scoured the internet for this and have had no luck. The Wikimedia Foundation only hosts Wikipedia Kiwix Zim Archives 2019 and later. I have been told about the dumps which date farther back, but they are XML dumps. Does anyone know a location or have access to links to a full 2014/2015 database that they can give me?
Thanks! 96.240.153.147 (talk) 00:28, 19 March 2020 (UTC)
- You might try asking the kiwix people. Bawolff (talk) 00:36, 20 March 2020 (UTC)
Several questions about latest mediawiki.
Hello Everyone,
I've been using latest mediawiki (1.34.0) and have several questions.
- As you know, I can add numbers by using # and add point by using *. but If I use #, 1-step indentation is automatically done, which is different compared with using *. How can I not use this identation? (indentation is automatically done in this question, also.)
2. I think the font size of title and contents were too big for my wiki. How can I lower the font size? I understand I should add some css text in common.css but don't know which test I should add.
3. In Statistics, what's the difference between 'Articles' and 'Pages'? I've added more than one thousand contents in my wiki and it seems to be counted in pages, but number of articles is 1/3 of pages. I don't know the difference.
4. Can anybody tell me how I can add (attach) the external image by link in the page without uploading to my hosting?
There are so many questions cause I'm beginner of mediawiki.
Thank you in advance. 220.121.235.23 (talk) 00:49, 19 March 2020 (UTC)
- 2. See Manual:CSS and use your web browser's developer tools to identify elements.
- 3. See definitions in Manual:Article count.
- 4. See Manual:$wgAllowExternalImages, Manual:Linked images#External image syntax. Malyacko (talk) 09:47, 19 March 2020 (UTC)
- Thank you for your reply.
- Don't you know the answer for no.1 question? 58.232.179.87 (talk) 12:24, 19 March 2020 (UTC)
- For number 1: Put the following on the page named MediaWiki:Common.css on your wiki
body .mw-content-ltr ol, body .mw-content-rtl .mw-content-ltr ol { margin-left: 1.6em; }- Which will make it the same as normal bullets. If you really want no margin at all, you can use 0 instead of 1.6em Bawolff (talk) 03:50, 20 March 2020 (UTC)
- Thank you very much, Bawolff. 114.203.88.34 (talk) 03:26, 21 March 2020 (UTC)
Category do not work
Category do not work when I add a category in any article. I can add category but those article do not show in category page. Site: http://www.awamileague.org
| MediaWiki | 1.32.0 |
| PHP | 7.2.28 (cgi-fcgi) |
| SQLite | 3.28.0 |
| ICU | 52.1 |
Article: http://www.awamileague.org/index.php?title=শেখ_হাসিনা Added Category: http://www.awamileague.org/index.php?title=বিষয়শ্রেণী:ঢাকা_জেলা ShahadatHossain (talk) 03:45, 19 March 2020 (UTC)
- You'll first need to complete the remaining jobs on your Wiki. See Manual:RunJobs.php and Project:Support desk/Flow/2016/06#h-Categories_not_working-MediaWiki_1.27_internal_error-2016-06-30T16:44:00.000Z. AhmadF.Cheema (talk) 18:22, 19 March 2020 (UTC)
- Hello @ahmadF.Cheema I have completed the remaining job. But this problem is stay still now. What is the next step? ShahadatHossain (talk) 04:32, 20 March 2020 (UTC)
- I'm assuming you want page শেখ_হাসিনা to appear in category ঢাকা_জেলা, right? In which case, can you make sure the category tag (বিষয়শ্রেণী:ঢাকা জেলা) is actually added to the relevant page. I don't think it's present there. AhmadF.Cheema (talk) 11:17, 20 March 2020 (UTC)
- I assure you that this category is in the article. But for whatever reason the article does not appear in the category pages. ShahadatHossain (talk) 14:24, 20 March 2020 (UTC)
- Looks like a bug. Your categories special page is showing presence of one page in three categories but their respective category pages are showing empty.
- Someone else will have to look into this. AhmadF.Cheema (talk) 16:29, 20 March 2020 (UTC)
- There may be an error somewhere that fails to update the internal data. Sometimes a faulty or not compatible extension is the cause.
- You may need to set up a debug log and look for any error when editing a page and after running jobs. Ciencia Al Poder (talk) 17:34, 20 March 2020 (UTC)
- There do not show any error when I have edit a page, so the debug code can not find the error status. I don't know that what can I do now. ShahadatHossain (talk) 10:18, 25 March 2020 (UTC)
smtp error
In kubernetees i tried to configure smtp, but it gives me this error:
Mailer returned: authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 SMTP server ready)]
Can anyone tell me how to fix this error, i configured everything correct. 103.136.254.41 (talk) 06:09, 19 March 2020 (UTC)
- How is this related to MediaWiki? Please elaborate and provide your exact MediaWiki version. Malyacko (talk) 09:33, 19 March 2020 (UTC)
Automatic Login
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I have a MediaWiki that is set to private and I want a specific user account to be able to programatically signed in and when I browse to the wiki that its automatically signed in.
I followed this post: API:Login but it doesnt tell you what to do after you have logged in and I'm hoping to get some help regarding saving your login to a cookie.
I get a readapidenied error when I try to do a GET token request, I switched to the depricated way of doing it via POST but at least im able to get a token. I now do a login post and I get a return (I'm not sure if this is successful as it shows a different token with a status of "Needs Token".
Any help or links to documentation would be greatly appreciated.
BensDBN (talk) 08:28, 19 March 2020 (UTC)
- "Being logged in" from a browser's perspective means you have entered valid credentials, and you got an HTTP cookie with a session identifier, and the browser sends back that cookie with the session identifier on all requests to the wiki that tells the server who's the user (this is what maintains the user logged in, until the cookie expires or the session is no longer valid on the server).
- If you're able to programatically set a cookie on the user's browser from the same domain as MediaWiki, you'll be good to go. Otherwise, you won't be able to do so. Maybe Extension:Auth remoteuser is an alternative if you can set up the user on the server level.
- About the api, if you receive Needs Token, this means you're not sending back the cookie you received from the first POST. Ciencia Al Poder (talk) 17:25, 19 March 2020 (UTC)
- Hi Ciencia,
- Thanks for your response. I am using AngularJS, I am just battling to grab to the cookie from the response headers from the first POST. I'm busy looking into how to do this currently.
- I can see the cooking on the response header: Set-Cookie: wikidb_session=sd00uqls8o2hi6q7cev6gpg0tjhjbh4t; path=/; HttpOnly
- Have any ideas?
- All the documentation for API:Login all use request which has been shut down. :( BensDBN (talk) 09:44, 20 March 2020 (UTC)
- You can't grab a cookie set with a HttpOnly flag (that's what you've received) from JavaScript. This is a protection to prevent JavaScript from stealing sessions. However, the cookie will get stored on the browser automatically and be used on future request. However this will only be true if the request comes from the same domain and path.
- So basically, if you run the JavaScript code on a page on the same domain as MediaWiki, it should work. If you run the JavaScript code on a page on a different domain or subdomain, it won't work.
- I don't know, however, what the solution should be. Maybe implement OAuth on your application and change MediaWiki logins to login against that OAuth server (this won't make users logged-in automatically, but they can click a button to log-in without further credentials if they're already logged in in the OAuth application). That's what happens when you use "login with facebook" buttons on other websites, for example. Ciencia Al Poder (talk) 10:40, 20 March 2020 (UTC)
- My IIS server and my Wiki Server are on the same domain. The origin is currently set to localhost as I’m busy testing, which I think is part of the issue. But how does one test when you are developing? we have 3 different levels of security on the wiki, so based on the level of security of the person logged into our SPA that is the level of sites they see in the wiki. With your alternative suggestion, would the process be I log into OAuth from my application, providing a set of credentials and then when the customer is redirected to the wiki they click on Log in and it will automatically log them in with the set of credentials I provided initially? BensDBN (talk) 12:51, 20 March 2020 (UTC)
- I have never set up an OAuth system. You may need to install Extension:WSOAuth and develop a class to handle the login system. From what I understand, OAuth not only authenticates users, but also provides a list of user groups or similar, that can be equivalent to MediaWiki user groups. I don't know how easy is to integrate that with your system. Ciencia Al Poder (talk) 17:26, 20 March 2020 (UTC)
- Hi,
- I have tackled this again. I moved mediawiki to our web server. I also updated to the latest version of mediawiki which fixed the token issue. So im now using the recommended way to get the token. I have published my code to the webserver so the Orgin is exactly the same.
- I added mediawiki as an application under our main site so now the url to get to the wiki is https://application.example.com/wiki
- In the web.config on IIS i added Access-Control-Allow-Origin and set the orgin to https://application.example.com (an example) and on the request headers it is exactly the same.
- However my response headers is still :
- Set-Cookie: UseDC=master; expires=Fri, 03-Apr-2020 14:18:01 GMT; Max-Age=10; path=/; secure; HttpOnly
- Set-Cookie: UseCDNCache=false; expires=Fri, 03-Apr-2020 14:18:01 GMT; Max-Age=10; path=/; secure; HttpOnly
- So you can now see that it has secure but still has HttpOnly. Is there a setting that i can add in localSettings to white list a domain?
- I'm not entirely sure now why its still HttpOnly. BensDBN (talk) 14:32, 3 April 2020 (UTC)
- Session cookies must be HttpOnly, otherwise any script on the page could tamper with it.
- If you're doing the login to MediaWiki through the application server-side (which would be desirable security-wise), you should capture the cookies in the header and then send them back to your application. That way since you have setup them as path=/ it should work. Ciencia Al Poder (talk) 20:28, 3 April 2020 (UTC)
- The response im getting from the login request is MediaWiki API help page. Is that correct?
- The response looks like this:
- data: "<!DOCTYPE html>↵<html class="client-nojs" lang="en"
- status: 200
- headers: ƒ (name)
- config: {method: "POST", transformRequest: Array(1), transformResponse: Array(1), url: "https://application.example.com/Wiki/api.php", paramSerializer: ƒ, …}
- statusText: "OK"
- __proto__: Object BensDBN (talk) 08:19, 6 April 2020 (UTC)
- I'm also looking at the cookie under application it seems to have saved the cookie correctly.
- It has the wikidb_session cookie, domain is correct, path is "/", HttpOnly and Secure are ticked but SameSite isnt ticked. Does that need to be ticked in order for it to work?
- Maybe the path should be "/Wiki" ?
BensDBN (talk) 08:52, 6 April 2020 (UTC) - Ok I dont think that return is correct because when i login through the main site manually there are 3 entries in the cookie, wikidbUserID, wikidbUserName and wikidb_session. Whereas on my login only wikidb_session is there. BensDBN (talk) 09:33, 6 April 2020 (UTC)
- You should send a format=json, format=xml, etc to get a parseable response instead of the HTML one Ciencia Al Poder (talk) 18:32, 6 April 2020 (UTC)
- Can we pay for someone to remote on and see what im doing wrong? BensDBN (talk) 06:11, 7 April 2020 (UTC)
- You can look for someone at Professional development and consulting Ciencia Al Poder (talk) 15:26, 7 April 2020 (UTC)
- Hi Ciencia,
- I managed to get it working (Finally) and thanks to all of your help.
- So I had to serialise the body and I had to have my Content-Type set to application/x-www-form-urlencoded. Then it worked beautifully.
- Kind Regards
- Ben BensDBN (talk) 06:00, 8 April 2020 (UTC)
Template error
Hi there!
I'm running a hockey wiki (huskywiki.de) and have an annoying problem concerning one of my infoboxes...
Actually I want my player and coach profiles to look sth. like this (http://www.huskywiki.de/HuskyWiki//index.php?title=Tim_Kehler). So you got the statistics in the infobox on the right and (in this case) games against player or coach in the regular article text. Thats what it should actually look like. Green WIN or red LOST-template right beside the game-link.
In some cases (like here -> http://www.huskywiki.de/HuskyWiki//index.php?title=Gerald_Kuhn) when both, infobox and win-lost-template are right beside each other, I get this. I worked through the whole infobox template, but I cant make it work.
Do you have any idea?
Thanks! Hessentotal (talk) 09:35, 20 March 2020 (UTC)
- Looks like the first clear:right is causing any other float (even if it's a float:left) to go after that clear statement...
- There's nothing you can do, unless you remove the float from that win-lost-template. Maybe you need to rethink that template and not use a float at all, or wrap the template and the sibling text inside a template on a same box. Ciencia Al Poder (talk) 17:36, 20 March 2020 (UTC)
VisualEditor git master requires MediaWiki >= 1.35.0
My question is: Is it possible to have VisualEditor working with the last version; 1.34 ?
At this time: I have this error: Uncaught ExtensionDependencyError: VisualEditor is not compatible with the current MediaWiki core (version 1.34.0), it requires: >= 1.35.0.
Do I have to use a wmf version? Will it work? Darmoric (talk) 15:18, 20 March 2020 (UTC)
- Yes, possible. Which exact VisualEditor version and branch? REL1_34? Malyacko (talk) 15:42, 20 March 2020 (UTC)
- Yes
- Tanks a lot for answering
- Produit Version
- MediaWiki 1.34.0 (5e55aee)
- PHP 7.3.14-1~deb10u1 (apache2handler)
- MariaDB 10.3.22-MariaDB-0+deb10u1
- ICU 63.1
Darmoric (talk) 20:10, 20 March 2020 (UTC)- Again: Which exact VisualEditor version and branch? REL1_34? Malyacko (talk) 09:18, 21 March 2020 (UTC)
- Ni 123.136.107.47 (talk) 10:47, 21 March 2020 (UTC)
- Hi
- I just install MediaWiki by this way:
- sudo git clone https://gerrit.wikimedia.org/r/mediawiki/core.git --branch REL1_34 mediawiki
- cd mediawiki
- sudo git submodule update –init
- So Yes REL 1_34 Darmoric (talk) 13:37, 21 March 2020 (UTC)
- The question is which version of VisualEditor is installed. Not which version of MediaWiki. Malyacko (talk) 23:19, 21 March 2020 (UTC)
- VisualEditor is not one of the submodules in the REL1_34 branch of mediawiki core, so you probably installed it some different way. You probably have the wrong version installed. Make sure the version of visual editor matches version mediawiki core. Bawolff (talk) 00:52, 22 March 2020 (UTC)
- I hust did:
- git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor.git
- cd VisualEditor/
- git submodule update –init
- I can cat extension.json:
- {
- "name": "VisualEditor",
- "version": "0.1.1",
- "author": [
- ...
- "..."
- ],
- "url": "https://www.mediawiki.org/wiki/Extension:VisualEditor",
- "descriptionmsg": "visualeditor-desc",
- "license-name": "MIT",
- "type": "editor",
- "requires": {
- "MediaWiki": ">= 1.35.0"
- }, Darmoric (talk) 07:52, 23 March 2020 (UTC)
- That means that you did not follow Download from Git Malyacko (talk) 10:30, 23 March 2020 (UTC)
- Well yes, that would give you the wrong version if for mediawiki you used REL1_34 branch. It doesn't matter what version you use, as long as the versions match.
- Try doing (in VisualEditor directory)
git checkout --recurse-submodules origin/REL1_34
- To switch your VisualEditor checkout to use the REL1_34 branch instead of the master branch. Bawolff (talk) 09:41, 23 March 2020 (UTC)
- Thanks you. It works well. VisualEditor is fine now. 80.12.67.53 (talk) 09:53, 24 March 2020 (UTC)
BEEN TRYING TO LOG IN, BUT UNABLE TO, KINDLY ASSIST, STUDENT NUMBER 202008053, FROM UNIZULU, FACULTY OF EDUCATION, FOUNDATION PHASE, FIRST YEAR, KINDLY HELP ME CREATE AN ACOUNT.0820449611
HELP CREATE AN ACCOUNT 41.189.94.220 (talk) 23:48, 20 March 2020 (UTC)
- Whatever website this is about, you need to contact your website, not MediaWiki.org. Malyacko (talk) 09:18, 21 March 2020 (UTC)
you have a mistake
you have a mistake in surah Al-Qiyama verse 13 which says:<<يُنَبَّؤ الْإِنسَانُ يَوْمَئِذٍ بِمَا قَدَّمَ وَأَخَّرَ>> but you wrote it like this يُنَبَّأ which is wrong please correct it and thanks :) 102.157.226.212 (talk) 23:44, 21 March 2020 (UTC)
- this is not the right place to report this. You have to report this to whereever the mistake is (if on a wiki use the talk or discussion tab) Bawolff (talk) 00:49, 22 March 2020 (UTC)
Extension Prezi
He instalado la extension Prezi, para embeber una presentación, pero no soy capaz de que me funciona. Utilizo el tag <prezi> con el enlace a la página de la presentación, pero únicamente me aparece el link.
206/5000
I have installed the Prezi extension, to embed a presentation, but I am not able to get it to work. I use the <prezi> tag with the link to the presentation page, but only the link appears. Wikilinablubulina (talk) 10:23, 22 March 2020 (UTC)
- Does the extension show up in the page Special:Version on your wiki? Bawolff (talk) 00:32, 23 March 2020 (UTC)
- Yes, it is. Wikilinablubulina (talk) 09:36, 25 March 2020 (UTC)
- Do you know any page that uses the extension to see the code?
Wikilinablubulina (talk) 10:09, 25 March 2020 (UTC)
- Note that prezi does require flash support, which is becoming less common on the internet. Bawolff (talk) 00:35, 23 March 2020 (UTC)
- I'm going to check this.
- Thanks Wikilinablubulina (talk) 09:38, 25 March 2020 (UTC)
- Flush is working. Wikilinablubulina (talk) 10:09, 25 March 2020 (UTC)
How to create Infoboxes
I want to create infoboxes in my wiki https://en.wikipedia.org/wiki/Help:Infobox and I'm somewhat sure I need to install a module Module:Infobox.
How do I install this module? Is this even the correct way to get infoboxes? Many thanks.
Aidnh (talk) 09:36, 23 March 2020 (UTC)
LoadExtensions leads to PHP-error
Hi there,
I've been struggeling with adding extensions on my mediawiki.
Anytime I add the line for adding extensions (e.g. wfLoadExtensions('PageForms'); ) to my LocalSettings.php it will result in a PHP error:
Fatal error: Uncaught TypeError: Argument 1 passed to wfLoadExtensions() must be of the type array, string given, called in /usr/www/users/bzfiwiki/spielwiese/LocalSettings.php on line 198 and defined in /usr/www/users/bzfiwiki/spielwiese/includes/GlobalFunctions.php:68
Stack trace: #0 /usr/www/users/bzfiwiki/spielwiese/LocalSettings.php(198): wfLoadExtensions('PageForms') #1 /usr/www/users/bzfiwiki/spielwiese/includes/Setup.php(124): require_once('/usr/www/users/...') #2 /usr/www/users/bzfiwiki/spielwiese/includes/WebStart.php(81): require_once('/usr/www/users/...') #3 /usr/www/users/bzfiwiki/spielwiese/index.php(41): require('/usr/www/users/...') #4 {main} thrown in /usr/www/users/bzfiwiki/spielwiese/includes/GlobalFunctions.php on line 68
Spielwiese is the name of my testwiki.
Can anyone give me a hint on what to do?
Thanks in advance!
PS: I am using PHP 7.3 Rebrei (talk) 14:20, 23 March 2020 (UTC)
- Are you using:
wfLoadExtension( 'PageForms' );- or is it:
wfLoadExtensions('PageForms');- without the s is the correct one. AhmadF.Cheema (talk) 17:21, 23 March 2020 (UTC)
- I was using one with the s. That explains it, now it works. Thank you very much! ! Rebrei (talk) 08:50, 24 March 2020 (UTC)
How deactivate break, when using ancor life ?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I'm using ancors that way:
<div id="nameancor">text</div>
The problem is, this code makes an automatical break like <br/>, in the end of the </div>.
I don't want that. How can I deactivate this auto break? Or how could I use ancors instead?
I don't know another way.
Thanks 2A02:908:3112:8F20:9DF9:7487:C8E6:F013 (talk) 15:24, 23 March 2020 (UTC)
- Just change div to a?
- Is this what you want to do? Jonathan3 (talk) 16:57, 23 March 2020 (UTC)
- Thanks, but a codes seem not to work at all on my MediaWiki.
- It doesn't help. :( 2A02:908:3112:8F20:9DF9:7487:C8E6:F013 (talk) 17:06, 23 March 2020 (UTC)
- use <span> Bawolff (talk) 06:14, 24 March 2020 (UTC)
- Please step by step. I don't understand how to ancor with <span> 2A02:908:3112:8F20:58C:65EE:9A66:1C0B (talk) 19:51, 27 March 2020 (UTC)
- <span id="nameancor">text</span> Þjarkur (talk) 20:13, 27 March 2020 (UTC)
- It works, thanks a lot! 88.78.27.243 (talk) 19:11, 10 April 2020 (UTC)
Html2Wiki
I'm trying to install the extension. I installed the dependencies (composser install in extensions/Html2Wiki) and added everything necessary for the instructions to localsettings, but I get the following error on all pages of the site.
LocalSettings.php (bottom):
$wgNamespacesWithSubpages[NS_MAIN] = true; // has to be set BEFORE the wfLoadExtension()!
wfLoadExtension( 'Html2Wiki' );
error_reporting( -1 );
ini_set( 'display_errors', 1 );
mediawiki version: 1.34.0
html2wiki: latest
Fatal error: Uncaught UnexpectedValueException: callback 'SpecialHtml2Wiki::checkEnvironment' is not callable in /var/www/home/public_html/includes/registration/ExtensionRegistry.php:438 Stack trace: #0 /var/www/home/public_html/includes/registration/ExtensionRegistry.php(187): ExtensionRegistry->exportExtractedData(Array) #1 /var/www/home/public_html/includes/Setup.php(143): ExtensionRegistry->loadFromQueue() #2 /var/www/home/public_html/includes/WebStart.php(81): require_once('/var/www/home/p...') #3 /var/www/home/public_html/index.php(41): require('/var/www/home/p...') #4 {main} thrown in /var/www/home/public_html/includes/registration/ExtensionRegistry.php on line 438 93.79.224.172 (talk) 17:18, 23 March 2020 (UTC)
- sounds like extension is broken. You should contact its maintainer. Bawolff (talk) 06:13, 24 March 2020 (UTC)
Adapting rules after numbers in some languages
Hi,
I need to translate the string below into Breton (br), a celtic language.
https://translatewiki.net/wiki/MediaWiki:Wikibase-omitted-undo-ops/en :
$1 {{PLURAL:$1|change|changes}} cannot be undone because the {{PLURAL:$1|value has|values have}} changed in the meantime
Celtic languages (Breton, Welsh, Irish...) don't mark plural after numbers but they do mark in some cases a change in the first letter of a word after a number
For example (this is only for Breton) :
change : kemm
changes : kemmoù
1 change : 1 c'hemm
2 changes : 2 gemm
3 changes : 3 c'hemm
4 changes : 4 c'hemm
5 changes : 5 kemm
etc.
So, depending of the number used the aspect of the word changes. How can I specify this in order for my translation to be correct ?
I'm not sure I'm in the right place to ask that question so forgive me in case I'm not and thanks for any help you can give anyway.
Thanks Fulup (talk) 18:45, 23 March 2020 (UTC)
- See the last link in https://phabricator.wikimedia.org/T248258#5990064 :)
- According to https://translatewiki.net/wiki/Plural/Mediawiki_plural_rules Breton uses the default. Either you have to change that if you want to show the exact number in your string, or you do not show the exact number (the first $1 in the English string) and use this instead:
- {{PLURAL:$1|kemm|kemmoù}} cannot be undone because the {{PLURAL:$1|value has|values have}} changed in the meantime. Malyacko (talk) 18:56, 23 March 2020 (UTC)
- ok, thanks Fulup (talk) 18:21, 26 March 2020 (UTC)
MediaWiki + Traefik - load.php returns php code
Hi MediaWiki!
I setup a mediawiki behind a traefik proxy server using official images available on dockerhub.
Unfortunatly, I hit an issue with stylesheet and script through the load.php script.
This script seems to return PHP code (the welcome page) instead of expected css or js.
I probably missed some configuration steps, read lots of articles on your own wiki but I did not find out what was wrong.
Could you help with this??
I'm running:
+ https://hub.docker.com/_/mediawiki
+ https://hub.docker.com/_/traefik
And our test wiki is available at the following address: http://projects.pageup-lab.fr/test_wiki
Thank you so much for your help!
Florian
90.56.90.57 (talk) 08:11, 24 March 2020 (UTC)
- Hi,
- Just find out a post explaining we can't use an extra level to execute mediawiki.
- My configuration could not work.
- Setup my traefik router differently and now it's working.
- Regards,
- Flo 90.56.90.57 (talk) 13:05, 24 March 2020 (UTC)
- Hi, can you please share your working configuration, thanks!
- Which traefik version are you using? 24.232.179.239 (talk) 13:08, 29 April 2021 (UTC)
How to download MediaWiki 1.35?
I want to try mediawiki 1.35. How to download it? Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 09:24, 24 March 2020 (UTC)
- The front page of this very website https://www.mediawiki.org/ links to a page called "Download", which has a section called "Development releases". Malyacko (talk) 09:45, 24 March 2020 (UTC)
- When i updating my Mediawiki 1.34.0 to 1.35, I got a error:
- $ php '/var/www/html8888/w/maintenance/update.php'
- Error: You are missing some external dependencies.
- MediaWiki also has some external dependencies that need to be installed
- via composer or from a separate git repo. Please see
- https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
- for help on installing the required components. Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:06, 24 March 2020 (UTC)
- Sloved after
git clone https://gerrit.wikimedia.org/r/mediawiki/vendor.gitWiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:10, 24 March 2020 (UTC) - Another error at /w/mw-config/index.php?page=ExistingWiki:
- [96b01a805c2ad8860b2f1dc5] /w/mw-config/index.php?page=ExistingWiki Exception from line 171 of /var/www/html8888/w/includes/registration/ExtensionRegistry.php: Unable to open file /var/www/html8888/w/skins/MonoBook/skin.json: filemtime(): stat failed for /var/www/html8888/w/skins/MonoBook/skin.json
- Backtrace:
- #0 /var/www/html8888/w/includes/GlobalFunctions.php(89): ExtensionRegistry->queue(string)
- #1 /var/www/html8888/w/LocalSettings.php(124): wfLoadSkin(string)
- #2 /var/www/html8888/w/includes/installer/Installer.php(620): require(string)
- #3 /var/www/html8888/w/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()
- #4 /var/www/html8888/w/includes/installer/WebInstaller.php(270): WebInstallerExistingWiki->execute()
- #5 /var/www/html8888/w/mw-config/index.php(82): WebInstaller->execute(array)
- #6 /var/www/html8888/w/mw-config/index.php(40): wfInstallerMain()
- #7 {main} Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:11, 24 March 2020 (UTC)
- These is the error message when i using update.php:
- $ php '/var/www/html8888/w/maintenance/update.php'
- PHP Fatal error: Uncaught Exception: Unable to open file /var/www/html8888/w/skins/MonoBook/skin.json: filemtime(): stat failed for /var/www/html8888/w/skins/MonoBook/skin.json in /var/www/html8888/w/includes/registration/ExtensionRegistry.php:171
- Stack trace:
- #0 /var/www/html8888/w/includes/GlobalFunctions.php(89): ExtensionRegistry->queue('/var/www/html88...')
- #1 /var/www/html8888/w/LocalSettings.php(124): wfLoadSkin('MonoBook')
- #2 /var/www/html8888/w/includes/Setup.php(129): require_once('/var/www/html88...')
- #3 /var/www/html8888/w/maintenance/doMaintenance.php(83): require_once('/var/www/html88...')
- #4 /var/www/html8888/w/maintenance/update.php(252): require_once('/var/www/html88...')
- #5 {main}
- thrown in /var/www/html8888/w/includes/registration/ExtensionRegistry.php on line 171 Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:12, 24 March 2020 (UTC)
- Oh, the core have NO SKINS PACK!!!! Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 10:14, 24 March 2020 (UTC)
- Sloved after
Files aren't populating categories without a null edit on slave servers
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a server in the US which acts as the master, and slaves in Asia and Europe. Everything works as expected, except if a user on either slave adds a category to a file, that file never appears in the category page.
Steps to get the image to appear on the category from the slave server: 1) Perform a null edit on the file page. 2) Purge the cache of the category page. Occasionally the file will appear without having to do the null edit, sometimes several null edits are necessary for the file to appear.
If the category doesn't exist the images appear on the first page load of the new category. The wiki in question has about 10,000 files with extensive categorization. I'm not able to reproduce the problem on any other wikis which also exists on the slave servers and share configuration files. But those wiki's don't have very many files on them. How can I go about troubleshooting this? T0lk (talk) 18:35, 24 March 2020 (UTC)
- please define how your using the term master/slave here (in a traditional db master/slave setup, the slaves are readonly, so saying "make an edit on a slave" would be an oxymoron) Bawolff (talk) 20:18, 24 March 2020 (UTC)
- You're right, sorry. The traditional setup so the slave is readonly and edits are passed to the server in the US. What I mean is the actions when the origin is the slave server have this problem, but not when the origin is the master server. The slave servers are configured with wgDBservers. T0lk (talk) 20:23, 24 March 2020 (UTC)
- Could you be more specific? What exactly is $wgDBServers (and other related variables) set to [Of course, redacting anything sensitive]? Do you have multiple apache/whatever web server you are using? What is your (object) caching configuration look like? Are you using memcache? What is $wgMainCacheType and $wgParserCacheType set to?
- Note: If you are using either varnish or file cache, this might be caused by phab:T26575 Bawolff (talk) 22:17, 24 March 2020 (UTC)
- Each server is running ubuntu/nginx/mariadb with Mediawiki 1.34.
- Master:
$wgServer = "https://example.com"; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "wikidb"; $wgDBuser = "wiki_user"; $wgDBpassword = "mypassword";
- Slaves:
$wgServer = "https://example.com"; $wgDBservers = [ [ 'host' => "172.xx.x.xxx", 'dbname' => "wikidb", 'user' => "wiki_user", 'password' => "mypassword", 'type' => "mysql", 'flags' => DBO_DEFAULT, 'load' => 0, ], [ 'host' => "localhost", 'dbname' => "wikidb", 'user' => "wiki_user", 'password' => "mypassword", 'type' => "mysql", 'flags' => DBO_DEFAULT, 'load' => 1, ], ]; $wgDBname = "wikidb";- Each server has the same cache setup, including file cache:
$wgMainCacheType = CACHE_MEMCACHED; $wgParserCacheType = CACHE_MEMCACHED; $wgMessageCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( "127.0.0.1:11211" ); $wgSessionCacheType = CACHE_MEMCACHED; $wgUseFileCache = true; $wgCacheDirectory = '/home/PrivateCache/xxxx'; $wgFileCacheDirectory = '/home/PrivateCache/xxxx';
- I experimented with commenting out the above cache settings on all servers, but this did not solve the problem. If it matters, the memcached servers do not communicate across regions. I narrowed down the steps to reproduce a little. If I load a random image while on a slave server, then add any number of categories everything works as expected. If I delete and add a category at the same time, that is when a null edit is necessary to get the image to show up. From looking at other user's edits, images are not appearing in categories after initial upload either. T0lk (talk) 02:08, 25 March 2020 (UTC)
- This issue has been resolved, thanks to help from User:Edward_Chernenko. He suggested adding to LocalSettings:
$wgDebugLogGroups['DeferredUpdates'] = '/path/to/writable/logfile.txt';
- Which began showing the following error:
2020-04-08 20:37:51 ip-address mydatabase: Deferred update MWCallableUpdate_MediaWiki\Storage\DerivedPageDataUpdater::doUpdates failed: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: SHOW MASTER STATUS Function: Wikimedia\Rdbms\DatabaseMysqlBase::getMasterPos Error: 1227 Access denied; you need (at least one of) the SUPER, REPLICATION CLIENT privilege(s) for this operation (private-ip)
- So we found the problem was with the mysql user on the master server not having the replication client privileges. Everything else was working without this privilege, I guess this is the only time/place where Mediawiki queries SHOW MASTER STATUS? T0lk (talk) 17:39, 9 April 2020 (UTC)
Expand collapsed div when linked to anchor
Would this be possible? For this page here, I have several interviews inside collapsed divs: https://jojowiki.com/Interview_Archive
I'd like them to expand automatically when a specific interview anchor is linked to.
I tried adding this solution: Project:Support desk/Flow/2014/03#h-[RESOLVED]_Expand_collapsed_elements_by_anchor-2014-03-24T16:01:00.000Z to my Common.js but it doesn't seem to do anything.
Thanks. Vishkujo (talk) 20:26, 24 March 2020 (UTC)
Block access of creating new articles among ip address user
Hi guys, I'm one of sysop in Malay Wikipedia and we had done a vote about this matter. Before I do an application about it in meta, I would like to learn a bit about configurations in mediawiki which is related to the matter. Would someone suggest me links to the related-matter? Thank you! CyberTroopers (talk) 15:12, 25 March 2020 (UTC)
- I think this is the page you want: Manual:Preventing access. T0lk (talk) 19:04, 25 March 2020 (UTC)
- Thank you CyberTroopers (talk) 19:09, 25 March 2020 (UTC)
- Note, that in wikimedia, there are various configs related to this beyond what the standard documentation mentions.
- In particular:
- enwiki and fawiki allow everyone to create pages in the draft namespace (but not other namespaces)
- Some wikis restrict either (or both) createpage and createpagemainns rights
- In any case, don't worry too much about the technical details, when you file a request in phabricator, whomever processes your request will sort out the technical details. Bawolff (talk) 07:45, 26 March 2020 (UTC)
- Our proposal is to block "createepagemain" only which is only subject to the creation of articles in the main namespace. A meta admin had helped us to create the task in Phabricator. Thank you for all information given! CyberTroopers (talk) 10:02, 26 March 2020 (UTC)
New Wiki, Page names have underscore - How to fix?
When I install a clean/new version of MediaWiki every new page I create inserts an underscore in spaces of page name links on a page. ("This Page" becomes "This_Page")
I understand this is how it it is supposed to be for the URLs but on other wikis I never see the underscore in links on the page. I remember way back when I installed my first MediaWiki wiki, I had found a way to correct this but I cannot remember how, or find anything on Google about it.
To be clear, I'm not trying to stop the URL of the page from having an underscore, just the page links that are created on a page. (For example, when I write a wiki article, and then add a page link to the text "This Page" the text of the link is changed to "This_Page".)
Any ideas on how to change this? 2605:E000:1527:58DA:81CE:D37E:550E:CE49 (talk) 17:52, 25 March 2020 (UTC)
- What are the exact steps to "add a page link"? Malyacko (talk) 19:40, 25 March 2020 (UTC)
- I seem to recall something like this a long time ago too, is your Apache or whatever server rewriting titles using a rule? If so, can you share it here? T0lk (talk) 19:54, 25 March 2020 (UTC)
- The links on the page should be exactly what you write. If you use an underscore, it has an underscore, if you use a space, it has a space. e.g. Project:Current issues (
[[Project:Current issues]]) has a space, Project:Current_issues ([[Project:Current_issues]]) has an underscore. Bawolff (talk) 07:38, 26 March 2020 (UTC)
hi
ı have a questions 85.107.90.19 (talk) 19:53, 25 March 2020 (UTC)
- What! Regards, ZI Jony (Talk) 20:07, 25 March 2020 (UTC)
Error creating thumbnail when uploading file.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Getting the following error when uploading the file:
Error creating thumbnail: convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/562. convert: no images defined `/tmp/transform_2ee3f53320dc.jpg' @ error/convert.c/ConvertImageCommand/3282. Error code: 1
File uploads, but trying to clean up the process. Running the latest version of ImageMagick.
Any ideas to clear this error? Etaulbee (talk) 21:01, 25 March 2020 (UTC)
- Seems to only be with JPG/JPEG that I can tell... Etaulbee (talk) 21:14, 25 March 2020 (UTC)
- Have you seen this page? Manual:Errors and symptoms. There are some steps there for troubleshooting thumbnail problems. T0lk (talk) 21:29, 25 March 2020 (UTC)
- I suspect something is broken with your copy of image magick. It may be missing shared libraries, or for some reason was compiled without JPEG support.
- Try installing a new version of image magick. If compiling yourself, ensure jpeg support is enabled. Bawolff (talk) 07:35, 26 March 2020 (UTC)
- The image I'm testing is 1825x400 and I believe the default setting is 3500x3500? I installed the latest version of ImageMagick I believe - is there a way to determine if something else needs to be enabled for JPG/JPEG? Etaulbee (talk) 14:23, 26 March 2020 (UTC)
- I resolved this error by installing libjpeg9 libjpeg9-dev and then recompiling.
- Thanks! Etaulbee (talk) 16:34, 26 March 2020 (UTC)
Creating category from field value
I might be asking the wrong question or just simply be stuck on the wrong method, but if I have the field 'Star=' in my form to create a page titled Earth in the Planets category, how do I assign the page to a category of that field's value (in this case, Sol, so Category:Sol)? Of course the page itself is categorized under Planets automatically by way of the form, and I have also added the page to a category matching it's own name using the magic word PAGENAME, but I can't figure out how to call that Star field and turn it into a Category.
Thanks for helping a newb out! Ziggurat146 (talk) 06:39, 26 March 2020 (UTC)
- What is a "form" in MediaWiki? Please provide context. Is this maybe about the PageForms extension? Malyacko (talk) 11:07, 26 March 2020 (UTC)
- Yes that's right, though I think I figured it out, by using triple brackets around the field name it finally figured out what I wanted to do. Now I just have to figure out how to stop all these subcategories from showing up in a dropdown menu for pages from a specific category... 2601:283:300:6470:A11F:5F52:A1C3:1648 (talk) 20:26, 26 March 2020 (UTC)
- [[Category:{{{Star|}}}]] Jonathan3 (talk) 22:09, 28 March 2020 (UTC)
- "Now I just have to figure out how to stop all these subcategories from showing up in a dropdown menu for pages from a specific category..." Could you please describe your problem? Jonathan3 (talk) 22:11, 28 March 2020 (UTC)
- Thanks for checking back with me! And no, I still haven't sorted this one out, ha. And I am indeed using the PageForms extension for all of this, btw.
- To start, I have one category 'Star' which currently only contains two entries, 'Sol' and 'Alpha Centauri'. Each is a page and a category of the same name, which is then used to hold the pages and categories for subsequent planets.
- For example: The page 'Sol' is in Category:Stars and Category:Sol. The page 'Earth' is in Category:Planets, Category:Sol, and Category:Earth. The page 'Luna' will be in Category:Moons, Category:Earth, and Category:Luna.
- In a slightly different example, the page 'Alpha Centauri' is in Category:Stars and Category:Alpha Centauri. The page 'New Terra' is in Category:Planets, Category:Alpha Centauri, and Category:New Terra. The page 'Luna 2' is in Category:Moons, Category:New Terra, and Category:Luna 2.
- And so on and so forth.
- When creating new locations, I select a Star and then a Planet, but since the Planet selection only pulls from Category:Planets, it shows all planets in all star systems. So the second dropdown uses 'values from category=Planets' but I would like to somehow cross-reference with a second 'values from Category=STARNAME' so that it only pulls pages which match both categories.
- The final kicker for all of this is that I will have one final form for submitting new locations, which will need to be drilled down through Star>Planet>Moon. However, there is a 'None' option for moons, so in the case this is selected the form will need to recognize that the new page needs to be in Category:PLANETNAME, and not in Category:None (for the moon selection). Ziggurat146 (talk) 08:42, 29 March 2020 (UTC)
- I have a feeling that this whole thing could be redesigned (I haven't read through it in detail though). Have you had a look at Extension:Cargo? Jonathan3 (talk) 08:57, 29 March 2020 (UTC)
- Just a little, as this wiki is hosted on a third-party site that has the option to enable the Cargo extension, but I am trying to keep the structure of the wiki as 'vanilla' as possible, if that makes sense.
- As an alternative to the form with the dropdowns, I have thought about using InputBox to create quick and easy child pages, but I cannot determine a way to assign categories using an InputBox or pass parameters from the page the InputBox is on.
- To be frank, I may have spent too much time on it today and it has grown late, so I'll leave it for now as everything is coming through a bit fuzzier and it's harder to switch tracks! Ziggurat146 (talk) 09:51, 29 March 2020 (UTC)
- Definitely go for Cargo. You’re trying to create a database using categories, so might as well do it properly :-) I’ve never tried Semantic MediaWiki but that would likely work for you too. I found Cargo less daunting as it’s all in a single extension. Jonathan3 (talk) 18:02, 29 March 2020 (UTC)
500 Error when trying to begin setup
After I have installed mediawiki, and head to the starter page 'localhost/mediawiki' it presents me with a link to complete the setup the path 'localhost/mediawiki/mw-config/index.php' it presents me with a 500 error after waiting a few seconds. I am running a raspberry pi with raspbian buster installed on it, but I can switch OS if I really need to. WillDixon (talk) 12:59, 26 March 2020 (UTC)
- are there errors in your php or apache (or whatever webserver you use) error log? Bawolff (talk) 03:39, 27 March 2020 (UTC)
- Yes, there is an error in the apache2 log
- [Sat Mar 28 09:14:45.786585 2020] [php7:error] [pid 4929] [client ::1:43702] PHP Fatal error: Uncaught Error: Class 'NamespaceInfo' not found in /var/lib/mediawiki/includes/Setup.php:471\nStack trace:\n#0 /var/lib/mediawiki/includes/WebStart.php(81): require_once()\n#1 /var/lib/mediawiki/mw-config/index.php(36): require('/var/lib/mediaw...')\n#2 {main}\n thrown in /var/lib/mediawiki/includes/Setup.php on line 471, referer: http://localhost/mediawiki/ WillDixon (talk) 09:19, 28 March 2020 (UTC)
- huh.
- Can you check to make sure that all of MediaWiki's files are present. The error message seems to indicate that the file includes/title/NamespaceInfo.php is missing Bawolff (talk) 11:38, 29 March 2020 (UTC)
- The file is located in this folder, as indicated by this screenshot. https://imgur.com/a/c8YK6TI WillDixon (talk) 14:57, 29 March 2020 (UTC)
Using Google cloud?
HI, I have just paid for and installed the full version of FileZilla Client. I saw that I can connect to my Google Drive account, how do I do this? I would like to upload from my Google Drive to a local network server on my network. Thanks. DaveWillow (talk) 13:04, 26 March 2020 (UTC)
- Welcome to the support desk for the MediaWiki software. MediaWiki is not FileZilla, so you are wrong here. Malyacko (talk) 19:33, 26 March 2020 (UTC)
MWException from user preferences page (solved)
I cannot load my preferences page anymore on MW-1.31. With debugging turned on, this is what I see:
<code>
[03eff47219bf0cf2bd4fe4f2] /index.php/Spezial:Einstellungen MWException from line 193 of /var/www/html/mwiki/includes/preferences/DefaultPreferencesFactory.php: Global default 'default' is invalid for field editfont
Backtrace:
#0 /var/www/html/mwiki/includes/preferences/DefaultPreferencesFactory.php(143): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 /var/www/html/mwiki/includes/preferences/DefaultPreferencesFactory.php(1419): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 /var/www/html/mwiki/includes/specials/SpecialPreferences.php(129): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext)
#3 /var/www/html/mwiki/includes/specials/SpecialPreferences.php(86): SpecialPreferences->getFormObject(User, RequestContext)
#4 /var/www/html/mwiki/includes/specialpage/SpecialPage.php(565): SpecialPreferences->execute(NULL)
#5 /var/www/html/mwiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#6 /var/www/html/mwiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#7 /var/www/html/mwiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
#8 /var/www/html/mwiki/includes/MediaWiki.php(524): MediaWiki->main()
#9 /var/www/html/mwiki/index.php(42): MediaWiki->run()
#10 {main}
</code>
Everything else works fine. I do not recall what I did that could have triggered this behaviour. It may have started quite some time ago since I do not frequently visit my preferences page.
Does anybody have a clue? Thanks in advance for your consideration! Sm8ps (talk) 14:00, 26 March 2020 (UTC)
- Does https://phabricator.wikimedia.org/T181898 help? Malyacko (talk) 19:38, 26 March 2020 (UTC)
- is $wgDefaultUserOptions set in LocalSettings.php ? If so try removing that. Bawolff (talk) 03:38, 27 March 2020 (UTC)
- Thank you very much for your attention, @Malyacko and @Bawolff! I am sorry that I missed your responses up to now. They did not show up on the single issue page that I had open.
- Indeed, I had $wgDefaultUserOptions set with 'editfont' => 'default' which I had already checked with Manual:$wgDefaultUserOptions to be okay. Changing this to 'editfont' => 'serif' solves the issue.
- I do not understand how this fits into the bigger picture. Thanks again for your helpful ideas which got me on the right track! Sm8ps (talk) 09:32, 27 March 2020 (UTC)
Placing/Linking paragraphs from site A to site B
I'm looking for a method where I can place or link different paragraphs from site a to site b and the whole paragraph will be displayed in site B not only a link.
We need this for data consistency and maintaining only one data set but it wouldn't be sufficient if we would create an extra site just for these paragraphs.
Thanks for the help! 2001:16B8:1EC3:2500:4880:E2F7:B5D8:C4 (talk) 15:41, 26 March 2020 (UTC)
- Is this done by transclusion? 2001:16B8:1EC3:2500:4880:E2F7:B5D8:C4 (talk) 15:45, 26 March 2020 (UTC)
- maybe try Manual:$wgEnableScaryTranscluding
- Normal mw does this within one site and not between sites. See also extension:LabeledSectionTransclusion (within one site only) Bawolff (talk) 03:36, 27 March 2020 (UTC)
Installation problem
When extracting the files I get an error message telling me that file pom.properties cannot be extracted because the path is to long (error 0x80010135). If I skip the file it allows me complete the extraction but then when i try to run the exe file i get an error message telling me that A java runtime environment (JRE) or Java Development Kit (JDK) must be present in order to run papyrus. I have tried on two machines, both running latest Windows GarryGreenland (talk) 15:58, 26 March 2020 (UTC)
- Welcome to the support desk for the MediaWiki software. Is your question about MediaWiki? If not, then you are in the wrong place. Malyacko (talk) 19:32, 26 March 2020 (UTC)
Only the Vector theme has the Categories at the bottom page and I'm wondering why
I've been experimenting with Categories on my wiki, and I really like that on Wikipedia there is a table of linked categories at the bottom of the page (I would show but they rejected my screenshot). I tried replicating this on my own site, but it only shows up if you use the Vector theme. This is all well and good except that I'm also going to get a custom theme at some point, and I'm wondering what Vector has that the others don't. CatObsession (talk) 17:07, 26 March 2020 (UTC)
- What are "the others"? Where to see a public example of "a table of linked categories at the bottom of the page"? Malyacko (talk) 19:31, 26 March 2020 (UTC)
- various skins do different things. Vector, monobook & modern put it at the bottom, Timeless puts it in the left sidebar, CologneBlue puts it at the top. Its up to the skin creator where they put the category list. Bawolff (talk) 03:32, 27 March 2020 (UTC)
How to access my mediawiki site from internal address
I installed Mediawiki on a windows server and I am able to access the website locally from http://localhost/index.php?title=Main_Page
But if I try to access it outside of the server from my internal laptop, using http://hostname.domainname/wiki it doesn't work and keeps saying directory not found. I tried making changes in IIS but didn't help Samrao79 (talk) 17:17, 26 March 2020 (UTC)
- It is very hard to help without knowing which "changes in IIS" you made. There are pages like https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/mediawiki-on-iis for example. Malyacko (talk) 19:37, 26 March 2020 (UTC)
- You need to make sure that $wgServer is set correctly, and IIS virtual host config is set correctly. Bawolff (talk) 03:30, 27 March 2020 (UTC)
Création d'un fichier .ZIM
Bonjour, je m'excuse d'écrire en français mais je ne parle pas du tout anglais, j'utilise Médiawiki en local et je souhaiterais pouvoir accéder aux informations sur Kiwix, quand je ne suit pas à la maison. J'aimerai donc savoir quel est la solution pour créer un fichier .ZIM ? Sebicux (talk) 17:39, 26 March 2020 (UTC)
- Salut, https://openzim.org/wiki/Build_your_ZIM_file Malyacko (talk) 19:29, 26 March 2020 (UTC)
- Merci pour le lien. Par contre je me demande, pourquoi il n'est plus possible de créer de livre PDF ou de fichier ZIM avec cette [[Extension:Collection|extension]] ? Sebicux (talk) 16:39, 27 March 2020 (UTC)
Is there a way to change the Powered by Media Logo?
Is there a way to change the powered by Mediawiki Logo? I tried changing the image file to a different name and replacing it with another image of same name but it does nothing. Samrao79 (talk) 17:44, 26 March 2020 (UTC)
- Yes, see Manual:$wgFooterIcons T0lk (talk) 17:53, 26 March 2020 (UTC)
- I following this guide but it's very confusing, where do I find this code or put the code? I tried in localsettings but then the logo disappears. Samrao79 (talk) 14:07, 27 March 2020 (UTC)
- What code did you put in localsettings? The part you want is at the bottom. Manual:$wgFooterIcons#Site customization. T0lk (talk) 14:23, 27 March 2020 (UTC)
Unable to install Email Authorization Extension
Hello community,
After following the intallation steps on this page to the editing of the LocalSettings file I always get an HTTP ERROR 500 and I am unable to run the update script after.
I run version 1.34 and I am able to run the script without the wfLoadExtension( 'EmailAuthorization' ); line being saved in Localsettings.
Does anybody have an idea? Thank you in advance for your consideration! Dentalprojectz (talk) 20:01, 26 March 2020 (UTC)
- Please check your php error log for a more specific error message (See also How to debug) Bawolff (talk) 05:19, 28 March 2020 (UTC)
- Hi Bawolff, thank you very much, I think I got the error now:)
Dentalprojectz (talk) 10:16, 29 March 2020 (UTC)
Can log in to MediaWiki but not SEBoKwiki
I attempted to create an account on SEBoKwiki, and clicked on the Help button, which brought me to MediaWiki. I can now log in to MediaWiki but not SEBoKwiki, which indicates "Incorrect username or password entered." I've tried this twice, and received the e-mail confirmations twice, but I'm not sure why the account / log in is not crossing the wikis. Please advise. JG4SE (talk) 20:10, 26 March 2020 (UTC)
- Apologies, but this website has no formal relations with SEBoKwiki. Any account here will not be related to an account on SEBoKwiki. SEBoKwiki appears to have normal account creation disabled. AhmadF.Cheema (talk) 06:12, 27 March 2020 (UTC)
Need help on setting up the kind of website that I want out of using MediaWiki
Good Evening everyone, I already posted this on the discussion page for the front page since I could not find a way to contact the devs and did not know about this page either. So I am just going to keep the same question there and here so that I can get more answers. Anyways, I am trying to set up a website with MediaWiki on a Shared Hosting service and am getting frustrating results. First I am going to list what I want out of my website and will show the hosting details to show you guys what kinds of problems I am running into here:
- So the main objective of the website is sort of to have a database for WWII (World War Two) so that none of the information gets lost to history (It gets more complicated than that so I am just going to leave the explanation with that).
- I want to use the Visual Editor extension to create a more visual style to edit articles (which requires Parsoid) so that editors won’t have to go through the pain of using the old wiki editor and memorizing the different characters needed for specific things and so that editing the whole thing won’t look like a complete mess.
- I want to make it so that only selected accounts/people can create and edit content on the site.
- I want to be able to have some sort of forum so that people can ask questions and communicate with each other.
- I want my site to have a certain kind of style (which I know is a skin but was wondering what the best way to create one is. Also, do skins also come with the ability to customize the site to have certain functions? Because I have seen sites like halopedia which seems to be running on MediaWiki but have a lot of different kinds of functions and all that. )
- I want to create some sort of email system for my thing (although I could just maybe use another service which would be easier)
These are pretty much the main things that I want but there are some smaller things that I can ask how to do some other time as they are not mandatory right now. Here are the details for the hosting service that I use for the website just to give you guys a better understanding of my situation here:
- I am using Bluehost as the hosting service and cPanel as the file management system
- The website is currently on a shared hosting plan and the best one that I could get without spending crap tons a month.
- I used Softaculous to download MediaWiki onto my website.
One of the main things that I have been having trouble with is installing Parsoid to install the VisualEditor extension onto the site. The problem is that to install Parsoid you need Node.js which I can’t install on my hosting service because it is shared hosting. However I tried following the instructions on the page that shows you how to do it using Heroic but have been having trouble with that too.
So please any kind of help is much welcome.
Thanks, Splat
p.s. Also is there any way that I can contact the developers of MediaWiki and ask them too? TheSplatGuy (talk) 01:24, 27 March 2020 (UTC)
- hi, so parsoid is really difficult to setup on a shared host. There are fairly cheap dedicated hosts now a days, if you want VE i would strongly encourage you to shop around. There is a new php port which should make this easier but its still new and experimental.
- There are also people who provide hosting for mediawiki and setup VE for you. You loose some flexibility but it may be a lot easier. Some of these options are very cheap (or even free) if your project is the collaborative type (as opposed to a project to make some corporation richer, which usually people charge more for). Check out miraheze or shoutwiki.
- Anyways for access see manual:restricting access, extension:ConfirmAccount
- For forums, extension:Flow and extension:LiquidThreads are the two most popular. Lots of people just make a separate forum using non mediawiki software
- Skins can do all sorts of things. Often they are a combo of skin and extension
- Mediawiki has builtin email support if your host allows sending email. You can enable in LocalSettings.php
- The devs who are interested in providing help generally read this page or hang out in #mediawiki irc channel on freenode. Devs are busy people and many of them are not generally available to provide support. There is also a list of people who provide dedicated support/consulting at Professional development and consulting for a price, but usually they are very expensive.
- Hope that helps. Bawolff (talk) 03:28, 27 March 2020 (UTC)
Login required redirect
Hello! I've set up MediaWiki 1.34 on my website as a private wiki, meaning a login is required before viewing any content. When I log in, it redirect me to the Main Page, but the log in requirement is still there. I know my credentials are correct, so I can't seem to figure out why the wiki is not registering the fact that I am logged in. 2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talk) 02:25, 27 March 2020 (UTC)
- To add on, I request the page: index.php?title=Main_Page so I'm shown the "Login required" page., please log in to view other pages. When I click "log in" I am sent to index.php?title=Special:UserLogin&returnto=Main+Page. I enter my username and password and click on the login button. Then I'm sent to index.php?title=Main_Page but still shown "Login required" page
- No matter how many times I try to log in, I can't see the contents of any page. Even after refreshing or directly going to any page though the URL, it still brings me to the login page. I know my site is nowhere near capacity of storage and tooling around with cache settings in the LocalSettings.php doesn't seem to make a difference.
- I have this same issue on any browser on any device. 2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talk) 03:04, 27 March 2020 (UTC)
- when you are redirected, does mediawiki show your username in top right corner (indicated you are logged in but still getting the error vs not logged in at all)?
- just to confirm, you are not using any authentication extensions or other non standard authentication related config?
- Just to eliminate possibilities, check to see if anything is in your php error log. Also enable mediawiki debug log ($wgDebugLogFile ="somepath.txt" make sure debug file path chosen is somewhere aritable by the webserver) and post the contents from log in and redirect to a pastebin.
- You could try setting $wgSessionCacheType = CACHE_DB; in LocalSettings.php (was that one of the cache settings you tried? Usually though if that is the issue you get an error not silent failure), see if that changes anything. Bawolff (talk) 03:12, 27 March 2020 (UTC)
- Thanks for the reply @Bawolff. After logging in and being redirected, I always see "Log in" in the top-right instead of my username.
- I am not using any authentication extensions or configurations, it's a clean install of MediaWiki selected as a "private wiki".
- I have a Pastebin of the debug of what I believe is the login portion located at /2hww1rxG
- I've added $wgSessionCacheType = CACHE_DB; into my local settings. Unfortunately it likely doesn't seem to be a factor with this issue as nothing changes (even when testing on maple devices). 2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talk) 13:50, 27 March 2020 (UTC)
Unable to upgrade mediawiki 1.31.7 to 1.34.1
I am trying to upgrade mediawiki 1.31.7 to 1.34.1 on my test server with php7.2 and Mysql 5.5.
On suucessfull upgrade process, I am getting following error on visiting admin panel.
[eb786298294aef346a4e8c9b] 2020-03-27 11:45:10: Fatal exception of type "MWException"
To debug further I tried adding "error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;" in Localsetting.php file and got following error.
[e0c500e2d870114197330fe4] /mw/index.php?title=Special:UserLogin MWException from line 183 of [PATH]/includes/MagicWord.php: Error: invalid magic word 'expectunusedcategory'
Backtrace:
#0 [PATH]/includes/MagicWordFactory.php(222): MagicWord->load(string)
#1 [PATH]/includes/MagicWordArray.php(105): MagicWordFactory->get(string)
#2 [PATH]/includes/MagicWordArray.php(136): MagicWordArray->getBaseRegex()
#3 [PATH]/includes/MagicWordArray.php(281): MagicWordArray->getRegex()
#4 [PATH]/includes/parser/Parser.php(4409): MagicWordArray->matchAndRemove(string)
#5 [PATH]/includes/parser/Parser.php(1511): Parser->handleDoubleUnderscore(string)
#6 [PATH]/includes/parser/Parser.php(593): Parser->internalParse(string)
#7 [PATH]/includes/cache/MessageCache.php(1243): Parser->parse(string, Title, ParserOptions, boolean)
#8 [PATH]/includes/language/Message.php(1251): MessageCache->parse(string, Title, boolean, boolean, LanguageEn)
#9 [PATH]/includes/language/Message.php(879): Message->parseText(string)
#10 [PATH]/includes/language/Message.php(932): Message->toString(string)
#11 [PATH]/includes/htmlform/HTMLFormField.php(398): Message->parse()
#12 [PATH]/includes/htmlform/fields/HTMLTextField.php(31): HTMLFormField->__construct(array)
#13 [PATH]/includes/htmlform/HTMLForm.php(521): HTMLTextField->__construct(array)
#14 [PATH]/includes/htmlform/VFormHTMLForm.php(43): HTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)
#15 [PATH]/includes/htmlform/HTMLForm.php(371): VFormHTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)
#16 [PATH]/includes/htmlform/HTMLForm.php(348): HTMLForm->addFields(array)
#17 [PATH]/includes/htmlform/HTMLForm.php(306): HTMLForm->__construct(array, RequestContext)
#18 [PATH]/includes/specialpage/LoginSignupSpecialPage.php(670): HTMLForm::factory(string, array, RequestContext)
#19 [PATH]/includes/specialpage/AuthManagerSpecialPage.php(401): LoginSignupSpecialPage->getAuthForm(array, string)
#20 [PATH]/includes/specialpage/LoginSignupSpecialPage.php(313): AuthManagerSpecialPage->trySubmit()
#21 [PATH]/includes/specialpage/SpecialPage.php(575): LoginSignupSpecialPage->execute(NULL)
#22 [PATH]/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
#23 [PATH]/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#24 [PATH]/includes/MediaWiki.php(900): MediaWiki->performRequest()
#25 [PATH]/includes/MediaWiki.php(527): MediaWiki->main()
#26 [PATH]/index.php(44): MediaWiki->run()
#27 {main}
Please let me know what is causing this issue ?
This happens only when I upgrade 1.31.7 installation to 1.34.1
I have tried upgrading 1.30.6 installation to 1.34.0 and worked well. William1212james (talk) 11:55, 27 March 2020 (UTC)
- This error usually means that the internationalization files don't match the current version of mediawiki core (Especially languages/messages/MessagesEn.php). Can you double check that all the files are for version 1.34 and you don't have a mix of files.
- If that's not the issue, something could be broken with localization cache (Are you using any non-standard config for any of the i18n/l14n caches?). Bawolff (talk) 05:19, 28 March 2020 (UTC)
- No. languages/messages/MessagesEn.php file is not conflicted. There is no difference between previous and new file.
- >>Are you using any non-standard config for any of the i18n/l14n caches?
- no. I have used only the package which is available on mediawiki website for download. no other extra things added so far. William1212james (talk) 12:41, 28 March 2020 (UTC)
- > No. languages/messages/MessagesEn.php file is not conflicted. There is no difference between previous and new file.
- Are you saying there is no difference between version 1.31 and 1.34 of MessegesEn.php? Because that's not true. Bawolff (talk) 15:53, 28 March 2020 (UTC)
- Hi,
- Do I need to delete old language directory before extracting the latest one ? William1212james (talk) 12:53, 31 March 2020 (UTC)
- its best to delete all files before extracting the new files (except images/ extension/ and LocalSettings.php)
- If you didnt do that in the original upgrade, i would reccomend doing that for all mediawiki files, not just languages Bawolff (talk) 01:25, 1 April 2020 (UTC)
Upgrade from 0.21.1 to 0.21.4
Is there a way to get instructions to upgrade from old version to the newest stable version? 2020Lee (talk) 13:44, 27 March 2020 (UTC)
- @2020Lee: Is this question about MediaWiki? There is no 0.21.4. Are you in the wrong place? Malyacko (talk) 14:47, 27 March 2020 (UTC)
composer could not include some critical Libraries at MW 1.34.1 also
https://wiki.1if.in/wiki/%ED%8A%B9%EC%88%98:%EB%B2%84%EC%A0%84
As you can see the version page, Now I have OUTHAuth and TemplateStyles extentions but composer not include their libraries (I think this is the critical problem)
and the composer update --no-dev not works. the log:
[15:26, 27 March 2020 (UTC)]# composer update --no-dev
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies
Generating optimized autoload files
> ComposerVendorHtaccessCreator::onEvent
And that's it :( Ellif (talk) 15:26, 27 March 2020 (UTC)
- What about "composer install --no-dev"? Þjarkur (talk) 18:28, 27 March 2020 (UTC)
- Just Same. Now I will just turn off the extensions :)
- <synyaxhighlight lang="text">composer install --no-dev
> ComposerHookHandler::onPreInstall Loading composer repositories with package information Installing dependencies from lock file Nothing to install or update Generating optimized autoload files > ComposerVendorHtaccessCreator::onEvent </synyaxhighlight> Ellif (talk) 03:20, 28 March 2020 (UTC)
- The
composer install --no-devcommand, did you run it in theextensions/TemplateStylesdirectory? AhmadF.Cheema (talk) 04:23, 28 March 2020 (UTC) extensions/TemplateStylesare not worked, butextensions/OUTHAuthworked. Ellif (talk) 04:42, 28 March 2020 (UTC)- Why do you think extensions/TemplateStyles not work?
wikimedia/css-sanitizeris listed on https://wiki.1if.in/wiki/%ED%8A%B9%EC%88%98:%EB%B2%84%EC%A0%84 which is the only composer installed library that extension uses. Bawolff (talk) 05:09, 28 March 2020 (UTC) - '''Solved''' I again installed css-sanitizer with
composer require wikimedia/css-sanitizer, then deleted non-dev libraries usingcomposer update --no-dev. So It seems that the problem of TemplateStyles Extension. I was made a task in Phabricator (T243933) Ellif (talk) 05:18, 28 March 2020 (UTC) - Note that adjusting mediawiki's composer files (or any of mediawiki's files) is not a reccomended solution. You may end up with incorrect versions or errors during upgrades. Bawolff (talk) 12:21, 28 March 2020 (UTC)
The file search in my Wiki is completely broken
So you know when you're using the video editor, and you click Insert>Media and then you can either search your existing files or upload a new one? Well, the file search in mine just doesn't work. It searches a bit when you type in new stuff but it ultimately gives up after about 0.2 seconds. I'm using MediaWiki 1.34 on AWS. Extensions: Renameuser, VisualEditor, Cargo, EmbedVideo, MultimediaPlayer, ParserFunctions, Scribuntu, Capiunto, Google Analytics Integration, MobileFrontend. I'll be happy to provide any more needed information. CatObsession (talk) 16:11, 27 March 2020 (UTC)
Could not create directory "mwstore://accountcreds-backend/accountcreds-public/f/fr/fra" when trying to finalize an account via ConfirmAccounts
As per the title, I've been getting the error: Could not create directory "mwstore://accountcreds-backend/accountcreds-public/f/fr/fra".
This happens whenever I try to confirm an account. It shows up and takes me to the account creation page, but when I try to create an account, it simply throws that error and takes me back to the ConfirmAccounts page. I was previously on MediaWiki 1.32, using an older version of the plugin. The problem still happened there, so I decided to upgrade to the latest MediaWiki and the latest ConfirmAccounts plugin version. This was successful, but the issue still persists.
Anything I can do? I've been looking through Extension talk:ConfirmAccount/2015#h-Could_not_create_directory_"mwstore://accountcreds-backend/accountcreds-public/w-2015-04-10T13:55:00.000Z, which seems to have the same issue, but a set of different circumstances. (also being an older question from 3 years ago)
Thanks for the help. 97.117.95.77 (talk) 20:25, 27 March 2020 (UTC)
- Typically this means the file permissions on the server are configured so mediawiki cannot create the directory. Use chmod/chown to ensure that the web server user (In debian/ubuntu this is usually www-data) has the ability to create directories where-ever you have configrued to store account credentials. Usually this is the
images/accountcredssubdirectory of the mediawiki directory. Bawolff (talk) 05:05, 28 March 2020 (UTC)
Shared database not working as expected
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying to have a shared database between 2 wikis, one old and one brand new. I have the following settings:
$wgSharedDB = 'shareDB'; # The $wgDBname for the wiki database holding the main user table
$wgSharedTables[] = array('actor', 'ipblocks', 'user_groups');
$wgSharedPrefix = ''; # The $wgDBprefix for the database. Defaults to the prefix of the current wiki if not specified
I am able to login with users from the old wiki but user_groups and ipblocks are not working as expected. If I browse through user rights for a specifc user he doesn't belong to the same user groups on the old wiki and the new wiki. Any idea what I could be doing wrong? Both wikis are running on 1.31. Mukilol2 (talk) 23:09, 27 March 2020 (UTC)
- Umm, user is not in your shared table list. I'm not sure what the effect will be, but you may have major inconsistencies in the user_id used between your wikis.
- To be clear, the actor table is related to the user table, however, it is not a replacement for it but has a different (but related) function. Bawolff (talk) 05:00, 28 March 2020 (UTC)
- @Bawolff According to the Manual:Shared database it says "By default, $wgSharedTables contains the user and user_properties tables. Adding 'actor' to it is planned.", so there is no reason to include users again? Mukilol2 (talk) 10:10, 28 March 2020 (UTC)
- my mistake. I did not know that.
- I think the issue is you cant assign an array like that. You have to do it individually or use array_merge. Try
$wgSharedTables[] = "actor"; $wgSharedTables[] = "ipblocks"; $wgSharedTables[] = "user_groups";
- Instead Bawolff (talk) 12:01, 28 March 2020 (UTC)
- Ah thanks! Individually was the solution. Mukilol2 (talk) 17:27, 28 March 2020 (UTC)
How to disable Animations
How can I disable the animation of reference tooltips? Better yet, how to disable tooltips completely? Soft animations and tooltips popping up, covering page content - all this is very annoying to people like me (hypersensitive Asperger). BTW, this animation at the lower rigth corner of this edit window is equally distracting. All this reduces accessibility for people like me. Seeing all this shit of 'modern web design' all over the internet doesn't make it better. Now a 'pop-left' came in while editing this. That's inacceptable! Cspan64 (talk) 00:01, 28 March 2020 (UTC)
- Try disabling some of the following relevant UI choices (some are specific only to the English Wikipedia):
- In Special:Preferences#mw-prefsection-gadgets:
- Browsing > Navigation popups...
- Browsing > Reference Tooltips
- Appearance > Disable animations in the interface
- In Special:Preferences#mw-prefsection-rendering: Reading preferences > Page previews. AhmadF.Cheema (talk) 04:37, 28 March 2020 (UTC)
- I can't find there any
- Browsing > ...
- and no
- Appearance > Disable animations ...
- and no
- Reading preferences > ...
Cspan64 (talk) 11:41, 28 March 2020 (UTC)- as noted, some of the options are not universal and specific only to particular MediaWiki installations. AhmadF.Cheema (talk) 09:48, 30 March 2020 (UTC)
- In Special:Preferences#mw-prefsection-gadgets:
- There is also a general problem with developers having new 'ideas' and then users having to find out how to reverse them. Cspan64 (talk) 11:36, 28 March 2020 (UTC)
MW 1.34 upgrade to MW 1.34.1
- Has anybody tested this upgrade yet? AlgorithmGG (talk) 00:38, 28 March 2020 (UTC)
- How does this question help anybody without knowing your followup question? Malyacko (talk) 06:24, 28 March 2020 (UTC)
- Of course, I've had to make a few changes. please bare with me while I summarize. I appreciate you patience. AlgorithmGG (talk) 01:13, 2 April 2020 (UTC)
- I upgraded, Nothing problem exists. Ellif (talk) 03:22, 28 March 2020 (UTC)
how to get users edit and page created details ?
I have set of user names , where i need there edit details and pages created in single query . As of now i am able to fetch only single user but not all users at a time . How can i do it ?
Thanks in advance. Ramu ummadishetty (talk) 02:51, 28 March 2020 (UTC)
- What's your current query? Bawolff (talk) 04:58, 28 March 2020 (UTC)
- My task is to display list of user details with there edit count and pages created in mobile application. Here i have list of user names where i need to track then with there edit count and pages created Ramu ummadishetty (talk) 05:47, 28 March 2020 (UTC)
- This is my query https://quarry.wmflabs.org/query/42032 . If I want users created pages count and their page names means what will be the query. Ramu ummadishetty (talk) 16:40, 30 March 2020 (UTC)
- Hello sir, as of now i don't have any query but i am using this tool which is giving only one user details but i need list of user details there edit count and pages created. Ramu ummadishetty (talk) 05:42, 28 March 2020 (UTC)
- See API, or https://quarry.wmflabs.org/, or parse database dumps, or see previous comments like Project:Support desk/Flow/2019/12#h-is_there_any_way_that_i_can_get_list_of_articles_which_are_not_in_telugu_languag-2019-12-31T11:49:00.000Z. Malyacko (talk) 14:29, 28 March 2020 (UTC)
- My previous comments are of different question sir, but in this i need edit count and pages created by list of users given by me . Ramu ummadishetty (talk) 17:27, 28 March 2020 (UTC)
- @Ramu ummadishetty On an unrelated note, you don't want to call people "sir" ever without having asked them before how they might identify. :) You could simply call people by their names. Malyacko (talk) 11:07, 29 March 2020 (UTC)
- Thanks for correcting me . Ramu ummadishetty (talk) 16:36, 30 March 2020 (UTC)
- All i want is like this sir https://xtools.wmflabs.org/ec/te.wikipedia.org/Ramu%20ummadishetty
- https://xtools.wmflabs.org/pages/te.wikipedia.org/Ramu%20ummadishetty
- I don't how xtools.wmflabs fetching data but here it fetch data of only particular user not list of users and there stats
- I need to fetch list user details with there user name at a time sir. Ramu ummadishetty (talk) 17:51, 28 March 2020 (UTC)
- This might help: Project:Support desk/Flow/2020/02#h-List_of_all_contributors,_including_IP_addresses?-2020-02-23T12:47:00.000Z. Jonathan3 (talk) 22:02, 28 March 2020 (UTC)
- Thank you sir. but is there any way that i can get user edit count, page count of 100 users at time ? can it possible to write query for it or any other alternative? Ramu ummadishetty (talk) 10:35, 29 March 2020 (UTC)
- It would be simple enough to do on a separate PHP page but I don’t know how to incorporate it into a wiki/special page.
- Maybe see how the RottenLinks extension converts its results into paginated wiki pages. Or find an extension that does something even more similar. I used to use ContributionScores. Jonathan3 (talk) 18:00, 29 March 2020 (UTC)
Page views in the past 30 days Page information
On my wiki - on the "Page information" page, for some reason, "Page views in the past 30 days Page information" always shows 0. Is there a solution to the problem? Thanks in advance. Tofiq Kərimli (talk) 19:08, 28 March 2020 (UTC)
- Extension:PageViewInfo requires special configuration to work. Its sort of specific to wikimedia's set up, and wont generally work outside of wikimedia without lots of effort. Bawolff (talk) 19:13, 28 March 2020 (UTC)
- What exactly do you mean by "without lots of effort"? Can't I achieve that?
- And what do I do to make the page statistics appear? What is the simplest, easiest way? Tofiq Kərimli (talk) 20:02, 28 March 2020 (UTC)
- > What exactly do you mean by "without lots of effort"? Can't I achieve that?
- Realistically, if you have to ask, the answer is probably no. The extension documentation page contains more details.
- > And what do I do to make the page statistics appear? What is the simplest, easiest way?
- Try using a different extension. https://www.mediawiki.org/wiki/Extension:HitCounters is probably more suited to your needs Bawolff (talk) 11:28, 29 March 2020 (UTC)
- Thanks. I downloaded and installed ( Hit Counter ) . But I do not see any results? Tofiq Kərimli (talk) 15:11, 29 March 2020 (UTC)
- I did not pay attention, now I see. At the bottom of the page. Calculates something. Thanks. Tofiq Kərimli (talk) 04:05, 1 April 2020 (UTC)
Memory leak in manjaro-kde
When you install the pipewire -0.3.1-1(0.2.7-2) package and its dependency xdg-desktop-portal-kde -8.18.3-1.3(5.18.3-1.2), a memory leak occurs in Manjaro-KDE. 185.54.179.164 (talk) 07:34, 29 March 2020 (UTC)
- Welcome to the support desk for the MediaWiki software. You are wrong here. For Manjaro issues you need to talk to Manjaro, not to MediaWiki. Malyacko (talk) 11:05, 29 March 2020 (UTC)
Install the Visual Editor
Hi,
I install the visual editor according to the instructions on the installation page, but I get an error php500.
The log file shows the following explanation: Fatal error: Uncaught ExtensionDependencyError: VisualEditor is not compatible with the current MediaWiki core (version 1.34.0), it requires:> = 1.35.0. in /home/cyberisr/public_html/includes/registration/ExtensionRegistry.php:334
I understand that version 1.35 has not yet been released. I would love to understand what can be done Eliya200 (talk) 10:37, 29 March 2020 (UTC)
- Do not install a stable MediaWiki version/branch (1.34) but then an unstable VisualEditor version/branch (1.35 or git master). Use the same versions/branches. See Project:Support desk/Flow/2020/03#h-VisualEditor_git_master_requires_MediaWiki_>=_1.35.0-2020-03-20T15:18:00.000Z. Malyacko (talk) 11:05, 29 March 2020 (UTC)
Sharing session between two wikis
I have been trying to setup shared database for my 2 wikis over the last 2 days. Most of the stuff seems to work but I just noticed that the sessions are not shared between the wikis. If I login on one wiki, the other wiki will auto logout.
I have my wikis installed like this:
domain.com/wiki1
domain.com/wiki2
I have the following settings:
$wgSharedDB = 'shareDB';
$wgSharedTables[] = "actor";
$wgSharedTables[] = "ipblocks";
$wgSharedTables[] = "user_groups";
$wgSharedPrefix = '';
According to the documentations in Manual:Shared database it says To share login sessions between your wikis, set $wgCookieDomain to include all subdomains under your root domain. by including $wgCookieDomain = '.example.com'; in LocalSettings.php. Is this only for subdomains since it doesn't work with the setup I have, the login/logout issue is still there, even when I have $wgCookieDomain = '.domain.com';. Any idea what I'm doing wrong? Is it even possible to share sessions with the setup I have? Mukilol2 (talk) 15:57, 29 March 2020 (UTC)
- I think that way of sharing sessions only works pre-mediawiki 1.27.
- I suspect that MediaWiki will see the other cookie has a different wiki-id, and assume the cookie does not belong to it, and ignore it. Bawolff (talk) 16:26, 29 March 2020 (UTC)
- If you set $wgSessionName to the same thing (e.g. 'wiki_session') on both wikis, and set $wgSessionCacheType to something that's shared by both wikis, it might work (haven't tested, YMMV)
- An example for session cache type that's shared on both wikis. might be something like:
$wgSessionCacheType = [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff', 'keyspace' => 'session-' ];- Assuming 'objectcache' is in your wgSharedTables. Alternatively, you can specify what server and whatnot directly to the $wgSessionCacheType config.
- Have not tested at all, YMMV Bawolff (talk) 16:37, 29 March 2020 (UTC)
Installation Stopped - MediaWiki 1.34.1
- Programmerweiterungen… erledigt
- Datenbank wird eingerichtet… erledigt
- Datentabellen werden erstellt… [780305a397d3766d4bf41acf] /mediawiki/mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1603 of D:\XAMPP\xampp\htdocs\mediawiki\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: CREATE TABLE `revision_comment_temp` ( revcomment_rev int unsigned NOT NULL, revcomment_comment_id bigint unsigned NOT NULL, PRIMARY KEY (revcomment_rev, revcomment_comment_id) ) ENGINE=InnoDB, DEFAULT CHARSET=binary
Function: Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ) Error: 1813 Tablespace for table '`wikidp`.`revision_comment_temp`' exists. Please DISCARD the tablespace before IMPORT (localhost) Backtrace: #0 D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #1 D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(4539): Wikimedia\Rdbms\Database->query(string, string) #3 D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(4474): Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL) #4 D:\XAMPP\xampp\htdocs\mediawiki\includes\installer\DatabaseInstaller.php(228): Wikimedia\Rdbms\Database->sourceFile(string) #5 D:\XAMPP\xampp\htdocs\mediawiki\includes\installer\DatabaseInstaller.php(251): DatabaseInstaller->stepApplySourceFile(string, string, boolean) #6 D:\XAMPP\xampp\htdocs\mediawiki\includes\installer\Installer.php(1624): DatabaseInstaller->createTables(MysqlInstaller) #7 D:\XAMPP\xampp\htdocs\mediawiki\includes\installer\WebInstallerInstall.php(44): Installer->performInstallation(array, array) #8 D:\XAMPP\xampp\htdocs\mediawiki\includes\installer\WebInstaller.php(270): WebInstallerInstall->execute() #9 D:\XAMPP\xampp\htdocs\mediawiki\mw-config\index.php(80): WebInstaller->execute(array) #10 D:\XAMPP\xampp\htdocs\mediawiki\mw-config\index.php(38): wfInstallerMain() #11 {main} Notice: Uncommitted DB writes (transaction from DatabaseInstaller::stepApplySourceFile) in D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php on line 4919
Notice: DB transaction writes or callbacks still pending (Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbms\Database::sourceFile( D:\XAMPP\xampp\htdocs\mediawiki/maintenance/tables.sql ), Wikimedia\Rdbm in D:\XAMPP\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php on line 4925
I've already tried to cancel all the tables in the database "wikidp" and reinstalled. Using xampp on usb-stick (1TB) as local Server 212.95.5.117 (talk) 16:51, 29 March 2020 (UTC)
- Maybe https://stackoverflow.com/questions/15694168/error-tablespace-for-table-xxx-exists-please-discard-the-tablespace-before-imp/39651666 would be helpful. Bawolff (talk) 18:49, 29 March 2020 (UTC)
Dropdown menu in Mediawiki body MW1.32
Hey all. I need some assistance with a mediawiki project. I have dug through the documentations and can't find anything that works.
I need to create a drop down on a page that has two options. I need the choice of those options to be referenced by an inputbox. For example, option 1 says PDF and option 2 says template. I need the inputbox code to reference that data in the preload section of an inputbox (IE: if they choose PDF, it references one entry; if they choose template, it references the other).
I found the template for drop down list, but I could not get it to work on MW 1.32.
Any help would be appreciated. 173.184.192.53 (talk) 18:34, 29 March 2020 (UTC)
- You'll probably need to create your own extension for this. I'm not aware of an existing one that does specifically that. Bawolff (talk) 18:47, 29 March 2020 (UTC)
- Is there any mediawiki code that can even do the dropdown? I found one on stack exchange that worked partially; it ended up creating the drop down, but if there was other things on the page, that was also inside the drop down.
- I've been experimenting with CSS to try to make a dropdown and have that be the 'data' itself, and see if that works, but haven't had any luck so far. 173.184.192.53 (talk) 18:57, 29 March 2020 (UTC)
- Do you mean that if "PDF" is selected from the dropdown list, the input box content is changed to "PDF" - and if "template" is selected from the dropdown list, the input box content is changed to "template"? I imagine you could do that with Javascript/jQuery in MediaWiki:Common.js.
- If you're having difficulty putting HTML/Javascript on pages, then you can useExtension:Widgets. Jonathan3 (talk) 19:38, 29 March 2020 (UTC)
- I am nowhere near an expert and can't really answer anything beyond this tidbit, but I believe the PageForms extension has a dropdown input that can use a 'show on select' parameter. No guarantees it does what you need, of course. 2601:283:300:6470:6CD4:196D:642C:DC2E (talk) 19:39, 29 March 2020 (UTC)
- I think, once you've split the form into divs with unique ids, the "show on select" option either hides or displays the relevant divs. Jonathan3 (talk) 19:43, 29 March 2020 (UTC)
"No registered builder available" for skin
Hey all,
I'm trying to upgrade an older pre-1.25 Mediawiki installation I had up to 1.34.1, and I've clearly missed something in migrating my custom skin over. When I try loading my site with that skin set as default, I get a "No registered builder available" exception thrown by SkinFactory.php. I've followed the steps given in the Mediawiki:Extension registration page for migrating a custom skin over, so I'm not sure what I've not included.
The site's located at rilmani.org/timaresh, but at the moment there's not much to see besides that exception itself. What am I likely missing in my custom skin? Idran (talk) 20:28, 29 March 2020 (UTC)
Wikipedia articles linked to Zotero
I wish to add links to Wikipedia on a web portal I am developing using Zotero as a “Library”
However, after linking Wikipedia articles to Zotero, and then opening the Zotero link, the Wikipedia article itself appears but the images in the article are blank but with their links retained.
After clicking on the blank photo a separate wikipedia page with the photo appears
The links below the blank photo space works
Please advise if the original wikipedia link to Zotero can retain all the photos intact ??
Thanks & regards
Stephen Holliday Accommodari (talk) 23:30, 29 March 2020 (UTC)
- Please explain what "linking Wikipedia articles to Zotero" means. Or what Zotero is. Malyacko (talk) 01:20, 30 March 2020 (UTC)
- Zotero is free, open source database software that many academics use to gather together their sources (https://www.zotero.org/). When you save a web page it tries to save a snapshot. I imagine the problem here is that the snapshot does not render the Wikipedia web page exactly as it does when viewing Wikipedia itself. When I do the same thing, it works fine though... I use Chrome and the Zotero plugin/extension.
- Anyway, this is probably a question for the Zotero forum. Jonathan3 (talk) 13:32, 30 March 2020 (UTC)
VisualEditor insert
Hello everyone!
I use the VisualEditor to edit articles in my instance of MediaWiki. I realized that it is not possible to insert code blocks and other things aren't possible too. Do I have to activate something? I checked the user guide and searched the internet. No solution until now. To compare my possibilities:
The insert options I should have in my installation [2].
I got: Media, Template, Table, Comment, Gallery and my signature.
I use MediaWiki 1.33 and VisualEditor 0.1.1.
Thank you for your thoughts. TipTopf13 (talk) 13:24, 30 March 2020 (UTC)
Can you help with improving the Coronavirus epidemic maps?
Hi all
The maps on the Coronavirus pandemic articles need some technical help which has been documented on phabricator, I think that some of the tasks relate to the graph extension, please take a look.
* https://phabricator.wikimedia.org/T248707
If you're not able to assist with any of the tasks please still subscribe to it and award a token, it will help people understand there is community support for fixing these issues.
Thanks very much John Cummings (talk) 15:24, 30 March 2020 (UTC)
Fatal Error: DBQuery Error
It is no longer possible to search in my wiki. Every time I make a search request, this "[664e498b2689448d3906fb08] 2020-03-30 11:26:08: Fatal Error „Wikimedia\Rdbms\DBQueryError“ is promted.
The problem literally came out of nowhere. The last wiki maintenance I did was to update to 1.31.5 four-five months ago. The last extension I installed was in October. Since then, nothing but Server updates happend.
Only the wiki search (mediawiki vanilla, no fancy stuff) is affected. Everything else works. 79.207.29.241 (talk) 20:11, 30 March 2020 (UTC)
- For a more detailed error report, in LocalSettings.php, set:For further details, see Manual:How to debug (Setting up a debug log file). AhmadF.Cheema (talk) 09:32, 31 March 2020 (UTC)
$wgShowExceptionDetails = true; $wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
- It's SQL Error 144. The SearchIndex table crashed. 79.207.30.252 (talk) 09:54, 31 March 2020 (UTC)
[cc53ec339a2ab564675b5c0d] /mediawiki/index.php?search=rune&title=Spezial%3ASuche&fulltext=Suchen Wikimedia\Rdbms\DBQueryError from line 1457 of /var/lib/mediawiki/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 page_id,page_namespace,page_title FROM `TMApage`,`TMAsearchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+rune ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20Function: SearchMySQL::searchInternalError: 144 Table './TMA_wiki/TMAsearchindex' is marked as crashed and last (automatic?) repair failed (localhost)Backtrace:#0 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)#1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)#2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)#3 /var/lib/mediawiki/includes/search/SearchMySQL.php(191): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)#4 /var/lib/mediawiki/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)#5 /var/lib/mediawiki/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)#6 /var/lib/mediawiki/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)#7 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(565): SpecialSearch->execute(NULL)#8 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)#9 /var/lib/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)#10 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()#11 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()#12 /var/lib/mediawiki/index.php(42): MediaWiki->run()#13 {main}- Full Errorlog 79.207.30.252 (talk) 10:06, 31 March 2020 (UTC)
- try running the sql command
REPAIR TABLE TMAsearchindex;if you dont know where to run sql commands from you can use the sql.php] script. - If this happens a lot,try converting TMAsearchindex to innodb. Bawolff (talk) 10:38, 31 March 2020 (UTC)
- Thanks, the repair worked.
- Weird thing is, the database is already InnoDB (as specified in DBTableOptions). Don't know what happened there.
- Thanks for your help. 79.207.30.252 (talk) 11:01, 31 March 2020 (UTC)
- for compatibility with old mysql the searchindex table is always created as myisam regardless of wgDBTableOptions Bawolff (talk) 01:23, 1 April 2020 (UTC)
Downloading MediaWiki - is it right for my uses?
I have an iMac that runs macOS Mojave Version 10.14.6 with the 3 GHz Intel Core i5 Processor, 8 GB 2667 MHz DDR4 Memory and Radeon Pro 560X 4 GB Graphics. I've really enjoyed the way MediaWiki presents articles and resources on the various Wikimedia Foundation projects. So, I'd like to find out if I can run MediaWiki on my computer, prepare resources in the course of my research and upload them to one or more of the projects I currently contribute to when it's appropriate to put them into the Public Domain. Currently, I contribute primarily to Wikiversity but have run into a political problem that I cannot solve so I'd like to try preparing resources from home. Can you help? Marshallsumter (talk) 04:19, 31 March 2020 (UTC)
- Wouldn't unpublished Draft articles (like Wikipedia:Drafts or in your personal userspace) work for you? AhmadF.Cheema (talk) 09:35, 31 March 2020 (UTC)
- yes, you can setup mediawiki on your mac and your mac is more than powerful enough. See Download
- There are also groups that offer mediawiki hosting (ususlly for a fee, although some like miraheze or shoutwiki are free) if you want your own private wiki but dont want to do the setup yourself.
- If you run into trouble setting things up or any of the instructions are confusing dont hesitate to ask for clarification. Bawolff (talk) 10:33, 31 March 2020 (UTC)
- I've downloaded MediaWiki 1.34.1, it's self-installed, then Apache 2.4.43, which self-installed, into the same folder with MediaWiki 1.34.1, but after PHP 7.4.4 downloaded as "php-7.4.4.tar.gz.download" and Keys found GPG Keys on php Downloads states "The releases are tagged and signed in the PHP Git Repository. The following official GnuPG keys of the current PHP Release Manager can be used to verify the tags:" but the PHP: Git Access for PHP 7.4 is something called "bison" on [./Ftp://ftp.gnu.org/pub/gnu/ the GNU FTP site]. It wants to open "Finder"? Is this correct? Marshallsumter (talk) 18:48, 4 April 2020 (UTC)
- For apache and php you probably want to download a different way. I would reccomend using MAMP or brew to install them. Bawolff (talk) 18:57, 4 April 2020 (UTC)
- Okay! I have downloaded MAMP_MAMP_PRO_5.7.pkg which self-installed into my Applications folder. I've moved Mediawiki-1.34.1 into the MAMP folder. My guess for next is to download the following extensions: type, dom, fileinfo, iconv, json, mbstring, and xml. Is this correct? Marshallsumter (talk) 19:16, 5 April 2020 (UTC)
- I want to use my web browser internally to view a resource such as is modified by edit source but nothing in MAMP or Mediawiki seems accessible. MAMP's "Open WebStart page" takes me to url=http://localhost:8888/MAMP/?language=English but is this local to MAMP or inside my computer? Marshallsumter (talk) 16:21, 8 April 2020 (UTC)
DPL linksfrom selector to pass through redirects
I have been using the Dynamic Page List (third-party) extension for its very useful combination of links and notlinksfrom selectors, as in
Also involved: {{#dpl:
| debug=1
| namespace=
| notlinksfrom={{PAGENAME}}
| linksto={{PAGENAME}}
| reset=links
| notcategory=none
| mode=inline
| ordermethod=title
| redirects=exclude
| suppresserrors=true
}}
Which allows me to see pages that reference a page, but are not referenced back. My site has a lot of 'A wrote B' and 'B was written by A' pages, and this allows me to spot omissions. But this is fooled by redirects, so if A has a penname C, then I might might have 'A wrote B' and 'B was written by C', when the links pair up, but the DPL query reports an inconsistency. due to the C->A redirect
Does anyone know how I can get DPL to look through the redirects? The syntax is part of the DPL extended set which is supported by DPL (Third Party) and DynamicPageList3. I use former, but the links to its documentation from https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)#Extended_DPL_functionality to semeb.com are broken, and while the software is still getting updates, I can't see where it is supported from. I have redirects=exclude to avoid the pennames being mentioned, but I want them followed.
Its all rather a muddle.
To illustrate the problem http://fancyclopedia.org/John_Wyndham has an alias http://fancyclopedia.org/index.php?title=John_Beynon_Harris&redirect=no under which he attended http://fancyclopedia.org/Bombcon, but the 'Also involved' bit of his page does not mention Bombcon Vicarage (talk) 08:54, 31 March 2020 (UTC)
403-code on permission errors
When the permission error is given, the http-code of the response should be 403, I currently get 200.
Looking around in the code, it feels like OutputPage->showPermissionsErrorPage() should be setting the 403-code. Puggan.sundragon (talk) 15:13, 31 March 2020 (UTC)
- MediaWiki: 1.34.0
- PHP: php:7.3-apache (7.3.6)
- Database: mariadb:10 (10.4.12) Puggan.sundragon (talk) 15:21, 31 March 2020 (UTC)
- My patch:
- https://raw.githubusercontent.com/puggan/Jamboree21/565a4c426105429ebf4b504c57d0d8c3f7fd8854/wiki/patches/OutputPage-403.patch Puggan.sundragon (talk) 16:38, 31 March 2020 (UTC)
- for bug reports please file in https://phabricator.wikimedia.org
- You can submit patches in Gerrit, although there might be an existing task for this with some reason why its not done. Bawolff (talk) 01:38, 1 April 2020 (UTC)
Ability to write extensions in other languages with a PHP "connector"
Hi, I am quite new to the MediaWiki community, and would love to learn more about the options with regards to creating new MediaWiki extensions:
Specifically, is there a feature to create a non PHP extension (i.e. a C++ task or a Python script) and use some sort of PHP connector (still fleshing this thought out) to appropriately meet the API required by the MediaWiki.
From a language perspective, from my understanding, Python etc may only be called through an `exec` call from PHP. From the MediaWiki side, I have gotten a chance to read through some documentation on developing extensions here, here, and have also look through past tasks / feature requests but haven't been able to find an answer to this.
I understand there are various client libraries in other languages, and my question is specifically with regards to extensions. Is there a precedence for this or are there some best practices / examples of this happening?
Apologies in advance if this is a silly question and is completely unfeasible. 69.191.241.48 (talk) 15:13, 31 March 2020 (UTC)
- Its generally discouraged in extensions aimed at Wikimedia wikis (unless you have a good reason).
- Most exceptions use shelling out (exec). Some notable examples are EasyTimeline, scribunto (in luastandalone mode) or SyntaxHighlight.
- Sometimes people develop features that call out to separate apis not part of mediawiki, most commonly written in node.js. See RestBase, mathoid, Parsoid.
- The last option is to write a php extension and then use it in your mediawiki extension. The only example i am aware of is Scribunto when using luasandox as the lua engine Bawolff (talk) 01:37, 1 April 2020 (UTC)
- @Bawolffthanks for the feedback. I just want to clarify a few things that you said:
- may I know why extensions for MediaWiki in other languages are discouraged? Is that due to PHP language or something related to the MediaWiki architecture?
- when you say "call out to separate APIs not part of MediaWiki", does that mean, an extension would be making separate HTTP calls (for example) to a standalone Node.js server (I see in the example of Parsoid there's a separate Parsoid Node.js service that needs to be running)? Are there any pitfalls in taking this approach?
- to make sure I'm fully understanding, for the last option do you mean that a PHP extension can make a call out to a non PHP extension? In the example of Scribunto (in PHP), I can see that it can use LuaSandbox (in C). In the case of LuaSandbox, where can I learn more about the interfaces necessary to work as a non-PHP extensions (from my very basic searching, I found something called Zend although I'm not sure whether it's relevant here)? Nnaka1 (talk) 13:59, 2 April 2020 (UTC)
- For 1 - i think its a bit of preference. If you have a proliferation of languages it can be difficult to manage. It can also be hard to integrate with mediawiki if you have to shell out all the time. Generally calling other (rest) apis over https is considered much better than executing a separate binary.
- 2 yes. All approaches have pros and cons. Pitfalls tend to be it can be difficult to integrate closely (especially if you need to maintain state). All approaches have pros and cons.
- 3. When i say php-extension, i mean an extension to php (written in c), not an extension written in php. But yes, you would have to lookup the php/zend docs for that. Writing php extensions are a somewhat heavier approach, so people usually only do that if they have a good reason to. Bawolff (talk) 14:49, 2 April 2020 (UTC)
Upgrade to version 1.34.1 - No styles?!
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I upgraded to 1.34.1 and now my wiki has no styles (i.e. missing styles)
https://theonlysheet.com/wiki/
I scoured the net for answers but came up empty; There is talk about the .htaccess having some issues with rewrites, but i see no such rules in my site's .htaccess file!
What am I missing?!
THANK you for your help!
The Only Sheet TheOnlySheet (talk) 21:05, 31 March 2020 (UTC)
- looks like it is due to the error message at https://theonlysheet.com/wiki/load.php?lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.skinning.interface%7Cskins.monobook.styles&only=styles&skin=monobook
- It is not due to rewrite rules or .htaccess (issues with those can cause issues that look similar so it was a good thought).
- Is your version of the monobook skin the version that corresponds to your version of mediawiki? Did you happen to upgrade the wiki but not the skin?
- Can you set $wgShowExceptionDetails=true; Bawolff (talk) 01:31, 1 April 2020 (UTC)
Timeless Skin, Tools en Sidebar
Hi. On a wiki I'm using the Timeless Skin. Because I have quite a few links on the sidebar. I would like to move the "Tools block" to the right and another block from the CreateRedirect extension. Is that possible? Hispano76 (talk) 21:07, 31 March 2020 (UTC)
- Yes, you can edit the CSS files to make changes yourself. Malyacko (talk) 13:12, 1 April 2020 (UTC)
- I'm sorry, an example is needed Hispano76 (talk) 19:59, 1 April 2020 (UTC)
- lets put it as its technically possible but rather difficult. Bawolff (talk) 00:47, 3 April 2020 (UTC)