Project:Support desk/Flow/2023/08
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. |
Upgrade 1.27.1 to 1.40.0
Due to reasons unrelated to mediaWiki, I had to upgrade http2.2 to http2.4, and mod_php, to fcgi php82. Many things broke, so I am going through and fixing things up.
With mediawiki, it was running 1.27.1, and I upgraded to 1.35.11 as the documentation suggested, then 1.40.0. I don't think this went well, it did spit out warnings regarding the mysqldb
I also had to change
#before
#$wgArticlePath = "$wgScript/$1";
#now
$wgArticlePath = "$wgScript?title=$1";
Due to php change. I am concerned this will affect the database?
Anyway, at the end of it, it finally responds, but I do get the message
There is currently no text in this page.
For all pages, I can view "All pages" fine, just each one claims no text.
If I run php update.php it just says its happy:
Your composer.lock file is up to date with current dependencies!
What is my next step in debugging the issue? Lundman2 (talk) 03:35, 1 August 2023 (UTC)
- Which upgrade guide (full URL) are you following? Malyacko (talk) 10:04, 1 August 2023 (UTC)
- Essentially Manual:Upgrading, I know I had to remove the require of DefaultSettings.php which is listed on there. I unpacked 40, made my way to /mw-config, it told me to go 35 first, so repeated it with 35 using /mw-config, then back to 40. Lundman2 (talk) 00:21, 2 August 2023 (UTC)
Hauppauge WinTV-quadHD (DVB-T/T2/C)
I have discovevered today that it does not work in Ubuntu 23.04 using the newest kernel 6.4.3 Mrzilla1 (talk) 04:01, 1 August 2023 (UTC)
- Thx, but you are likely on the wrong website. This website is a support forum for the MediaWiki wiki software and knows nothing about DVB. —TheDJ (Not WMF) (talk • contribs) 08:13, 1 August 2023 (UTC)
Cannot login
RESOLVED | |
Installed the extension and fixed this error |
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.
内部错误
[79dbba48cb82e95be17c1db5] 2023-08-01 05:04:20: 类型“BadMethodCallException”的致命异常
full error log download link:https://mpimg.cn/down.php/62afdc43f4c388132ba0a240dea1ba40.log&minibai DanSchlosser (talk) 05:11, 1 August 2023 (UTC)
- See the error message:
- BadMethodCallException: Encryption is not available. You really should install the PHP OpenSSL extension. But if you really can't and you're willing to accept insecure storage of sensitive session data, set $wgSessionInsecureSecrets = true in LocalSettings.php to make this exception go away. Malyacko (talk) 10:04, 1 August 2023 (UTC)
why translations Int are not fetched from translatewiki ?
on Api Action page, at paragraph 4.1 on meta submodules -> https://www.mediawiki.org/wiki/Wikibase/API/fr#Sous-modules_de_Meta there is a lot of calls to template Int, some are translated other none. Among none, ⧼Apihelp-query+wikibase-description⧽ has the FR equivalent in translatewiki.net under -> https://translatewiki.net/wiki/MediaWiki:Apihelp-query%2Bwikibase-description/fr as "Obtenir des informations sur le client Wikibase et le référentiel Wikibase associé." of -> https://translatewiki.net/wiki/MediaWiki:Apihelp-query%2Bwikibase-description/en as "Get information about the Wikibase client and the associated Wikibase repository.".
so why do the substitutions not occur ? Thanks.
Christian 🇫🇷 FR (talk) 07:45, 1 August 2023 (UTC)
Issues upgrading 1.19.4 to 1.40.0
RESOLVED | |
I missed the 1.35.11 upgrade step. |
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,
we have a rather old MW instance here, running with PHP 5. I decided to upgrade it and give it PHP 8.2. The database is MySQL with MySQL 5.7.
So, I replaced the mediawiki files and discarded the LocalSettings (because it gave me an eception). I decided to run the built in webinstaller. It detected a existing database and offered an upgrade. But the upgrader reports several issues. indices and whole tables seem to be missing.
Running the upgrade with the original codebase gives me:
...collations up-to-date.
Adding rev_actor field to table revision...
An error occurred:
Error 1091: Can't DROP 'page_user_timestamp'; check that column/key exists
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/wiki.intern/mediawiki/maintenance/archives/patch-revision-actor-comment-MCR.sql )
Query: ALTER TABLE `revision`
DROP INDEX user_timestamp,
DROP INDEX page_user_timestamp,
DROP INDEX usertext_timestamp,
DROP COLUMN rev_text_id,
DROP COLUMN rev_comment,
DROP COLUMN rev_user,
DROP COLUMN rev_user_text,
DROP COLUMN rev_content_model,
DROP COLUMN rev_content_format,
ADD COLUMN rev_comment_id bigint unsigned NOT NULL default 0 AFTER rev_page,
ADD COLUMN rev_actor bigint unsigned NOT NULL default 0 AFTER rev_comment_id,
ADD INDEX rev_actor_timestamp (rev_actor,rev_timestamp,rev_id),
ADD INDEX rev_page_actor_timestamp (rev_page,rev_actor,rev_timestamp)
Adjusting the migration reports error in another one, adjusting this as well reports error in another one and so on. Until whole missing tables (like the site
table.
Am I missing something or do I need to make manual changes to the database?
The current database layout is: https://pastebin.com/FDc42ixC
Thanks in advance! KluthR (talk) 08:10, 1 August 2023 (UTC)
- Which upgrade guide (full URL) are you following? Malyacko (talk) 10:02, 1 August 2023 (UTC)
- Oh my.. That was the issue. I skipped the step 1.35.11. Upgrading first ot it made it work. Iam on 1.40.0 now without issues. KluthR (talk) 06:53, 2 August 2023 (UTC)
Error Could not connect to the database. Connector returned error message: Could not connect to database: Access denied for user 'root'@'localhost' (using password: YES)
Error
Could not connect to the database. Connector returned error message: Could not connect to database: Access denied for user 'root'@'localhost' (using password: YES)
every time i try to install on my [c i get this error 87.200.248.46 (talk) 09:33, 1 August 2023 (UTC)
Updated to 1.40 successfully, but does not reflect in Special:Version
I'm confused.
I followed Manual:Upgrading and have two folders under /var/www now: /var/www/mediawiki-1.39.0/ and /var/www/mediawiki-1.40.0/
I ran maintenance/update.php from inside the 1.40.0 folder, and the script (except for extention HideSidebar) ran smoothly, without error.
When I go to Special:Version, I still see "1.39.0" there.
I do have a symbolic link /var/www/mediawiki/ pointing to /var/www/mediawiki-1.40.0/, and that is the folder that serves the pages...
Should I *remove* the old version first, or what am I doing wrong?
The wiki is still up, and running fine... Techcare.noc (talk) 12:38, 1 August 2023 (UTC)
- The update.php "log" as captured:
- MediaWiki 1.40.0 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for techCARE
- Depending on the size of your database this may take a while!
- Abort with control-c in the next five seconds (skip this countdown with --quick) ...0
- ...collations up-to-date.
- ...have rev_actor field in revision table.
- ...watchlist_expiry table already exists.
- ...page_restrictions field does not exist in page table, skipping modify field patch.
- ...index ipb_address_unique already set on ipblocks table.
- ...archive table does not contain ar_text_id field.
- ...lc_lang is up-to-date.
- ...ll_lang is up-to-date.
- ...site_language is up-to-date.
- ...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
- ...ipb_address_unique index up-to-date.
- ...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql.
- ...site_global_key in table sites already modified by patch patch-sites-site_global_key.sql.
- ...iwl_prefix in table iwlinks already modified by patch patch-extend-iwlinks-iwl_prefix.sql.
- ...rd_title in table redirect already modified by patch patch-redirect-rd_title-varbinary.sql.
- ...pl_title in table pagelinks already modified by patch patch-pagelinks-pl_title-varbinary.sql.
- ...tl_title field does not exist in templatelinks table, skipping modify field patch.
- ...il_to in table imagelinks already modified by patch patch-imagelinks-il_to-varbinary.sql.
- ...ll_title in table langlinks already modified by patch patch-langlinks-ll_title-varbinary.sql.
- ...iwl_title in table iwlinks already modified by patch patch-iwlinks-iwl_title-varbinary.sql.
- ...cat_title in table category already modified by patch patch-category-cat_title-varbinary.sql.
- ...qc_title in table querycache already modified by patch patch-querycache-qc_title-varbinary.sql.
- ...qcc_title in table querycachetwo already modified by patch patch-querycachetwo-qcc_title-varbinary.sql.
- ...wl_title in table watchlist already modified by patch patch-watchlist-wl_title-varbinary.sql.
- ...user_last_timestamp in table user_newtalk already modified by patch patch-user_newtalk-user_last_timestamp-binary.sql.
- ...pt_title in table protected_titles already modified by patch patch-protected_titles-pt_title-varbinary.sql.
- ...ir_type in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_type.sql.
- ...index wl_namespace_title already set on watchlist table.
- ...job_title in table job already modified by patch patch-job-job_title-varbinary.sql.
- ...job_timestamp in table job already modified by patch patch-job_job_timestamp.sql.
- ...job_token_timestamp in table job already modified by patch patch-job_job_token_timestamp.sql.
- ...wl_notificationtimestamp in table watchlist already modified by patch patch-watchlist-wl_notificationtimestamp.sql.
- ...role_id in table slot_roles already modified by patch patch-slot_roles-role_id.sql.
- ...model_id in table content_models already modified by patch patch-content_models-model_id.sql.
- ...cl_to in table categorylinks already modified by patch patch-categorylinks-cl_to-varbinary.sql.
- ...log_title in table logging already modified by patch patch-logging-log_title-varbinary.sql.
- ...us_timestamp in table uploadstash already modified by patch patch-uploadstash-us_timestamp.sql.
- ...index up_property already set on user_properties table.
- ...index site_global_key already set on sites table.
- ...index log_type_time already set on logging table.
- ...fa_name in table filearchive already modified by patch patch-filearchive-fa_name.sql.
- ...oi_name in table oldimage already modified by patch patch-oldimage-oi_name-varbinary.sql.
- ...exptime in table objectcache already modified by patch patch-objectcache-exptime-notnull.sql.
- ...index ar_name_title_timestamp already set on archive table.
- ...img_name in table image already modified by patch patch-image-img_name-varbinary.sql.
- ...img_timestamp in table image already modified by patch patch-image-img_timestamp.sql.
- ...index si_key already set on site_identifiers table.
- ...rc_title in table recentchanges already modified by patch patch-recentchanges-rc_title-varbinary.sql.
- ...rc_timestamp in table recentchanges already modified by patch patch-recentchanges-rc_timestamp.sql.
- ...rc_id in table recentchanges already modified by patch patch-recentchanges-rc_id.sql.
- ...index rc_new_name_timestamp already set on recentchanges table.
- ...ar_title in table archive already modified by patch patch-archive-ar_title-varbinary.sql.
- ...page_title in table page already modified by patch patch-page-page_title-varbinary.sql.
- ...user_name in table user already modified by patch patch-user_table-updates.sql.
- ...index rev_page_timestamp already set on revision table.
- ...have modtoken field in objectcache table.
- ...index oi_timestamp already set on oldimage table.
- ...index page_name_title already set on page table.
- ...index ct_rc_tag_id already set on change_tag table.
- ...page_restrictions table does not contain pr_user field.
- ...fa_id in table filearchive already modified by patch patch-filearchive-fa_id.sql.
- ...img_major_mime in table image already modified by patch patch-image-img_major_mime-default.sql.
- ...linktarget table already exists.
- ...rev_page_id key doesn't exist.
- ...pr_page in table page_restrictions already modified by patch patch-page_restrictions-pr_page.sql.
- ...pp_page in table page_props already modified by patch patch-page_props-pp_page.sql.
- ...ir_value in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_value.sql.
- ...have tl_target_id field in templatelinks table.
- ...user_autocreate_serial table already exists.
- ...ir_ipb_id in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_ipb_id.sql.
- ...ipb_id in table ipblocks already modified by patch patch-ipblocks-ipb_id.sql.
- ...user_editcount in table user already modified by patch patch-user-user_editcount.sql.
- Running maintenance/migrateRevisionActorTemp.php...
- revision_actor_temp does not exist, so nothing to do.
- done.
- ...revision_actor_temp doesn't exist.
- Running maintenance/updateRestrictions.php...
- Migration is not needed.
- done.
- ...page table does not contain page_restrictions field.
- ...templatelinks table has already been migrated.
- ...tl_namespace field does not exist in templatelinks table, skipping modify field patch.
- ...templatelinks table does not contain tl_title field.
- ...have el_to_path field in externallinks table.
- ...ajaxpoll_info table already exists.
- ...have poll_show_results_before_voting field in ajaxpoll_info table.
- ...ajaxpoll_vote table already exists.
- ...have poll_actor field in ajaxpoll_vote table.
- Running ../maintenance/migrateOldAJAXPollUserColumnsToActor.php...
- done.
- ...ajaxpoll_vote table does not contain poll_user field.
- ...echo_event table already exists.
- Running extensions/Echo/maintenance/updateEchoSchemaForSuppression.php...
- No event_page_title field, skipping migration from event_page_title to event_page_id
- done.
- ...echo_event table does not contain event_page_namespace field.
- ...echo_event table does not contain event_page_title field.
- ...echo_notification table does not contain notification_bundle_base field.
- ...echo_notification table does not contain notification_bundle_display_hash field.
- ...echo_notification_user_hash_timestamp key doesn't exist.
- ...echo_push_provider table already exists.
- ...echo_push_subscription table already exists.
- ...echo_push_topic table already exists.
- ...index eps_user already set on echo_push_subscription table.
- ...echo_push_subscription_token key doesn't exist.
- ...index eps_token already set on echo_push_subscription table.
- ...have eps_topic field in echo_push_subscription table.
- ...echo_unread_wikis table already exists.
- ...euw_wiki in table echo_unread_wikis already modified by patch /var/www/mediawiki-1.40.0/extensions/Echo/sql/mysql/patch-increase-varchar-echo_unread_wikis-euw_wiki.sql.
- ...mathoid table already exists.
- ...mathlatexml table already exists.
- ...have math_png field in mathoid table.
- ...abuse_filter table already exists.
- ...abuse_filter_log table does not contain afl_log_id field.
- ...have afl_filter_id field in abuse_filter_log table.
- ...index afl_ip_timestamp already set on abuse_filter_log table.
- ...index afl_wiki_timestamp already set on abuse_filter_log table.
- ...skipping: index filter_timestamp doesn't exist.
- ...abuse_filter_log table does not contain afl_filter field.
- ...discussiontools_subscription table already exists.
- ...discussiontools_items table already exists.
- ...linter table already exists.
- ...have linter_namespace field in linter table.
- ...have linter_template field in linter table.
- ...linter_params in table linter already modified by patch /var/www/mediawiki-1.40.0/extensions/Linter/sql/patch-linter-fix-params-null-definition.sql.
- ...oathauth_users table already exists.
- ...have module field in oathauth_users table.
- ...oathauth_users table does not contain secret field.
- ...site_stats is populated...done.
- Populating rev_len column
- ...doing rev_id from 1 to 200
- ...doing rev_id from 201 to 400
- ...doing rev_id from 401 to 600
- ...doing rev_id from 601 to 800
- ...doing rev_id from 801 to 1000
- ...doing rev_id from 1001 to 1200
- ...doing rev_id from 1201 to 1400
- ...doing rev_id from 1401 to 1600
- ...doing rev_id from 1601 to 1800
- ...doing rev_id from 1801 to 2000
- ...doing rev_id from 2001 to 2200
- ...doing rev_id from 2201 to 2400
- ...doing rev_id from 2401 to 2600
- ...doing rev_id from 2601 to 2800
- ...doing rev_id from 2801 to 3000
- ...doing rev_id from 3001 to 3200
- ...doing rev_id from 3201 to 3400
- ...doing rev_id from 3401 to 3600
- ...doing rev_id from 3601 to 3800
- ...doing rev_id from 3801 to 4000
- ...doing rev_id from 4001 to 4200
- ...doing rev_id from 4201 to 4400
- ...doing rev_id from 4401 to 4600
- ...doing rev_id from 4601 to 4800
- ...doing rev_id from 4801 to 5000
- ...doing rev_id from 5001 to 5200
- ...doing rev_id from 5201 to 5400
- ...doing rev_id from 5401 to 5600
- ...doing rev_id from 5601 to 5800
- ...doing rev_id from 5801 to 6000
- ...doing rev_id from 6001 to 6200
- ...doing rev_id from 6201 to 6400
- ...doing rev_id from 6401 to 6600
- ...doing rev_id from 6601 to 6800
- ...doing rev_id from 6801 to 7000
- ...doing rev_id from 7001 to 7200
- ...doing rev_id from 7201 to 7400
- ...doing rev_id from 7401 to 7600
- ...doing rev_id from 7601 to 7800
- ...doing rev_id from 7801 to 8000
- ...doing rev_id from 8001 to 8200
- Populating ar_len column
- ...doing ar_id from 1 to 200
- ...doing ar_id from 201 to 400
- ...doing ar_id from 401 to 600
- ...doing ar_id from 601 to 800
- rev_len and ar_len population complete [0 revision rows, 0 archive rows].
- Populating rev_sha1 column
- ...doing rev_id from 1 to 200
- ...doing rev_id from 201 to 400
- ...doing rev_id from 401 to 600
- ...doing rev_id from 601 to 800
- ...doing rev_id from 801 to 1000
- ...doing rev_id from 1001 to 1200
- ...doing rev_id from 1201 to 1400
- ...doing rev_id from 1401 to 1600
- ...doing rev_id from 1601 to 1800
- ...doing rev_id from 1801 to 2000
- ...doing rev_id from 2001 to 2200
- ...doing rev_id from 2201 to 2400
- ...doing rev_id from 2401 to 2600
- ...doing rev_id from 2601 to 2800
- ...doing rev_id from 2801 to 3000
- ...doing rev_id from 3001 to 3200
- ...doing rev_id from 3201 to 3400
- ...doing rev_id from 3401 to 3600
- ...doing rev_id from 3601 to 3800
- ...doing rev_id from 3801 to 4000
- ...doing rev_id from 4001 to 4200
- ...doing rev_id from 4201 to 4400
- ...doing rev_id from 4401 to 4600
- ...doing rev_id from 4601 to 4800
- ...doing rev_id from 4801 to 5000
- ...doing rev_id from 5001 to 5200
- ...doing rev_id from 5201 to 5400
- ...doing rev_id from 5401 to 5600
- ...doing rev_id from 5601 to 5800
- ...doing rev_id from 5801 to 6000
- ...doing rev_id from 6001 to 6200
- ...doing rev_id from 6201 to 6400
- ...doing rev_id from 6401 to 6600
- ...doing rev_id from 6601 to 6800
- ...doing rev_id from 6801 to 7000
- ...doing rev_id from 7001 to 7200
- ...doing rev_id from 7201 to 7400
- ...doing rev_id from 7401 to 7600
- ...doing rev_id from 7601 to 7800
- ...doing rev_id from 7801 to 8000
- ...doing rev_id from 8001 to 8200
- Populating ar_sha1 column
- ...doing ar_rev_id from 4 to 203
- ...doing ar_rev_id from 204 to 403
- ...doing ar_rev_id from 404 to 603
- ...doing ar_rev_id from 604 to 803
- ...doing ar_rev_id from 804 to 1003
- ...doing ar_rev_id from 1004 to 1203
- ...doing ar_rev_id from 1204 to 1403
- ...doing ar_rev_id from 1404 to 1603
- ...doing ar_rev_id from 1604 to 1803
- ...doing ar_rev_id from 1804 to 2003
- ...doing ar_rev_id from 2004 to 2203
- ...doing ar_rev_id from 2204 to 2403
- ...doing ar_rev_id from 2404 to 2603
- ...doing ar_rev_id from 2604 to 2803
- ...doing ar_rev_id from 2804 to 3003
- ...doing ar_rev_id from 3004 to 3203
- ...doing ar_rev_id from 3204 to 3403
- ...doing ar_rev_id from 3404 to 3603
- ...doing ar_rev_id from 3604 to 3803
- ...doing ar_rev_id from 3804 to 4003
- ...doing ar_rev_id from 4004 to 4203
- ...doing ar_rev_id from 4204 to 4403
- ...doing ar_rev_id from 4404 to 4603
- ...doing ar_rev_id from 4604 to 4803
- ...doing ar_rev_id from 4804 to 5003
- ...doing ar_rev_id from 5004 to 5203
- ...doing ar_rev_id from 5204 to 5403
- ...doing ar_rev_id from 5404 to 5603
- ...doing ar_rev_id from 5604 to 5803
- ...doing ar_rev_id from 5804 to 6003
- ...doing ar_rev_id from 6004 to 6203
- ...doing ar_rev_id from 6204 to 6403
- ...doing ar_rev_id from 6404 to 6603
- ...doing ar_rev_id from 6604 to 6803
- ...doing ar_rev_id from 6804 to 7003
- ...doing ar_rev_id from 7004 to 7203
- ...doing ar_rev_id from 7204 to 7403
- ...doing ar_rev_id from 7404 to 7603
- ...doing ar_rev_id from 7604 to 7803
- ...doing ar_rev_id from 7804 to 8003
- rev_sha1 and ar_sha1 population complete [0 revision rows, 0 archive rows].
- Populating and recalculating img_sha1 field
- Done 0 of 2157, 0.000% ^MDone 200 of 2157, 9.272% ^MDone 400 of 2157, 18.544% ^MDone 600 of 2157, 27.816% ^MDone 800 of 2157, 37.089% ^MDone 1000 of 2157, 46.361% ^MDone 1200 of 2157, 55.633% ^MDone 1400 of 2157, 64.905% ^MDone 1600 of 2157, 74.177% ^MDone 1800 of 2157, 83.449% ^MDone 2000 of 2157, 92.721%
- Done 2157 files in 6.8 seconds
- Fixing protocol-relative entries in the externallinks table...
- Done, 0 rows updated.
- Populating fa_sha1 field from fa_storage_key
- Done 0 files in 0.0 seconds
- Updating *_from_namespace fields in links tables.
- ...doing page_id from 1 to 200
- ...doing page_id from 200 to 399
- ...doing page_id from 399 to 598
- ...doing page_id from 598 to 797
- ...doing page_id from 797 to 996
- ...doing page_id from 996 to 1195
- ...doing page_id from 1195 to 1394
- ...doing page_id from 1394 to 1593
- ...doing page_id from 1593 to 1792
- ...doing page_id from 1792 to 1991
- ...doing page_id from 1991 to 2190
- ...doing page_id from 2190 to 2389
- ...doing page_id from 2389 to 2588
- ...doing page_id from 2588 to 2787
- ...doing page_id from 2787 to 2986
- Adding empty categories with description pages...
- Removing empty categories without description pages...
- Category cleanup complete.
- Populating page_props.pp_sortkey...
- Populating page_props.pp_sortkey complete.
- Updated a total of 0 rows
- Copying IP revisions to ip_changes, from rev_id 0 to rev_id 8044
- ...checking 14 revisions for IP edits that need copying, between rev_ids 1206 and 1406
- ...checking 33 revisions for IP edits that need copying, between rev_ids 1407 and 1607
- ...checking 34 revisions for IP edits that need copying, between rev_ids 2613 and 2813
- ...checking 61 revisions for IP edits that need copying, between rev_ids 2814 and 3014
- ...checking 38 revisions for IP edits that need copying, between rev_ids 3015 and 3215
- ...checking 10 revisions for IP edits that need copying, between rev_ids 4020 and 4220
- Attempted to insert 1 IP revisions, 0 actually done.
- Updating externallinks table index fields
- el_id 2 - 482 of 482
- Done, 0 rows updated, 0 deleted.
- No throttle parameters to normalize.
- Throttle parameters successfully normalized. Changed 0 rows.
- MediaWiki\Extension\AbuseFilter\Maintenance\FixOldLogEntries deleted 0 rows.
- MediaWiki\Extension\AbuseFilter\Maintenance\FixOldLogEntries updated newlines for 0 rows.
- MediaWiki\Extension\AbuseFilter\Maintenance\FixOldLogEntries updated fields for 0 rows.
- ...the abuse_filter_log table is empty.
- Set the local repo temp zone container to be private.
- Purging caches...done.
- Done in 8.4 s. Techcare.noc (talk) 14:31, 1 August 2023 (UTC)
How to make link to cell inside table?
Hello, if I created table like this:
{|class="wikitable" style="margin:auto"
! Header text !! Header text !! Header text
|-
|Test1 || Test1q || Test1w
|-
|Test2 || Test2q || Test2w
|}
How to make 'jumpable' links to Test1, Test2 similar like to '==*some title*==' sections? Olodar4ik (talk) 14:08, 1 August 2023 (UTC)
How do you fit a cell between two rows?
Hi there,
I am trying to create a table with one column of cells starting in the middle of one row and ending in the middle of the row below. However, using syntax such as "rowspan" and inserting the new column to hit multiple rows (and ending in the middle of another row) does not produce the expected result. Instead, the entire row is shifted in odd positions, causing issues with table formatting.
How do I keep a cell between two rows whilst also keeping the table formatting in place? Sammie Biscuits (talk) 15:49, 1 August 2023 (UTC)
Cannot use VisualEditor
[8bcac86fe9b33c208552a35f] 2023-08-02 00:20:41: Fatal exception of type "RuntimeException"
[8bcac86fe9b33c208552a35f] 2023-08-02 00:20:41: Fatal exception of type "RuntimeException"
[8bcac86fe9b33c208552a35f] 2023-08-02 00:20:41: Fatal exception of type "RuntimeException"
[8bcac86fe9b33c208552a35f] 2023-08-02 00:20:41: Fatal exception of type "RuntimeException" DanSchlosser (talk) 00:22, 2 August 2023 (UTC)
- What website? If this is your own wiki set $wgShowExceptionDetails=true; Bawolff (talk) 02:05, 2 August 2023 (UTC)
- It's not a PHP error DanSchlosser (talk) 03:00, 2 August 2023 (UTC)
- It's a JS error DanSchlosser (talk) 03:09, 2 August 2023 (UTC)
- Is this an actual javascript error or a php error that is being logged to the javascript console, because the latter should still be affected by wgShowExceptionDetails. If its a real js error, usually the we browser console will give more details. Bawolff (talk) 04:24, 2 August 2023 (UTC)
- OK DanSchlosser (talk) 02:58, 2 August 2023 (UTC)
Cannot open Special:SpecialPages
[1683d811dfadf8d4ba3fcdce] 2023-08-02 00:24:44: 类型“Wikimedia\Services\NoSuchServiceException”的致命异常 DanSchlosser (talk) 00:27, 2 August 2023 (UTC)
- What website Bawolff (talk) 02:04, 2 August 2023 (UTC)
- [baaa424c26ce53cc49d85d67] /wiki/index.php?title=%E7%89%B9%E6%AE%8A:%E7%89%B9%E6%AE%8A%E9%A1%B5%E9%9D%A2 Wikimedia\Services\NoSuchServiceException: No such service: CentralAuth.CentralAuthDatabaseManager
- Backtrace:
- from C:\www\wiki\vendor\wikimedia\services\src\ServiceContainer.php(431)
- #0 C:\www\wiki\vendor\wikimedia\services\src\ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService(string)
- #1 C:\www\wiki\includes\MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService(string)
- #2 C:\www\wiki\vendor\wikimedia\services\src\ServiceContainer.php(419): MediaWiki\MediaWikiServices->getService(string)
- #3 C:\www\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php(211): Wikimedia\Services\ServiceContainer->get(string)
- #4 C:\www\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
- #5 C:\www\wiki\includes\specialpage\SpecialPageFactory.php(1279): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
- #6 C:\www\wiki\includes\specialpage\SpecialPageFactory.php(1314): MediaWiki\SpecialPage\SpecialPageFactory->getPage(string)
- #7 C:\www\wiki\includes\specials\SpecialSpecialpages.php(53): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages(User)
- #8 C:\www\wiki\includes\specials\SpecialSpecialpages.php(42): SpecialSpecialpages->getPageGroups()
- #9 C:\www\wiki\includes\specialpage\SpecialPage.php(701): SpecialSpecialpages->execute(NULL)
- #10 C:\www\wiki\includes\specialpage\SpecialPageFactory.php(1428): SpecialPage->run(NULL)
- #11 C:\www\wiki\includes\MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
- #12 C:\www\wiki\includes\MediaWiki.php(904): MediaWiki->performRequest()
- #13 C:\www\wiki\includes\MediaWiki.php(562): MediaWiki->main()
- #14 C:\www\wiki\index.php(50): MediaWiki->run()
- #15 C:\www\wiki\index.php(46): wfIndexMain()
- #16 {main} DanSchlosser (talk) 03:00, 2 August 2023 (UTC)
- At a guess sounds like CentralAuth is misconfigured or not installed properly. Bawolff (talk) 04:21, 2 August 2023 (UTC)
Issue with AuthorProtect extension after upgrading
I have recently upgraded MW to 1.40.0:
MediaWiki | 1.40.0 |
PHP | 8.0.28 (cgi-fcgi) |
ICU | 67.1 |
MySQL | 8.0.33 |
One of the users of my wiki complained that he sees following error on the page he created and made protection with the extension. Here is following message appears on that page:
Deprecated: Use of MediaWiki\Title\Title::getRestrictionTypes was deprecated in MediaWiki 1.37. [Called from AuthorProtect::authorProtectMessage in /var/www/admin/www/mediawiki-1.40.0/extensions/AuthorProtect/includes/AuthorProtect.php at line 96] in /var/www/admin/www/mediawiki-1.40.0/includes/debug/MWDebug.php on line 382 Deprecated: Use of MediaWiki\Title\Title::getRestrictions was deprecated in MediaWiki 1.37. [Called from AuthorProtect::authorProtectMessage in /var/www/admin/www/mediawiki-1.40.0/extensions/AuthorProtect/includes/AuthorProtect.php at line 97] in /var/www/admin/www/mediawiki-1.40.0/includes/debug/MWDebug.php on line 382
I haven't found any messages regarding this issue. Can you please help with this? Fokebox (talk) 07:26, 2 August 2023 (UTC)
- PHP by default shows deprecation warnings, but advises that if you run a production website, you should configure your PHP to hide deprecation warnings. In your php.ini set:
error_reporting = E_ALL & ~E_DEPRECATED
or from your LocalSettings.php setini_set("error_reporting", E_ALL & ~E_DEPRECATED);
—TheDJ (Not WMF) (talk • contribs) 09:54, 2 August 2023 (UTC)
Nach Update Wiki ohne Sidebar, Seiten, Dateiverlinkungen
Mein System:
Synology DSM 7.1.1
MediaWiki 1.39.2-1078
php 8.0.23-0130
MariaDB 10.3.32-1040
Automatisches Update Mediawiki über DSM von 1.35.6 auf 1.39.2
Seit dem sämtliche Einstellungen und Seiten verschwunden. Anmeldung funktioniert noch, also Zugriff auf Datenbank ist gewährleistet.
Mit einem Wiki älterer Version funktioniert auch noch alles.
Welche Einstellungen muss ich vornehmen???
Könnt ihr mir bitte helfen??? Vielen Dank. SteffenAR007 (talk) 08:43, 2 August 2023 (UTC)
- Sorry, we do not provide support for the packages created by Synology. Please turn to their support websites. —TheDJ (Not WMF) (talk • contribs) 09:50, 2 August 2023 (UTC)
サムネイルの作成エラー: /bin/bash: convert: command not found
MediaWikiで画像を使おうとすると、「サムネイルの作成エラー: /bin/bash: convert: command not found」という表示が出るのみで画像の使用ができませんでした。どうすれば画像を使用できますでしょうか。 きくらげさん (talk) 09:33, 2 August 2023 (UTC)
- You are missing imagemagick on the server, which is used to generate thumbnails of images. —TheDJ (Not WMF) (talk • contribs) 09:49, 2 August 2023 (UTC)
Copy image from clipboard
10 years ago, the question was asked about a feature that can allow to copy paste image from clipboard without uploading files:
Project:Support desk/Flow/2014/01#h-Copy_paste_images_with_clipboard-2014-01-02T14:47:00.000Z
Answers redirect to various extensions:
- Extension:ClipUpload: extension now archived, obsolete.
- Extension:SimpleBatchUpload: not available through the ExtensionDistributor. (I have not tested it).
- Extension:UploadWizard: available through the ExtensionDistributor (my tests showed that it does not have this feature).
- Extension:MsUpload: status as beta (I have not tested it).
Today, is there a stable extension, available through ExtensionDistributor, that implements this feature ?
If not, can someone confirm which of these extension has the feature ? Or is there any project to develop a new dedicated one, and make it available through ExtensionDistributor ?
Thanks in advance for your help. X4rtqd6941 (talk) 10:11, 2 August 2023 (UTC)
- Extension:EnhancedUpload features a VisualEditor integration. The file will still be uploaded into the wiki, upload will be initiated automatically on paste. Osnard (talk) 11:20, 2 August 2023 (UTC)
- Impressive, it works like a charm. Thanks a lot!
- I confirm it perfectly works for "copy from clipboard" feature, and it is distributed through ExtensionDistributor. Exactly what I was looking for.
- For others, note that it also needs Extension:OOJSPlus, which is conveniently also distributed through ExtensionDistributor. X4rtqd6941 (talk) 13:12, 3 August 2023 (UTC)
No access to MediaWiki
I am trying to set up a MediaWiki docker container using Keycloak as our SSO.
However, on three different computers, we have three different outputs happening. All three of them are remote workstations separate from the server hosting the docker container.
On Workstation A (Windows 10 Google Chrome) I am able to access the Wiki with no issues.
On Workstation B (Windows 11 Google Chrome/Edge) I am not able to access the Wiki, and I get either a ERR_CONNECTION_RESET error or a ERR_SSL_PROTOCOL_ERROR, depending on if I do http or https respectively.
On Workstation C (RHEL 7 Firefox) I get an RX_RECORD_TOO_LONG error on http, and the ERR_SSL_PROTOCOL_ERROR on https.
All three of the workstations have "force https" off. Workstation C had TLS set to 1 (I believe turning it off) as well.
In Keycloak, I have my valid redirects with the hostname and the IP Address, using both http and https. I have tried setting the base url to both http and https.
For my LocalSettings.php, I have $wgForceHTTPS to false (though I was getting these issues before adding this).
I have also changed the $wgServer using both http and https.
All of the changes that I've done doesn't change any of the errors or the working workstation. I am kind of at my wit's end. Jayk1892 (talk) 20:33, 2 August 2023 (UTC)
- it is probably an issue below the mediawiki layer. Maybe a firewall or network configuration issue, or web server/tls misconfiguration.
- Note that RX_RECORD_TOO_LONG is an https error. You shouldn't get it with plain http.
- > Workstation C had TLS set to 1
- If what you are doing is setting the tls version to 1, you might get ssl protocol errors since tls version 1 is no longer supported (as it is insecure) Bawolff (talk) 21:06, 2 August 2023 (UTC)
- In regards to the RX_RECORD_TOO_LONG error, it gets that error when it tries to re-direct to HTTPS from HTTP. I've tried to get it to stop redirecting, and I think that has been the biggest underlying issue.
- I guess in regards to WS B, there might be something with the firewall or network configuration.
- Which version of TLS would you recommend? I was trying to completely disable it, and saw that 1 was how you did it. Jayk1892 (talk) 13:38, 3 August 2023 (UTC)
- I dont know which setting you are referring to or what you changed, but as a general rule the modern internet uses both tls 1.2 & 1.3.
- During redirection is it redirecting to the wrong port? Too long record sounds a bit like treating an http connection as https. Bawolff (talk) 16:22, 3 August 2023 (UTC)
- Sorry, I just rechecked and I was remembering what I did wrong.
- In my Firefox's about:config, I set security.tls.version.max to 3 and min is also set to 3.
- As for the second question, it is not redirecting to the wrong port, but it is treating the http as an https. I thought part of the issue was it was trying to redirect to Keycloak's login page before going to MediaWiki, but when I log into Keycloak first and then try I still get the same error (this is all on WS C, the RHEL one). But when I am looking at the Dev Mode Network tab, it is requesting https, regardless of what I try to do to get it to stop redirecting to https from http. It is seeming more and more like you are correct in that it is not a MediaWiki problem. The only other thing I can think of is if the SSL Certificates for MediaWiki are incorrect.
- The logs for firewalld didn't show anything, and I even turned off the firewall temporarily to see if that would change anything, and I still am getting the same errors. Jayk1892 (talk) 17:44, 3 August 2023 (UTC)
Phonos help
- Hello from el.wiktionary. Got a message that audio inline is now possible with https://www.mediawiki.org/wiki/Help:Extension:Phonos#Inline_audio_player_mode Does someone have to add some command at our el.wikt? We do not have anyone that understands these things, sorry. We are doing tests at https://el.wiktionary.org/wiki/Συζήτηση_προτύπου:ήχος#audio_inline_2023 where it doesn't play. If someone can write there a model that we could copypaste, and get sound, that would be great! Thank you, sorry to bother you. https://el.wiktionary.org/wiki/User:Sarri.greek Sarri.greek (talk) 23:02, 2 August 2023 (UTC)
- Hello, the phonos extension isn't activated yet for that project. However, I checked out your example at https://el.wiktionary.org/wiki/Συζήτηση_προτύπου:ήχος#audio_inline_2023, and it looks good! Once the extension is up and running, it should work just fine. DMaza (WMF) (talk) 14:43, 3 August 2023 (UTC)
- Thank you Dmaza (WMF), I gather we do not have to 'do' something to activate them. It will just happen! -...PS it so difficult to write here, sorry, I cannot see the source of this page or how to write links. ~ Sarri.greek (talk) 14:54, 3 August 2023 (UTC)
- Maybe User:TheresNoTime-WMF can help. Bawolff (talk) 05:45, 3 August 2023 (UTC)
hreflang in header
Hello,
as I am building a multi-language site with MW, I need to add some code on the head of each page, and this code will be different for each page, something like:
<head>
...
<link rel="alternate" hreflang="en-gb" href="https://en-gb.example.com/page.html" />
<link rel="alternate" hreflang="en-us" href="https://en-us.example.com/page.html" />
<link rel="alternate" hreflang="en" href="https://en.example.com/page.html" />
<link rel="alternate" hreflang="de" href="https://de.example.com/page.html" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/" />
...
</head>
Is there an extension that allows me to add a specific code in the head of a single page?
thank you 77.25.220.7 (talk) 14:35, 3 August 2023 (UTC)
- There are a variety of options. One popular one is Extension:WikiSEO Bawolff (talk) 19:47, 3 August 2023 (UTC)
- Thank you Bawolff!
- For some reasons, this extension breaks the site and makes it unavailable... when I navigate to Special:Version the extension doesn't appear to be installed. Why would that be? 213.165.170.107 (talk) 06:37, 4 August 2023 (UTC)
- Could be a lot of things. What exactly does "make unavailable" mean if special:version is still working? See also How to debug Bawolff (talk) 07:01, 4 August 2023 (UTC)
- if I remove wfLoadExtension( 'WikiSEO' ); from LocalSettings.php then the site is available, and from special:version I don't see the installation 213.165.170.107 (talk) 07:14, 4 August 2023 (UTC)
- I have changed:
- wfLoadExtension( 'WikiSEO' );
- to:
- wfLoadExtension( 'wiki-seo-master' );
- and now it works.
- i'm not sure if it is a good idea.. is it better to rename the folder externtions/wiki-seo-master to externtions/WikiSEO perhaps? 213.165.170.107 (talk) 07:26, 4 August 2023 (UTC)
- Typically people rename the folder although i dont think it super matters that much. Bawolff (talk) 20:13, 4 August 2023 (UTC)
Google Search displaying template content
RESOLVED | |
Resolved. Old Index. |
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 created a comprehensive MediaWiki homepage, including an SEO extension title and content. I have recently submitted to Google, but when I visit site:Mysite.com to see how it is displaying in Google search results, I am seeing "MySite.com Welcome to the Your Wiki Name, the most comprehensive source of information about Your Topic. News · Template:News · Read more news · Guides."
Any idea how to fix this? I have been searching high and low within my files, System Messages, and online. WildBassGuitar (talk) 16:53, 3 August 2023 (UTC)
- Would you be able to link to your website? That doesn't sound like any default text in vanilla mediawiki. Maybe its from the SEO extension. Bawolff (talk) 19:49, 3 August 2023 (UTC)
- Sure, try this in google. Should be the first link. Thanks
- site:disabilitywiki.com
- disabilitywiki.com WildBassGuitar (talk) 20:30, 3 August 2023 (UTC)
- It looks like its indexing an old version http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fdisabilitywiki.com%2F%3Faction%3Dedit&
- But the weird thing is that the url indexed has ?action=edit at the end, which is odd
- If you have access to google search console you might be able to force google to reindex that specific url. Bawolff (talk) 00:18, 4 August 2023 (UTC)
- Extremely helpful. Thank you very much. WildBassGuitar (talk) 00:28, 4 August 2023 (UTC)
MFA FIDO login issues
Greetings,
I recently switched my MFA option from TOTP to FIDO.
I have several Yubico security keys registered, and this login works fine, when I'm using my Windows 10 notebook, or my Chromebook, and when I log in to English Wikipedia, Commons, Wikidata, etc.
This does not work at all when I try to login to MediaWiki. Now, I am already logged into the other WMF projects, and so I expected that my unified login would carry over. But it does not. So I attempted to login with username/password/FIDO, but MediaWiki will not accept any keys, and claims that none of them are registered with that website! Well, they were registered on enwiki, so I guess that makes sense. But now I'm locked out, unless I want to reset my MFA preferences.
I am also locked out from my Android 11 phone. I attempted to login to enwiki, and it would not execute the MFA process. It doesn't ask for a key. It simply says "The Login Process was Interrupted, please reload the page" and there is no opportunity to introduce the FIDO factor. Therefore, can't log in to anything WMF on mobile.
I suppose that tomorrow, after a good night's rest, I'm going to reset my MFA options to accommodate this perversely poor F/OSS implementation of FIDO/U2F. If anyone knows fixes or workarounds, I'm all ears. Thank you. 2600:8800:1B00:52:D379:7E7A:3A8:EF00 (talk) 04:24, 4 August 2023 (UTC)
- Note: where I referred to MediaWiki above, I was referring to MediaWiki.org website, which should be obvious that I couldn't login to my account. 2600:8800:1B00:52:D379:7E7A:3A8:EF00 (talk) 04:27, 4 August 2023 (UTC)
- > So I attempted to login with username/password/FIDO, but MediaWiki will not accept any keys,
- Yes this is correct: https://meta.wikimedia.org/wiki/Help:Two-factor_authentication#Web_Authentication_Method
- You can only login via the exact wiki where you registered the key.
- > Now, I am already logged into the other WMF projects, and so I expected that my unified login would carry over
- It won't. WMFs unified login is broken in most modern browsers because cookies no longer are allowed to cross domains. You can disable site isolation or downgrade the tracking protection of Firefox and/or Chrome as a workaround, but that probably won't help you much on Android I suspect.
- > I'm going to reset my MFA options
- You should login to the wiki where you originally added the MFA FIDO key. Go to Special:Manage_Two-factor_authentication and disable the FIDO option. The option that has the note, that you probably don't want to make use of this MFA method.
- > perversely poor F/OSS implementation of FIDO/U2F
- You are welcome to improve it. —TheDJ (Not WMF) (talk • contribs) 17:03, 4 August 2023 (UTC)
- Thank you for the pointers. I've switched back out to TOTP, which works satisfactorily on all devices, including mobile, and all sites.
- Yes, I'm aware that I'm "welcome to improve" whatever I complain about. But this is not a missing citation or a grammar error. I am neither a developer nor a cryptographer, and even if I were, I don't have the resources to load your codebase and hack on it.
- I'm a prolific volunteer of 16 years on several projects, with over 60,000 edits. I know my areas of expertise and I stay inside them. If this means I'm not allowed to vent here about poorly implemented authentication, then I suppose I will not.
- Thank you again, TheDJ, for the explanation and the link. I've updated my preferences accordingly. 2600:8800:1B00:52:BF50:61D8:6236:3EDD (talk) 02:06, 5 August 2023 (UTC)
Bootstrap5
Hello, is it possible to use bootstrap5 using the skin Timeless?
If so, how do I set it up please?
Thank you in advance
Mass 77.25.220.7 (talk) 08:51, 4 August 2023 (UTC)
- bootstrap is a widget kit and design language. The skin is a skin... What do you want to DO with bootstrap5 ? —TheDJ (Not WMF) (talk • contribs) 16:56, 4 August 2023 (UTC)
- I wish to use it to create design components like responsive tables, buttons etc. I find bootstrap5 very useful. I don't want a skin based on bootstrap, Timeless is good enough, I would just like to use the components 141.8.79.95 (talk) 06:45, 5 August 2023 (UTC)
Need Help! Updating Content Dynamically
We currently have ~1000 pages created with information about different enterprise projects. These pages include a wikitable displaying the same type of information related to each project (e.g. Business Owner, Business Unit, SMEs, etc.). We have a reporting application where all the 'Contact' information is stored. We would like automatically update the wiki pages when the content changes. I am assuming that we will need to touch each one of these pages to include some sort of variable declaration, or parameter definition. I trying to find examples of how this can be done but can't find anything online. I am pretty sure that this should be pretty straightforward. Can anyone please let me know if this is possible and point me in the right direction? I don't even know what to google for, as anything I search for is not related. Thanks!!! 170.41.208.65 (talk) 14:15, 4 August 2023 (UTC)
- Maybe you want extension:Semantic MediaWiki.
- Pywikibot might be useful. Bawolff (talk) 20:12, 4 August 2023 (UTC)
Mediawiki:Common.css (and Mediawiki:Mobile.css) not loading on mobile view
We noticed on our wiki, that some the .css stylesheet isn't loading (maybe it stopped working on the latest update) on mobile view on any page. This is visible for example on on https://wiki.ddnet.org/wiki/Template:Emote?useformat=mobile, but also on main page. The expected view would be https://wiki.ddnet.org/wiki/Template:Emote?useformat=desktop.
I would like for the mobile website to also include https://wiki.ddnet.org/wiki/MediaWiki:Common.css. I tried to follow https://www.mediawiki.org/w/index.php?title=Extension:MobileFrontend&oldid=6047394#CSS_styling and created
But the mobile still doesn't load the Mobile.css. Ideally the mobile view would also load the Common.css (so I don't have to maintain the same css file on Common.css and Mobile.css), but help with the workaround of Mobile.css would also be appreciate.
Thanks ~~ Zwelf2 (talk) 15:21, 4 August 2023 (UTC)
- The other maintainer got it resolved by removing the no longer necessary extension Extension:MobileFrontend. Sorry for causing noise. Zwelf2 (talk) 16:15, 4 August 2023 (UTC)
User Edits Shown As Bot Edits
I have three user accounts, mine which was the initial account, a "MediaWiki default" account, and a bot that I created. All edits I make through my account show as being made by a bot in Special:RecentChanges. I verified I am logged in with my account and not the bot. I have also disabled all extensions. Special:UserRights shows my user account as administrator, interface administrator, and bureaucrat.
How can I fix this? 70.160.223.43 (talk) 21:06, 4 August 2023 (UTC)
My edits are not saving
My edits are not being saved. I make the changes and publish them but they are not showing on the updated page 136.52.25.178 (talk) 03:15, 5 August 2023 (UTC)
Broken Special:CentralAuth on Beta Meta-Wiki
Hey, Special:CentralAuth is broken on Beta Meta-Wiki. It started a few days ago. The error message is as follows:
[ZM4rUumFaIsEL@Z7CohtQwAAAAg] /wiki/Special:CentralAuth/XenonX3 RuntimeException: Failed to run getConfiguration.php: No MWMultiVersion instance initialized! MWScript.php wrapper not used?
Backtrace:
from /srv/mediawiki/php-master/includes/SiteConfiguration.php(608)
#0 /srv/mediawiki/php-master/includes/jobqueue/JobQueueGroupFactory.php(115): SiteConfiguration->getConfig(string, array)
#1 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1725): MediaWiki\JobQueue\JobQueueGroupFactory::MediaWiki\JobQueue\{closure}(boolean, integer, array, NULL, array)
#2 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1555): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#3 /srv/mediawiki/php-master/includes/jobqueue/JobQueueGroupFactory.php(117): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#4 /srv/mediawiki/php-master/includes/jobqueue/JobQueueGroupFactory.php(150): MediaWiki\JobQueue\JobQueueGroupFactory->getCachedJobClasses(string)
#5 /srv/mediawiki/php-master/includes/user/UserGroupManagerFactory.php(122): MediaWiki\JobQueue\JobQueueGroupFactory->makeJobQueueGroup(string)
#6 /srv/mediawiki/php-master/extensions/CentralAuth/includes/User/CentralAuthUser.php(2747): MediaWiki\User\UserGroupManagerFactory->getUserGroupManager(string)
#7 /srv/mediawiki/php-master/extensions/CentralAuth/includes/User/CentralAuthUser.php(2575): MediaWiki\Extension\CentralAuth\User\CentralAuthUser->localUserData(string)
#8 /srv/mediawiki/php-master/extensions/CentralAuth/includes/Special/SpecialCentralAuth.php(204): MediaWiki\Extension\CentralAuth\User\CentralAuthUser->queryAttached()
#9 /srv/mediawiki/php-master/includes/specialpage/SpecialPage.php(701): MediaWiki\Extension\CentralAuth\Special\SpecialCentralAuth->execute(string)
#10 /srv/mediawiki/php-master/includes/specialpage/SpecialPageFactory.php(1564): SpecialPage->run(string)
#11 /srv/mediawiki/php-master/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#12 /srv/mediawiki/php-master/includes/MediaWiki.php(948): MediaWiki->performRequest()
#13 /srv/mediawiki/php-master/includes/MediaWiki.php(597): MediaWiki->main()
#14 /srv/mediawiki/php-master/index.php(50): MediaWiki->run()
#15 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#16 /srv/mediawiki/w/index.php(3): require(string)
#17 {main}
The special page still works when no username is selected and it still works on other Beta wikis (at least the German one). XenonX3 (talk) 11:01, 5 August 2023 (UTC)
- Tracked at phab:T343291 – Ammarpad (talk) 11:36, 5 August 2023 (UTC)
Time zone issues when using wiki default zone
Hello,
I've noticed that the timestamps for page edits in my wiki have recently become incorrect. I think this may have started with the upgrade to 1.40.
The timestamps for edits are 10 hours in the future from my local time. This is interesting because my time zone is UTC-5, so it feels like it's inverting the math and showing UTC+5 instead.
In my user preferences, my time zone is set to "Use wiki default (America/Chicago)". When I explicitly change it to "America/Chicago", the times are shown correctly. $wgLocaltimezone
is set to "America/Chicago". My PHP's data.timezone
is set to America/Chicago. I have confirmed in the database that edits are being stored with the correct UTC timestamps.
Any ideas of configuration that might be wrong? This feels more like a MW bug to me since changing my user's timezone to UTC-5 works, but the "use default" UTC-5 is broken.
MW 1.40, PHP 8.2.9, MariaDB 11.0.2.
Thanks for any ideas! Jacob Steffler (talk) 19:40, 5 August 2023 (UTC)
- No idea. I tried setting my test wiki to that timezone but I was not able to reproduce this. Bawolff (talk) 08:23, 10 August 2023 (UTC)
- Thanks for checking! This issue has been persistent for me.
- I tried updating the default timezone to America/Detroit (in both php.ini and LocalSettings.php) and that does work correctly.
- I also tried America/Ojinaga (which is equivalent to Chicago) and the issue does appear there as well.
- This issue isn't a big deal, but I'd like to get to the bottom of it. I'm not a PHP expert but I could try to dig into the code here. Do you happen to have any idea where that would live? I'll post to the Phabricator if I find anything out. Jacob Steffler (talk) 15:34, 13 August 2023 (UTC)
- Primarilly in Language::timeanddate and Language::userAdjust - https://github.com/wikimedia/mediawiki/blob/master/includes/language/Language.php#L1916 . The normal flow is something along the lines of RequestContext::getMain()->getLanguage()->timeanddate( wfTimestamp(TS_MW), true );
- Also relavent are https://github.com/wikimedia/mediawiki/blob/master/includes/MWTimestamp.php and https://github.com/wikimedia/mediawiki/blob/master/includes/user/UserTimeCorrection.php
- If investigating, the maintenance/eval.php script can be useful. Adding var_dump( $someValue ); to the code to dump values can also be helpful to figure out what is going on. Bawolff (talk) 08:01, 15 August 2023 (UTC)
hash signs in tabs ?
RESOLVED | |
ok, i close this topic, it is linked with "Heading Anchor: Adds section anchors to each wiki page heading. They become visible on hover. (Vector skin only)" in preferences/gadget checked. Acceptable in the flow of a text but very surprising in a tab list. |
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.
There is no hash in the source, why do they appear in the tabs ? see -> https://www.mediawiki.org/wiki/API:Help/Sample_code_1 -- Christian 🇫🇷 FR (talk) 06:20, 6 August 2023 (UTC)
- What to see where and why? Please elaborate and provide clear and exact steps to reproduce; it's unclear what exactly you see where and what you expect instead. Malyacko (talk) 12:31, 6 August 2023 (UTC)
- You read my text:
- Christian 🇫🇷 FR 🚨 (talk) 13:00, 6 August 2023 (UTC)
1 you open url https://www.mediawiki.org/wiki/API:Help/Sample_code_1 2 you look at your screen (and open eyes) 3 you see the different tabs aligned: 1 Python# 2 PHP# 3 JavaScript# 4 MediaWiki JS# 4 you open the source (Tab Modify) === Python === === PHP === .... 5 you ask yourself "why these hash signs in tabs ? 6 redo loop from 3)
- No I do not see "1 Python# 2 PHP# 3 JavaScript# 4 MediaWiki JS#". I see "1 Python 2 PHP 3 JavaScript 4 MediaWiki JS". (Also, I think it's quite unneeded to include stuff like "open eyes". Oh really?) Malyacko (talk) 14:30, 6 August 2023 (UTC)
- please be constructive here and describe what you see in this case; what you dont see does not mean it does not exist. Christian 🇫🇷 FR 🚨 (talk) 15:31, 6 August 2023 (UTC)
- I already did so in my previous comment. Please carefully read my previous comment again. Malyacko (talk) 15:59, 6 August 2023 (UTC)
translate: request to detect duplicates tvar at preview step
When I open the source code editor for an Edit action on a page, let us say -> https://www.mediawiki.org/w/index.php?title=Wikibase/Extending&action=edit multiple tvar are generated with the same number 1 in a translate unit and lead to error not always corrected manually by the editor himself.
In case of unbalanced translate tags, preview button shows visually the mismastch but in the example below no warning is provided in case of multiple same tvar name=1 :
* <translate>[[<tvar name=1>Special:MyLanguage/Extension:Scribunto</tvar>|Scribunto]] - <tvar name=1>enables the embedding of scripting languages into MediaWiki, currently only [[Lua_scripting|Lua]]</tvar>.</translate> <translate>This enables, among other powerful applications for scripting, the use of Lua modules in templates ([[<tvar name=1>#Lua</tvar>|see above]]).</translate>
The warnings only appears later when translate admnin requests the translation.
Question: could this control be brought earlier (that is in the preview step) for the author to correct the inconsistency ? Thanks. --Christian 🇫🇷 FR (talk) 09:30, 6 August 2023 (UTC)
- See How to report a bug how to create feature requests. Malyacko (talk) 12:30, 6 August 2023 (UTC)
- is it worth ? Christian 🇫🇷 FR 🚨 (talk) 13:01, 6 August 2023 (UTC)
- Is it worth to post here? :P Malyacko (talk) 14:28, 6 August 2023 (UTC)
- the people who write translate extension definitely do not monitor the support desk. They might ignore you at phab, but they will probably at least see it. Bawolff (talk) 21:50, 7 August 2023 (UTC)
mediawiki.org theme
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 dear MW community.
I am trying to understand what theme mediawiki.org is using. From the source code, I see Vector. but if I use Vecotor on my wiki it looks completely different, it looks like wikipedia.
Any idea on how to use the same theme? thanks Balrogmedia (talk) 08:14, 7 August 2023 (UTC)
- ok, no worries, I have found the solution Balrogmedia (talk) 08:36, 7 August 2023 (UTC)
Logo image with alt text
Guys, how to add the alt text to the logo image please? Balrogmedia (talk) 14:55, 7 August 2023 (UTC)
Can't figure out SQL to extract page, category data from tables
Been looking at this for nearly two hours now and I can't figure it out.
What might be the three SQL statements to extract these things?
- Page title with corresponding current page contents, for each page
- Category title with subcategory titles, for each category
- Category title with page titles, for each category
Someone did help me last year here, and the table structure is still the same. Here are the structures of the (possibly) relevant tables:
CREATE TABLE soft_category (
cat_id int(10) UNSIGNED NOT NULL,
cat_title varbinary(255) NOT NULL,
cat_pages int(11) NOT NULL DEFAULT '0',
cat_subcats int(11) NOT NULL DEFAULT '0',
cat_files int(11) NOT NULL DEFAULT '0'
)
CREATE TABLE soft_categorylinks (
cl_from int(10) UNSIGNED NOT NULL DEFAULT '0',
cl_to varbinary(255) NOT NULL DEFAULT ,
cl_sortkey varbinary(230) NOT NULL DEFAULT ,
cl_sortkey_prefix varbinary(255) NOT NULL DEFAULT ,
cl_timestamp timestamp NOT NULL,
cl_collation varbinary(32) NOT NULL DEFAULT ,
cl_type enum('page','subcat','file') NOT NULL DEFAULT 'page'
)
CREATE TABLE soft_page (
page_id int(10) UNSIGNED NOT NULL,
page_namespace int(11) NOT NULL,
page_title varbinary(255) NOT NULL,
page_restrictions tinyblob,
page_is_redirect tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
page_is_new tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
page_random double UNSIGNED NOT NULL,
page_touched binary(14) NOT NULL,
page_links_updated varbinary(14) DEFAULT NULL,
page_latest int(10) UNSIGNED NOT NULL,
page_len int(10) UNSIGNED NOT NULL,
page_content_model varbinary(32) DEFAULT NULL,
page_lang varbinary(35) DEFAULT NULL
)
CREATE TABLE soft_pagelinks (
pl_from int(10) UNSIGNED NOT NULL DEFAULT '0',
pl_namespace int(11) NOT NULL DEFAULT '0',
pl_title varbinary(255) NOT NULL DEFAULT ,
pl_from_namespace int(11) NOT NULL DEFAULT '0'
)
CREATE TABLE `soft_revision` (
`rev_id` int(10) UNSIGNED NOT NULL,
`rev_page` int(10) UNSIGNED NOT NULL,
`rev_comment_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
`rev_actor` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
`rev_timestamp` binary(14) NOT NULL,
`rev_minor_edit` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
`rev_deleted` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
`rev_len` int(10) UNSIGNED DEFAULT NULL,
`rev_parent_id` int(10) UNSIGNED DEFAULT NULL,
`rev_sha1` varbinary(32) NOT NULL DEFAULT
)
CREATE TABLE soft_slots (
slot_revision_id bigint(20) UNSIGNED NOT NULL,
slot_role_id smallint(5) UNSIGNED NOT NULL,
slot_content_id bigint(20) UNSIGNED NOT NULL,
slot_origin bigint(20) UNSIGNED NOT NULL
)
CREATE TABLE `soft_text` (
`old_id` int(10) UNSIGNED NOT NULL,
`old_text` mediumblob NOT NULL,
`old_flags` tinyblob NOT NULL
)
Johann van Triangle (talk) 17:22, 7 August 2023 (UTC)
- What version of mediawiki? Bawolff (talk) 21:46, 7 August 2023 (UTC)
- Version 1.37.2 Johann van Triangle (talk) 09:34, 8 August 2023 (UTC)
- 1.37.2 Johann van Triangle (talk) 06:53, 8 August 2023 (UTC)
- [Throughout i am assuming table prefix of soft_ ]
- For query 1 - does the following work [This would only be for default setup. if using compressed revisions or external storage this wont work]:
SELECT page_namespace, page_title, old_text "text" FROM soft_page INNER JOIN soft_slots on page_latest
- = slot_revision_id INNER JOIN soft_slot_roles on slot_role_id = role_id and role_name = 'main' INNER JOIN soft_content on
- slot_content_id = content_id inner join text on substring( content_address, 4 ) = old_id and left( content_address, 3
) = "tt:" and old_flags = "utf-8"
- For query 2:
select cl_to "category", page_title "subcat" from soft_categorylinks inner join soft_page on cl_from = page_id where cl_type = 'subcat';
- Query 3 [This is excluding subcategories and images]:
select cl_to "category", page_namespace, page_title from soft_categorylinks inner join soft_page on cl_from = page_id where cl_type = 'page';
- Hope that helps. Bawolff (talk) 08:00, 10 August 2023 (UTC)
- Many thanks Bawolff, very much appreciated. I've now got the data I needed. Johann van Triangle (talk) 15:06, 24 August 2023 (UTC)
DisplayTitle extension prevents Template/Module page save/purge
I had trouble updating a medium sized site from 1.30 to 1.35.11 then 1.39.4 on shared hosting, so decided to do so on my laptop where I have full root access. I created a brand new (empty) DB, but with many extensions, one being DisplayTitle. I had no trouble editing and saving the Main Page. But I could not save the contents of Template:Test nor Module:Test (small hello world) until I disabled DisplayTitle, at which point "hello world" was correctly displayed (I was testing scribunto, not DisplayTitle). The backtrace for Module:Test is:
[8c7974207b2294001d5f4456] /en.wikimergic.org/wiki/Module:Test Error: Class "DisplayTitleLuaLibrary" not found
Backtrace:
from /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(512)
#0 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(162): Scribunto_LuaEngine->instantiatePHPLibrary()
#1 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(235): Scribunto_LuaEngine->load()
#2 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(41): Scribunto_LuaEngine->getInterpreter()
#3 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(28): Scribunto_LuaModule->getInitChunk()
#4 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/ScribuntoEngineBase.php(201): Scribunto_LuaModule->validate()
#5 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/ScribuntoContentHandler.php(105): MediaWiki\Extension\Scribunto\ScribuntoEngineBase->validate()
#6 /var/lib/mediawiki-1.39.4/extensions/Scribunto/includes/ScribuntoContentHandler.php(173): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->validate()
#7 /var/lib/mediawiki-1.39.4/includes/content/ContentHandler.php(1721): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->fillParserOutput()
#8 /var/lib/mediawiki-1.39.4/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
#9 /var/lib/mediawiki-1.39.4/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#10 /var/lib/mediawiki-1.39.4/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#11 /var/lib/mediawiki-1.39.4/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#12 /var/lib/mediawiki-1.39.4/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#14 /var/lib/mediawiki-1.39.4/includes/Revision/RenderedRevision.php(199): call_user_func()
#15 /var/lib/mediawiki-1.39.4/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#16 /var/lib/mediawiki-1.39.4/includes/poolcounter/PoolWorkArticleView.php(72): PoolWorkArticleView->renderRevision()
#17 /var/lib/mediawiki-1.39.4/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#18 /var/lib/mediawiki-1.39.4/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
#19 /var/lib/mediawiki-1.39.4/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput()
#20 /var/lib/mediawiki-1.39.4/includes/page/Article.php(528): Article->generateContentOutput()
#21 /var/lib/mediawiki-1.39.4/includes/actions/ViewAction.php(78): Article->view()
#22 /var/lib/mediawiki-1.39.4/includes/MediaWiki.php(542): ViewAction->show()
#23 /var/lib/mediawiki-1.39.4/includes/MediaWiki.php(322): MediaWiki->performAction()
#24 /var/lib/mediawiki-1.39.4/includes/MediaWiki.php(904): MediaWiki->performRequest()
#25 /var/lib/mediawiki-1.39.4/includes/MediaWiki.php(562): MediaWiki->main()
#26 /var/lib/mediawiki-1.39.4/index.php(50): MediaWiki->run()
#27 /var/lib/mediawiki-1.39.4/index.php(46): wfIndexMain()
#28 {main}
- PS. Is this the right place to post such problems? I originally posted this (yesterday) on discord.
- PPS. I will be testing all the extensions in my empty DB before attempting the local update which failed on my shared hosting.
- PPPS. The LocalSettings.php file is different (rebuilt from scratch). In particular, all extensions are loaded in alphabetical order, and their associated variable set within their section. I did try a version with the scribunto extension before all others, but it made no difference.
- PPPPS. I also tried the 1.40.0 version of DisplayTitle with similar results.
More info. Page Module:Test is
p = {}
function p.show()
return "Hello world"
end
return p
And page "Template:Test" is
{{#invoke:test|show}}
Dpleibovitz (talk) 20:35, 7 August 2023 (UTC)
- The same setup works in MediaWiki 1.35.11 Dpleibovitz (talk) 20:34, 8 August 2023 (UTC)
- This looks like a bug in the DisplayTitle extension. I would suggest reporting it here: phab:tag/mediawiki-extensions-displaytitle Taavi (talk!) 07:34, 9 August 2023 (UTC)
- Thanks, created task T343929. Dpleibovitz (talk) 20:42, 9 August 2023 (UTC)
Restore database backup
I just setup MediaWiki 1.40.0 with a fresh database and I've finished configuring it with extensions. Can I restore data from a MediaWiki 1.39.3 database I've backed up? The database is running on MySQL. To restore the pages, users, etc. do I just replace the database files with the ones from the backup? Thanks in advance. FatalFit (talk) 23:54, 7 August 2023 (UTC)
- yes, and then run update.php script. Basically follow the database related steps of upgrading Bawolff (talk) 08:17, 10 August 2023 (UTC)
Navbox assistance
Hello, I am new to media wiki and I am assisting my professor in setting up a mediawiki for a neurology lab he is creating. We wanted to add in a navbox but I am having trouble with setting it up. I am brand new to wikitext and unfamiliar with coding. I saw this page https://www.mediawiki.org/wiki/Template:Navbox and tried to copy and paste the usage section, but when I published it it did not show as a navbox, just plain text. I am really confused and could use some assistance. Lezynskipb (talk) 01:02, 8 August 2023 (UTC)
- @Lezynskipb Hi! you have to link your wiki url to debug. খাত্তাব হাসান (talk) 20:57, 8 August 2023 (UTC)
- hi @খাত্তাব হাসান, it's build-a-brain.wiki Lezynskipb (talk) 17:55, 9 August 2023 (UTC)
- @Lezynskipb This installation has a navbar template without content. You can export Template:Navbox and import on your wiki. খাত্তাব হাসান (talk) 18:17, 9 August 2023 (UTC)
Cannot Move A Page Using Mediawiki API
RESOLVED | |
Using alternative option |
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 having issues using the API to move a list of pages. Our current version (1.34.1)
I'm testing with single pages at the moment and running into trouble with the token. I'm writing a script in bash and using curl commands similar to this:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" -d "token=<csrfToken>" "https://domain/api.php?action=move&from=BadTitle&to=GoodTitle"
Running the command returns the error: The token parameter must be set
But if I add the token as a param in the url I get the error: The following parameter was found in the query string, but must be in the POST body: token
I have used csrf tokens from both the API sandbox and domain/api.php?action=query&meta=tokens.
I am able to move a page using the API sandbox successfully, which uses the token in the url.
I'm aware that there are other libraries available but for the time being I want to stick with bash. Please let me know what I'm missing or if any other information is needed for solving the issue. Any and all help is appreciated! DrpepperUser (talk) 16:23, 8 August 2023 (UTC)
- If you specify
Content-type: application/json
you would need to provide the POST body as JSON and not as a form-encoded data like you seem to be doing. Taavi (talk!) 07:38, 9 August 2023 (UTC) - Thank you for the response, I believe that I have tried it with JSON as well. I have tried to get a csrf token from our special pages and from the api and every token I have generated comes back as invalid when using api.php?action=checktoken&type=csrf&token and I'm not sure why. Any thoughts?
- Here is and example of a token from our api.php?action=query&meta=tokens endpoint:
- 59117dd4d047ac94d5bbfc161a4ecd1864f10662+\\ DrpepperUser (talk) 22:00, 7 September 2023 (UTC)
- The mediawiki api doesn't accept json. It is expected to be in application/x-www-urlencoded format and labeled as such.
- Basically your first curl would have been fine if you didnt specify the accept header as the default that curl would provide for accept header would have been fine. Bawolff (talk) 00:12, 8 September 2023 (UTC)
- Thank you for your response! DrpepperUser (talk) 22:42, 9 November 2023 (UTC)
Upgrading MW - update.php "killed"
I'm upgrading a wiki from 1.33 to 1.39.
I've installed a clean copy of 1.39 in a new directory, copied over my Images directory and my LocalSettings.php file. I reviewed and updated 1.33 LocalSettings to only load the standard installed extensions. I couldn't get the update.php script to do anything, so I replaced my updated LocalSettings file with the one that had been created when I installed the clean copy of 1.39.
update.php ran for a while, then ended with this message:
Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor
Completed migration, updated 0 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
Killed
Thinking it might an execution timeout issue, I've tried running update.php again, and it stops at exactly the same place.
I tried opening the wiki, and got an HTTP 500 error. The error_log shows this error:
[08-Aug-2023 20:01:15 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/michaelgreis/public_html/wiki139/includes/title/MediaWikiTitleCodec.php on line 92
Any help or pointers would be much appreciated. Thanks! Mgreis (talk) 22:48, 8 August 2023 (UTC)
Cannot find my user name
I know I created a user name TrevorAlan, I certainly made a post in about 2008 and I believe I made a few edits in subsequent years, but I have not used it a lot.
The password I have recorded for the name does not work, when I request a password reset with the email I have had for many years I get no response. This email can be provided if you need.
Before I create a new account I want to find if there is a way that I can get access to this account name again and find why I do not seem to be able to access it. 167.248.96.62 (talk) 06:49, 9 August 2023 (UTC)
- Which website is this about? Taavi (talk!) 07:39, 9 August 2023 (UTC)
- WIKIPEDIA 2600:100A:B1E0:43C1:C930:8FA9:B5A2:1D4E (talk) 21:40, 11 August 2023 (UTC)
- There is a wikipedia account that matches that description: https://meta.wikimedia.org/wiki/Special:CentralAuth/TrevorAlan
- However, its unlikely anything can be done here unless you can prove beyond a shadow of a doubt that you are the legit owner of this account, which is very difficult.
- I would recommend just creating a new account. Bawolff (talk) 08:08, 10 August 2023 (UTC)
- Do they scrub or lock accounts that have not been accessed in years, because it might be 6 years since I last locked in to it. 2600:100A:B1E0:43C1:C930:8FA9:B5A2:1D4E (talk) 22:30, 11 August 2023 (UTC)
- No. Are you sure you have the correct password / correct email for reset? We dont expire accounts
- In the password reset form you can fill out just your username (no email) and it should still work Bawolff (talk) 22:35, 11 August 2023 (UTC)
- Well I will look into whether there is any possibility I would have used anything else. Thank you for help, at least I know I have the right name. 72.14.102.133 (talk) 04:08, 12 August 2023 (UTC)
- Thanks, that's definitely it.
- I created the Uniform Covenants Act article in 2008, but it says the name was created in 2013.
- Now I know it is the right one. 2600:100A:B1E0:43C1:C930:8FA9:B5A2:1D4E (talk) 21:40, 11 August 2023 (UTC)
- The date it becamd global is different from the date created for older accounts. Created date at https://en.wikipedia.org/w/index.php?title=Special:ListUsers&limit=1&username=TrevorAlan Bawolff (talk) 22:37, 11 August 2023 (UTC)
Bringing a database from Mediawiki 1.20.3 to 1.40
Hello,
I made the mistake to not update my wiki for the last 10 years. Now I have to move my wiki to a new server and moving the database is a big problem.
Has someone any advise; other than to update my wiki on regular bases. 92.198.14.90 (talk) 13:06, 9 August 2023 (UTC)
- Follow Manual:Upgrading Malyacko (talk) 14:31, 9 August 2023 (UTC)
Hide page actions menu for logged out users
Hello, how can I hide the page actions menu for logged out users please?
I am using MW 1.39 with Minerva skin
thanks in advance Balrogmedia (talk) 13:08, 9 August 2023 (UTC)
News 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.
- How to create a news page like this please? News
- and how to obtain the news box in the main page?
- thank yo so much! Balrogmedia (talk) 14:53, 9 August 2023 (UTC)
- This doesn't have anything to do with the MediaWiki software. We are not here to build pages for you, or to teach courses. Please read documentation, google a bit, hell watch a Youtube video ! —TheDJ (Not WMF) (talk • contribs) 20:21, 9 August 2023 (UTC)
- Ok, sorry about it Balrogmedia (talk) 06:28, 10 August 2023 (UTC)
Error PluggableAuth in mediawiki-1.40
Hello everyone, I have the following problem, I have installed mediawiki-1.40. I have all the extensions that I have installed for RELI_1.40 version. But when I try to login via PluggableAuth on the url it directly returns me the following message "The credentials provided could not be authenticated."
I show my configuration to see if you can help me:
I have the ldapproviser.json file configured as follows:
{
"LDAP": {
"connection": {
"server": "ldap.XXX.es",
"user": "",
"pass": "",
"options": [
{ "LDAP_OPT_DEREF": 1}
],
"enctype": "clear",
"basedn": "o=domains,dc=XXX,dc=en",
"groupbasedn": "dc=XXX,dc=en",
"userbasedn": "o=domains,dc=XXX,dc=en",
"searchattribute": "uid",
"usernameattribute": "uid",
"realnameattribute": "cn",
"emailattribute": "mail".
},
"authorization": {
"attribute-map": {
"nsaccountlock": "false".
}
}
}
}
The LocalSettings.php file has the following:
wfLoadExtension( 'PluggableAuth' );
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_Config['Login (LDAP)'] = [
'plugin' => 'LDAPAuthentication2',
'data' => [
'domain' => 'LDAP'
]
];
wfLoadExtension( 'LDAPProvider' );
$LDAPProviderDomainConfigs = "$IP/../ldapproviser.json";
$LDAPProviderDomainConfigProvider = "Ò"\LDAPProviderDomainConfigProviderLocalJSONFile::newInstance.
# LDAP
wfLoadExtension( 'LDAPAuthentication2' );
$LDAPAuthentication2AllowLocalLogin = false;
$LDAPAuthentication2UsernameNormalizer = 'strtolower';
Error when editing categories with VisualEditor
Hello everyone
First, my native language ist german .
I have a problem in VisualEditor with editing categories on the pages. The first insertion works, at the bottom of the page it says: Category:Places
When open the same page with VisualEditor again, at the bottom of the field it says in red letters:
Category: Index.php?title=Category:Places
But in the source text is still correct [[Category:Places]]
Where does this reference to "Index.php?title=" come from?
Is the error that index.php starts with a capital letter?
Mediawiki 1.40.0, VisualEditor 0.1.2, PHP 8.1.21
How can I correct this?
Thanks for any ideas! HP932 (talk) 12:30, 10 August 2023 (UTC)
- index.php is case sensitive, however the capital might just indicate it is being treated as a pagename and autocapitalized, so possibly not the root cause.
- I would suggest ensuring you have the correct version of VisualEditor installed (the REL1_40 version), and also the correct version of parsoid (usually installed via composer or automatically bundled with some versions of mediawiki) as well as any custom configuration you have is correct. Bawolff (talk) 05:24, 11 August 2023 (UTC)
- Thanks
- In the meantime, I came across this article https://phabricator.wikimedia.org/T270219 describing VisualEditor's problem when ShortURL is not used. This is true for us, must have been a mistake during installation.
- So I will correct this first, hopefully the problem with VisualEditor is also solved. HP932 (talk) 07:06, 11 August 2023 (UTC)
- Yes, with ShortUrl is the error fixed. The case can be closed. HP932 (talk) 17:21, 11 August 2023 (UTC)
Problem reseting my password
Hello,im having problems reseting my password, it asks me to provide my user name and my email, i did that, but havent received a email to reset my password. 2001:8A0:6483:2400:C1FA:F427:F398:A8EC (talk) 19:23, 10 August 2023 (UTC)
- Check your spam folder.
- Also note that this page will always display the same message even if a user with that name doesn't exist or the email is not registered to an account, to prevent someone from checking if a particular email is registered to that wiki. This means you may be introducing the wrong email.
- Usually you can request the password reset only with the user name, leaving the email blank. Of course, if your didn't validate your email when you had access to the account, or you no longer access to the account, you won't receive anything and you're out of luck Ciencia Al Poder (talk) 08:41, 11 August 2023 (UTC)
- I've been having this problem, too. If your email account is at Gmail, they seem to be blocking the reset emails before they even go to your spam filter. I'm struggling with this myself. Using a different email domain may help, it did for us. You'll have to change the user's email directly in the database, tho. Mitzzzz (talk) 12:29, 17 August 2023 (UTC)
- That's another issue. If gmail (or outlook) flags your email as spam, you should configure your mail server to implement the anti-spam standards like SPF, DMARC and DKIM, or use an email sender like mailgun Ciencia Al Poder (talk) 15:18, 17 August 2023 (UTC)
database schema
hello, I'm using mediawiki for my project. I was wondering why the database (that is a relational database) doesn't use foreign keys. I was told that is not recomendable. 2800:150:14F:1B16:D5A6:33E1:BC4D:3129 (talk) 23:59, 10 August 2023 (UTC)
- Hi, by foreign keys I assume you mean foreign key constraints (MediaWiki of course uses foreign keys in the more abstract sense).
- I think some of this is historical. Originally MediaWiki was written for MySQL 3, which i don't think supported such things, and we simply haven't changed things.
- Sometimes it can be convenient to not have DB constraints as it makes it easier to make schema changes a bit at the time.
- I also have no idea if foreign key constraints affect locking behaviour.
- Anyways, I am not a DBA so i don't know for sure, but that is my understanding. Bawolff (talk) 05:21, 11 August 2023 (UTC)
How to prevent media wiki redirecting home page
I have home page with article "Main Article"
Each time I reach home page it redirects me to `index.php?title=Main_Article`
how can I prevent this redirection?
I mean if I'm reading some other articles I can have this in address, but if I'm on homepage I just want to have clear address like: `example.com` KPietrzak (talk) 08:57, 11 August 2023 (UTC)
- Hi
- I am not a MW specialist but I am also dealing with a similar problem.
- Take a look at https://www.mediawiki.org/wiki/Manual:Short_URL especially the section on configuring the Apache server. HP932 (talk) 09:11, 11 August 2023 (UTC)
- See $wgMainPageIsDomainRoot Bawolff (talk) 00:00, 19 August 2023 (UTC)
[f65553e36992a3ade0e7b933] 2023-08-11 10:00:50: Fatal exception of type Wikimedia\Rdbms\DBQueryError
I have the following setup:
- mediawiki 1.40.0
- php 8.1.21
- MariaDB 10.6.12
when i tried to upgrade mediawiki from 1.35 to 1.40 some extensions are added,now an exception occurred while running script update.php "Fatal exception of type Wikimedia\Rdbms\DBQueryError" Gayathrisiby (talk) 10:16, 11 August 2023 (UTC)
- Manual:How to debug —TheDJ (Not WMF) (talk • contribs) 10:59, 11 August 2023 (UTC)
Data on wiki48 website
There is my personal data on the wiki48 website, I hope it can be eradicated 42.98.83.194 (talk) 20:11, 11 August 2023 (UTC)
- Whatever "wiki48" is, you need to contact the folks who run "wiki48". We are not affiliated with them. We only provide the MediaWiki software that anyone can install and use on their own websites, but we do not run random websites outside of the Wikimedia movement. Malyacko (talk) 13:49, 12 August 2023 (UTC)
- Do you know what their contact information is? I've been looking for months and can't find it, thank you so much 42.98.83.194 (talk) 15:56, 12 August 2023 (UTC)
- We don't know which website you refer to. You may contact their hosting provider if there is no contact information on their website, or consider talking to a lawyer if it's more serious. Malyacko (talk) 16:41, 12 August 2023 (UTC)
- stage48.net/wiki/index.php/Main_Page
- Is this page . I can't find contact information after searching for months, and I don't quite understand the stuff on the website:( 42.98.83.194 (talk) 18:00, 12 August 2023 (UTC)
- you could try stage48.net@contactprivacy.com no idea if anyone listens to that email but only one i could find. Bawolff (talk) 22:20, 12 August 2023 (UTC)
- Thank you so muchhh!! 42.98.83.194 (talk) 11:06, 13 August 2023 (UTC)
Unable to save thumbnail to destination
RESOLVED | |
See final post previous to this. |
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.
After an upgrade from 1.37 to 1.39, this message is shown anywhere a thumbnail of an image would otherwise appear. It seems reasonable to take this message at face value at the start of the troubleshooting process. How can I discover the actual file path that the software is trying to use when this fails? To be clear, I am looking for an answer in the form of "mediawiki/upload/temp/filename.extension'.
Enabling $wgDebugLogFile unfortunately does not provide this information.
Using 'touch filename' as the wiki user in places like mediawiki/upload, mediawiki/images, or $wgTmpDirectory works just fine.
Thanks. Kjecl (talk) 21:52, 11 August 2023 (UTC)
- usually you can fix this issue by using chown -R www-data mediawiki/images
- (If mediawiki doesnt run as www-data replace with correct username)
- Generally look at $wgUploadPath in LocalSettings.php combined with the virtual url in the error message to figure out the directory Bawolff (talk) 22:23, 12 August 2023 (UTC)
- Thank you for taking an interest in my troubles.
- In hindsight, I think I may have approached this poorly. My thinking was to reduce the effort for anyone who responded by focusing on the information I needed to troubleshoot further on my own. My usual approach to a "cannot write file" problem is to determine exactly what file (path and filename) the error is associated with, and then look for reasons that the user/process in question cannot write a file in that location (ownership and protection are typical). It might have been better to provide more context of things I had already done.
- " ...fix this issue by using chown -R www-data mediawiki/images"
- myhost:/var/lib/mediawiki# whoami
- root
- myhost:/var/lib/mediawiki# chown -R www-data images/
- myhost:/var/lib/mediawiki# chown -R www-data upload/
- myhost:/var/lib/mediawiki# chown -R www-data cache/
- myhowt:/var/lib/mediawiki# chown -R www-data /tmp/wiki
- myhost:/var/lib/mediawiki# su -s /bin/bash www-data
- www-data@myhost:/var/lib/mediawiki$ touch images/sample.txt
- www-data@myhost:/var/lib/mediawiki$ touch upload/sample.txt
- www-data@myhost:/var/lib/mediawiki$ touch cache/sample.txt
- www-data@myhost:/var/lib/mediawiki$ touch /tmp/wiki/sample.txt
- www-data@myhost:/var/lib/mediawiki$ ls /tmp/wiki
- sample.txt
- www-data@myhost:/var/lib/mediawiki$ ls */sample.txt
- cache/sample.txt images/sample.txt upload/sample.txt
- After the steps above (which I took before the initial post) I still receive this error. Here I have cut the text I see from the source for the page:
- "inline-block;">Error creating thumbnail: Unable to save thumbnail to destination</div"
- "... combined with _the virtual url in the error message_ ..." (emphasis mine)
- Which error message should I be looking at? Where? There is no reference to the file path/name in the message. The file path and name for the file that cannot be saved is also not given in $wgDebugLogFile, although it has many lines of information just to display the main page of the wiki once.
- Thanks. Kjecl (talk) 18:10, 14 August 2023 (UTC)
- By modifying the function transformErrorOutput in the file includes/filerepo/file/File.php, I genererated additional output in the debug log file.
- Here's the modified function:
protected function transformErrorOutput( $thumbPath, $thumbUrl, $params, $flags ) {
$ignoreImageErrors = MediaWikiServices::getInstance()->getMainConfig()
->get( MainConfigNames::IgnoreImageErrors );
$handler = $this->getHandler();
if ( $handler && $ignoreImageErrors && !( $flags & self::RENDER_NOW ) ) {
return $handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
} else {
wfDebug ( 'Cannot save file: URL:'.$thumbUrl.' Path: '.$thumbPath );
return new MediaTransformError( 'thumbnail_error',
$params['width'], 0, wfMessage( 'thumbnail-dest-create' ) );
}
}
- Here's the line generated into the debug log file:
Cannot save file:
URL:/mediawiki/upload/thumb/e/e9/Our_Sales_Graphic.jpg/500px-Our_Sales_Graphic.jpg
Path: mwstore://local-backend/local-thumb/e/e9/Our_Sales_Graphic.jpg/500px-Our_Sales_Graphic.jpg
- So apparently the failure happens because the filename for the thumbnail is appended to the path and filename of the original file, rather than replacing the original filename. There is no Our_Sales_Graphic.jpg folder...
- Any suggestions on how to pursue this further?
- Ken Kjecl (talk) 19:16, 14 August 2023 (UTC)
- > So apparently the failure happens because the filename for the thumbnail is appended to the path and filename of the original file, rather than replacing the original filename. There is no Our_Sales_Graphic.jpg folder...
- This is normal. Normally the directory would be created if it doesn't exist. Can you verify what user mediawiki/webserver is running as (www-data is common but could be something else) and who owns/ what the file mode is for the highest directory that exists in that path? Bawolff (talk) 04:05, 15 August 2023 (UTC)
- Thank you for your interest in my problem.
- As for your questions:
# ps aux | grep apache
www-data 1261 0.0 0.1 291836 38836 ? S 10:21 0:01 /usr/sbin/apache2 -k start
www-data 1264 0.0 0.0 289680 13684 ? S 10:21 0:00 /usr/sbin/apache2 -k start
...
www-data 6413 0.0 0.0 289680 11120 ? S 00:00 0:00 /usr/sbin/apache2 -k start
root 30851 0.0 0.0 289212 19164 ? Ss Aug14 0:04 /usr/sbin/apache2 -k start
www-data 32101 0.0 0.0 289680 11488 ? S 02:53 0:00 /usr/sbin/apache2 -k start
- All of the worker processes are running as www-data.
- As far as I can tell, the directory and file ownerships and file access look fine.
# ls -l | grep upload
drwx------ 24 www-data root 4096 Aug 14 12:49 upload
# ls -l upload | grep thumb
drwxr-xr-x 19 www-data www-data 4096 Aug 1 2014 thumb
# ls -l upload/thumb | grep " e"
drwxr-xr-x 15 www-data www-data 4096 Sep 22 2022 e
# ls -l upload/thumb/e | grep " e9"
drwxr-xr-x 3 www-data www-data 4096 Aug 11 14:21 e9
# ls -l upload/thumb/e/e9
drwxr-xr-x 2 www-data www-data 4096 Dec 6 2018 Our_Sales_Graphic.jpg
# ls -l /var/lib/mediawiki/upload/thumb/e/e9/Our_Sales_Graphic.jpg/500px*
-rw-r--r-- 1 www-data www-data 25192 Oct 2 2014 /var/lib/mediawiki/upload/thumb/e/e9/Our_Sales_Graphic.jpg/500px-Our_Sales_Graphic.jpg
- It occurred to me (finally) that I ought to be able to see apache trying to access the file using strace. I modified /etc/apache2/mods-enabled/mpm_prefork.conf to reduce the number of worker processes. I used pgrep to find the process IDs.
# pgrep apach
573
8184
8192
11575
31140
32188
- I ran strace like this:
strace -vff -f -p 573 -p 8184 -p 8192 -p 11575 -p 31140 -p 32188 -s100 2>&1 | cat >strace-max.txt
- and then connected a browser to the home page of the wiki so that I would see the 'Unable to save thumbnail' error. I have tried this more than once. Sometimes, I see no reference to a thumbnail. I assume that my strace technique is not capturing everything I need. However, at least once I saw this:
[pid 11575] statx(AT_FDCWD, "/usr/share/mediawiki/upload/thumb/e/e9/Our_Sales_Graphic.jpg/500px-Our_Sales_Graphic.jpg", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, 0xbfdde3ec) = -1 ENOENT (No such file or directory)
- In the past (1.37), the wiki software looked for and found these files in /var/lib/mediawiki/upload. Now (1.39) it is looking in a different place. I tried creating a link from /usr/share/mediawiki/upload to /var/lib/mediawiki/upload. Unfortunately, that does not solve the problem.
- Any suggestions?
- Thanks,
- Ken Kjecl (talk) 20:26, 16 August 2023 (UTC)
- Keep in mind mediawiki will cache views so wont try to rerender images on every view. You can add ?action=purge (or &action=purge depending on url structure) at end of url to force a rerender. Editing a page will also force it to be rerendered.
- If you installed via a package manager (or other non official source) sometimes they modify mediawiki to save files somewhere else in the filesystem.
- Generally $wgUploadPath and $wgUploadDirectory (usually specified in LocalSettings.php) control where files are saved. Other more obscure settings like $wgLocalFileRepo can also affect this but typically they are not modified from the default.
- You can use maintenance/eval.php to verify the runtime value of these settings (e.g.
var_dump($wgUploadDirectory);
) Bawolff (talk) 03:06, 17 August 2023 (UTC) - Thank you for your interest in my problem.
- Re above: Aha!
$ php maintenance/eval.php
> var_dump($wgUploadDirectory)
string(27) "/usr/share/mediawiki/upload"
- Therefore, modify LocalSettings.php (from $IP to explicit path):
now: $wgUploadDirectory = "/var/lib/mediawiki/upload";
---
was: $wgUploadDirectory = "$IP/upload";
- Now, the thumbnail graphics are displayed as expected!
- Thanks!
- Ken Kjecl (talk) 18:23, 17 August 2023 (UTC)
Cannot create my own user page. (Disallowed names?)
- When trying to create my user page, I get the following error:
- The title "User:Thatgaypigeon" has been banned from creation. It matches the following disallowed titles list entry:
.*gay.*
- The title "User:Thatgaypigeon" has been banned from creation. It matches the following disallowed titles list entry:
- Not only should I be able to create my own user page, but why is "gay" a 'banned word' in the first place?
- If the outcome of this is that I have to change my username I'm going to be very annoyed (angry). Thatgaypigeon (talk) 11:22, 12 August 2023 (UTC)
- There's no such local rule here and nothing shown in the abuse log. There is a local abusefilter rule to prevent new user pages here and redirect you to meta though, so if you tried on meta you'd need to ask there. Clump (talk) 13:36, 12 August 2023 (UTC)
- There is, see MediaWiki:Titleblacklist. I haven't tried on Meta, but I will now. :) Thatgaypigeon (talk) 14:15, 12 August 2023 (UTC)
- Ah, I was only looking at the abuse log. But yes, going to meta would be needed anyway. Clump (talk) 14:23, 12 August 2023 (UTC)
- I tried on Meta, and I was able to create my user page. However, I would still like to make my page here too, as it would have different content. Thatgaypigeon (talk) 18:58, 12 August 2023 (UTC)
- I tried creating the first revision. I think you can edit it once it is created.
- We do generally encourage people to just have a central page at meta Bawolff (talk) 22:13, 12 August 2023 (UTC)
Style error in Special:MobileDiff
- MediaWiki version: 1.40.0
- PHP version: 8.1.21
- MariaDB version: 11.0.2
- MobileFronted version: 2.4.1
- Minerva version: 2023-06-29
- URL: https://wiki.mcbe-dev.net/
Hello, I am editing wiki on my phone. When I use desktop view, the page for comparing revisions is Special:Diff, which works correctly. But when I switch to mobile view, comparing revisions uses Special:MobileDiff, whose style is broken: The old and new revision are supposed to take up 50% of the screen width, but actually they both take up 100% of the screen width. (Example: Diff, MobileDiff)
I tried to compare revisions in Wikipedia. In Wikipedia, the view of Special:MobileDiff is completely different: There is no 2-column look, instead, the changes are highlighted. Example
Why are the views totally different? Are there any special configurations for Wikipedia, or is this mcbe-dev wiki missing something? TripleCamera2022 (talk) 06:15, 13 August 2023 (UTC)
- I moved this topic to Extension talk:MobileFrontend because it is about a specific extension. TripleCamera2022 (talk) 04:49, 21 August 2023 (UTC)
Script error: No such module "infobox".Script error: No such module "Check for unknown parameters".Script error: No such module "Check for clobbered parameters".
Script error: No such module "infobox".Script error: No such module "Check for unknown parameters".Script error: No such module "Check for clobbered parameters".
Infobox person export from Wikipedia import to my web can someone please help me how i can fix this Bednamri (talk) 14:00, 13 August 2023 (UTC)
- See "Post a new question" in the sidebar; please also provide full and precise steps to reproduce, step by step, as a list, as only you know what you have (not) done before. Malyacko (talk) 13:18, 14 August 2023 (UTC)
- Manual:Importing_Wikipedia_infoboxes_tutorial might be helpful Bawolff (talk) 07:50, 15 August 2023 (UTC)
HTTP 500 errors throughout the (partially upgraded?) wiki
RESOLVED | |
The solution was to increase $wgMemoryLimit from its default 50M. I did learn a few things however, in going about resolving it the long way... |
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.
In addition to Project:Support desk/Flow/2023/08#h-Updated_to_1.40_successfully,_but_does_not_reflect_in_Special:Version-20230801123800 I now have been receiving reports that some pages are not accessible.
When I try to replicate, I get a HTTP error 500 on, among others, the Special:Version page.
I've tried to see if I could find any information by enabling the following:
$wgShowExceptionDetails, $wgDebugToolbar, $wgShowDebug, $wgDevelopmentWarnings, $wgDebugDumpSql, $wgShowExceptionDetails, and $wgShowSQLErrors
On pages that do *not* result in a HTTP Error 500, this does show extra information.
On pages that result in a HTTP Error 500, nothing is (understandably?) shown.
What can I do to further troubleshoot this? The bulk of the wiki seems to work. Techcare.noc (talk) 10:05, 14 August 2023 (UTC)
- You should look into the logs for reasons. Malyacko (talk) 13:17, 14 August 2023 (UTC)
- I did...
- And I can't find any...
- Nothing in the HTTP log, other than "there was a HTTP 500 error"
- Nothing in the Error log, nothing in the access log. Techcare.noc (talk) 14:35, 14 August 2023 (UTC)
- Normally you would look in your php error log. Are you sure you are looking at the correct log file?
- Also, be sure to put
error_reporting( -1 );ini_set( 'display_errors', 1 );
in your LocalSettings.php Bawolff (talk) 07:49, 15 August 2023 (UTC) - Manual:How to debug —TheDJ (Not WMF) (talk • contribs) 08:03, 15 August 2023 (UTC)
- I've managed to retrieve the page, and am currently rebuilding it.
- I've found that the HTTP error happens when there is an external URL in the page that includes "http://". If I remove it and enclose it in the usual double square brackets, the page is displayed as required.
- I'll have a look again to find the PHP logs,
- As to the "how to debug" article: I went over that thing 5 times, but it did not give me the information I needed.
- For starters the whole section on Vagrant and PHP Storm is moot for me. Techcare.noc (talk) 09:33, 15 August 2023 (UTC)
- In my /etc/php.ini I have the following:
; https://php.net/log-errors
log_errors = On
error_log=/var/log/httpd/php_scripts_error.log
- In that log I find... nothing.
- The last error I find is in /var/log/httpd/php_scripts_error.log-20230802:
[01-Aug-2023 12:27:02 UTC] PHP Fatal error: Error Loading extension. Unable to open file /var/www/mediawiki-1.40.0/extensions/HideSidebar/extension.json: filemtime(): stat failed for /var/www/mediawiki-1.40.0/extensions/HideSidebar/extension.json in /var/www/mediawiki-1.40.0/includes/registration/MissingExtensionException.php on line 98
- I've currently disabled that extension, because I'm not sure about the workings of version 1.40.0.
- I do not see any php errors regarding Special:Version, although when I try to access that page, I get a HTTP error 500...
- Please not that I upgraded to version 1.40.0 on August 1st. Techcare.noc (talk) 11:59, 15 August 2023 (UTC)
- Is the 500 page just a blank white page or is there any sort of message (even a generic one)?
- Maybe could be some sort of WAF or mod_security thing, but that would be really weird to trigger just on a url. Check also web server error log if you haven't already (i dont know what exactly you meant by http error log). Bawolff (talk) 13:03, 15 August 2023 (UTC)
- Our wiki runs on RedHat Linux 9.0.
- I have all the logs I should ever want in /var/log/.
- specifically for the web server there is a directory /var/log/httpd
- In here I have error logs, access logs, php scripts error logs, ssl access/error/request logs...
- I just tried accessing special:version again.
- The http access log tells me:
- <IP address> - - [16/Aug/2023:08:41:30 +0000] "GET /images/thumb/9/99/Corporateicon.png/200px-Corporateicon.png HTTP/1.1" 304 - "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <IP address> - - [16/Aug/2023:08:41:30 +0000] "GET /images/thumb/7/74/Knowledgebase.png/200px-Knowledgebase.png HTTP/1.1" 304 - "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <IP address> - - [16/Aug/2023:08:41:30 +0000] "GET /images/thumb/0/02/Admintasks.png/200px-Admintasks.png HTTP/1.1" 304 - "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <IP address> - - [16/Aug/2023:08:41:30 +0000] "GET /images/thumb/6/63/Agentofthemonth.png/130px-Agentofthemonth.png HTTP/1.1" 304 - "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <IP address> - - [16/Aug/2023:08:41:35 +0000] "GET /index.php?title=Special:SpecialPages HTTP/1.1" 200 36037 "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <IP address> - - [16/Aug/2023:08:41:35 +0000] "GET /load.php?lang=en&modules=ext.echo.styles.badge%7Cext.visualEditor.desktopArticleTarget.noscript%7Cjquery.makeCollapsible.styles%7Cmediawiki.helplink%2Cspecial%7Cmediawiki.special.changeslist.legend%7Coojs-ui.styles.icons-alerts%7Cskins.vector.styles.legacy&only=styles&skin=vector HTTP/1.1" 200 70700 "https://wiki.24x7techcare.com/index.php?title=Special:SpecialPages" <client>
- <IP address> - - [16/Aug/2023:08:41:37 +0000] "GET / HTTP/1.1" 200 15829 "-" <client>
- <IP address> - - [16/Aug/2023:08:41:44 +0000] "GET /index.php?title=Special:Version HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:SpecialPages" <client>
- <IP address> - - [16/Aug/2023:08:42:04 +0000] "-" 408 - "-" "-"
- <IP address>- - [16/Aug/2023:08:42:15 +0000] "GET / HTTP/1.1" 200 15829 "-" <client>
- Yesterday's Web site error log (nothing today) tells me:
- [Tue Aug 15 11:18:17.915943 2023] [authz_core:error] [pid 143587:tid 143794] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Service_SLA%27s
- [Tue Aug 15 11:18:20.165945 2023] [authz_core:error] [pid 143587:tid 143748] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Service_SLA%27s
- [Tue Aug 15 11:18:24.293506 2023] [authz_core:error] [pid 143587:tid 143791] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Service_SLA%27s
- [Tue Aug 15 11:18:26.314194 2023] [authz_core:error] [pid 143587:tid 143785] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Service_SLA%27s
- [Tue Aug 15 11:18:29.033925 2023] [authz_core:error] [pid 143587:tid 143753] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Main_Page
- [Tue Aug 15 11:18:30.247632 2023] [authz_core:error] [pid 143587:tid 143755] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Special:UserLogin&returnto=Main+Page&returntoquery=
- [Tue Aug 15 11:18:31.382081 2023] [authz_core:error] [pid 143587:tid 143769] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Main_Page
- [Tue Aug 15 11:18:37.308687 2023] [authz_core:error] [pid 143587:tid 143793] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki
- [Tue Aug 15 11:19:05.291415 2023] [authz_core:error] [pid 143587:tid 143756] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki
- [Tue Aug 15 11:19:07.136858 2023] [authz_core:error] [pid 143587:tid 143780] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki
- Yesterday's error log (general server?) tells me:
- [Mon Aug 14 13:01:31.640801 2023] [mpm_event:notice] [pid 1244:tid 1244] AH00492: caught SIGWINCH, shutting down gracefully
- [Mon Aug 14 13:01:32.706791 2023] [core:notice] [pid 135530:tid 135530] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
- [Mon Aug 14 13:01:32.707694 2023] [suexec:notice] [pid 135530:tid 135530] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
- [Mon Aug 14 13:01:32.835993 2023] [lbmethod_heartbeat:notice] [pid 135530:tid 135530] AH02282: No slotmem from mod_heartmonitor
- [Mon Aug 14 13:01:32.842596 2023] [mpm_event:notice] [pid 135530:tid 135530] AH00489: Apache/2.4.53 (Red Hat Enterprise Linux) OpenSSL/3.0.7 configured -- resuming normal operations
- [Mon Aug 14 13:01:32.842627 2023] [core:notice] [pid 135530:tid 135530] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
- [Tue Aug 15 00:00:04.709701 2023] [mpm_event:notice] [pid 135530:tid 135530] AH00493: SIGUSR1 received. Doing graceful restart
- [Tue Aug 15 00:00:04.822335 2023] [lbmethod_heartbeat:notice] [pid 135530:tid 135530] AH02282: No slotmem from mod_heartmonitor
- [Tue Aug 15 00:00:04.823944 2023] [mpm_event:notice] [pid 135530:tid 135530] AH00489: Apache/2.4.53 (Red Hat Enterprise Linux) OpenSSL/3.0.7 configured -- resuming normal operations
- [Tue Aug 15 00:00:04.823973 2023] [core:notice] [pid 135530:tid 135530] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
- Hope that helps. Techcare.noc (talk) 08:55, 16 August 2023 (UTC)
- The
- > [Tue Aug 15 11:18:30.247632 2023] [authz_core:error] [pid 143587:tid 143755] [client <IP:port>] AH01630: client denied by server configuration: /var/www/mediawiki, referer: https://wiki.24x7techcare.com/index.php?title=Special:UserLogin&returnto=Main+Page&returntoquery=
- Sounds like an apache config error (maybe in a .htaccess), but i could also expect that to be a 403 not 500. That snippet of log is for august 15 and the access log is aug 16. So its probably separate from your issue on aug 16.
- anyways:
- > <IP address> - - [16/Aug/2023:08:41:44 +0000] "GET /index.php?title=Special:Version HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:SpecialPages" <client>
- At least confirms that the error is generated by your webserver, and it sounds like a 0 byte response. This puts it most likely in the realm of php error. But its surprising nothing is in your apache error log or php error log. If it was a php error i would expect something in that log, if php was segfaulting i would expect something in the apache error log. If you are using pho-fpm sometimes that has a separate error log so check for that too.
- Also i would suggest verifying that your error logging is working. Try making some sort of typo in LocalSettings.php (add sone random text, no semi-colon at end of line) and check that it makes errors show up in php log. Bawolff (talk) 10:21, 16 August 2023 (UTC)
- When I did this, the whole site went to HTTP error 500...
- I found the log /var/log/php-fpm/www-error.log:
[16-Aug-2023 11:40:37 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:42 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:44 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:46 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:48 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:52 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:40:55 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:41:04 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:41:04 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
[16-Aug-2023 11:41:16 UTC] PHP Parse error: syntax error, unexpected identifier "is" in /var/www/mediawiki-1.40.0/LocalSettings.php on line 92
- I have /var/log/httpd/24x7techcare.com-access.log
- <client host> - - [16/Aug/2023:11:40:42 +0000] "GET /index.php?title=Special:Version HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:SpecialPages" <client>
- <client host> - - [16/Aug/2023:11:40:44 +0000] "GET /index.php?title=Special:Version HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:SpecialPages" <client>
- <client host> - - [16/Aug/2023:11:40:46 +0000] "GET /index.php?title=Special:SpecialPages HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Main_Page" <client>
- <client host> - - [16/Aug/2023:11:40:48 +0000] "GET /index.php?title=Main_Page HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:UserLogin&returnto=Main+Page" <client>
- <client host> - - [16/Aug/2023:11:40:52 +0000] "GET /index.php?title=Main_Page HTTP/1.1" 500 - "https://wiki.24x7techcare.com/index.php?title=Special:UserLogin&returnto=Main+Page" <client>
- <client host> - - [16/Aug/2023:11:40:55 +0000] "GET /index.php?title=Main_Page HTTP/1.1" 500 - "-" <client>
- <client host> - - [16/Aug/2023:11:41:04 +0000] "GET / HTTP/1.1" 500 - "-" <client>
- <client host> - - [16/Aug/2023:11:41:04 +0000] "GET / HTTP/1.1" 500 - "-" <client>
- <client host> - - [16/Aug/2023:11:41:16 +0000] "GET / HTTP/1.1" 500 - "-" <client>
- <client host> - - [16/Aug/2023:11:41:24 +0000] "-" 408 - "-" "-"
- <client host> - - [16/Aug/2023:11:41:31 +0000] "GET / HTTP/1.1" 200 15829 "-" <client>
- <client host> - - [16/Aug/2023:11:41:32 +0000] "GET /load.php?lang=en&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cskins.vector.styles.legacy&only=styles&skin=vector HTTP/1.1" 304 - "https://wiki.24x7techcare.com/" <client>
- <client host> - - [16/Aug/2023:11:41:32 +0000] "GET /load.php?lang=en&modules=site.styles&only=styles&skin=vector HTTP/1.1" 304 - "https://wiki.24x7techcare.com/" <client>
- <client host> - - [16/Aug/2023:11:41:32 +0000] "GET /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector HTTP/1.1" 200 40198 "https://wiki.24x7techcare.com/" <client>
- I'm not aware I did any changes to php.ini prior to upgrading... Techcare.noc (talk) 11:55, 16 August 2023 (UTC)
- Well that is a good sign at least your error loging is working correctly. Bawolff (talk) 18:53, 16 August 2023 (UTC)
- It's mostly blank...
- But there *is* a message on it.
- = This page isn’t working =
- wiki.24x7techcare.com is currently unable to handle this request.
- HTTP ERROR 500
- With a sad document face and a "reload" button...
- There's no point in trying to access the site, because it should be blocked by our firewall. Techcare.noc (talk) 13:27, 15 August 2023 (UTC)
- An interesting observation, that may be useful to resolve the issue(s):
- Again today a page was reported as causing a HTTP error 500.
- I went to the page, added "&action=edit" to it, and started troubleshooting.
- The *only* thing wrong with this page was that one of the URLs on it started with "http://" instead of "https://".
- After doublechecking the URL in the browser, and finding it responded as https, I changed the URL in the wiki, and the HTTP error 500 was gone.
- Is this someting in the wiki, or am I looking at Apache? Techcare.noc (talk) 08:40, 21 August 2023 (UTC)
- Can be that that wgServer or wgCanonicalServer is set to begin with http://. If that's not it, then possibly you have a proxy that forwards via http and this gets autodetected as the protocol, and you simply have to set wgServer explicitly ? —TheDJ (Not WMF) (talk • contribs) 09:25, 21 August 2023 (UTC)
- I'll have a look at that, thank you very much. Techcare.noc (talk) 11:33, 21 August 2023 (UTC)
- On the firewall, http is forwarded to https, so that even if someone types "http://wiki.24x7techcare.com/", they will still end up at "https://wiki.24x7techcare.com".
- I do have the following as $wgServer:
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://wiki.24x7techcare.com";
- But for me this does not logically dictate that any external URL inside a page that doesn't start with https:// causes a server error...
- I find it odd that these problems only surfaced after upgrading to 1.40.0. Techcare.noc (talk) 11:53, 21 August 2023 (UTC)
- So i think the best debugging step would be to narrow things down
- if you put
var_dump("here");die()
in LocalSettings.php temporarily, do the pages that used to give 500 still do, or do they say here? If they say here, that means php error or segfault. Lack of log events would imply to me segfault, but hard to be sure. If they continue to give 500 then its probably some other layer not mediawiki/php (this is not a 100% test, there could be situations where it doesnt mean this but it would be unusual). Anyways, if it is php segfaulting, you can try running a different version of php - does it still happen after disabling all extensions. Especially ones that deal with urls like SpamBlacklist or SecureLinkFixer? Bawolff (talk) 12:13, 21 August 2023 (UTC)
- Disabling SpamBlacklist and SecureLinkFixer *did* resolve the issue, apparently...
- Again, only disabled the extentions, and not restarted HTTPD.
- I doublechecked: reactivating var_dump("here");die() still causes the whole site to go down. Techcare.noc (talk) 13:08, 22 August 2023 (UTC)
- That's kind of the point - to establish if the 404 error is happening before or after processing LocalSettings.php.
- Anyways sounds like the issue is in one of those two extensions. So either php error reporting isn't working in that specific case, which would be weird if it is working elsewhere,or php is segfaulting (normally that would show up in web server error log or maybe php-fpm log in some setups). If php is segfaulting the only thing you can really do is update your version of php. Bawolff (talk) 15:00, 22 August 2023 (UTC)
- That's helpful.
- Let me make sure I have the latest version of PHP, and see what happens if I re-activate the extentions. Techcare.noc (talk) 07:22, 23 August 2023 (UTC)
- In light of the entries in /var/log/php-fpm I have re-activated SpamBlacklist.
- The one page that I know would not work and won't show up with &action=edit does now work fine. Techcare.noc (talk) 10:00, 23 August 2023 (UTC)
- PHP was up-to-date...
- I might have found the issue...
- Looking in /var/log/php-fpm/www-error.log (an earlier one) I found the following:
[14-Aug-2023 13:05:54 UTC] PHP Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10485760 bytes) in /var/www/mediawiki-1.40.0/extensions/SecureLinkFixer/includes/HSTSPreloadLookup.php on line 38
- That would certainly do something, I guess.
- I'll look at the memory available vs the memory allotted... Although 400 Mebibytes for one process... may be a bit much? Techcare.noc (talk) 07:36, 23 August 2023 (UTC)
- LocalSettings.php has
$wgMaxShellMemory = 524288;
- So 512 MiB max available. Techcare.noc (talk) 07:58, 23 August 2023 (UTC)
- Max Shell memory is a different type of memory than the memory the error you are referencing above is talking about. That error is talking about the
memory_limit
value in php.ini. - Note, PHP OOM notices are known for being misleading when it comes to which file is causing the memory limit to be exceeded. Sometimes the problem is in a different file than where the error indicates.
- SecureLinkFixer does load a somewhat big file, but the size of that file is only 3MB. Bawolff (talk) 08:37, 23 August 2023 (UTC)
- Ok.
- I look at memory_limit in php.ini, and find the following:
; Maximum amount of memory a script may consume
; https://php.net/memory-limit
memory_limit = 30M
- If it isn't SecureLinkFixer that's causing the issue, where would I look for the actual culprit? Techcare.noc (talk) 12:30, 23 August 2023 (UTC)
- 30M is very low for mediawiki. I would reccomend 128M. 64M is probably the absolute bare minimum. However this is odd since your other error message said the limit was much higher.
- > If it isn't SecureLinkFixer that's causing the issue, where would I look for the actual culprit?
- While in this case if you disabled it and then the site worked, it probably is. The error message mostly indicates that secure link fixer is the straw that broke the camel's back. It could be it alone or it could be the thing that pushed the memory over the edge. Bawolff (talk) 14:25, 23 August 2023 (UTC)
- I'll change it to 64M and re-activate SLF.
- If this breaks the Special:Version page, I can change it to 128M and try again.
- Until my VM starts complaining... ;) Techcare.noc (talk) 07:26, 24 August 2023 (UTC)
- So...
- I've changed the php.ini settings as follows:
; Maximum amount of memory a script may consume
; https://php.net/memory-limit
memory_limit = 256M (go big or go home)
- I've re-activated SecureLinkFixer, and...
[24-Aug-2023 07:39:12 UTC] PHP Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10485760 bytes) in /var/www/mediawiki-1.40.0/extensions/SecureLinkFixer/includes/HSTSPreloadLookup.php on line 38
- Looking for the 52428800, i find it in Scribunto, DiscussionTools and other places, mostly related to lua. Techcare.noc (talk) 08:46, 24 August 2023 (UTC)
- You can create a php file containing just
<?php phpinfo();
. When you visit it in the browser it should tell you where all the various php config files are. - The 52428800 (same as 50M) probably comes from the default value for $wgMemoryLimit Bawolff (talk) 09:59, 24 August 2023 (UTC)
- I've just tested...
- I have tried increasing $wgMaxShellMemory to 786432;
- I have tried setting $wgMemoryLimit to 1342180;
- I have tried disabling wfLoadExtension( 'SecureLinkFixer' ); and wfLoadExtension( 'SpamBlacklist' ); separately.
- Only when wfLoadExtension( 'SecureLinkFixer' ); is disabled, do I get access to Special:Version.
- It doesn't look like the issue is somewhere else. Techcare.noc (talk) 12:03, 24 August 2023 (UTC)
- If the default $wgMemoryLimit of 50mb is too small, setting to 1.2mb is probably not going to help. Did you mean to have two extra 0's there?
- Try setting $wgMemoryLimit = "128M";
- Of course, if nothing else is broken and you don't care about https link rewriting, you could always just disable the extension and carry on. Bawolff (talk) 15:24, 24 August 2023 (UTC)
- I probably did mean to write more zeroes there...
- I've disabled the extension, and if it turns out some page breaks because of it, I know what to fix...
- I'll have look at setting "128M". 195.240.70.227 (talk) 14:50, 25 August 2023 (UTC)
- if you put
- As soon as I put the var_dump("here");die() in LocalSettings.php, the whole wiki goes down (HTTP error 500).
- I did *not* restart HTTPD.
- I've set up a test server from scratch, and that doesn't have these issues...
- The data is the same...
- I'll have a look at the extentions... Techcare.noc (talk) 13:02, 22 August 2023 (UTC)
- Problem is fully resolved afterincreasing $wgMemoryLimit from '50M' to '128M'...
- How simple can it be... Techcare.noc (talk) 07:49, 28 August 2023 (UTC)
PHP version location
We have upgraded our PHP so that we can move forward with upgrading MediaWiki. There is an odd issue with the new PHP version where it shows correctly under /usr/bin but not under /usr/local/bin. Can anyone tell me where MediaWiki looks for the PHP version? LouiseCooke1 (talk) 14:39, 14 August 2023 (UTC)
EmailSending does not give any error but does not send either
RESOLVED | |
Activated the $wgDebugLogFile and there were problems connecting to the SMTP server. |
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 configure my email to be sent through SMTP using this config :
$wgEmergencyContact = "bot@company.com";
$wgPasswordSender = "bot@company.com";
$wgSMTP = [
'host' => 'ssl://company-com.mail.protection.outlook.com',
'IDHost' => 'wiki.company.local',
'port' => 25,
'auth' => true,
'username' => 'bot@company.com',
'password' => 'ThePassword',
];
and I have this added the mail function to the disable_functions in my php.ini for this (Set to false (the default value) to use the built-in PHP mail() function):
disable_functions = mail
I do not get any error when trying to send the password reset email, but I don't receive it.
I do not have access to our SMTP server as it is managed by an external resource.
I have used this configuration in the past on another project in C# and it worked.
Also no matter what I set in my $wgSMTP, I don't get any errors. I could put 'Banana@Potato.mashed' and I wouldn't get any errors.
Any help is appreciated. Thanks Mathias Langlois (talk) 14:41, 14 August 2023 (UTC)
- Can you enable the mediawiki debug log ($wgDebugLogFile) to see if there are any mail sending errors?
- Are you sure the port is correct? Normally i would expect using 587 if using ssl. Bawolff (talk) 07:45, 15 August 2023 (UTC)
- Only difference between port 25 and 857 is that 857 takes a good 10 seconds once I click on Send Email or Create Account.
- Is the way I disabled the mail function the right way to do it?
- PEAR::Mail failed: Failed to connect to ssl://company-com.mail.protection.outlook.com:25 [SMTP: Failed to connect socket: (code: -1, response: )] Mathias Langlois (talk) 12:13, 15 August 2023 (UTC)
- Traditionally port 25 is unencrypted (or opportunistcally encrypted) where 587 is mandatory tls. I would normally think you either have to not have ssl:// prefixing the host name and use 25, or you can have the ssl:// prefix and use 587.
- > have set my $wgDebugLogFile to the same place as my error.log and access.log files and I don't see any debug file generated ($wgDebugLogFile = "/mediawiki/log/debug.log")
- Be sure mediawiki has permission to create that file.
- > Is the way I disabled the mail function the right way to do it?
- It shouldn't matter. If $wgSMTP is set than mediawiki should not try to use mail() so it doesn't really matter whether or not its disabled. Bawolff (talk) 12:56, 15 August 2023 (UTC)
- Alright so I found this error in the debug file :
- PEAR::Mail failed: Failed to connect to ssl://company-com.mail.protection.outlook.com:25 [SMTP: Failed to connect socket: (code: -1, response: )] Mathias Langlois (talk) 12:59, 15 August 2023 (UTC)
- Alright it works now...
- I just got the information from the external ressource managing the SMTP server telling me that I don't need the auth and I also didn't need the "ssl://"
- Thank you for your time and have a nice day/night Mathias Langlois (talk) 13:05, 15 August 2023 (UTC)
Use OAuth2 with common Identity Provider like Google or AAD
I'm trying to configure my Mediawiki installation to allow users to authenticate with their GMail, Hotmail, or Azure AD accounts. I'd like to use an extension for the OAuth2 client part, and I found this one: https://www.mediawiki.org/wiki/Extension:OAuth2_Client
It seems that it's no longer being developed, and I'm encountering some errors that I can't resolve (e.g., Error: Call to undefined method User::isLoggedIn()). Is there a better extension or method for this issue?
Mediawiki 1.40
PHP 8.2
MariaDB
Debian 12
Update pho error
Every time I go to update php page I get this error how do I fix it? I have media wiki installed
Error starting session: session_start(): open(/var/cpanel/php/sessions/alt-php84/sess_0fd69931e40c0299e70ea65914d278e4, O_RDWR) failed: No such file or directory (2) Cocopuff2018 (talk) 02:11, 15 August 2023 (UTC)
- Your php cannot write to that directory on your server. This seems like a server configuration problem of cpanel —TheDJ (Not WMF) (talk • contribs) 08:02, 15 August 2023 (UTC)
Page problem
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.
Trying to setup a new wikisite without php-knowledge is not easy. I'm trying to make a standard page what can be used to add new pages made by the users who contribute. The intention is that users fill-in a form ... select an image from their user-upload and write a description about their image. I want to have new pages who will looklike the same but have different content. I have installed Forms and use Forminput to make the new pages. The form-data will be used later to make query's so that users can easily find certain images. Because Forminput only use a choosen form to make new pages ... how do i make the standard page? Ronald vd D (talk) 06:12, 15 August 2023 (UTC)
- Maybe you are looking for Extension:PageForms Bawolff (talk) 07:42, 15 August 2023 (UTC)
- I have installed PageForms but i guess that i'm doing something wrong. After entering the new name of the article I can fill in the form and the information is in the new page. I transcluded the image- and text-templates also but i don't see any image in the preview.
- This is what i wanted to setup:
- Registered users can upload an image of their item to their personal image map.
- Then they can make a new article (with Inputbox).
- Because the layout of every new article must be the same ... i need a template with a form, an image what the user can choose from their image map and a free text-area where they can put the information about their item. Ronald vd D (talk) 14:01, 15 August 2023 (UTC)
How to configure my wiki to use more than one database
Hello friends, my MySQL database has reached the limit of 1GB. So I cant upgrade from 1.37 to newer version. I am asking fro help in configuring it to use a more than one database.
I have tried following the documentation but I am still stuck 217.138.206.83 (talk) 11:23, 15 August 2023 (UTC)
- Not really the easiest to setup. I would suggest just getting a better hosting provider.
- Note - the objectcache table can sonetimes get big but it is all temporary data and can be safely deleted to free up some space.
- You can compres pages with manual:compressOld.php. See also manual:$wgCompressRevisions
- If you really want to use multiple dbs see manual:external storage but i do not recconend it for a novice sysadmin
- Always take a backup before trying any of these things. Bawolff (talk) 13:07, 15 August 2023 (UTC)
- Thank you so much 41.89.16.2 (talk) 14:48, 15 August 2023 (UTC)
Editable files
Greetings. Is there any guidance about how best to make available the original media files, more easily editable than the final images? For example, I have drawn a diagram (in powerpoint or other software) and am exporting a PNG. Thanks! Fgnievinski (talk) 15:52, 15 August 2023 (UTC)
- Export an SVG instead. Malyacko (talk) 18:38, 15 August 2023 (UTC)
- Thanks for the suggestion. I forgot to say the PPT file contains an animation. When I export it as SVG, it creates a separate file for each slide. So, it'd be hard to modify all the files. Anyways, I've realized I'm not at the Wiki Commons helpdesk, so I'm moving my answer there: https://commons.wikimedia.org/wiki/Commons:Help_desk#Original_editable_files Fgnievinski (talk) 22:16, 15 August 2023 (UTC)
There's no edit button on mobile on the main page of a wiki
mediawiki version: 1.40.0
visual editor on mobile is enabled and works if you go to edit history and click edit in there
minervaNeue skin Mediabobedit (talk) 22:08, 15 August 2023 (UTC)
LuaCommon\LuaInterpreterNotFoundError"
everytime i try to add code for templates i get this error and am unsure how to fix it
[03493ac7b7eb69815aef4b79] 2023-08-16 14:24:03: Fatal exception of type "MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaInterpreterNotFoundError"
could someone please help? Cocopuff2018 (talk) 14:24, 16 August 2023 (UTC)
- Please see "Post a new question" in the sidebar. Did you follow instructions on Extension:Scribunto ? What is the path to your Lua interpreter? Malyacko (talk) 15:24, 16 August 2023 (UTC)
- what exacley do i need for this to work? @Malyacko i followed all the instructions, also i dont know the pathway to my lua Cocopuff2018 (talk) 21:02, 17 August 2023 (UTC)
- Then find out the pathway to your Lua. Malyacko (talk) 00:31, 18 August 2023 (UTC)
- what config have you put in LocalSettings.php related to scribunto? Which operator system/processor family? Bawolff (talk) 00:02, 19 August 2023 (UTC)
- hello
- i have not installed anything however now i am getting this error @Bawolff
- [mM2e8hCy5cZU@d5vMIPSsL3f] /index.php?title=Module:Documentation&action=submit MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaInterpreterNotFoundError: The luasandbox extension is not present, this engine cannot be used. Cocopuff2018 (talk) 20:49, 19 August 2023 (UTC)
- @Cocopuff2018 Please read that error message and explain what exactly is unclear about that error message. Malyacko (talk) 07:32, 20 August 2023 (UTC)
- Please post your LocalSettings.php file (redacting any passwords) Bawolff (talk) 07:33, 20 August 2023 (UTC)
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, e.g. 'vector' or 'monobook':
- $wgDefaultSkin = "vector";
- # Enabled skins.
- # The following skins were automatically enabled:
- wfLoadSkin( 'MinervaNeue' );
- wfLoadSkin( 'MonoBook' );
- wfLoadSkin( 'Timeless' );
- wfLoadSkin( 'Vector' );
- # Enabled extensions. Most of the extensions are enabled by adding
- # wfLoadExtension( 'ExtensionName' );
- # to LocalSettings.php. Check specific extension documentation for more details.
- # The following extensions were automatically enabled:
- wfLoadExtension ( 'VisualEditor' );
- wfLoadExtension( 'CheckUser' );
- wfLoadExtension( 'AbuseFilter' );
- wfLoadExtension( 'TemplateStyles' );
- wfLoadExtension( 'TemplateData' );
- wfLoadExtension( 'ParserFunctions' );
- wfLoadExtension( 'Discord' );
- wfLoadExtension( 'OATHAuth' );
- wfLoadExtension( 'UserMerge' );
- wfLoadExtension( 'ThrottleOverride' );
- wfLoadExtension( 'Interwiki' );
- $wgScribuntoDefaultEngine = 'luastandalone';
- # CentralAuth
- wfLoadExtension( 'CentralAuth' );
- $wgCentralAuthDatabase = 'centralauth';
- # End of automatically generated settings.
- # Add more configuration options below.
- $wgTmpDirectory = "/home/glueitdi/tmp_x9q5lx";
- $wgGroupPermissions['user']['read'] = true;
- wfLoadExtension( 'Scribunto' );
- $wgScribuntoDefaultEngine = 'luastandalone';
- $wgScribuntoDefaultEngine = 'luasandbox';
- $wgScribuntoEngineConf['luastandalone']['key'] = 'value';
- $wgGroupPermissions['bureaucrat']['userrights'] = false;
- $wgGroupPermissions['steward']['disableaccount'] = true;
- $wgGroupPermissions['steward']['block'] = true;
- $wgGroupPermissions['steward']['abusefilter-modify'] = true;
- $wgGroupPermissions['steward']['abusefilter-log-detail'] = true;
- $wgGroupPermissions['steward']['abusefilter-view'] = true;
- $wgGroupPermissions['steward']['abusefilter-log'] = true;
- $wgGroupPermissions['steward']['abusefilter-privatedetails'] = true;
- $wgGroupPermissions['steward']['abusefilter-modify-restricted'] = true;
- $wgGroupPermissions['steward']['abusefilter-revert'] = true;
- $wgGroupPermissions['steward']['renameuser'] = true;
- $wgGroupPermissions['steward']['delete'] = true;
- $wgGroupPermissions['steward']['createaccount'] = true;
- $wgGroupPermissions['steward']['bigdelete'] = true;
- $wgGroupPermissions['steward']['abusefilter-modify-restricted'] = true;
- $wgGroupPermissions['steward']['editaccount'] = true;
- $wgGroupPermissions['steward']['editsitecss'] = true;
- $wgGroupPermissions['steward']['unblockable'] = true;
- $wgGroupPermissions['steward']['interwiki'] = true;
- $wgGroupPermissions['steward']['protect'] = true;
- $wgGroupPermissions['steward']['editprotected'] = true;
- $wgGroupPermissions['steward']['undelete'] = true;
- $wgGroupPermissions['steward']['deletedhistory'] = true;
- $wgGroupPermissions['steward']['editsitecss'] = true;
- $wgGroupPermissions['steward']['editusercss'] = true;
- $wgGroupPermissions['steward']['editsitejs'] = true;
- $wgGroupPermissions['steward']['edituserjs'] = true;
- $wgGroupPermissions['steward']['anonprivacy'] = true;
- $wgAddGroups['steward'][] = 'bot';
- $wgAddGroups['steward'][] = 'sysop';
- $wgAddGroups['steward'][] = 'interface-admin';
- $wgAddGroups['steward'][] = 'bureaucrat';
- $wgAddGroups['steward'][] = 'suppress';
- $wgAddGroups['steward'][] = 'steward';
- $wgAddGroups['steward'][] = 'checkuser';
- $wgRemoveGroups['steward'][] = 'bot';
- $wgRemoveGroups['steward'][] = 'sysop';
- $wgRemoveGroups['steward'][] = 'interface-admin';
- $wgRemoveGroups['steward'][] = 'bureaucrat';
- $wgRemoveGroups['steward'][] = 'suppress';
- $wgRemoveGroups['steward'][] = 'steward';
- $wgRemoveGroups['steward'][] = 'checkuser';
- $wgShowExceptionDetails = true;
- $wgShowDBErrorBacktrace = t
- ̊@Bawolff Cocopuff2018 (talk) 14:33, 20 August 2023 (UTC)
- now it wants the The luasandbox extension however i dont know were to find it at ̊̊ ̊ Cocopuff2018 (talk) 14:34, 20 August 2023 (UTC)
- Delete the following 3 lines
$wgScribuntoDefaultEngine = 'luastandalone'; $wgScribuntoDefaultEngine = 'luasandbox'; $wgScribuntoEngineConf['luastandalone']['key'] = 'value';
- Does the error message change? Bawolff (talk) 03:37, 21 August 2023 (UTC)
- the error message changes ̊̊ @Bawolff
- [-LWdIZm5Iv9lOhYR8rVwfwLg] /index.php?title=Module:Documentation&action=submit MWException: The lua binary (/home/glueitdi/public_html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
- Backtrace: Cocopuff2018 (talk) 14:08, 21 August 2023 (UTC)
- Make the binary executable (with chmod)
- e.g. run the shell command
chmod a+x /home/glueitdi/public_html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
Bawolff (talk) 14:10, 21 August 2023 (UTC)
MySQL 8 support???
With MySQL 5.7.0 end of life coming in October 21, 2023, will MediaWiki support MySQL 8.0 upgrade? Rasterburn (talk) 14:45, 16 August 2023 (UTC)
- See Compatibility#Database. I don't see how these two things (5.7 EOL and 8.0) are related to each other though. Malyacko (talk) 15:25, 16 August 2023 (UTC)
- So in the Compatibility#Database, it lists MySQL 5.7.0+, is that only versions of 5.7 (for example 5.7.0 thru 5.7.43)? Or does that mean any Life Cycle Version of MySQL after 5.7.0, such as 8.0 and beyond?
- I would like to know if we upgrade my company's Database to MySQL 8 will it break MediaWiki current version? Rasterburn (talk) 15:35, 16 August 2023 (UTC)
- 5.7.0 is the minimum version, there is no maximum version at this moment. —TheDJ (Not WMF) (talk • contribs) 11:01, 17 August 2023 (UTC)
Psr/Log/LogLevel
Hello,
I uploaded the Mediawiki 1.40.0 files to my host's server. When I click on the "Please set up the wiki first" link, I get this:
Fatal error: Uncaught Error: Class "Psr\Log\LogLevel" not found in /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LegacySpi.php:54 Stack trace: #0 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LoggerFactory.php(93): MediaWiki\Logger\LegacySpi->getLogger('exception') #1 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/exception/MWExceptionHandler.php(747): MediaWiki\Logger\LoggerFactory::getInstance('exception') #2 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/exception/MWExceptionHandler.php(194): MWExceptionHandler::logException(Object(Error), 'mwe_handler') #3 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/exception/MWExceptionHandler.php(248): MWExceptionHandler::rollbackPrimaryChangesAndLog(Object(Error), 'mwe_handler') #4 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/exception/MWExceptionHandler.php(217): MWExceptionHandler::handleException(Object(Error), 'mwe_handler') #5 [internal function]: MWExceptionHandler::handleUncaughtException(Object(Error)) #6 {main} thrown in /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LegacySpi.php on line 54
Fatal error: Uncaught Error: Class "Psr\Log\LogLevel" not found in /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LegacySpi.php:54 Stack trace: #0 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LoggerFactory.php(93): MediaWiki\Logger\LegacySpi->getLogger('exception') #1 /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/exception/MWExceptionHandler.php(404): MediaWiki\Logger\LoggerFactory::getInstance('exception') #2 [internal function]: MWExceptionHandler::handleFatalError() #3 {main} thrown in /home/clients/ac000c91dcb0468ee6578769b0786e4f/sites/lexitypo.be/wiki/includes/debug/logger/LegacySpi.php on line 54
I don't understand what I should do... Thanks in advance for your help. Renka782 (talk) 14:46, 16 August 2023 (UTC)
- Hi, which installation instructions (full URL) are you following? Malyacko (talk) 15:22, 16 August 2023 (UTC)
- This one : Manual:Installing MediaWiki/fr Renka782 (talk) 15:43, 16 August 2023 (UTC)
Bulk upload from encyclopedia files in MS Word or HTML
Berkshire Publishing Group is considering making some of our backlist encyclopedias, and perhaps new ones too, open access. We need software that will let up do bulk imports of hundreds of articles, with existing styles (headings, bibliographies) mapped. Doing this one by one is not an option and last time we checked Mediawiki did not have this capacity. Any changes? Karenchristenze (talk) 15:42, 16 August 2023 (UTC)
- MediaWiki definitely can handle bulk upload via API, but you need something to translate between the styling interface that you have, and the styling specification the Mediawiki uses. (no idea what you have currently, but you will have to format it as MediaWiki wikicode for uploading to MediaWiki).
- You'll need something like that of any solution you choose however, the only discriminator is if there is something already being provided for your flavour of input and how good the output quality of such a conversation layer is. Regardless, if you want quality, precision etc. you are likely always going to be looking at some level of custom work. —TheDJ (Not WMF) (talk • contribs) 10:18, 17 August 2023 (UTC)
Lua error in Module:Autotranslate at line 72: No fallback page found for autotranslate
I'm having the Lua error in Module:Autotranslate at line 72: No fallback page found for autotranslate error message in both this template and a reserve one I made in order to fix the problem, but it repeats again.
I know it's a missing page I didn't create, but I've been creating templates for campaigns for years and never found such a persistent error like this one.
Anyone to help? TaronjaSatsuma (talk) 16:42, 16 August 2023 (UTC)
- That seems to be a question about a specific template or module on a Wikimedia wiki, so https://meta.wikimedia.org/wiki/Tech might be more in scope. Malyacko (talk) 10:20, 17 August 2023 (UTC)
LDAP Authentication not working
Brand new setup: Mediawiki 1.40.0
I have configured files as expected based on Manual:Active Directory Integration
I am able to successfully use CheckLogin.php, ShowUserInfo.php, and ShowUserGroups.php.
When I try to login via the webpage I just get incorrect username or password entered. Please try again. Local llogin of the local admin account works.
```
$wgLDAPDebug = 7;
$wgDebugLogGroups['ldap'] = "/var/log/ldap_debug.log";
// Safe IP or not (for bypassing external login via AD)
$safeIPs = array('127.0.0.1','localhost');
$ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');
foreach ($ipsVars as $ipsVar) {
if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }
}
$wikiRequestSafe = ( isset($wikiRequestIP ) && ( in_array($wikiRequestIP,$safeIPs) ));
// Create Wiki-Group 'engineering' from default user group
$wgGroupPermissions['engineering'] = $wgGroupPermissions['user'];
// Private Wiki. External LDAP login. Default NS requires login.
$wgEmailConfirmToEdit = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgBlockDisablesLogin = true;
// Load LDAP Config from JSON
$ldapJsonFile = "/var/www/ldap.json";
$ldapConfig = false;
if (is_file($ldapJsonFile) && is_dir("/var/www/mediawiki/extensions/LDAPProvider")) {
$testJson = @json_decode(file_get_contents($ldapJsonFile),true);
if (is_array($testJson)) {
$ldapConfig = true;
} else {
error_log("Found invalid JSON in file: /var/www/ldap.json");
}
}
// Activate Extension
if ( $ldapConfig ) {
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'LDAPAuthorization' );
wfLoadExtension( 'LDAPUserInfo' );
wfLoadExtension( 'LDAPGroups' );
$LDAPProviderDomainConfigs = $ldapJsonFile;
$wgPluggableAuth_ButtonLabel = "Log In";
// Force LDAPGroups to sync by choosing a domain (e.g. first JSON object in ldap.json)
$LDAPProviderDefaultDomain = "arlut.utexas.edu";
if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }
}
### Accounts ####
# Refuse to offer to create accounts for anonymous users (they need Ganymede accounts)
$wgGroupPermissions['*']['createaccount'] = false;
# Refuse to allow anonymous users to edit anything
$wgGroupPermissions['*']['edit'] = false;
#$wgGroupPermissions['user']['edit'] = true;
# Allow AD accounts to be automatically generated
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgPluggableAuth_EnableAutoLogin = false;
$wgPluggableAuth_EnableLocalLogin = true;
``` 146.6.208.44 (talk) 17:39, 16 August 2023 (UTC)
- Ive updated to add wdPluggableAuth_Config variable with no change in symptoms
- ```
- $wgLDAPDebug = 7;
- $wgDebugLogGroups['ldap'] = "/var/log/ldap_debug.log";
- // Safe IP or not (for bypassing external login via AD)
- $safeIPs = array('127.0.0.1','localhost');
- $ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');
- foreach ($ipsVars as $ipsVar) {
- if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }
- }
- $wikiRequestSafe = ( isset($wikiRequestIP ) && ( in_array($wikiRequestIP,$safeIPs) ));
- // Create Wiki-Group 'engineering' from default user group
- $wgGroupPermissions['engineering'] = $wgGroupPermissions['user'];
- // Private Wiki. External LDAP login. Default NS requires login.
- $wgEmailConfirmToEdit = false;
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['*']['read'] = false;
- $wgGroupPermissions['*']['createaccount'] = false;
- $wgGroupPermissions['sysop']['createaccount'] = false;
- $wgGroupPermissions['*']['autocreateaccount'] = true;
- $wgBlockDisablesLogin = true;
- // Load LDAP Config from JSON
- $ldapJsonFile = "/var/www/ldap.json";
- $ldapConfig = false;
- if (is_file($ldapJsonFile) && is_dir("/var/www/mediawiki/extensions/LDAPProvider")) {
- $testJson = @json_decode(file_get_contents($ldapJsonFile),true);
- if (is_array($testJson)) {
- $ldapConfig = true;
- } else {
- error_log("Found invalid JSON in file: /var/www/ldap.json");
- }
- }
- // Activate Extension
- if ( $ldapConfig ) {
- wfLoadExtension( 'PluggableAuth' );
- wfLoadExtension( 'LDAPProvider' );
- wfLoadExtension( 'LDAPAuthentication2' );
- wfLoadExtension( 'LDAPAuthorization' );
- wfLoadExtension( 'LDAPUserInfo' );
- wfLoadExtension( 'LDAPGroups' );
- $LDAPProviderDomainConfigs = $ldapJsonFile;
- $wgPluggableAuth_ButtonLabel = "Log In";
- // Force LDAPGroups to sync by choosing a domain (e.g. first JSON object in ldap.json)
- $LDAPProviderDefaultDomain = "arlut.utexas.edu";
- if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }
- }
- ### Accounts ####
- # Refuse to offer to create accounts for anonymous users (they need Ganymede accounts)
- $wgGroupPermissions['*']['createaccount'] = false;
- # Refuse to allow anonymous users to edit anything
- $wgGroupPermissions['*']['edit'] = false;
- #$wgGroupPermissions['user']['edit'] = true;
- # Allow AD accounts to be automatically generated
- $wgGroupPermissions['*']['autocreateaccount'] = true;
- $wgPluggableAuth_EnableAutoLogin = false;
- $wgPluggableAuth_EnableLocalLogin = true;
- $wgPluggableAuth_Config = array(
- array('plugin' => 'LDAPAuthentication2'),
- array('plugin' => 'LDAPAuthorization'),
- );
- ``` 146.6.208.44 (talk) 17:51, 16 August 2023 (UTC)
- Hi!
- Please try to configure
$wgPluggabltAuth_Config
like that: - AKulbii (talk) 13:55, 17 August 2023 (UTC)
$wgPluggableAuth_Config['Log In (LDAP1)'] = [ 'plugin' => 'LDAPAuthentication2', 'data' => [ 'domain' => 'ldap1' ] ]; $wgPluggableAuth_Config['Log In (LDAP2)'] = [ 'plugin' => 'LDAPAuthentication2', 'data' => [ 'domain' => 'ldap2' ] ];
- Thanks AKulbii, unfortuantely, that change resulted in the same issue. I am able to use all of the helper things to test logins successfully ShowUserInfo and ShowUserGroups as well as CheckLogin.php also works. When I try to log in on the web page though, I just see incorrect username/password. 146.6.208.43 (talk) 19:28, 21 August 2023 (UTC)
- surely someone can point to some way to turn on a log to actually find out what is happening here. This software is a nightmare to debug 146.6.208.43 (talk) 20:50, 21 August 2023 (UTC)
- `ShowUserInfo` and `ShowUserGroups` scripts just show that connection with LDAP works.
- But unfortunately, login process is pretty complicated and consists from several integrated parts. That's why it is quite hard to debug.
- I would recommend you to use that to get some helpful information. AKulbii (talk) 07:09, 22 August 2023 (UTC)
How to set each file and page to a specific category
Hello, I have two questions regarding setting pages and files automatically to specific categories.
First, I wanted to know if it was possible to set every single file when uploaded to a specific category without you having to do it manually every time?
The second is if there was a way to force users (when about to publish an article) to be forced to select a category to put their page in before they publish it? These will be general categories like Biographical Articles, Geographical Location Articles, Event Articles, etc.
Thanks Guillaume Taillefer (talk) 22:33, 16 August 2023 (UTC)
How to set each file and page to a specific category
Hello, I have two questions regarding setting pages and files automatically to specific categories.
First, I wanted to know if it was possible to set every single file when uploaded to a specific category without you having to do it manually every time?
The second is if there was a way to force users (when about to publish an article) to be forced to select a category to put their page in before they publish it? These will be general categories like Biographical Articles, Geographical Location Articles, Event Articles, etc.
Thanks Guillaume Taillefer (talk) 22:33, 16 August 2023 (UTC)
Problems with Gmail and Password Reset Emails
Hi, Can someone please point me to any relevent pages/extensions/files to find out more about when a password reset email is sent? We're having trouble with Gmail. I realize this might be a mail server issue, but I have limited ability to change that as we are on a shared server hosting account. I wanted to see what options were available before I go there. Thx. Mitzzzz (talk) 02:01, 17 August 2023 (UTC)
- PS The email never shows up for Gmail (even in Spam), but works properly for other domains. Mitzzzz (talk) 02:02, 17 August 2023 (UTC)
- Email configuration is an entire topic in itself, but basically. Make sure that whatever the from address is, actually exists. Then look into best practices for mailservers and look into DMARC and SPF. Without DMARC and SPF, it's almost impossible to keep a high reputation score with these big mail providers.
- If you share a mailserver with many other parties (shared hosting), host your own mailserver on your own domain, so you don't get penalised for the stuff the others are doing. —TheDJ (Not WMF) (talk • contribs) 10:13, 17 August 2023 (UTC)
- Thx. We won't be hosting our own mail server. Ours is a volunteer organization and we don't have the time or expertise to deal with that. I mainly wanted to look at the wiki code that generates the reset email. I found resetUserEmail.php, but I'm not sure whether that is meant to be used at the command line or as a result of form submission on the wiki.
- I wanted to try some tests to see if changing the from address, for example, would make a difference (and yes, I know the problems with hacking the code). These emails use the same address for From and To, which is what spammers do to avoid being flagged. It seems like there should be a setting for that somewhere, but I didn't see it in LocalSettings.php Mitzzzz (talk) 11:08, 17 August 2023 (UTC)
- As a follow up, I did find some code in the includes/mail directory. I've used PEAR Mail in a past life. For whoever is reading this in the future, I didn't have much luck with hard coding the From address. I knew it had little chance at success, but I had to prove it to myself. Email issues suck. Mitzzzz (talk) 13:42, 17 August 2023 (UTC)
- As a heads up to Mediawiki developers, I think that if Gmail is blocking reset emails sent by Mediawiki, that's going to create a fuss eventually. I scrolled down and saw at least 2 other complaints, but they hadn't connected the issue with the Gmail domain. Mitzzzz (talk) 23:13, 17 August 2023 (UTC)
- OK, sorry for all the posts, but I wanted to share that there is a setting in LocalSettings.php
- called $wgPasswordSender. I had originally set it to my personal email address (I am the admin), but after I changed it to one associated with our website domain, I started getting the password reset emails. I also had made a rule in Gmail to never put emails from that address into Spam, but they were not showing up in Spam or at all before, so not sure what effect that had. I have not adjusted SPF or DMARC or anything like that. Hope that helps someone. Mitzzzz (talk) 23:27, 17 August 2023 (UTC)
Unable to integrate GA4 with MediaWiki
I am unable to integrate GA4 with the mediawiki platform. Mediawiki content is hosted on NGINX web server. I'm currently using MediaWiki version 1.36.2. Can someone assist me in this?
Should I perform any other steps other than adding the following google analytics code in the localsettings.php file?
require_once "$IP/extensions/googleAnalytics/googleAnalytics.php";
$wgGoogleAnalyticsMeasurementId = 'G-xxxxxxxxxx'; Prashanth Rajamanickam (talk) 09:37, 17 August 2023 (UTC)
- it shouldn't, but the extension hasn't seen major updates in a while, so perhaps it broke recently.
- Whenever you have problems, please analyse them per Manual:How to debug —TheDJ (Not WMF) (talk • contribs) 10:08, 17 August 2023 (UTC)
Please close my account
Please close my account Bern500 (talk) 16:04, 17 August 2023 (UTC)
Discussion Page cannot be created (redlink not working)
For some reason on my wiki whenever I try to access a redlink for a Discussion page, it leads to the browser saying that the site isn't accessible. This is despite the fact that literally the entire rest of the website works just fine. Previously created discussion pages before this error started occurring are accessible, but creating one is impossible. You can go check it out yourself: https://wwii-archives.org/index.php/WWII_Archives:Home Guillaume Taillefer (talk) 21:23, 17 August 2023 (UTC)
- I narrowed down the problem. In the link for the redlink to the discussion page, if you take out the
&redlink=1
and hit enter, all the sudden you're able to edit the page. The problem is why is redlink for discussion pages not working? Guillaume Taillefer (talk) 22:33, 17 August 2023 (UTC)
Problem upgrading to 1.40.0 from 1.38.0 how to debug update.php?
Hi.
I'm trying to upgrade from 1.38.0 to 1.40.0.
I followed the instructions, and get to the "run the update script". When I run it I get:
[root@host maintenance]# php run.php update.php
#!/usr/bin/env php
MediaWiki 1.40.0 Updater
Your composer.lock file is up to date with current dependencies!
⧼config-mysql-old⧽
I have more than one wiki running, and my other servers all updated ok. But this one fails.
I have also removed all the plugin references in the LocalSettings file but to no avail?
How do I debug update.php to work out where its failing? Is there a --verbose option?
Thanks!
Jon. JonRussell00 (talk) 22:05, 17 August 2023 (UTC)
- That message means your version of mysql is too old. Bawolff (talk) 03:28, 18 August 2023 (UTC)
- I filed phab:T344476 for the error message being unclear. Bawolff (talk) 03:31, 18 August 2023 (UTC)
Why does the image size not change when I use "|frame"?
When I use [[File:imagename.jpg|360px|frame|left]]<br clear=all>, the image size is unchanged. What am I doing wrong? SteveRMann (talk) 04:16, 18 August 2023 (UTC)
- Nothing, see Help:Images#Size and frame Malyacko (talk) 08:06, 18 August 2023 (UTC)
From .docx to wiki page
Hello there
I am looking for recommendations here.
I have a large amount of .docx documents with lots of references and images.
What would be the best way to transfer this content from .docx files to wiki pages, keeping the cross-referencing of the bibliographies and images?
I am currently using "Pandoc" but I have to cross-reference everything manually after converting the content to Mediawiki markup. That is a huge burden.
Any suggestion is welcomed.
Cheers NerysG (talk) 09:44, 18 August 2023 (UTC)
- As far as I know, the only best way (and don't exactly take my word for it maybe there is one) is to have to manually input them all in. Best way might be to do this through VisualEditor as the different formatting of different text (such as in bold, italic, etc) might be easier to copy over. In any case you would have to copy all the text and upload all the images and then link them on the page. Hope this helps Guillaume Taillefer (talk) 15:06, 19 August 2023 (UTC)
- You should be able to import DOCX files into LibreOffice Writer and then export them to MEDIAWIKI format but not sure how well it works. Nicole Sharp (talk) 22:32, 1 September 2023 (UTC)
- See "
wikipedia:help:WordToWiki
." - Nicole Sharp (talk) 22:33, 1 September 2023 (UTC)
Upload file limit not changing
I have these in my php.ini file
post_max_size = 2048M
upload_max_filesize = 2048M
and in LocalSettings.php
$wgUploadSizeWarning = 2147483647;
$wgMaxUploadSize = 2147483647;
still the upload file limit it shows 2 MB
and not allowing me to upload bigger files Paperlessnow (talk) 10:47, 18 August 2023 (UTC)
- I have stopped and restarted the server, still same issue Paperlessnow (talk) 10:47, 18 August 2023 (UTC)
- I am running docker version of media wiki. and ensure that the file is correctly updated. I,e. LocalSettings.php and php.ini Paperlessnow (talk) 11:26, 18 August 2023 (UTC)
- Are you sure you are editing the correct php.ini file? Often there will be several on the system. Bawolff (talk) 23:59, 18 August 2023 (UTC)
- am sure.
- am running the docker mediwiki container.
- and updating it correctly.
- any other updates if I make, it is correctly reflecting.
- only for upload not showing any updates.
- Even when I make changes in the file to support file types, that should be supported for upload, it shows correctly.
- But only for upload limit, it is not updating properly. Paperlessnow (talk) 07:18, 21 August 2023 (UTC)
- > Even when I make changes in the file to support file types, that should be supported for upload, it shows correctly.
- You do this in a different file than the php.ini file. Do other php.ini changes show up correctly?
- If you know how, inside docker can you create a php file containing just
<?php phpinfo();
and view it in a web browser and see what it reports upload abd post max size to be Bawolff (talk) 12:15, 21 August 2023 (UTC) - this is my complete php.ini file
- <?php
- phpinfo();
- file_uploads = On
- post_max_size = 2048M
- upload_max_filesize = 2048M
- I tried to change file_uploads=Off
- still it shows upload file option.
- I am copying using following command
- docker cp /Users/Technology/mediawiki/php.ini some-mediawiki:/usr/local/etc/php/php.ini Paperlessnow (talk) 17:03, 22 August 2023 (UTC)
- The
<?php phpinfo();
does not go in your php.ini. - Are you sure that
/usr/local/etc/php/php.ini
is the correct path? It depends on how you installed php and which distro your docker image is based on. On a debian based distro i believe this would not be the correct path if php wss installed via apt. Bawolff (talk) 04:00, 23 August 2023 (UTC) - I used the image here
- https://hub.docker.com/_/mediawiki
- for Mac Paperlessnow (talk) 04:04, 23 August 2023 (UTC)
- Location of file
- https://stackoverflow.com/questions/47272178/from-where-is-my-php-ini-being-loaded-in-php-docker-container Paperlessnow (talk) 04:45, 23 August 2023 (UTC)
- You should verify where the php.ini file actually is. That stack overflow is for a different docker image as well as a much older version of php (php5). You probably just have the wrong path.
- You can verify by creating a file named info.php containing just
<?php phpinfo();
and placing it in /var/www/html/info.php and then viewing localhost:8080/info.php (or whatever correct ip/port is) in your web browser. Bawolff (talk) 14:30, 23 August 2023 (UTC) - I created a file as mentioned
- and when go the page I get the following view the php details. v8.1.21 among lot of other information.
- When I add further 2 lines
- post_max_size = 2048M
- upload_max_filesize = 2048M
- the php file shows error:Parse error: syntax error, unexpected token "=" in /var/www/html/info.php on line 2
- I tried with
- post_max_size 2048M
- upload_max_filesize 2048M
- stil error
- post_max_size 2048M;
- upload_max_filesize 2048M;
- still error
- what it means? Paperlessnow (talk) 04:41, 24 August 2023 (UTC)
- You are not supposed to add the php.ini lines to info.php. you are supposed to read the output of info.php to find the path to php.ini on your system and verify if any changes to the php.ini affect the output of info.php. Bawolff (talk) 05:26, 24 August 2023 (UTC)
-( ok.
Loaded Configuration File | /usr/local/etc/php/php.ini |
Paperlessnow (talk) 06:54, 24 August 2023 (UTC)
- Fortunately it is still same. Paperlessnow (talk) 06:59, 24 August 2023 (UTC)
- If I change in LocalSettings.php like changing file types which can be uploaded, and kept png1
- it shows the updated one
- So LocalSettings.php at /var/www/html/ is updating properly.
- But php.ini at /usr/local/etc/php/php.ini is not updating properly Paperlessnow (talk) 14:41, 28 August 2023 (UTC)
- I modified the file
- /usr/local/etc/php/php.ini-production
- with values
- post_max_size = 20M
- upload_max_filesize = 20M
- still it doesn't reflects in the upload page Paperlessnow (talk) 06:23, 30 August 2023 (UTC)
- Also php.ini-development as well as php.ini with same values, still upload is not reflecting. Paperlessnow (talk) 06:28, 30 August 2023 (UTC)
- do I need to update .htaccess file.?
- But I can't find this family supposedly located in
- /home/ my dir/ ..
- /home/ is empty Paperlessnow (talk) 10:39, 30 August 2023 (UTC)
- Ok. got it working. Paperlessnow (talk) 12:04, 30 August 2023 (UTC)
- And the solution was ??? —TheDJ (Not WMF) (talk • contribs) 06:28, 31 August 2023 (UTC)
- this was my complete php.ini file
- <?php
- phpinfo();
- file_uploads = On
- post_max_size = 2048M
- upload_max_filesize = 2048M
- I removed first two lines and now complete php.ini file is
- file_uploads = On
- post_max_size = 2048M
- upload_max_filesize = 2048M Paperlessnow (talk) 13:56, 31 August 2023 (UTC)
MediWiki logs
We need to provide logs for security reasons to our security team. Where are logs kept for MediaWiki. Can these be offloaded? 64.191.239.253 (talk) 15:07, 18 August 2023 (UTC)
- It depends on your configuration. See How to debug.
- The main logs that you probably want are the webserver access log and php error log, which are usually controlled by different layers. Mediawiki also has a much more verbose debug log ($wgDebugLogFile) that is disabled by default. Bawolff (talk) 23:58, 18 August 2023 (UTC)
AWS Extension not copying over
Hi all,
I'm trying to install the AWS Extension so I can use S3 as a repo for our images but I'm getting the below error. I am running this in a ROSA container and have copied over all of my other extensions in the past with no problem. Not sure why this is not working. Any insight?
AWS configuration error
MediaWiki is unable to load the extension AWS. Please check that the extension's name is correct and all of its files are properly installed.
Details:
Error reading /opt/bitnami/mediawiki/extensions/AWS/extension.json
. filemtime(): stat failed for /opt/bitnami/mediawiki/extensions/AWS/extension.json.
#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(51): ExtensionRegistry->queue() #1 /bitnami/mediawiki/LocalSettings.php(154): wfLoadExtension() #2 /opt/bitnami/mediawiki/includes/Setup.php(209): require_once('...') #3 /opt/bitnami/mediawiki/includes/WebStart.php(92): require_once('...') #4 /opt/bitnami/mediawiki/index.php(44): require('...') #5 {main} Waterlooglass (talk) 16:28, 18 August 2023 (UTC)
- how you checked existence, file owner and permissions of
/opt/bitnami/mediawiki/extensions/AWS/extension.json ?
- Cause that is what it is complaining about. Can't read the file, because its' not there and/or not allowed to read it. —TheDJ (Not WMF) (talk • contribs) 09:28, 21 August 2023 (UTC)
Sidebar
Hallo, nach vergeblichen Versuchen in meinem Wiki ein Bild in der Sidebar zu installieren erscheint nun unter Werkzeuge bei anklicken der Hauptseite die zusätzliche Zeile Seite zitieren. Weder in Sidebar noch in der Hauptseite erscheint ein Hinweis auf diese Einblendung. Wie werde ich die wieder los?? Vielen Dank. LG Klaus 2003:E7:A718:5966:7C86:56CF:18C5:54EC (talk) 18:18, 18 August 2023 (UTC)
- Anfrage selbst gelöst:
- #wfLoadExtension( 'CiteThisPage' ); 2003:E7:A718:5966:6924:C803:5184:3281 (talk) 21:33, 18 August 2023 (UTC)
How to see the number of edits by user ?
What is the special page that shows the "leaderboard" of best contributors by number of edits on a classic wikimedia based wiki ?
Thank you for any answer :) 2A01:CB16:206C:75F7:35B5:408:8B9E:2858 (talk) 09:56, 19 August 2023 (UTC)
- There is none. People worried that such leaderboards would create unhealthy competition, and people focusing on quantity instead of quality.
- There is Special:actuveusers but that is just recently active users. There is also the manually updated w:Wikipedia:List of Wikipedians by number of edits Bawolff (talk) 10:06, 19 August 2023 (UTC)
- I'm quite sure my wiki has one, because I stumbled accross it one time, but I can't find it anymore... 2A01:CB1E:35:572A:ADD7:39F4:CFA9:FD1F (talk) 12:07, 19 August 2023 (UTC)
- Possibly it could have been from an extension. Bawolff (talk) 15:18, 19 August 2023 (UTC)
- There is this: Extension:Contribution Scores. Jonathan3 (talk) 20:10, 19 August 2023 (UTC)
How to make a template's parameters documented
Hello, I may have asked this question a long time ago but didn't get any answers. I have tried to import the wikipedia/wikimedia commons templates of Cite web, journal, book, and news to my wiki to be used to cite things. However when I try to use them while editing only the parameters for book show, and when citing web, journal, or news, it states that the template has undocumented parameters, and doesn't show any of its parameters. How would I be able to change this to make the parameters appear whenever I am editing? Thanks Guillaume Taillefer (talk) 15:42, 19 August 2023 (UTC)
- After a little digging into the code, I found the solution. In the source code for the cite templates that don't have "documented parameters", the last few lines of code should look like the following (not including the full {{}} because I can't show the text so make sure each one is {{}}):
</includeonly>
{documentation}
- However here are the last lines of code for cite book:
{documentation}
{collapse top|TemplateData}
{Cite book/TemplateData}
{collapse bottom}
- If you add the
{collapse top|TemplateData}
{Cite book/TemplateData}
{collapse bottom}
- after the {documentation} on each cite template, and then save, then it will allow you to see the parameters while editing. Hope this helps for anyone else that has this issue Guillaume Taillefer (talk) 16:04, 19 August 2023 (UTC)
Page view restriction
I want to restrict a page, even from viewing. I want read and edit rights on this specific page only certain user groups, is there a way I can achieve this ?? Using Mediawiki 1.39 14.192.1.54 (talk) 02:23, 20 August 2023 (UTC)
- There are some extensions like extension:Lockdown, however mediawiki is bad at per page view restrictions. Bawolff (talk) 07:40, 20 August 2023 (UTC)
- Agreed, Lockdown is for special pages and namespaces, doesn't work for normal pages 14.192.1.54 (talk) 10:24, 20 August 2023 (UTC)
Forgot Password
The help section says:
What if I forget the password or username?
Your username is case sensitive. If you enter an email address when signing up for the account, or in your Preferences, you can make a request on the login screen for a temporary password to be sent to that address.
But there is no such link on the login screen to ask for a password reset. So there is no way to recover or rest your pasword if forgotten. Major bug! 178.51.214.42 (talk) 11:06, 20 August 2023 (UTC)
- No bug at all. Special:UserLogin has a link called "Forgot your password?". Malyacko (talk) 12:27, 20 August 2023 (UTC)
- If password resets or emails are disabled on the wiki in question, the link might not show up. Bawolff (talk) 04:14, 21 August 2023 (UTC)
Desktop Client error
I can't seem to find a launcher or install file in the desktop version.
How do I start the game on PC? 80.208.68.16 (talk) 12:32, 20 August 2023 (UTC)
Missing PHP extension "intl" error although this extension is enabled in php.ini
Getting this error: "MediaWiki 1.40 internal error . . . You are missing a required extension to PHP that MediaWiki requires to run. Please install: intl" when visiting my wiki.
phpinfo.php
revelas php.ini's location in "Loaded Configuration File". In that specific `php.ini`, I have "extension=intl" uncommented.
I tried to restart Apache, reboot my machine. Nothing.
Any idea? Draikin4321 (talk) 12:47, 21 August 2023 (UTC)
- Where is the corresponding PHP extension installed exactly? (Usually something like /usr/lib/php/modules/intl.so on Linux systems) Malyacko (talk) 18:22, 21 August 2023 (UTC)
- I'm on Windows, I just checked and for me it's located at
D:\xampp\php\ext\php_intl.dll
Draikin4321 (talk) 22:30, 21 August 2023 (UTC) - Does the php error log have any warnings aboug missing extensions? Try maybe doing the full path, etc. Bawolff (talk) 03:12, 22 August 2023 (UTC)
"There seems to be a problem with your login session"
Hi,
I have recently upgrade from 1.38 to 1.40. I had the site working, and I added back the extensions I was using (Confirm User Accounts), and added the restricted pages. Now when I try and login I get "There seems to be a problem with your login session; this action has been cancelled as a precaution against session hijacking. Please resubmit the form."
I have tried to undo everything I changed, but I still cant login.
*however* if I use a different browser, or incognito mode, I can login fine!
I have deleted all my cookies from the main browser, and still cant login.
Any idea what could be wrong.
As a related question, what is the recommended setting for wgMainCacheType? I don't need any particular performance. The site has very little traffic. I am currently using :
$wgMainCacheType = CACHE_ACCEL;
Will this affect the session state and the problem above?
Thanks. JonRussell00 (talk) 13:02, 21 August 2023 (UTC)
- This has cropped up a few times. Search for the error message. I had the problem once. I don't know how or even whether I fixed it... it might just have fixed itself... see Project:Support desk/Flow/2020/12#h-Cannot_log_in_-_Session_hijacking_warning-2020-12-01T01:12:00.000Z. Jonathan3 (talk) 12:26, 22 August 2023 (UTC)
Cannot Create New Page in Local Mediawiki
I've established the Mediawiki 1.40 Version in my PC. Everything works fine except the page-creation/file-uploading feature, which shows this error code "ERR_CONNECTION_RESET" from my browser.
BASIC INFO:
Apache -->2.4.39
MySQL -->5.7.26
PHP --> 7.4.3
Appreciate for your help. Squidward gaming (talk) 14:35, 21 August 2023 (UTC)
GMT-4 became GMT+4, etc.
Hey guys! So I'm using MediaWiki through XAMPP on Linux and I've just noticed a very weird behavior of my installation - the time zone works wrong under some circumstances. Specifically, it appears to turn GMT-4 to GMT+4, GMT-7 to GMT+7, etc. In addition, the problem only appears to affect the visitors who aren't logged in.
I can set the time zone with $wgLocaltimezone in LocalSettings.php. When I tested it with Paris, Shanghai and Sydney, the wiki can show the right time. When I tested it with New York, Mexico City, and Santiago, however, the wiki starts to show some wrong time. It seems as if only the time zones in the American continent are affected.
I then set the time zone to "America/New_York" and edited a page at 9:18 a.m. EDT today. Now, the wiki will say that the page was last edited at 5:18 p.m. on the same day. When I log in to my wiki account and set the time zone under my user settings to America/New York, it will correct itself and say the page was last edited at 9:18 a.m. again.
The weird behavior is consistent even when I make these changes multiple times back and forth and even when I try it with some other cities in the American continent.
I then tried to play around with the settings a couple more times. When I set the time zone to New York, the wiki said the page was last edited at 5:18 p.m, whereas New York was really 9:18 a.m. When I set the time zone to Vancouver, the wiki showed the time as 8:18 p.m., whereas Vancouver was really 6:18 a.m.
I looked up and found that Dubai was 5:18 p.m. when the page was last edited. Hanoi was 8:18 p.m. at that time. I then found that New York's time zone was GMT-4 whereas Dubai was GMT+4. Vancouver was GMT-7 whereas Hanoi was GMT+7.
So it seems that the time zones with a minus sign will be flipped to a plus sign, which is a very interesting find. However, I still don't know how to fix this problem. I looked up the problem but it doesn't seem like it was asked elsewhere. I'm really curious about what is causing the problem and how I can fix it. Cian AB (talk) 15:07, 21 August 2023 (UTC)
- Huh. You are the second person to report this. Unfortunately the other thread about this is unresolved. Bawolff (talk) 03:17, 22 August 2023 (UTC)
- @Jacob Steffler: Reported something similar at https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2023/08#h-Time_zone_issues_when_using_wiki_default_zone-20230805194000 Bawolff (talk) 03:20, 22 August 2023 (UTC)
- I remember that there is this thing where -offset actually means +offset in some specifications, but I don't know by heart what this was specifically. —TheDJ (Not WMF) (talk • contribs) 11:13, 22 August 2023 (UTC)
File Not found after idle period
I think this is the best way to describe it. If no one brings up the wiki for a day or so, when finally brought up all we get is file not found.
Happened this morning, I went in and did a stop start of httpd, and it worked again. Last time this happened I deleted the LocalSettings.php and restored the backup copy and it worked without a restart. Tried the restart this morning and it worked. Done it twice after completing the install.
If it helps, this is a fresh install of the latest version with a DB from an older version. Growingrass (talk) 15:33, 21 August 2023 (UTC)
- That's weird. Does the apache error log have anything interesting in it? Bawolff (talk) 03:14, 22 August 2023 (UTC)
- Nothing to note the file not found issue. Seems to be working ok today. will need to see if its an idle timeout issue or something since it appeared to happen on a Monday. Growingrass (talk) 12:43, 22 August 2023 (UTC)
- Happened again today. Went to the open tab and it refreshed with file not found. I checked the logs for new entries via the time stamps and the ssl logs indicated new entries.
- [Mon Aug 28 13:22:38.141649 2023] [proxy_fcgi:error] [pid 305828:tid 140363081365248] [client 10.220.223.135:53345] AH01071: Got error 'Primary script unknown', referer: https:/****.com/index.php?title=Special:UserLogin&returnto=Main+Page
- [Mon Aug 28 13:22:40.266936 2023] [proxy_fcgi:error] [pid 305828:tid 140363072972544] [client 10.220.223.135:53345] AH01071: Got error 'Primary script unknown', referer: https://******.com/index.php?title=Special:UserLogin&returnto=Main+Page
- A systemctl restart httpd got it working again. Growingrass (talk) 18:32, 28 August 2023 (UTC)
error connecting to S3 bucket
We're to upload images to an S3 bucket and getting a connection error. Here is our LocalSettings and then IAM policy (scrubbed for privacy). can anyone assist? Does anyone have a suggestion other than LocalStorage or S3 to store these images?
LocalSettings
$wgFileBackends['s3'];
wfLoadExtension( 'AWS' );
$wgAWSRegion = 'us-east-1'; # Northern Virginia
// Replace <something> with the name of your S3 bucket, e.g. wonderfulbali234.
$wgAWSBucketName = "xxx";
IAM Policy
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::<bucketname>*"
},
{
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
"Resource": "arn:aws:s3:::<bucketname>"
}
]
Error when trying to upload
[746bd41fcda522fdafb85fb8] /wiki/Special:Upload Aws\Exception\CredentialsException: Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/) Waterlooglass (talk) 20:05, 21 August 2023 (UTC)
Can I make it so that certain users can have read permission for certain pages?
I'm building a compendium with my husband for his novels and wanted to know if there's a way to make it so that we can show spoiler free pages to the members we'll have and then have spoiler entries available to admins (him and myself) just so he can have the data available to refer back to if he needs it.
I'm still pretty new to building a wiki, but I have some background in html and JS, but I need a little extra help deciphering the info here.
I appreciate any help :) Ailynevensen (talk) 23:37, 21 August 2023 (UTC)
- Maybe manual:$wgWhitelistRead Bawolff (talk) 03:10, 22 August 2023 (UTC)
- One more question: it says it would make a whitelist for anon users. If my wiki is private, anon users are technically only those we invite, correct? Ailynevensen (talk) 04:29, 24 August 2023 (UTC)
- Ah no. Anon users are logged out users.
- If you want for specific groups of logged in users you need one of the extensions at https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions . Unfortunately none of the choices are super great. Bawolff (talk) 05:30, 24 August 2023 (UTC)
- Okay, I'll give that a try. Thank you! Ailynevensen (talk) 04:46, 22 August 2023 (UTC)
Blocked range includes my adress
Hello, I can't edit anymore on https://de.m.wikipedia.org because of a block that is not explained anywhere. I only get to message site wich offers the following content
Anonyme Beiträge von deiner IP-Adresse (10.80.1.11) sind nicht erlaubt. Bitte melde dich an..
Beginn der Sperre: 15:29, 22. Aug. 2023
Ablauf der Sperre: unbeschränkt
Sperre betrifft: 10.80.1.11
Deine aktuelle IP-Adresse ist 10.80.1.11. Bitte füge alle Informationen jeder Anfrage hinzu, die du stellst.
The way i edited during the last days were not rude or included any vandalism, there is no administrative action to be seen anywhere. I guess this must be part of a block in regards to somebody else, where the chosen area is just to wide.
It happened sometimes that a block including my adress was unintentionally made, and mostly this had been corrected by the following admin https://de.m.wikipedia.org/wiki/Benutzer:Johannnes89
which then had corrected the responsible filter because he knew by experience that i am intending not to disturb the project. Because of the way i sign my postals he was able to exclude me from blocks. But this block is announced different, caise the last times i was able to get to an edit window where i could tell the problem and was informed about a block when posting the message/pressing the send button. This at least gave him a hint someone has been trying to edit his nuser page, but this time there is no chance to get through to him.
Any suggestions to fix this and get me able to edit? Greets, -Ani--46.114.155.176 14:21, 22 August 2023 (UTC)
- While posting this, the block seems to be no more valid. This topic is done and might be archived or deleted. Greets, -Ani--46.114.155.176 14:32, 22 August 2023 (UTC)
- 10.80.1.11 is an internal IP and should never appear in a block message. This may indicate some kind of bug. Bawolff (talk) 04:02, 23 August 2023 (UTC)
- Interesting. Thanks for the information. -Ani--46.114.157.94 20:06, 23 August 2023 (UTC)
baffling 'missing or wrong CAPTCHA' message
I attempted to add my first contribution to Wikishire - a minor addition to the page on Mynachlog-Ddu. I first joined MediWiki. The robot detection test was a question - what is the capital of Roxburghshire. After checking, I answered Jedburgh. I drafted the addition to the Mynachlog-Ddu page. I attempted to post it. And this was refused, with 'missing or wrong CAPTCHA' message. I am an experienced editor on Wikipedia (mainly the English version, but also the French and Welsh / Cymraeg versions). I have to say that this sort of experience is very off-putting. Gwedi elwch (talk) 15:49, 23 August 2023 (UTC)
Minimum password length
I am trying to change the minimum password length on my wiki server from 10 to 8. I tried adding this line to the end of my LocalSettings.php file but when going to change my password it still says it must be a minimum of 10 characters long.
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 8;
I'm not sure what I am doing wrong. Let me know thanks. Carter.smith1 (talk) 17:50, 23 August 2023 (UTC)
- You are probably in other groups that override the default. You might want to additionally add
- Bawolff (talk) 05:36, 24 August 2023 (UTC)
unset( $wgPasswordPolicy['policies']['sysop']['MinimalPasswordLength'] ); unset( $wgPasswordPolicy['policies']['interface-admin']['MinimalPasswordLength'] ); unset( $wgPasswordPolicy['policies']['bureaucrat]['MinimalPasswordLength'] );
- I had an error at first but it was only from a small typo you had made in the last unset statement. You missed on apostrophe after the word bureaucrat. The correct line is:
- unset( $wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength'] );
- Then it worked. Thanks for the help! :) Carter.smith1 (talk) 14:10, 24 August 2023 (UTC)
TOC with Vector-2022 open page with TOC collapsed (hidden)
Hi,
Can I make a page in MediaWiki using Vector-2022 skin that opens a page by default with TOC collapsed or hidden. Users should be able to open the TOC though by clicking the menu icon.
Thanks,
JB Janbartbergers (talk) 09:30, 24 August 2023 (UTC)
Family Tree
Hi, I recently created a wiki page with the purpose of sorting and creating a family tree. Ive seen some templates for creating family trees but im unsure how they work.
Ive tried to copy the code to the wikitext editor but everything comes out weird. Is there some extension im missing?
Ive tried googling alot, with no result.
What im trying to do is take a branch of the family, create a page with some info about the people and then create a tree with the people on that page.
Thanks in advance! Grundel11 (talk) 01:11, 25 August 2023 (UTC)
- Weird how? Please describe what goes wrong. Bawolff (talk) 19:03, 25 August 2023 (UTC)
- The "code" comes out without being formatted. Grundel11 (talk) 02:17, 26 August 2023 (UTC)
- What is a short example of "the code"? Which kind of "templates" have you seen where? Which MediaWiki version? Please be more specific - thanks! Malyacko (talk) 20:11, 26 August 2023 (UTC)
- Im sorry, Template:Tree chart - Wikipedia this is a template ive been trying to use, ive tried copying the code to the wikitext editor.
- Mediawiki version 1.40
- Is there any step by step guide of how to use templates?
- Thanks in advance! Grundel11 (talk) 17:35, 30 August 2023 (UTC)
- See Help:Templates#Copying from one wiki to another and Manual:Importing Wikipedia infoboxes tutorial maybe Malyacko (talk) 09:30, 3 September 2023 (UTC)
Mediawiki Internal Error after upgrade
I upgraded my MediaWiki from I believe 1.33 to 1.39 and these issues so went ahead and tried 1.40 also. I'm getting these same 3 errors over and over. The website just says "Mediawiki internal error".
I'm fine with blowing this installation away and have a secondary fresh 1.40 install in another folder. Is there a way to migrate the data over? Or are these errors semi-easy to fix?
Thanks in advance.
*********************************
[25-Aug-2023 01:57:03 UTC] PHP Deprecated: Accessing $wgHooks directly is deprecated, use HookContainer::getHandlers() or HookContainer::register() instead. [Called from ScribuntoHooks::reportLimitData in /home/apimager/public_html/history_wiki/extensions/Scribunto/common/Hooks.php at line 288] in /home/apimager/public_html/history_wiki/includes/debug/MWDebug.php on line 382
[25-Aug-2023 01:57:03 UTC] PHP Deprecated: Use of PersonalUrls hook (used in SandboxLinkHooks::onPersonalUrls) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/apimager/public_html/history_wiki/includes/HookContainer/HookContainer.php at line 137] in /home/apimager/public_html/history_wiki/includes/debug/MWDebug.php on line 382
[25-Aug-2023 01:57:08 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/apimager/public_html/history_wiki/extensions/Disambiguator/Disambiguator.hooks.php on line 95 Aparis99 (talk) 02:27, 25 August 2023 (UTC)
- You should upgrade extensions as you upgrade MediaWiki. Start with these two extensions Extension:Disambiguator and Extension:Scribunto – Ammarpad (talk) 07:21, 25 August 2023 (UTC)
issue in loading text in pages
after installing mediawiki 1.40.0 in a apache webserver and old version database mariaDB
but
Error
There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page.
this error comes,how to solve this,plz help Gayathrisiby (talk) 11:13, 25 August 2023 (UTC)
- Which MediaWiki version did the database come from? (if older than 1.35 you may need to first update to 1.35)
- Did <code>update.php</code> complete without errors? Osnard (talk) 13:10, 25 August 2023 (UTC)
- Sometimes this can be caused by the actor migration failing. Some people report better luck updating to 1.35 first and 1.39 second then 1.40 Bawolff (talk) 19:02, 25 August 2023 (UTC)
includes/shell folder
Hi Everyone,
Our website does a daily scan of our site and found that includes/shell/command.php was compromised by a hacker. What does command.php do? Do I need to keep it? Can I just get rid of everything in that folder? Or what chmod can I run? We were running version an old version of 1.35 and now I upgraded us to 1.40.1 so hopefully that will plug whatever hole was open. I'm not super-technical in this area, any help would be greatly appreciated. Thanks!
Andrew AndrewSquared (talk) 15:09, 25 August 2023 (UTC)
- It's possible that the detection of "command.php" as compromised might be a false positive. This file's behavior of executing commands is similar to malicious webshells.
- Before jumping to conclusions, I recommend comparing the content of your command.php file with the original MediaWiki 1.40 source.
- And you can find the details of command.php here:
- https://doc.wikimedia.org/mediawiki-core/master/php/Command_8php.html#details
- https://doc.wikimedia.org/mediawiki-core/master/php/classMediaWiki_1_1Shell_1_1Command.html Lowimoe Sukizui (talk) 15:50, 25 August 2023 (UTC)
what about https://www.example.com/mywiki ?
In section -> https://www.mediawiki.org/wiki/Extension:TitleBlacklist#How_to all the examples acess to -> https://www.example.com but there seem to be no further corresponding structure then. So, is there a specific logon to access ? ... or simply these links are dead ? Thanks. --Christian 🇫🇷 FR (talk) 14:13, 26 August 2023 (UTC)
- You are supposed to replace it with your own url Bawolff (talk) 17:28, 26 August 2023 (UTC)
- Thanks but I am a translator and I have no wiki. On the other side i am doubtful about whether a document exists on all wiki pages to be updated for 'replace it with your own url’ by the administrator on installation. There must be a more clever way to do that, other than directing our readers on a dummy link. Let us wait for other points of view. --Christian 🇫🇷 FR (talk) 07:23, 27 August 2023 (UTC)
- You should fee free to change it if you think there is a more clear way of wording things. Bawolff (talk) 13:34, 27 August 2023 (UTC)
update php error
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.
when we try to go to the update php we are getting an error
http://meta.filmpedia.fah-dc3-ds.com/mw-config/index.php?page=Language
Error starting session: session_start(): open(/home/glueitdi/public_html/meta/sessions.php/sess_c78384ac90dcac569ede7baa4c6679fe, O_RDWR) failed: No such file or directory (2)
Could you please fix the php Cocopuff2018 (talk) 17:23, 26 August 2023 (UTC)
- Check that session.save_path is set correctly in php.ini Bawolff (talk) 17:27, 26 August 2023 (UTC)
- ̊
- what do we set it to? ̊@Bawolff̊̊ Cocopuff2018 (talk) 17:34, 26 August 2023 (UTC)
- See the documentation: https://www.php.net/manual/en/session.configuration.php#ini.session.save-path Malyacko (talk) 20:09, 26 August 2023 (UTC)
- we have the session php folder however it says this error still. @Bawolff@Malyacko, we did the steps n the link provided but same issue
- Error starting session: session_start(): open(/home/glueitdi/public_html/meta/sessions.php/sess_c78384ac90dcac569ede7baa4c6679fe, O_RDWR) failed: No such file or directory (2) Cocopuff2018 (talk) 07:52, 27 August 2023 (UTC)
- we added the missing files and get the same error can anyone help @Bawolff Cocopuff2018 (talk) 15:07, 27 August 2023 (UTC)
- @Cocopuff2018 What "missing files" exactly? What "session php folder" exactly? Please be way way way way more specific, and do not ping individual people. Thanks. Malyacko (talk) 20:06, 31 August 2023 (UTC)
Cocopuff2018 (talk) 16:24, 3 September 2023 (UTC)
- Error starting session: session_start(): open(/home/glueitdi/public_html/meta/sessions.php/sess_68b096779d72c7a4bcfbc4deab9e65bd, O_RDWR) failed: No such file or directory (2)
- when trying to update the php this error is provided and i already see the file uploaded what else could it be? Cocopuff2018 (talk) 16:29, 3 September 2023 (UTC)
- Please actually answer the questions you were asked above. Taavi (talk!) 20:24, 3 September 2023 (UTC)
- Also, see Project:Support desk/Flow/2023/08#h-Update_pho_error-20230815021100 instead of asking the same questions again and again, and ignoring the answers that you get. Please do not intentionally waste other people's time. Malyacko (talk) 14:34, 4 September 2023 (UTC)
Does CategoryManager extension work with v1.40?
Trying to use this extension Extension:CategoryManager? Getting this kind of errors when visiting my wiki after enabling the extension in LocalSettings:
PHP Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /home/.../public_html/myProject/includes/ServiceWiring.php at line 1011] in /home/.../public_html/myProject/includes/debug/MWDebug.php on line 382\n
The page is also blank with error "This page isn’t working" and code 500 error. Any idea what's going on? Draikin4321 (talk) 20:06, 26 August 2023 (UTC)
- It sounds like the extension was meant for an earlier version of MediaWiki, and the extension's author has not updated it for recent mediawiki. Bawolff (talk) 22:16, 27 August 2023 (UTC)
- That's such a shame. Tbh I don't understand how something as basic as a user-friendly tool for managing categories in Mediawiki can be so unpopular. Because the native way to handle categories is very pretty far from user-friendly. The project has zero star. This is completely beyond me.
- Anyway thanks for the input. 82.39.118.223 (talk) 20:16, 29 August 2023 (UTC)
- You might want to ask bluespice they are usually quite active. Generally they only update their extensions every 4 versions (so 1.35, 1.39, 1.43, etc) Bawolff (talk) 21:40, 29 August 2023 (UTC)
- Thanks, they said 1.39 indeed. My provider only has 1.39.4 and the issue does occur with that version too. So I guess their extension works only with 1.39 not any 1.39.x version. So frustrating. Draikin4321 (talk) 12:14, 31 August 2023 (UTC)
- I suspect yhey mean all the 1.39.x versions so they may consider that a bug. Bawolff (talk) 14:49, 31 August 2023 (UTC)
- If you refer to the note from here. https://en.wiki.bluespice.com/wiki/Reference:BlueSpiceCategoryManager . You need to install the BlueSpiceFoundation: 4.1 as well. Lotusccong (talk) 09:05, 2 September 2023 (UTC)
- Thanks a lot, I'll do that and report back. Draikin4321 (talk) 10:47, 12 September 2023 (UTC)
Image upload returns Server returned error: HTTP 500.
my LocalSettings.php has:
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
ive set file_uploads = On in php.ini
I used chmod -R 755 images/ on the images folder
but whenever I try to upload an image I still get Server returned error: HTTP 500. Mediabobedit (talk) 01:14, 27 August 2023 (UTC)
- Are there any errors in php error log?
- See How to debug Bawolff (talk) 22:15, 27 August 2023 (UTC)
- When I add "error_reporting( -1 ); ini_set( 'display_errors', 1 );" to the LocalSettings file I get "Invalid response from server." When I try to upload an image.
- I tried following the instructions to create a log file but there is no "/var/log/mediawiki/" folder Mediabobedit (talk) 19:26, 28 August 2023 (UTC)
is there a magic way to avoid typing char repetition ?
Is there a practical condensed way to write a formatted wikitext without typing each chars of the format ? For ex: 4 spaces 4 hyphen 4 spaces 4 hyphen is written as
‐‐‐‐ ‐‐‐‐
and renders as :
‐‐‐‐ ‐‐‐‐
Would be nice with a {{formstr:2*(4* 4*‐)}}
Christian 🇫🇷 FR 🚨 (talk) 10:02, 27 August 2023 (UTC)
- I guess you'd need a lua module.
- Where do you need to do this? Bawolff (talk) 22:15, 27 August 2023 (UTC)
- Thanks, it was just a question, an idea . Christian 🇫🇷 FR 🚨 (talk) 07:07, 28 August 2023 (UTC)
url $wg Server/HTTPS/URL courte ne marche pas ?
Bonjour
j'ai créé un wiki au nom de "Champignopedia" mais le problème quand je mets un "é" sur $wgSitename et $wgMetaNamespace, ça met un "? dans un losange noir"
deuxièmement , $wgServer par défaut de mon wiki est "http://localhost" mais quand je mets "http://champignopedia.com ", ils disent site introuvable.
Troisièmement, j'ai voulu mettre $wgForceHTTPS = true; mais quand j'ai mis ça, ils disent que mon wiki est non sécurisé.
Dernièrement, j'ai veux enlever le index.php dans l'URL de mon wiki
Est-ce-que vous pouvez m'aider s'il vous plaît ??? Elementress2306 (talk) 12:35, 27 August 2023 (UTC)
- Apologies for my lack of french. I'll try and use google translate.
- > j'ai créé un wiki au nom de "Champignopedia" mais le problème quand je mets un "é" sur $wgSitename et $wgMetaNamespace, ça met un "? dans un losange noir"
- Please ensure that you editing LocalSettings.php in the correct charset. This issue may happen if you edited the file in latin-1/windows-1252/iso-8859-1/ANSI mode. You need to edit in UTF-8 mode.
- An alternative is to use the string
\xC3\xA9
instead of é in PHP files. PHP considers this an alternative way of entering the character é. - Veuillez vous assurer que vous modifiez LocalSettings.php dans le jeu de caractères correct. Ce problème peut survenir si vous avez modifié le fichier en mode latin-1/windows-1252/iso-8859-1/ANSI. Vous devez éditer en mode UTF-8. Une alternative consiste à utiliser la chaîne
\xC3\xA9
au lieu de é dans les fichiers PHP. PHP considère cela comme une manière alternative de saisir le caractère é. - > deuxièmement , $wgServer par défaut de mon wiki est "http://localhost" mais quand je mets "http://champignopedia.com ", ils disent site introuvable.
- The domain name champignopedia.com is not registered. You need to purchase the domain name, and set its A record to your IP address.
- Le nom de domaine champignopedia.com n'est pas enregistré. Vous devez acheter le nom de domaine et définir son enregistrement A sur votre adresse IP.
- > Troisièmement, j'ai voulu mettre $wgForceHTTPS = true; mais quand j'ai mis ça, ils disent que mon wiki est non sécurisé.
- This is easier after you purchase your domain. You would need to obtain a TLS certificate. Normally this is done through "lets encrypt".
- C'est plus facile après avoir acheté votre domaine. Vous devrez obtenir un certificat TLS. Normalement, cela se fait via "letsencrypt".
- > Dernièrement, j'ai veux enlever le index.php dans l'URL de mon wiki
- See manual:Short URL/fr Bawolff (talk) 13:41, 27 August 2023 (UTC)
- Thank you very much, could you advise me on sites to buy the name domain for free (I want it to look like this example.fr) Elementress2306 (talk) 21:46, 28 August 2023 (UTC)
- The free ones only offer subdomains and are usually kind of sketchy. (E.g. https://noip.com )
- if you want one like myname.com or myname.fr then you have to pay for one. They are usually fairly cheap (~$15/year). A popular bare bones provider is Https://namecheap.com
- Keep in mind that most people also use a web host to host sites (e.g. https://digitalocean.com , AWS etc) and not their own computer. Some of those providers also sell domains. Its possible to host on your own computer but often requires extra set up (static ips so your ip address doesn't change, port forwarding if behind a NAT, never turning your computer off, etc) Bawolff (talk) 22:47, 28 August 2023 (UTC)
- Merci beaucoup Elementress2306 (talk) 20:28, 27 August 2023 (UTC)
MediaWiki 1.40.0. Invalid database type.
Good evening, I'm trying to connect MediaWIki to mysql server and I get an error message "Invalid database type.". There are not many answers on google, so I decided to post here. I hope you can help me.
OS Version: CentOS Stream 8 ( 4.18.0-500.el8.x86_64 )
Apache2 version: 2.4.37
MySQL version 8.0.26
PHP Version: 8.2.9
In php.ini config: post_max_size = 8M, ;enable_post_data_reading = Off
PHP Modules:
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
intl
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
random
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Translated with www.DeepL.com/Translator (free version) Hapugov (talk) 18:18, 27 August 2023 (UTC)
- Where are you seeing this message? Is this in the installer? how far along in the installer? Or is it elsewhere? Bawolff (talk) 22:14, 27 August 2023 (UTC)
- Hi, I am seeing this error on step 4 of the mediawiki installation. I downloaded a clean wiki, uploaded it to the linux server, configured apache to display the wiki where I want it. And then I try to install it with a browser. At the installation stage it gives an error. I'm stuck with the installer at step 4 and I've run out of ideas on how to take it further))
- https://prnt.sc/M_n4wjpTMVVx Hapugov (talk) 08:10, 28 August 2023 (UTC)
- Normally this error would happen if none of the database types were selected when installing. I'm not sure how else it could happen Bawolff (talk) 10:20, 28 August 2023 (UTC)
- I select the base type, specify the address, login and password and I get this error. The same error occurs if I select the SQLite database type
- https://prnt.sc/a1VL0bDAufDR
- PS
- I have an idea that some php module is missing? Apparently something is not passed to Mediawiki and it thinks that no base type has been selected. Also on the first page of language selection, regardless of the choice, it will be English. Whichever language I choose, it remains English by default Hapugov (talk) 10:39, 28 August 2023 (UTC)
- The always english thing makes me think maybe there is some problem with php recieving post parameters.
- If you were missing a php module the database wouldn't show up as a choice (e.g. the way postgres doesn't show up for you). Bawolff (talk) 11:26, 28 August 2023 (UTC)
- Any ideas how we can understand what exactly is preventing connection to the database? I've installed wordpress for the sake of the test, and it has a problem with content display. And it can't connect to the database either. Hapugov (talk) 21:05, 28 August 2023 (UTC)
- Check the value of `variables-order` in your php.ini file. – Ammarpad (talk) 13:13, 30 August 2023 (UTC)
- In php.ini variables_order = "GPCS", changed it to "EGPCS", restarted apache2, but that didn't work. I get the same "Invalid database type.". Hapugov (talk) 17:23, 30 August 2023 (UTC)
- It seems POST parameters are discarded nonetheless. You should try patching this file includes/installer/WebInstallerDBConnect.php#112 on the specified line. Change it to
return Status::newFatal( 'config-invalid-db-type' . var_export( $_POST, true ) );
and copy the new error message. – Ammarpad (talk) 05:43, 31 August 2023 (UTC) - Hi, I apologize for the long reply. I did as you asked, this is what I see when I connect to the database.
⧼config-invalid-db-typepearray ( )⧽
- https://prnt.sc/fR7wKfN3edf4 Hapugov (talk) 18:10, 3 September 2023 (UTC)
- That would be consistant with php not processing POST requests properly.
- It is likely a web server or php misconfiguration, but unclear what. Make sure post_max_size is reasonable, and enable_post_data_reading is on.
- Would you be able to make a HAR file of this step in the installer and post it somewhere? Bawolff (talk) 19:49, 3 September 2023 (UTC)
- Good afternoon, yes, of course, here is the report you asked for. I cleared the cookies, refreshed the page and was on the main page. Then turned on the recording and went from language selection to connecting to the database.
- In php.ini the parameter
post_max_size = 8M
;enable_post_data_reading = Off
(it's commented out, it's supposed to be on by default, right? ).- https://drive.google.com/file/d/1Xpzl7uDEHIdOmiDOojLzGgBOv-dGYtnR/view?usp=sharing Hapugov (talk) 12:37, 4 September 2023 (UTC)
- Hi all, any ideas on how this can be solved? The problem still remains.... Hapugov (talk) 09:14, 11 September 2023 (UTC)
- The HAR file looks correct, so that suggests it is a problem with either PHP configuration or webserver config.
- I would suggest making a php file containing just
<?php phpinfo();
and viewing that file in a web browser. This should list the actual values of all php config, so you could verify that post_max_size and enable_post_data_reading is set correctly. - Beyond that, I would check webserver config for php. Maybe your webserver is somehow configured to strip out request bodies.
- After that, honestly, I would try a different web host, or try reinstalling php or try installing php using a different web server or something. Bawolff (talk) 21:31, 11 September 2023 (UTC)
Repair of magic header on dutch wikisource
Repair of magic header on dutch wikisource
Hello, we are trying to repair on s:nl the magic header included in the <pages index:> tag, but we don't know how to do. See S:nl:Wikisource:De Kroeg#Sjabloon:Header en Sjabloon:Koptekst and following S:nl:Wikisource:De Kroeg#Eerste testen proofreadheader Can we get help?--Havang(nl) (talk) 14:11, 28 August 2023 (UTC)
filter to caracteristics
Good afternoon,
I like to help visitors who visit my wiki-site to determine their item according certain caracteristics. When the different caracteristics are choosen in a form, i like to give them the name with caracteristics of a predefinied page with image what has the most same caracteristics as what they choose in the form.
If there is an extension for that what i can use ... can you please advice me.
Kindly regards,
Ronald van der Drift Ronald vd D (talk) 11:30, 29 August 2023 (UTC)
Error "There is currently no text in this page"
Hello,
I have on Fedora 38 these mediawiki-1.39.3-1 and mariadb-10.5.21-1 with php-8.2.9-2 and php-fpm-8.2.9-2 and httpd-2.4.57-1 apache.
My wiki site used to allow logins.
My LocalSettings.php has
wfLoadExtension( 'Diagrams' );
and
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
I see /var/log for httpd and for php-fpm.
Is there somewhere I can see logs to see why the main page doesn't show anymore? 2001:4C4D:1E10:D400:53B0:9C58:468:4EBB (talk) 14:41, 29 August 2023 (UTC)
- Manual:How to debug for how to enable logging —TheDJ (Not WMF) (talk • contribs) 05:57, 30 August 2023 (UTC)
How do I enable edit button on Mobile for the Main Page?
I've enabled editing and it is available to all users on all pages but on mobile it is only available to users on all the pages except the Main Page.
I'm using the Minerva Neue skin Mediabobedit (talk) 22:00, 29 August 2023 (UTC)
Math extension works quite strange
Hi! Math extension works quite strange - some formulas displaying fine, but instead of some others there is a mistake: Math extension cannot connect to Restbase.
My wiki:
MediaWiki | 1.40.0 |
PHP | 8.2.8 (cgi-fcgi) |
ICU | 50.2 |
MySQL | 5.7.27-30 |
Lua | 5.1.5 |
Any thoughts how to fix it? Fokebox (talk) 18:41, 30 August 2023 (UTC)
TicketAuthentication extension is archived and incompatible
Hi Morning Guys, i have joined new job, they were using MediaWiki for so long. My task was to upgrade the MediaWiki from 1.27 to 1.35. After upgrading , I found that TicketAuthentication extension is archived. This extension is used for to authenticate the MediaWiki user from external website.
I don't even have an idea how they were using this extension. all i did is to copy the extension into new server. but didn't work.
Can someone help please to update the extension? So that i don't need to change extensions
Thanks in advance, Anasrehmankhan.tts (talk) 07:33, 31 August 2023 (UTC)
- Contact the maintainer of the extension or hire someone at Professional development and consulting if you don't think you can fix the extension yourself to work with recent MediaWiki versions.
- Alternatively, look at Category:User identity extensions to see if there's a replacement or alternative authentication extension that may fit your needs. Ciencia Al Poder (talk) 08:46, 31 August 2023 (UTC)
Can not login as Admin after install on godaddy
I installed this on my hosting with godaddy, tried a few times, but always cannot login as admin after each installation. Any help? PgplanningWiKi (talk) 14:18, 31 August 2023 (UTC)
- Try to use Manual:ChangePassword.php to change password than login. Willy1018 (talk) 03:25, 6 September 2023 (UTC)
how to create a company page?
I want create my business website wikialpha page, But how to create it i don't know, pls give me guidelines. Thanks. 103.209.229.26 (talk) 14:54, 31 August 2023 (UTC)
Mediawiki rpm on Fedora linux + composer packages
I have migrated mediawiki from 1.36 to 1.39. My current state is a mixture of what came from 1.39 rpm and various composer require/update
Also the wiki database has pages still there but their content don't show. I think some referential constraints issue in the tables.
The database was migrated /converted however.
I'm thinking to rerun ./mainenance/update.php however I see this error:
./maintenance/update.php
PHP Fatal error: Declaration of Wikimedia\Services\ServiceContainer::get(string $name) must be compatible with Psr\Container\ContainerInterface::get($id) in /usr/share/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php on line 418
This is the list of composer package versions, are they what's needed for mediawiki 1.39?
composer/semver 1.7.2
cssjanus/cssjanus v1.3.0
leafo/lessphp v0.5.0
liuggio/statsd-php-client v1.0.18
monolog/monolog 2.9.1
oojs/oojs-ui v0.36.5
pleonasm/bloom-filter 1.0.2
psr/container 1.0.0
psr/log 1.1.4
wikimedia/assert v0.5.1
wikimedia/at-ease v2.0.0
wikimedia/base-convert v2.0.2
wikimedia/cdb 1.4.1
wikimedia/cldr-plural-rule-parser v1.0.0
wikimedia/common-passwords 0.2.0
wikimedia/ip-set 3.1.0
wikimedia/ip-utils 3.0.2
wikimedia/normalized-exception v1.0.1
wikimedia/object-factory v2.2.0
wikimedia/php-session-serializer v1.0.7
wikimedia/relpath 2.1.1
wikimedia/remex-html 2.3.2
wikimedia/scoped-callback v3.0.0
wikimedia/services 2.0.1
wikimedia/timestamp v3.0.0
wikimedia/utfnormal v2.0.0
wikimedia/wait-condition-loop v1.0.1
wikimedia/wrappedstring v3.2.0
wikimedia/xmp-reader 0.7.0 2001:4C4D:1E05:7300:8AD6:1F16:3232:DB40 (talk) 16:30, 31 August 2023 (UTC)
Include Multimedia in search by default?
My Mediawiki project includes many PDF files and I want users to be able to find them as easily as possible. I am wondering if there is a way to include them by default in the search function? I have been googling around but I have not found an answer to my problem, so apologies if it is something that should be obvious. 50.106.17.35 (talk) 18:45, 31 August 2023 (UTC)
- Figured it out.
- $wgNamespacesToBeSearchedDefault = [
- NS_MAIN => true,
- NS_FILE => true,
- ]; 50.106.17.35 (talk) 19:18, 31 August 2023 (UTC)
Flagged Revisions on 1.40
I updated my wiki to 1.40, the latest stable release. Then I got this:
Fatal error: Uncaught ExtensionDependencyError: FlaggedRevs is not compatible with the current MediaWiki core (version 1.40.0), it requires: >= 1.41. in C:\xampp\htdocs\w\includes\registration\ExtensionRegistry.php:438 Stack trace: #0 C:\xampp\htdocs\w\includes\registration\ExtensionRegistry.php(282): ExtensionRegistry->readFromQueue(Array) #1 C:\xampp\htdocs\w\includes\Setup.php(282): ExtensionRegistry->loadFromQueue() #2 C:\xampp\htdocs\w\includes\WebStart.php(92): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\w\index.php(44): require('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\w\includes\registration\ExtensionRegistry.php on line 438
FlaggedRevs is not compatible with 1.40?! And it asks me to install the current alpha version?! Is this for real?! Manifestation (talk) 19:54, 31 August 2023 (UTC)
- Did you download the 1.40 version of FlaggedRevs? When I download the 1.40 version from Special:ExtensionDistributor/FlaggedRevs, I get an
extension.json
which tells that the extension is compatible with MediaWiki 1.40+. Tacsipacsi (talk) 20:50, 31 August 2023 (UTC) - > And it asks me to install the current alpha version?!
- No, its saying you installed an alpha version of flagged revisions which doesn't work with stable mediawiki. Just install 1.40 flagged revs Bawolff (talk) 02:42, 1 September 2023 (UTC)
- Thank you, Tacsipacsi and Bawolff! I redownloaded the extension via Special:ExtensionDistributor and reinstalled it. Now it does work. 😊
- I initially downloaded FlaggedRevs using this command:
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FlaggedRevs.git
- Does this automatically give you the alpha version? Manifestation (talk) 07:31, 1 September 2023 (UTC)
- It gives you the current development version by default yes.. you need to checkout the REL_1.40 branch if you want to checkout the version from git. —TheDJ (Not WMF) (talk • contribs) 07:42, 1 September 2023 (UTC)
- @TheDJ: Ok. Like this?
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FlaggedRevs.git --branch REL1_40
Manifestation (talk) 08:18, 1 September 2023 (UTC)- Yes that should work. Bawolff (talk) 04:45, 2 September 2023 (UTC)
- Please see Download_from_Git Malyacko (talk) 08:14, 2 September 2023 (UTC)
- Thanks everyone! I did not knew that
git clone
gives you the development/alpha version by default, instead of the stable version. Hence my misunderstanding. Manifestation (talk) 16:34, 2 September 2023 (UTC)