Project:Support desk/Flow/2020/10
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. |
Always getting logged out
Hi,
I sign in to my MediaWiki installation using the Extension:OAuth2 Client. Which seems to work fine...
However, I keep getting logged out every hour or two, and then I need to log in again.
Any ideas why this could be happening?
Thanks. BubbaUsesWiki (talk) 06:05, 1 October 2020 (UTC)
- Have you tried checking $wgSessionCacheType in LocalSettings.pho and setting it to CACHE_DB ? TiltedCerebellum (talk) 19:23, 1 October 2020 (UTC)
- The
$wgSessionCacheType
does not seem to be listed in myLocalSettings.php
file. - These are all the rows that contain the word "cache"
- ## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
- ## Speed
$wgMainCacheType = CACHE_ANYTHING;
$wgCacheDirectory = "$IP/cache";
$wgUseLocalMessageCache = true;
$wgShowIPinHeader = false;
$wgUseGzip = true;
$wgEnableSidebarCache = true;
$wgJobRunRate = 1;
$wgHitcounterUpdateFreq = 100;
- // $wgObjectCacheSessionExpiry = 10;
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
$wgInvalidateCacheOnLocalSettingsChange = true;
- I noticed that
$wgMainCacheType
is listed twice, though it appears in that order.... BubbaUsesWiki (talk) 00:47, 2 October 2020 (UTC) - You can add:
- $wgSessionCacheType = CACHE_DB;
- Per this: Manual:How to debug/Login problems and/or go through that resource regarding your login issues. Adding that line fixed my login issues because it now saves login session information in the database. TiltedCerebellum (talk) 20:14, 2 October 2020 (UTC)
- Thanks! I give it try! BubbaUsesWiki (talk) 23:49, 4 October 2020 (UTC)
I would like to translate an extension.
I would like to translate an extension. Unfortunately I don't know what I have to do after I have inserted the translation, so that it is displayed.
For example. I am on the page: https://www.mediawiki.org/wiki/Extension:Cargo/de
Then I click on Translate.
Now I can translate each block. and when I have translated it, what happens then.
How does the translation go online? HandrikF (talk) 07:06, 1 October 2020 (UTC)
- If your language is set to german it should be live automatically when you visit special:mylanguage/Extension:Cargo
- To clarify though, this is translating the documentation. There is a different process for the extension itself. Bawolff (talk) 10:03, 1 October 2020 (UTC)
- Hello,
- thank you for the answer.
- I would like to ask for an example:
- On the page: https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data/de
- Stands the following:
- "This page is a translated version of the page Extension:Cargo/Storing data and the translation is 100% complete.
- But the page is not completely translated?
- how is that possible?
- Below the table it continues in English. HandrikF (talk) 10:23, 1 October 2020 (UTC)
- someone needs to add translate tags to those parts of the table on the base page. Bawolff (talk) 05:43, 23 October 2020 (UTC)
I would like to send email to user for password
I want to send email via mediawiki. I have configure the SMTP server in Localsetting.php file. 139.167.250.170 (talk) 07:34, 1 October 2020 (UTC)
- what's the question? Bawolff (talk) 10:00, 1 October 2020 (UTC)
- Manual:Configuration settings#Email settings TiltedCerebellum (talk) 19:19, 1 October 2020 (UTC)
https://naijionary.elizia.net/index.php?title=Space
RESOLVED | |
User keeps repeatedly posting the same or similar questions about the same thing over and over. User should read the previous answers given and try to implement them (or read the MW documentation to learn what they need to learn to implement the solutions instead of reposting over and over and getting the same answers, and annoying the help desk staff). See: Project:Support desk/Flow/2020/09#h-I_have_few_scripting_error_on_my_page._Please_help_me_to_solve_them.-2020-09-29T12:22:00.000Z |
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 getting error on my page. Please help me to solve this errors.
Errors are:
Lua error: Paramètre « 3 » inconnu.
Lua error: Paramètre « tr » inconnu.
{{{3}}} Dev687 (talk) 08:22, 1 October 2020 (UTC)
- Another question about this same site about the same errors over and over? Please read the other replies to you other questions about these errors on this page. TiltedCerebellum (talk) 19:20, 1 October 2020 (UTC)
Redirected templates in Visual Editor
Say I have a template {{a}} that redirects to {{b}}.
In Visual Editor, I can find both {{a}} and {{b}} when inserting a template.
Is there an option to only show {{b}} and not {{a}}? Leranjun (talk) 11:14, 1 October 2020 (UTC)
- Usually there is no need to have another template in a template. You can set everything in one template?
- I think there aren't options to choose while editing a page via VisualEditor Fokebox (talk) 17:54, 1 October 2020 (UTC)
- I'm not aware of a way to selectively hide templates in visual editor, though for us, you can add a Template Data description that says "do not use, use template:b instead". Since it shows the first line of a description.
- A use cause for this would be, when an old template, without a descriptive name, was used for brevity like "i" for an icon template. VE search can't search by template description currently, so if a user types "icon", template "i" will not show up, which is not at all ideal. Search is useless in this case, because it doesn't really search, it only does exact or partial matching. So, to make things easier for users, an "icon" template may then be created calling The "i" template. Then at least when users search for an "icon" template, they're going to find something somewhat intuitive. Since old templates may be used on thousands of pages, it's not really feasible to switch them all for some wikis, though AWB could be used to replace all instances, it's still a bit of work.
- I have added a feature request that both VE and Template Data extensions can search through template descriptions so that VE search functions as most of us expect it to... but it was stated that new feature requests aren't a priority. At current, VE template search can't really search, people still have to know the names of templates or templates have to have long and descriptive names in order to be searched and used, which sort of defeats the purpose of having a search in the first place. :( TiltedCerebellum (talk) 19:57, 1 October 2020 (UTC)
- OK, I realised my descriptions might be a bit confusing.
- So here is my source code for the page Template:A :
#REDIRECT [[Template:B]]
- It is not transclusion, just redirect.
- And in the page Template:B I have the actual code of the template.
- What I'm trying to achieve is to hide {{a}} from the search results in VE, and only show {{b}}. Is that possible? Leranjun (talk) 07:34, 2 October 2020 (UTC)
AttributeError: 'rational_resampler_ccc' object has no attribute 'connect'
RESOLVED | |
Welcome to the MediaWiki support desk for questions about atheism MediaWiki software. |
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.
Please tell me how you can fix this error
Generating: '/home/pedro/DOPLOM/rrrrrrr.py'
Executing: /usr/bin/python3 -u /home/pedro/DOPLOM/rrrrrrr.py
Traceback (most recent call last):
File "/home/pedro/DOPLOM/rrrrrrr.py", line 165, in <module>
main()
File "/home/pedro/DOPLOM/rrrrrrr.py", line 141, in main
tb = top_block_cls()
File "/home/pedro/DOPLOM/rrrrrrr.py", line 80, in __init__
self.rational_resampler_xxx_1 = filter.rational_resampler_ccc(
File "/usr/local/lib/python3/dist-packages/gnuradio/filter/rational_resampler.py", line 149, in __init__
_rational_resampler_base.__init__(self, filter.rational_resampler_base_ccc,
File "/usr/local/lib/python3/dist-packages/gnuradio/filter/rational_resampler.py", line 120, in __init__
self.connect(self, self.resampler, self)
AttributeError: 'rational_resampler_ccc' object has no attribute 'connect' 5.165.28.79 (talk) 11:43, 1 October 2020 (UTC)
The theme I have created does not work on all pages
Well, it turns out that I have created a nice theme for my wiki, but it turns out that on some pages you see the Monobloc default, for example in Special:Preferences. Is there any solution? ShakeUY (talk) 16:47, 1 October 2020 (UTC)
- That's a really nice mod of Monobook.
- Try setting $wgAllowSiteCSSOnRestrictedPages = true; in LocalSettings.php Bawolff (talk) 06:19, 2 October 2020 (UTC)
- Hey! I'ts working! Thank you so much! ShakeUY (talk) 22:58, 2 October 2020 (UTC)
1.35.0 - jQuery Issue
RESOLVED | |
I extracted with 7-zip on Windows. Extracting via tar from Git for Windows resolved my issue. |
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 recently performed an installation of MediaWiki on localhost to see what the latest edition brought to the table. I installed it from the tarball available on the main download page. I've had some unrelated problems with the versions of the Vector skin and the WikiEditor extension bundled with that installation that I was able to resolve by slipping the 1.35.0 branches in instead, but this is stumping me. It persists, even after disabling all extensions and updating Vector.
Any page that tries to serve jQuery through load.php, such as Special:Watchlist (to load one's watchlist) or Special:Preferences (to switch between different tabs at the top), results in an error in the browser console and broken functionality on the page.
These errors persist across the versions of Mozilla Firefox, Google Chrome, and Microsoft Edge that I have installed on my machine, so I assume it's an internal problem somewhere. I just don't know where.
I'm hosting MediaWiki 1.35.0 using MariaDB 10.5.5, nginx 1.19.2, and PHP 7.4.10.
This is the URL being served by my installation that reports the error, if that's of any use.
The file served by load.php is 13,133 lines long and begins with this, which... isn't super helpful:
/* [ddb4319b474a8068e2af3f4c] 2020-10-01 18:47:31: Fatal exception of type "RuntimeException" */ if (window.console && console.error) { console.error("[ddb4319b474a8068e2af3f4c] 2020-10-01 18:47:31: Fatal exception of type \"RuntimeException\""); }
I'd post the whole thing, but I can't find anywhere to host it that isn't going to charge me for a pro plan. I'm hoping someone out there knows what I did wrong, or can offer advice to get things operable again! ExhaustionProtocol (talk) 19:10, 1 October 2020 (UTC)
- Did you install 1.35 over top of a different version of MW? I ask because of where you said "I was able to resolve by slipping the 1.35.0 branches in instead". If you started with 1.35.0, why would you need to "slip in" anything from the 1.35 branch? Also there are issues extracting MW with some freeware programs like 7-zip or midnight commander... TiltedCerebellum (talk) 19:31, 1 October 2020 (UTC)
- Apologies for my ambiguity- I meant that I retrieved the 1.35 branches of the Vector skin and WikiEditor extension and threw them into the MediaWiki 1.35 extensions directory, since the copies bundled with it seemed to be misbehaving.
- I did use 7-zip to extract the tarballs, as a matter of fact. Are there alternatives that function more ideally? Would I have better luck setting this up on my Linux machine, as opposed to my Windows one? ExhaustionProtocol (talk) 19:38, 1 October 2020 (UTC)
- It is possibly 7-zip extraction-related. There is a known issue with using 7-zip to extract since it lacks the proper pax support, though not sure if it was carried into 1.35, it was a known issue in 1.34.2. This help page has easily a couple dozen past cases of problems due to 7-zip extraction (the creator of that tool has known about the pax standards for over a decade and still failed to fully implement it). Extraction on Linux via command line works well. TiltedCerebellum (talk) 19:45, 1 October 2020 (UTC)
- I had no idea. I'll try the tar utilities with git for Windows and, if that doesn't resolve it, I'll try again on my Linux distro and see if that helps any. Thank you for pointing me in a promising direction! ExhaustionProtocol (talk) 19:47, 1 October 2020 (UTC)
- Addendum: I feel very stupid. It mentions this right beside the download link. ExhaustionProtocol (talk) 19:49, 1 October 2020 (UTC)
- No worries, we're all pressed for time and skim. It becomes like a reflex to extract stuff in Windows after a while. TiltedCerebellum (talk) 20:08, 1 October 2020 (UTC)
Commons error on homepage
RESOLVED | |
fixed |
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, Currently everytime I go on Commons I get:
MediaWiki internal error.
Original exception: [0b02190a-f23c-4cf1-9369-95a358f90857] 2020-10-01 21:16:27: Fatal exception of type "LogicException"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
I would post to Phab but have been moaned at for not following their guide so figured I'd just post here instead.
Thanks, ~ Davey2010 (talk) 21:18, 1 October 2020 (UTC)
Need to categorize content by Tags or similar
Hello,
My organization is needing to know how to properly configure our core business content so that it can be queried predictably via the Search function.
We have about 20 groups of documents that would be categorized distinctly, and then we have other subsets of documents that would be categorized distinctly across those 20 groups.
Example: We may have 10 groups of documents pertaining to each of our 10 departments. And then we would also want to just search for Process docs across all 10 departments to easily pull all procedures up. Just an example. I am assuming this will involve Tags, but I am finding no useful help/guidance in how to implement. Thanks much! 173.175.255.102 (talk) 21:53, 1 October 2020 (UTC)
- Does help:Categories help?
- Some people also find Extension:DynamicPageList_(Wikimedia) useful. Bawolff (talk) 06:16, 2 October 2020 (UTC)
Timeless skin - How to change mobile screen queries?!
Hello, I'm a day 1 user of Mediawiki 1.31.10 & Timeless skin - in which file can I change the mobile screen size queries, or what it is used here, - to change the site transformations for mobiles at different screen sizes, not the default?! 95.68.25.5 (talk) 22:31, 1 October 2020 (UTC)
Timeless skin - How to configure Right Column?!
How to Configure Right Column?! - How to edit what links appear there?! How to add another block with an image or menu in Right Column?! How to disable Right Column (when not by code)?! 95.68.25.5 (talk) 01:05, 2 October 2020 (UTC)
- Generally the right column is not meant to be configured, however it is possible via CSS or JS. See ResourceLoader/Core_modules#addPortletLink, Manual:CSS and Manual:Interface/JavaScript Bawolff (talk) 06:07, 2 October 2020 (UTC)
- I upgraded to 1.35 from 1.31.4. Using the Timeless skin, the title bar's right column seems to be disabled. I click on the down-arrow next to "Anonymous" and nothing happens. This worked in 1.31.4.
- I can not get to the login screen from the title bar any longer. Hpyjoy (talk) 20:33, 18 January 2021 (UTC)
After upgrade to 1.35.0, get "cannot access database" error (no backtrace)
Upgraded to 1.35.0 from 1.24.something. PHP is version 7.4.3, MySQL is Ver 14.14 Distrib 5.7.31.
The upgrade process took a bit of doing, but the web updater eventually ran fine, and I have the output from the database update saved if that will help.
I don't see any errors in my web server error log. The URL to the wiki is http://thegaminggrunts.com/wiki/.
Thanks! 2001:4998:EFFD:7F06:0:0:0:10F0 (talk) 02:48, 2 October 2020 (UTC)
- Can you verify that mysql is up and running (For example, you can access it via command line mysql or phpmyadmin, and fetch some data from the wikidatabase [Doesn't matter what, just anything to make sure its running]).
- If you upgraded versions of php, make sure you have php-mysql installed (However if you didn't the upgrade wouldn't work).
- Also check php error logs for any errors. Bawolff (talk) 06:03, 2 October 2020 (UTC)
- Hi Bawolff, yes, I can access tables and see data in the wiki db via phpMyAdmin. My site is hosted through Dreamhost, so I don't directly know whether php-mysql is installed, but as you say, if it's not, then the upgrade would have probably failed.
- I'll look for a specific PHP error log.... 209.131.57.64 (talk) 17:03, 2 October 2020 (UTC)
- I set up a PHP error log and I can see that errors are being delivered to it (by a test script). However, I don't see any errors when I try accessing the wiki.
- I'm also still not seeing any errors in the web server log (but I see the attempts in the access log).
- Are there any other logs I should be looking at? 70.36.176.161 (talk) 21:56, 2 October 2020 (UTC)
- if you are on dreamhost shared hosting than its a pretty good bet you have appropriate php-mysql installed.
- Double check $wgDBserver is set correctly. Beyond that im not sure. Bawolff (talk) 04:33, 3 October 2020 (UTC)
- Ah, I got a backtrace to show up (added $wgShowExceptionDetails = true; to LocalSettings.php).
- #0 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(934): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
- #1 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(901): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'the_gaming_grun...', 0)
- #2 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/WikiPage.php(475): Wikimedia\Rdbms\LoadBalancer->getConnection(-1)
- #3 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/WikiPage.php(590): WikiPage->loadPageData()
- #4 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/WikiPage.php(631): WikiPage->exists()
- #5 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/WikiPage.php(311): WikiPage->getContentModel()
- #6 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/WikiPage.php(297): WikiPage->getContentHandler()
- #7 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/page/Article.php(2539): WikiPage->getActionOverrides()
- #8 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/actions/Action.php(130): Article->getActionOverrides()
- #9 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/actions/Action.php(189): Action::factory('view', Object(Article), Object(RequestContext))
- #10 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/MediaWiki.php(166): Action::getActionName(Object(RequestContext))
- #11 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/MediaWiki.php(903): MediaWiki->getAction()
- #12 /home/MYUSERNAME/thegaminggrunts.com/wiki/includes/MediaWiki.php(543): MediaWiki->main()
- #13 /home/MYUSERNAME/thegaminggrunts.com/wiki/index.php(53): MediaWiki->run()
- #14 /home/MYUSERNAME/thegaminggrunts.com/wiki/index.php(46): wfIndexMain()
- #15 {main} 2001:4998:EFFD:7801:0:0:0:111C (talk) 17:44, 3 October 2020 (UTC)
Before & Post Upgrade I can't hide categories.
Despite using __HIDDENCAT__ I've had no luck hiding categories. The weird thing is, in previews it's hidden but whether I'm logged in or not it shows up anyway. Any help is appreciated.
It's automatically created with DPL, the category is here. Kleissis (talk) 05:34, 2 October 2020 (UTC)
- I think the Oasis skin is just broken with respect to hidden categories. That's a wikia/fandom customization so you'll have to contact fandom support channels.
- You can see that it works fine when using builtin MediaWiki stuff. For example its listed as hidden in the api output, https://tales-of-the-rays.fandom.com/api.php?action=query&prop=categories&titles=2000_Years_of_Hidden_Thoughts&clprop=hidden and it also shows as hidden when using the no skins exist skin https://tales-of-the-rays.fandom.com/wiki/2000_Years_of_Hidden_Thoughts?useskin=fallback Bawolff (talk) 05:56, 2 October 2020 (UTC)
Still getting Parsoid/RESTBase server (HTTP 500) errors when enabling visual editor in mediawiki 1.35 version
- Title says it all. Does it matter if I'm on a shared hosting at this point? I thought version 1.35 would fix this and you wouldn't need a parsoid setup.
- The errors I'm getting is "Error contacting the Parsoid/RESTBase server (HTTP 500)"
- Thanks for your help! 24.45.134.47 (talk) 07:42, 2 October 2020 (UTC)
- I've tried various suggestions on this page, but still no joy. I'm using MediaWiki 1.38.1 and PHP 8.0.2.
- I added an SSL, and now instead of HTTP 500 errors, I get HTTP 415 errors.
- Looking in the error.log, there's:
[Tue Jul 05 09:46:23.328497 2022] ModSecurity: Warning. Operator EQ matched 0 at REQUEST_HEADERS. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "238"] [id "920180"] [msg "POST without Content-Length or Transfer-Encoding headers"] [data "0"] [severity "WARNING"] [ver "OWASP_CRS/3.3.2"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/210/272"] [hostname "wiki.ouroakland.net"] [uri "/oaklandwiki/rest.php/wiki.ouroakland.net/v3/transform/html/to/wikitext/Lakeside_Temple_of_Practical_Christianity/266"] [unique_id "YsRq312mt4Is-dpsn87Y8QAABBg"]
- Is my host (Dreamhost) being overly strict, or is the Visual Editor code leaving out something important? Or is it something else entirely? OurOakland (talk) 16:56, 5 July 2022 (UTC)
- I'm using siteground for hosting and I used their one-click install. I then added the following to the localsettings file:
- wfLoadExtension( 'VisualEditor' );
- // Enable by default for everybody
- $wgDefaultUserOptions['visualeditor-enable'] = 1;
- // Optional: Set VisualEditor as the default for anonymous users
- // otherwise they will have to switch to VE
- // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
- // Don't allow users to disable it
- $wgHiddenPrefs[] = 'visualeditor-enable';
- // OPTIONAL: Enable VisualEditor's experimental code features
- #$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; 24.45.134.47 (talk) 07:45, 2 October 2020 (UTC)
- I would suggest trying it without using their one-click installer. Does it work if you download the official tarball from Download? Bawolff (talk) 09:33, 3 October 2020 (UTC)
- I am having the same issue as well. I used official tar and did not change anything 2001:B400:E27F:1A9B:CA8:8B8C:84A:3010 (talk) 10:33, 14 November 2020 (UTC)
- Hello,
- I am using Siteground and have the same issue, did you manage to resolve the problem? RookieBeard (talk) 07:07, 25 December 2020 (UTC)
- Me too. :( Lucio Linae (talk) 05:26, 16 January 2021 (UTC)
- I just solved this problem for my own wiki hosted with SiteGround! The error occurs if your website doesn't have a SSL certificate attached to it yet.
- I attached the certificate, added the following line to the localsettings.php file:
- wfLoadExtension( 'VisualEditor' );
- And the visual editor loaded without problem.
- Good luck! MBaitz (talk) 16:49, 23 February 2021 (UTC)
- Issue still persisting even with SSL enabled. This problem isn´t related to a SSL certificate. 185.207.157.7 (talk) 07:40, 26 March 2021 (UTC)
- Any update on this? Many thanks 88.98.203.115 (talk) 10:10, 13 July 2021 (UTC)
- Is this similar to this problem: ? Jens.Frangenheim (talk) 05:01, 14 July 2021 (UTC)
- In my case, error is triggered when a page have accentued characters in the title.
- Remove them is a (temporary) solution. 91.135.176.7 (talk) 07:06, 14 September 2021 (UTC)
- I used a reductive process and landed on the oddest thing. Use of parentheses inside a table triggered the error. Removed them, and it works fine. 2604:CB00:408:D100:C11A:992D:3FFA:236F (talk) 20:16, 29 September 2021 (UTC)
- Our wiki is hosted on a Dreamhost Shared Hosting. Checking over my Apache2 error log on this, it appears their ModSecurity rules are too strict, and is triggering on various brackets, parenthesis etc as an "HTTP Request Smuggling Attack". Contacting Dreamhost support, they use: OWASP ModSecurity Project as their rule set. If you disable "Extra Web Security" this turns off ModSecurity and the error went away. Caswal (talk) 04:31, 17 November 2021 (UTC)
- Possible solution:
- For me, changing $wgShellLocale = "en_US.UTF-8"; to $wgShellLocale = "en_UK.UTF-8"; did the trick - no more Parsoid/REST error.
- I hope this helps someone. Pirrracoon (talk) 20:58, 7 December 2021 (UTC)
- doesn't work for me 83.132.149.59 (talk) 10:41, 7 April 2022 (UTC)
- Using Incorrect PHP version will lead to problem, the error comes when php version was in 7.3.21. Error is gone when php was updated to php version 7.3.33 and also working php version 7.4.9 2409:4072:6183:DCF:7DE0:955F:1A36:D647 (talk) 11:52, 26 December 2021 (UTC)
- on Siteground, doesn't work even with PHP 7.4.28 83.132.149.59 (talk) 10:42, 7 April 2022 (UTC)
- Running 1.36.1 on PHP 7.4 in a hosted service. I get the error when editing a saved page. The editor works while editing a new page
- Have tried most suggestions on this page without success. 2A00:23C4:800B:6C00:2486:AC2A:6625:46FF (talk) 16:58, 3 January 2022 (UTC)
- I'm having the same issue on PHP 8 92.109.7.32 (talk) 10:05, 26 January 2022 (UTC)
- I'm having the same with php 7.3.33 mediawiki 1.37.1. $wgShellLocale = "fr_FR.UTF-8"; (i also tested en_UK.UTF-8 and the result is the same)
- It works sometimes but i couldn't identify the problem (I have no accent in this page) Hotjice (talk) 09:05, 2 February 2022 (UTC)
- any updates on this? I'm new to MediaWiki, but I've been getting this quite often. In my testing, this only happens on pages that have templates. Arielzao150 (talk) 04:05, 10 March 2022 (UTC)
- same here still getting this error after multiple attempts to setup and save pagers. 134.238.236.87 (talk) 08:26, 31 March 2022 (UTC)
- Also getting the same, using a Windows Apache server 2.4.51 and PHP 7.4.26. Also works occasionally but randomly breaks. 92.207.252.10 (talk) 12:15, 11 April 2022 (UTC)
- Running 1.38.1 w/ PHP 7.4.30. I moved to short urls and now Visual Editor won't work at all. Before that, it would not load on image-heavy pages and some pages with expand/collapse <div>'s and/or simple tooltip { } The problem appeared after implementing short urls.
- The guidelines say that VE should work if using standard domain.com/w/ script path and /wiki/ article path, which I am using. I am controlling the rewrite with an .htaccess file as I have no idea how to modify the Apache configuration file on the server (very confusing article and my server says WARNS AGAINST modifying the httpd.conf file. Hoping for any additional thoughts or ideas to test out here. School4schools (talk) 15:57, 4 July 2022 (UTC)
- they Have tried adding to localsettings.php:
- wfLoadExtension( 'Parsoid', __DIR__ . '/vendor/wikimedia/parsoid/extension.json' );
- ? PetaloAzul (talk) 03:29, 6 July 2022 (UTC)
- Thanks for the suggestion. Unfortunately, it didn't change the behavior (VE 500 error) School4schools (talk) 21:40, 7 July 2022 (UTC)
- Hello,
- I have the same problem as you, I tried everything suggested here, but nothing works.
- I noticed that for some, changing the UTF it worked, but I have nothing with UTF in my LocalSetting. But I discovered this in my LocalSetting
- "$wgLocaltimezone = "Europe/Berlin";
- Could changing this possibly fix the problem?
- Thanks
- I'm on Localhost, MediaWiki 1.38.1, PHP 7.4.25 (apache2handler), MariaDB 10.4.21-MariaDB and Windows 10.
- PS: I am French. MonsieurNash (talk) 10:57, 10 July 2022 (UTC)
- Changing the language didn't work for me, and it wasn't about certain characters, or the wfLoadExtension( 'Parsoid', "$IP/vendor/wikimedia/parsoid/extension.json" ); << none of that worked.
- So I ran a clean install on the same server w/ a new mysqyl database and latest stable wikimedia. The new installation gave me the same error on Visual Editor, so it's not the installation, it's the server.
- I don't even know what to do now. I need VE to edit tables, which are a nightmare in code editor. School4schools (talk) 17:58, 10 July 2022 (UTC)
- Searching this thread on Phabricator : T270377, a user mentioned that changing the Localhost's "$wgTmpDirectory" solved the problem. I tested his method, and the problem was gone and my Visual Editor worked normally.
- Here is his solution : Changing $wgTmpDirectory to "$IP . '/images/temp';"
- The nickname of the user who found this solution is Raymond MonsieurNash (talk) 10:45, 12 July 2022 (UTC)
- Brilliant and thank you so much -- it works!!
- Here's the thread: [RESOLVED] Image upload problem in a new installed Mediawiki 1.21.1 on Project:Support desk
- Here's the code:
$wgTmpDirectory = "$IP/images/temp";
- That user also suggests adding a folder
/images/thumb/
(which I already had) and set permissions to 755 School4schools (talk) 19:10, 17 July 2022 (UTC)
Adjusting importance of external CSS
I have loaded the Bootstrap stylesheet from MediaWiki:Common.js like this:
mw.loader.load("https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css", "text/css");
However, this overwrites some properties defined in the default skin CSS (font-family
for example).
Is there any way to bypass this? Leranjun (talk) 14:00, 2 October 2020 (UTC)
- You'll have to re-define them again with more specificity, or use !important Ciencia Al Poder (talk) 16:05, 2 October 2020 (UTC)
Die Übersetzung funktioniert nicht richtig?
Hallo Leute,
ich hoffe jemand kann mir helfen.
ich versuche die Erweiterung: Extension:Cargo/Storing data/de zu übersetzen. Besser gesagt die Unterseiten von der Erweiterung.
Auf der Seite: Extension:Cargo/Storing data/de ist der erste Teil übersetzt worden. weiter Unten ist es aber immer noch auf Englisch und die Leiste oben meint das die Seite zu 100% übersetzt worden ist.
Wie kann das sein?
Kurz: Die Seite ist nicht übersetzt worden,aber die Leiste meint das die Seite zur 100% übersetzt worden ist.
Kann mir mal jemand das erklären. bzw. sagen wich ich die Seite übersetzen kann?
Grüße HandrikF (talk) 14:17, 2 October 2020 (UTC)
- @Nikerabbit, do you know anything about this? Who would be a good person to ask? ☠MarkAHershberger☢(talk)☣ 16:50, 2 October 2020 (UTC)
- Looking at the source, most of the page is not marked for translation. Nikerabbit (talk) 19:31, 2 October 2020 (UTC)
- Now I got the answer from the programmer.
- Oh, I get it - you want to translate the extension's *documentation*. For that to be done, I (or someone else) would need to add <translate> tags all over the Cargo documentation pages - just as exist on many other pages on mediawiki.org. Some of Cargo's pages, like the main one, have many <translate> tags in them - and others have a few, as you've seen. Unfortunately, I don't really know how to add <translate> tags - I don't know what ID to use for each one, or what size text I should break up the page into. Until now, all the tagging on my documentation pages has been done by other people. If you think you understand the system, feel free to add more <translate> tags yourself - it would definitely help with translation.
- unfortunately I still do not know how to insert or delete these tags Does anyone know more? HandrikF (talk) 07:21, 4 October 2020 (UTC)
- Help:Extension:Translate/Page_translation_example should help. Nikerabbit (talk) 15:39, 4 October 2020 (UTC)
- I have looked at the description, but have not understood anything.
- As I understood it, the software (the translator) adds the markers. And I cannot change the markers.
- That I can add the tags <translate></translate> is clear to me. In some sentences the markers are there, but still the software does not offer this for translation.
- And the second question is: For what are these markers ?
- I cannot add them myself.
- An example at this very problem/page would be the right one. HandrikF (talk) 17:57, 4 October 2020 (UTC)
- The guidance is for translation admins (who have final say on the tags), not for translators. Nikerabbit (talk) 14:32, 5 October 2020 (UTC)
Erro ao criar $wgLogo
tentei criar um caminho para adicionar uma imagem na minha wiki C:\wamp64\www\wiki\images\4\47\mylogo.png e adicionei a seguinte linha no meu LocalSettings:
$ wgLogo = $ wgScriptPath . '/images/4/47/mylogo.png' ;
igual o que estava escrito na mediawiki mas quando tento acessar o localhost aparece o seguinte erro:
Parse error: syntax error, unexpected 'wgLogo' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$' in C:\wamp64\www\wiki\LocalSettings.php on line 30
Fiz tudo que pediram mas não deu certo me ajudem!!! Gustavo Borges Matos (talk) 18:04, 2 October 2020 (UTC)
- Alguém para ajudar? Gustavo Borges Matos (talk) 18:37, 2 October 2020 (UTC)
- Why do you have a space between each $ and the rest of the characters?
- Por que você tem um espaço entre cada $ e o resto dos personagens?
- $wgLogo = $wgScriptPath . '/images/4/47/mylogo.png' ;
- NOT/NÃO:
- $ wgLogo = $ wgScriptPath . '/images/4/47/mylogo.png' ; TiltedCerebellum (talk) 20:23, 2 October 2020 (UTC)
- @TiltedCerebellum eu fiz o que você falou mas não mudou a logo o que faço agora? Gustavo Borges Matos (talk) 21:33, 2 October 2020 (UTC)
- Alguém me ajuda por favor!!!!! Gustavo Borges Matos (talk) 14:02, 3 October 2020 (UTC)
Error When Running update.php to 1.35.0
MediaWiki 1.35.0
PHP 7.4.3 (fpm-fcgi)
SQLite 3.31.1
When I run update.php, I get this error.
Adding module field to table oathauth_users ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/site/html/includes/libs/rdbms/database/Database.php: Error 1: near ",": syntax error
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/site/html/extensions/OATHAuth/sql/mysql/patch-add_generic_fields.sql )
Query: ALTER TABLE oathauth_users
ADD module TEXT NOT NULL,
ADD data BLOB NULL
#0 /var/www/site/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/site/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/site/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/site/html/includes/libs/rdbms/database/Database.php(5075): Wikimedia\Rdbms\Database->query()
#4 /var/www/site/html/includes/libs/rdbms/database/Database.php(5010): Wikimedia\Rdbms\Database->sourceStream()
#5 /var/www/site/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()
#6 /var/www/site/html/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/site/html/includes/installer/DatabaseUpdater.php(727): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()
#8 /var/www/site/html/includes/installer/DatabaseUpdater.php(801): DatabaseUpdater->applyPatch()
#9 /var/www/site/html/includes/installer/DatabaseUpdater.php(512): DatabaseUpdater->addField()
#10 /var/www/site/html/includes/installer/DatabaseUpdater.php(480): DatabaseUpdater->runUpdates()
#11 /var/www/site/html/maintenance/update.php(181): DatabaseUpdater->doUpdates()
#12 /var/www/site/html/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/site/html/maintenance/update.php(253): require_once('/var/www/access...')
#14 {main} 205.201.18.156 (talk) 22:12, 2 October 2020 (UTC)
- file a bug at https://phabricator.wikimedia.org being sure to tag it as mediawiki-extensions-oathauth and sqlite. Bawolff (talk) 04:29, 3 October 2020 (UTC)
- The schema was not written for SQLite, it was probably just hoped it would work with MySQL syntax, so it's not surprising it doesn't, giving the many limitations of SQLite on ALTER command.
- ALTER TABLE /*_*/ oathauth_users
ADD module VARCHAR( 255 ) NOT NULL,
ADD data BLOB NULL;
- The first ADD command specifies a NOT NULL constraint but there's no default value. In SQLite, a non-NULL default is necessary when a NOT NULL constraint is specified. – Ammarpad (talk) 05:31, 3 October 2020 (UTC)
- Reported at https://phabricator.wikimedia.org/T264492 Bawolff (talk) 09:32, 3 October 2020 (UTC)
- It looks like it's fixed?
- https://phabricator.wikimedia.org/T264492
- Could someone give me an instruction on how to apply the patch? 216.180.88.29 (talk) 09:14, 24 October 2020 (UTC)
- just download a new version from Special:ExtensionDistributor
- (If you really want to know how to apply patches see https://man7.org/linux/man-pages/man1/patch.1.html but easier to just get a new copy of extension) Bawolff (talk) 08:02, 27 October 2020 (UTC)
Custom wiki group membership, permissions automatically disappear
RESOLVED | |
The problem has been solved in other ways
$wgGroupPermissions ['sysop'] ['edit'] = true; $wgGroupPermissions ['sysop'] ['upload'] = true; |
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, everyone
I have a question that Needs support. Can anyone help me?
I'm centos7 deployed mediawiki 1.31 above, and enable the LDAP authentication, at present the AD users can normal login wiki, because of the security we stopped using ordinary users edit permissions, I built a group, this group of users has been given to edit and caeatepage permissions , my question is, when the AD users login to the wiki, permissions will disappear. (PS: I am sure I have added these AD accounts to groups with edit permissions) Minqimin (talk) 01:47, 3 October 2020 (UTC)
- Group permissions in localsettings.php are configured as follows:
- $wgGroupPermissions['*']['createaccount'] = false;
- $wgGroupPermissions['*']['edit'] = false;
- ######$wgGroupPermissions['*']['read'] = false;
- $wgGroupPermissions['user']['edit'] = false;
- $wgGroupPermissions['eastecheditor']['edit'] = true;
- $wgGroupPermissions['eastecheditor']['createpage'] = true;
- $wgGroupPermissions ['bureaucrat'] ['createaccount'] = true; Minqimin (talk) 01:49, 3 October 2020 (UTC)
two search questions
- can I get transclusions to be expanded in search results?
- can I somehow specify what text is displayed in the result? For example, I have a summary on a page that would be a good thing to show rather than whatever is near the search term. 68.110.86.107 (talk) 03:24, 3 October 2020 (UTC)
- for 1, try extension:CirrusSearch
- For 2, yes but you may need to make your own search extension (or at least your own frontend part of 1) Bawolff (talk) 04:27, 3 October 2020 (UTC)
- I've got that installed, but I'm not advanced enough to seemingly get it to work. It seems to be expanding the templates, but not the transclusions. Do you know of any documentation that can help point me in the right direction for #2? 68.110.86.107 (talk) 05:09, 3 October 2020 (UTC)
- any idea why I would get the message "elasticsearch not up" I can't really find any info on it 68.110.86.107 (talk) 05:32, 3 October 2020 (UTC)
- Templates and transclusions are the same thing, so I'm not sure what you mean.
- > "elasticsearch not up"
- Presumably means that elastic search is down (i.e. The elastic search process is not running). Other possibilities might be if the elastic search process is not accessible from the webserver for some reason.
- > Do you know of any documentation that can help point me in the right direction for #2?
- You would need to know a decent amount of PHP to do this. Manual:Hooks and Manual:Hooks/SpecialSearchResults are probably good starting places as far as MediaWiki specific documentation goes, but the main thing is you would need to know PHP programming. Bawolff (talk) 09:27, 3 October 2020 (UTC)
- It looks like this is going to require a subscription which is to much for my small hobby site. do you know of any free alternatives that might improve the mediawiki search engine? 68.110.86.107 (talk) 16:05, 4 October 2020 (UTC)
- elastic search is free (with a somewhat complex setup). There are companies that offer paid subscriptions to elasticsearch, but what you are paying for is for them to set it up for you (and manage it), not elasticsearch itself. Bawolff (talk) 05:49, 23 October 2020 (UTC)
help
hi tehre, first time useing wiki, i have been and i wrote all the work straight into wiki, i have lost about 5 hours of my time, where i was writing off the top of my head to create a band page.
i will happily take down anything i need to, to become unblocked or to get my writing back. very frustrated and upset that all my hard work is just gone and i cant access it 124.168.88.216 (talk) 06:20, 3 October 2020 (UTC)
- What's the name of the page and which wiki (e.g. is it english Wikipedia or some other website?) are we talking about?
- Often in situations like these, if you ask politely, they will provide you with the contents of the page, but I would need to know which page and which wiki project, in order to know where to direct you.
- For english wikipedia, w:Wikipedia:Requests_for_undeletion may be relevant to you. Bawolff (talk) 09:20, 3 October 2020 (UTC)
Error loading data from server: apierror-visualeditor-docserver-http: HTTP 406. Would you like to retry?
Now I Wiki looks normal, VE normal, LDAP authentication, but found a problem, when I reopening old page, and use visualeditor editor, will quote http406 error, I Google a lot of information, say parsoid version do not match, I use a Centos7, I can't find where can I download parsoid 0.8.0 installation file, I 'll crazy,
wiki1.31.0 + visualeditor 1.31+ parsoid 0.11.0
If I don't upgrade Wiki1.35, is there any other way? Thanks everyone Minqimin (talk) 08:54, 3 October 2020 (UTC)
Sebi1990
My account is called "Sebi1990", link here: w:User:Sebi1990. On 2 October I opened my computer and I was logged off wikipedia even do a few months ago I've activated the keep me logged for 365 days option and I made edits the day before (1 October). I tried to log in using my password but it didn't work so I've used the reset password. I put both my username and my email address (coca.sebastian@yahoo.com) but I got no email from wikipedia (I searched for it even in the spam and trash folders). I saw that the reset password request can only be sent once every 24 hours, so today, after those 24 hours I did the same thing again, but again I did not receive the email. What can I do? User talk:46.97.170.221 46.97.170.221 (talk) 11:09, 3 October 2020 (UTC)
- are you sure you verified your email in the past?
- Unfortunately not much can be done unless you can prove beyond a shadow of a doubt you own the account (very difficult) Bawolff (talk) 18:03, 3 October 2020 (UTC)
- Also see phab:T264504 which could be similar Malyacko (talk) 11:21, 4 October 2020 (UTC)
Não consigo sair do localhost
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.
Já tentei de tudo seguindo todos os paços mas não sai do localhost toda vez da um erro, já fazem semanas e ate meses que tento e tento mais não consigo migrar minha wiki em um servidor online.
OBS: se possível deixe algum site de hospedagem gratuita para que eu coloque minha wiki . Gustavo Borges Matos (talk) 14:06, 3 October 2020 (UTC)
- Se preciso eu consigo usar o ngrok para conceder acesso a alguém para me ajudar. Gustavo Borges Matos (talk) 17:53, 3 October 2020 (UTC)
- @TiltedCerebellum
- @Bawolff
- Alguém me ajude!!!!!!!! Gustavo Borges Matos (talk) 18:03, 3 October 2020 (UTC)
- if you have changed your domain, ensure $wgServer is set correctly in LocalSettings.php
- If you are looking for a free host try https://miraheze.org or https://shoutwiki.com .
- ------
- se você mudou seu domínio, certifique-se de que $wgServer está configurado corretamente em LocalSettings.php.
- Se você estiver procurando por um host gratuito, tente https://miraheze.org ou https://shoutwiki.com. Bawolff (talk) 18:13, 3 October 2020 (UTC)
- @Bawolff Meu $wgServer esta como http://localhost e quero colocar em um serviço de hospedagem se o mediawiki for gratuito pode ser, eu consigo disponibilizar o site para você usando o ngrok mas por favor me ajude!!!!!!!!!!!! Gustavo Borges Matos (talk) 23:03, 6 October 2020 (UTC)
- @Bawolff
- @TiltedCerebellum
- Ajude-me!!!!!!!!!!!!!!! Gustavo Borges Matos (talk) 23:15, 6 October 2020 (UTC)
- @Bawolff
- @TiltedCerebellum
- Ajudem!! Gustavo Borges Matos (talk) 11:19, 7 October 2020 (UTC)
- Please be patient. Everyone here is a volunteer and not always available to answer your questions. Taavi (talk!) 11:24, 7 October 2020 (UTC)
- Mudei o domino para wikiquedia.tk mas quando tento entrar aparece o seguinte erro:
- Not Found
- The requested URL was not found on this server.
- _______________________________________________________________________________________
- Apache/2.4.41 (Win64) PHP/7.3.12 Server at wikiquedia.tk Port 80 Gustavo Borges Matos (talk) 14:28, 7 October 2020 (UTC)
- @Majavah
- @Bawolff
- @TiltedCerebellum
- O que pode ser? Gustavo Borges Matos (talk) 14:29, 7 October 2020 (UTC)
- @MarkAHershberger
- @Reedy@Bawolff@TiltedCerebellum
- ou
- @ Qualquer um Gustavo Borges Matos (talk) 20:30, 7 October 2020 (UTC)
- Please STOP pinging/calling me repeatedly, thank you.
- Por favor, PARE de enviar / me ligar repetidamente, obrigado TiltedCerebellum (talk) 02:53, 11 October 2020 (UTC)
Issue with MediaWiki:Sidebar and Sitenotice not taking effect
Does anyone know why https://phabricator.wikimedia.org/T264505 would be happening? Reception123 (talk) 16:50, 3 October 2020 (UTC)
- your eval.php example is probably not working because mw isnt initialized properly there. Its probably isn't related to your actual issue.
- If i were to guess, something wrong with localization cache. Check mw debug log for errors related to it. Bawolff (talk) 17:58, 3 October 2020 (UTC)
- Thanks, just realized there was a response now. The localisation cache has been rebuilt and I haven't seen any errors relating to this. Reception123 (talk) 17:24, 25 October 2020 (UTC)
MediaWiki 1.35 and VisualEditor - HTTP Error 403
I'm attempting to deploy MediaWiki 1.35 on Namecheap shared hosting, I was under the impression that the merge of Parsoid into the MediaWiki core would allow this so I apologise if I have misinterpreted.
I have decompressed the tarball into my site folder and installed it using MySQL and largely default installation options to try get something up and running. My plan is to have two sites so that I may familiarise myself with MediaWiki on one, test things out and fine tune prior to deploying to the actual site; one private, one authenticated edits only.
I have reinstalled the software several times now, including deleting the database used to ensure it's not culprit and I am still no closer to figuring out how to correctly setup Visual Editor. I am constantly met with the error "Error contacting the Parsoid/RESTBase server (HTTP 403)" and I cannot figure out for the life of me what is causing it.
I have attempted to invoke "/rest.php/{domain}/v3/page/wikitext/Main Page" substituting my domain in which works as expected. I have tried to enable cookie forwarding with no luck. I have tried explicitly declaring the Parsoid instance. I have tried manually loading the Parsoid extension from vendor/wikimedia/parsoid/extension.json, I'm running out of things to try.
I would have thought that the software would work out of the box, but I read up on it anyway to make myself aware of any "gotchas" and I am still struggling to understand the root cause of the issue, any input would be greatly appreciated.
JSON response received upon saving changes Charries96 (talk) 17:49, 3 October 2020 (UTC)
- Hi. Were you able to solve this? It seems like a bunch of people have complained about this at least at Extension talk:VisualEditor and phab:T263928, but no one really confirmed that the issue/bug exists. Rehman 11:13, 14 October 2020 (UTC)
- I am putting this out more widely as an answer to this issue as I had a LOT of trouble resolving it. Basically, on some (cPanel) hosted sites the Parsoid/RESTBase Server API communications are blocked by several (PHP) ModSecurity rules. My host does not allow you to disable ModSecurity using .htaccess so I had to contact my hosting tech support and get them to whitelist rules for my wiki one or two at a time, while generating new ModSecurity rule errors by attempting to edit using VisualEditor, until we had found all the rules which were resulting in this error.
- NB: At some point during this process a few pages might start working - not throwing a 403 - but then test a few more pages as they might still trigger ModSecurity. Nghtchld (talk) 05:48, 7 June 2021 (UTC)
- I had the same problem with a very popular web hosting provider (the one similar to a crocodile). At first, it looked like @Nghtchld's suggestions were the root. There were ModSecurity issues for sure - their logs confirmed this. However, modification of the rules didn't solve the issue. It turns out that for some reason, the visual editor can call resources from other than the local hosting server. Since I didn't have allow statements specifically permitting those, they were all denied. The hosting service added all the IPs that could possibly be used for this to my .htaccess (there were over 60), and now it works just fine.
- It took A LOT of badgering to get them to fix this. They kept telling me my .htaccess wasn't granting permission to my own client. It was super frustrating. But it was all worth it. I like working with markup code, but when it comes to just pounding out some text content, the visual editor is much better. 130.219.10.28 (talk) 20:51, 18 October 2021 (UTC)
- I've been struggling with the "Error contacting the Parsoid/RESTBase server (HTTP 403)" error for months (currently on 1.37.1). We disabled ModSecurity and still the issue persisted. And today I finally found the solution. It is probably quite unique to our setup, but maybe this will help someone someday. I realised that we had a Wordpress site at our root domain with Wordfence security enabled in the .user.ini file doing this (stars replace true folder names):
; Wordfence WAF
auto_prepend_file = '/***/***/***/wordfence-waf.php'
; END Wordfence WAF
- So in the mediawiki .htaccess I added this to switch this off for the mediawiki subdomain:
#Disable Wordfence from higher level domain
php_value auto_prepend_file none
- And the problem disappeared. I did not expect the Wordfence at the root domain to affect the subdomains but it clearly did. Ryansbudza (talk) 10:27, 4 June 2022 (UTC)
How to install extension to profile?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I want to install the experimental Extension:DarkMode, to do that (like many other extensions) I need to place the file(s) in a directory called XYZ
in your extensions/
folder. Now, for the past couple of hours I tried to connect to mediaWiki via FTP and SSH but couldn't find anything that worked...
I've created my SSH-key but either I'm using a wrong URL or am doing something else wrong, cuz all I get are 'Connection closed by <#IP#> port 22' and 'Remote side unexpectedly closed network connection'. Do I need toolsadmin access or something?
Thanks... ThisIsTheFoxe (talk) 23:39, 3 October 2020 (UTC)
- @ThisIsTheFoxe How to connect to your hosting provider is a question for your hosting provider and unrelated to MediaWiki itself. Please contact your hosting provider instead. Malyacko (talk) 03:57, 4 October 2020 (UTC)
upgrade to 1.35.0 Duplicate entry '0-0' for key
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.
MediaWiki 1.35.0
PHP 7.4.5 (fpm-fcgi)
MySQL 8.0.21-0ubuntu0.20.04.4
run update.php, I get this error.
Remove this block ??
https://i.imgur.com/1DYsvEe.jpg
Updating length of ll_lang in `langlinks` ...done.
Updating length of site_language in `sites` ...done.
...index ipb_address_unique on table ipblocks includes field ipb_anon_only.
Removing ipb_anon_only column from ipb_address_unique index ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '0-0' for key 'ipblocks.ipb_address_unique' (localhost)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/mediawiki/maintenance/archives/patch-ipblocks-fix-ipb_address_unique.sql )
Query: ALTER TABLE `ipblocks` DROP INDEX ipb_address_unique, ADD UNIQUE INDEX ipb_address_unique (ipb_address(255), ipb_user, ipb_auto )
#0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 Harugon1 (talk) 02:54, 4 October 2020 (UTC)
- > Remove this block ? ?
- Yes, I think the two blocks are identical. I would try removing one of them and I would then try running update.php again. Jörgi123 (talk) 17:03, 4 October 2020 (UTC)
Unable to apply mediawiki-1.31.10-fixup.patch
Hello,
We got version mediawiki-1.31.8 today ( 04.10.2020) i saw there is new version so i apply patches:
mediawiki-1.31.9.patch
and later
mediawiki-1.31.10.patch
after this i saw there is mediawiki-1.31.10-fixup.patch i try apply this patch but not working at all.
I do something wrong?
Best Regards
TaKeNeK TaKeNeK (talk) 07:50, 4 October 2020 (UTC)
- You did not do anything wrong.
- Please reverse the 1.31.10.patch and then apply the -fixup patch. ☠MarkAHershberger☢(talk)☣ 16:04, 5 October 2020 (UTC)
- Something wrong:
- root@WIKI2:/var/www/html# patch -R -p1 < /usr/src/mediawiki-1.31.10.patch
- patching file includes/ActorMigration.php
- patching file includes/Defines.php
- patching file includes/user/User.php
- patching file RELEASE-NOTES-1.31
- patching file tests/phpunit/includes/ActorMigrationTest.php
- patching file tests/phpunit/includes/shell/FirejailCommandTest.php
- And try patch:
- root@WIKI2:/var/www/html# patch -p1 --dry-run < /usr/src/mediawiki-1.31.10-fixup.patch
- checking file includes/ActorMigration.php
- checking file includes/api/ApiMain.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file includes/Defines.php
- checking file includes/MediaWiki.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file includes/session/CookieSessionProvider.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file includes/session/ImmutableSessionProviderWithCookie.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file includes/shell/Command.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file includes/user/User.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 5 out of 5 hunks ignored
- checking file includes/WebResponse.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 2 out of 2 hunks ignored
- checking file maintenance/dumpCategoriesAsRdf.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file RELEASE-NOTES-1.31
- checking file tests/phpunit/includes/ActorMigrationTest.php
- checking file tests/phpunit/includes/session/CookieSessionProviderTest.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 3 out of 3 hunks ignored
- checking file tests/phpunit/includes/shell/CommandTest.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 1 out of 1 hunk ignored
- checking file tests/phpunit/includes/shell/FirejailCommandTest.php
- checking file tests/phpunit/includes/shell/ShellTest.php
- Reversed (or previously applied) patch detected! Assume -R? [n] n
- Apply anyway? [n] n
- Skipping patch.
- 2 out of 2 hunks ignored
- Looks like i am unable to use mediawiki-1.31.10-fixup.patch. TaKeNeK (talk) 08:14, 11 October 2020 (UTC)
- Read through the comments on T263866 and see if it helps any. It looks like you should use the patch that worked and not the -fixup patch. ☠MarkAHershberger☢(talk)☣ 15:08, 12 October 2020 (UTC)
Customizing sidebar to show icons and colors
Hi
I need your support to make changes on sidebar to show icons and colors like this site
I need to divide sidebar into groups. every group has its own color and icon
Thanks in advance Omda4wady (talk) 09:03, 4 October 2020 (UTC)
- See Manual:CSS and MediaWiki:Sidebar and do it? Malyacko (talk) 11:19, 4 October 2020 (UTC)
- @Malyacko
- Thanks for your reply
- But I need a tutorial specified for sidebar to make boxes with different colors as shown on wikikids.nl Omda4wady (talk) 12:24, 13 October 2020 (UTC)
- @Omda4wady It sounds like you want to learn some CSS. There are many CSS tutorials on the internet, plus documentation how you can use your web browser's developer tools to inspect the CSS of the boxes and their colors. Malyacko (talk) 10:08, 14 October 2020 (UTC)
can you help me resolve a Media Monkey problem?
can you help me resolve a Media Monkey problem? 146.66.138.126 (talk) 16:11, 4 October 2020 (UTC)
- Unlikely, as this place is about MediaWiki and as you did not explain what "Media Monkey" is or how it is related to MediaWiki... Malyacko (talk) 22:40, 4 October 2020 (UTC)
- I've asked in the Media Monkey forum that they update the help link on their wiki. ☠MarkAHershberger☢(talk)☣ 15:42, 5 October 2020 (UTC)
Error VisualEditor
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 I install VisualEditor extension.
When I click edit button,it show popup notification.
"Error loading data from server: apierror-visualeditor-docserver-http: HTTP 404"
How can I solve the problem ? Ss.sss16 (talk) 03:43, 5 October 2020 (UTC)
VisualEditor erroe
How to solve this problem about VisualEditor?
"Error loading data from server: apierror-visualeditor-docserver-http: HTTP 404" Ss.sss16 (talk) 08:34, 5 October 2020 (UTC)
Error 1091: Can't DROP 'ipb_address_unique'
During upgrade MW 1.31 -> 1.35 the following error occured. How do you recommend to fix it pls?
# php maintenance/update.php --quick --skip-external-dependencies
...
Updating length of lc_lang in `l10n_cache` ...done.
Updating length of ll_lang in `langlinks` ...done.
Updating length of site_language in `sites` ...done.
...skipping update to shared table ipblocks.
Removing ipb_anon_only column from ipb_address_unique index ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'ipb_address_unique'; check that column/key exists (mysql)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/maintenance/archives/patch-ipblocks-fix-ipb_address_unique.sql )
Query: ALTER TABLE `zeus_de`.`ipblocks` DROP INDEX ipb_address_unique, ADD UNIQUE INDEX ipb_address_unique (ipb_address(255), ipb_user, ipb_auto )
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#2 /var/www/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...', false)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(5075): Wikimedia\Rdbms\Database->query('ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#4 /var/www/html/includes/libs/rdbms/database/Database.php(5010): Wikimedia\Rdbms\Database->sourceStream(Resource id #2004, NULL, NULL, 'Wikimedia\\Rdbms...', NULL)
#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile('/var/www/html/m...')
#6 /var/www/html/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call('sourceFile', Array)
#7 /var/www/html/includes/installer/DatabaseUpdater.php(727): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile('/var/www/html/m...')
#8 /var/www/html/includes/installer/MysqlUpdater.php(1222): DatabaseUpdater->applyPatch('/var/www/html/m...', false, 'Removing ipb_an...')
#9 /var/www/html/includes/installer/DatabaseUpdater.php(512): MysqlUpdater->doFixIpbAddressUniqueIndex()
#10 /var/www/html/includes/installer/DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(Array, false)
#11 /var/www/html/maintenance/update.php(181): DatabaseUpdater->doUpdates(Array)
#12 /var/www/html/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/html/maintenance/update.php(253): require_once('/var/www/html/m...')
#14 {main}
134.34.200.62 (talk) 13:30, 5 October 2020 (UTC)
- No
ipb_address_unique
column/key exists in tableipblocks
!!! - 134.34.200.62 (talk) 14:09, 5 October 2020 (UTC)
mysql> describe ipblocks; +----------------------+---------------------+------+-----+----------------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------------+---------------------+------+-----+----------------+----------------+ | ipb_id | int(11) | NO | PRI | NULL | auto_increment | | ipb_address | tinyblob | NO | MUL | NULL | | | ipb_user | int(10) unsigned | NO | MUL | 0 | | | ipb_by | int(10) unsigned | NO | | 0 | | | ipb_by_text | varbinary(255) | NO | | | | | ipb_by_actor | bigint(20) unsigned | NO | | 0 | | | ipb_reason | varbinary(767) | NO | | | | | ipb_reason_id | bigint(20) unsigned | NO | | 0 | | | ipb_timestamp | binary(14) | NO | MUL | | | | ipb_auto | tinyint(1) | NO | | 0 | | | ipb_anon_only | tinyint(1) | NO | | 0 | | | ipb_create_account | tinyint(1) | NO | | 1 | | | ipb_enable_autoblock | tinyint(1) | NO | | 1 | | | ipb_expiry | varbinary(14) | NO | MUL | | | | ipb_range_start | tinyblob | NO | MUL | NULL | | | ipb_range_end | tinyblob | NO | | NULL | | | ipb_deleted | tinyint(1) | NO | | 0 | | | ipb_block_email | tinyint(1) | NO | | 0 | | | ipb_allow_usertalk | tinyint(1) | NO | | 0 | | | ipb_parent_block_id | int(11) | YES | MUL | NULL | | +----------------------+---------------------+------+-----+----------------+----------------+ 20 rows in set (0.00 sec)
- This seems to be related to Rename ipb_address index on ipb_address to ipb_address_unique. I think you can use the information on this SO answer to rename the index by hand and then do the upgrade. ☠MarkAHershberger☢(talk)☣ 22:41, 5 October 2020 (UTC)
- Can you post the output of "SHOW INDEXES FROM ipblocks"? Reedy (talk) 00:30, 6 October 2020 (UTC)
- 134.34.200.62 (talk) 06:57, 6 October 2020 (UTC)
mysql> SHOW INDEXES FROM ipblocks; +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | ipblocks | 0 | PRIMARY | 1 | ipb_id | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 0 | ipb_address_unique | 1 | ipb_address | A | 0 | 255 | NULL | | BTREE | | | | ipblocks | 0 | ipb_address_unique | 2 | ipb_user | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 0 | ipb_address_unique | 3 | ipb_auto | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 1 | ipb_user | 1 | ipb_user | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 1 | ipb_range | 1 | ipb_range_start | A | 0 | 8 | NULL | | BTREE | | | | ipblocks | 1 | ipb_range | 2 | ipb_range_end | A | 0 | 8 | NULL | | BTREE | | | | ipblocks | 1 | ipb_timestamp | 1 | ipb_timestamp | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 1 | ipb_expiry | 1 | ipb_expiry | A | 0 | NULL | NULL | | BTREE | | | | ipblocks | 1 | ipb_parent_block_id | 1 | ipb_parent_block_id | A | 0 | NULL | NULL | YES | BTREE | | | +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ 10 rows in set (0.00 sec)
- Just noticed the sql script exists for sqlite, but has a different content:
# cat /var/www/html/maintenance/archives/patch-ipblocks-fix-ipb_address_unique.sql
ALTER TABLE /*_*/ipblocks DROP INDEX /*i*/ipb_address_unique, ADD UNIQUE INDEX /*i*/ipb_address_unique (ipb_address(255), ipb_user, ipb_auto );
# cat /var/www/html/maintenance/sqlite/archives/patch-ipblocks-fix-ipb_address_unique.sql
DROP INDEX /*i*/ipb_address_unique;
CREATE UNIQUE INDEX /*i*/ipb_address_unique ON /*_*/ipblocks (ipb_address(255), ipb_user, ipb_auto);
134.34.200.62 (talk) 07:05, 6 October 2020 (UTC)- Anyway, if attempt to start the wiki website in this state, a database error occurs while ipb_sitewide column is missing as well:
- 134.34.200.62 (talk) 07:48, 6 October 2020 (UTC)
Error 1054: Unknown column 'ipb_sitewide' in 'field list' (mysql) Function: MediaWiki\Block\DatabaseBlock::newLoad Query: SELECT ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_sitewide,comment_ipb_reason.comment_text AS `ipb_reason_text`,comment_ipb_reason.comment_data AS `ipb_reason_data`,comment_ipb_reason.comment_id AS `ipb_reason_cid`,actor_ipb_by.actor_user AS `ipb_by`,actor_ipb_by.actor_name AS `ipb_by_text`,ipb_by_actor FROM `zeus_de`.`ipblocks` JOIN `comment` `comment_ipb_reason` ON ((comment_ipb_reason.comment_id = ipb_reason_id)) JOIN `actor` `actor_ipb_by` ON ((actor_ipb_by.actor_id = ipb_by_actor)) WHERE ipb_address = '134.34.200.62' OR ((ipb_range_start LIKE '8622%' ESCAPE '`' ) AND (ipb_range_start <= '8622C83E') AND (ipb_range_end >= '8622C83E')) Backtrace: #0 /var/www/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /var/www/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /var/www/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /var/www/html/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer) #4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, string, string, array, array) #5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array) #6 /var/www/html/includes/block/DatabaseBlock.php(302): Wikimedia\Rdbms\DBConnRef->select(array, array, string, string, array, array) #7 /var/www/html/includes/block/DatabaseBlock.php(1187): MediaWiki\Block\DatabaseBlock::newLoad(User, integer, boolean, string) #8 /var/www/html/includes/block/BlockManager.php(139): MediaWiki\Block\DatabaseBlock::newListFromTarget(User, string, boolean) #9 /var/www/html/includes/user/User.php(1603): MediaWiki\Block\BlockManager->getUserBlock(User, WebRequest, boolean) #10 /var/www/html/includes/user/User.php(1986): User->getBlockedStatus(boolean) #11 /var/www/html/includes/specials/SpecialUndelete.php(155): User->getBlock() #12 /var/www/html/includes/specials/SpecialUndelete.php(167): SpecialUndelete->isAllowed(string, User) #13 /var/www/html/includes/specialpage/SpecialPageFactory.php(506): SpecialUndelete->userCanExecute(User) #14 /var/www/html/includes/specials/SpecialSpecialpages.php(56): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages(User) #15 /var/www/html/includes/specials/SpecialSpecialpages.php(44): SpecialSpecialpages->getPageGroups() #16 /var/www/html/includes/specialpage/SpecialPage.php(600): SpecialSpecialpages->execute(NULL) #17 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL) #18 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #19 /var/www/html/includes/MediaWiki.php(940): MediaWiki->performRequest() #20 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main() #21 /var/www/html/index.php(53): MediaWiki->run() #22 /var/www/html/index.php(46): wfIndexMain() #23 {main}
- ipb_sitewide was added in 1.32, but there is a patch for it, which hasn't been run either seeminly Reedy (talk) 15:35, 6 October 2020 (UTC)
- Also, ipb_address_unique clearly exists on your schema. And it looks up to date
- Does the sql user you're running the change as have permission to drop indexes? Reedy (talk) 15:38, 6 October 2020 (UTC)
- The sql user is root while mysql runs on a docker container, thus it should have permission to drop indexes. As well the error doesn't mention any permissions problem.
- Actually the issue can be reproduced on the command line:
mysql> ALTER TABLE /*_*/ipblocks DROP INDEX /*i*/ipb_address_unique, ADD UNIQUE INDEX /*i*/ipb_address_unique (ipb_address(255), ipb_user, ipb_auto );
ERROR 1091 (42000): Can't DROP 'ipb_address_unique'; check that column/key exists
134.34.200.62 (talk) 18:49, 6 October 2020 (UTC)- But it definitely exists...
- If you do it as two commands (ala the SQLite patch), does it work? I'm wondering if it's getting confused with the add and remove in the same line
- What version of MySQL/MariaDB are you using? Might be related to that... Works on some, doesn't on other versions
- You're using the root user in MW config to connect to MySQL? Reedy (talk) 20:22, 6 October 2020 (UTC)
- No, it doesn't work due to a syntax error:
mysql> DROP INDEX /*i*/ipb_address_unique;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
- The MySQL version is 5.7.31 and yes, I am using the root user to connect to MySQL, for example:
# mysql -uroot -p
134.34.200.62 (talk) 20:47, 6 October 2020 (UTC)- It fails also by using the correct syntax:
mysql> DROP INDEX /*i*/ipb_address_unique ON /*_*/ipblocks;
ERROR 1091 (42000): Can't DROP 'ipb_address_unique'; check that column/key exists
134.34.200.62 (talk) 20:51, 6 October 2020 (UTC)- No it wouldn't, because that's not valid syntax.
- https://dev.mysql.com/doc/refman/5.7/en/drop-index.html
DROP INDEX /*i*/ipb_address_unique ON /*_*/ipblocks;
- or
- https://dev.mysql.com/doc/refman/5.7/en/alter-table.html
- Reedy (talk) 20:52, 6 October 2020 (UTC)
ALTER TABLE /*_*/ipblocks DROP INDEX /*i*/ipb_address_unique;
- see the previous reply pls... 134.34.200.62 (talk) 20:54, 6 October 2020 (UTC)
- Both are failing with the same error:
mysql> DROP INDEX /*i*/ipb_address_unique ON /*_*/ipblocks;
ERROR 1091 (42000): Can't DROP 'ipb_address_unique'; check that column/key exists
mysql> ALTER TABLE /*_*/ipblocks DROP INDEX /*i*/ipb_address_unique;
ERROR 1091 (42000): Can't DROP 'ipb_address_unique'; check that column/key exists
134.34.200.62 (talk) 20:56, 6 October 2020 (UTC)- But the index exists. It is there in your original output.
- And the queries all work fine for me... "10.4.14-MariaDB-1:10.4.14+maria~focal-log"
MariaDB [wikidb]> ALTER TABLE mw_ipblocks DROP INDEX /*i*/ipb_address_unique; Query OK, 0 rows affected (0.012 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [wikidb]> ALTER TABLE mw_ipblocks ADD UNIQUE INDEX /*i*/ipb_address_unique (ipb_address(255), ipb_user, ipb_auto); Query OK, 0 rows affected (0.014 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [wikidb]> DROP INDEX /*i*/ipb_address_unique ON mw_ipblocks; Query OK, 0 rows affected (0.009 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [wikidb]> ALTER TABLE mw_ipblocks ADD UNIQUE INDEX /*i*/ipb_address_unique (ipb_address(255), ipb_user, ipb_auto); Query OK, 0 rows affected (0.009 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [wikidb]> ALTER TABLE mw_ipblocks DROP INDEX /*i*/ipb_address_unique, ADD UNIQUE INDEX /*i*/ipb_address_unique (ipb_address(255), ipb_user, ipb_auto ); Query OK, 0 rows affected (0.001 sec) Records: 0 Duplicates: 0 Warnings: 0
- What does SHOW GRANTS tell you? Reedy (talk) 21:00, 6 October 2020 (UTC)
- Just now ipb_address_unique is no more in table ipblocks, just ipb_address
- 134.34.200.62 (talk) 21:02, 6 October 2020 (UTC)
mysql> SHOW INDEXES FROM ipblocks; +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+--- | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | In +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+--- | ipblocks | 0 | PRIMARY | 1 | ipb_id | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 0 | ipb_address | 1 | ipb_address | A | 0 | 255 | NULL | | BTREE | | | ipblocks | 0 | ipb_address | 2 | ipb_user | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 0 | ipb_address | 3 | ipb_auto | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 0 | ipb_address | 4 | ipb_anon_only | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 1 | ipb_user | 1 | ipb_user | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 1 | ipb_range | 1 | ipb_range_start | A | 0 | 8 | NULL | | BTREE | | | ipblocks | 1 | ipb_range | 2 | ipb_range_end | A | 0 | 8 | NULL | | BTREE | | | ipblocks | 1 | ipb_timestamp | 1 | ipb_timestamp | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 1 | ipb_expiry | 1 | ipb_expiry | A | 0 | NULL | NULL | | BTREE | | | ipblocks | 1 | ipb_parent_block_id | 1 | ipb_parent_block_id | A | 0 | NULL | NULL | YES | BTREE | | +----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+--- 11 rows in set (0.00 sec)
- So what have you changed? It was clearly there in you previous output. Reedy (talk) 21:03, 6 October 2020 (UTC)
- I didn't change anything, I just tried to drop the index as indicated and I got always an error. Very weird. 134.34.200.62 (talk) 21:06, 6 October 2020 (UTC)
- Indexes don't just change and rename themselves without some input. Reedy (talk) 21:06, 6 October 2020 (UTC)
- What happens if you run update.php now? Reedy (talk) 21:07, 6 October 2020 (UTC)
- update.php still fails:
...
...skipping update to shared table ipblocks.
Removing ipb_anon_only column from ipb_address_unique index ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'ipb_address_unique'; check that column/key exists (mysql)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/maintenance/archives/patch-ipblocks-fix-ipb_address_unique.sql )
Query: ALTER TABLE `zeus_de`.`ipblocks` DROP INDEX ipb_address_unique, ADD UNIQUE INDEX ipb_address_unique (ipb_address(255), ipb_user, ipb_auto )
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#2 /var/www/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Can't DROP 'ipb...', 1091, 'ALTER TABLE `ze...', 'Wikimedia\\Rdbms...', false)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(5075): Wikimedia\Rdbms\Database->query('ALTER TABLE `ze...', 'Wikimedia\\Rdbms...')
#4 /var/www/html/includes/libs/rdbms/database/Database.php(5010): Wikimedia\Rdbms\Database->sourceStream(Resource id #1226, NULL, NULL, 'Wikimedia\\Rdbms...', NULL)
#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile('/var/www/html/m...')
#6 /var/www/html/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call('sourceFile', Array)
#7 /var/www/html/includes/installer/DatabaseUpdater.php(727): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile('/var/www/html/m...')
#8 /var/www/html/includes/installer/MysqlUpdater.php(1222): DatabaseUpdater->applyPatch('/var/www/html/m...', false, 'Removing ipb_an...')
#9 /var/www/html/includes/installer/DatabaseUpdater.php(512): MysqlUpdater->doFixIpbAddressUniqueIndex()
#10 /var/www/html/includes/installer/DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(Array, false)
#11 /var/www/html/maintenance/update.php(181): DatabaseUpdater->doUpdates(Array)
#12 /var/www/html/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/html/maintenance/update.php(253): require_once('/var/www/html/m...')
#14 {main}
134.34.200.62 (talk) 21:10, 6 October 2020 (UTC)- Tomorrow I am going to redo the upgrade to 1.35 and check what is happening with the indexes. 134.34.200.62 (talk) 21:15, 6 October 2020 (UTC)
- On the next attempt, the error Error 1091: Can't DROP 'ipb_address_unique'; check that column/key exists reoccured during update.php.
mysql> SHOW INDEXES FROM ipblocks;
+----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+----------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| ipblocks | 0 | PRIMARY | 1 | ipb_id | A | 0 | NULL | NULL | | BTREE | | |
| ipblocks | 0 | ipb_address | 1 | ipb_address | A | 0 | 255 | NULL | | BTREE | | |
| ipblocks | 0 | ipb_address | 2 | ipb_user | A | 0 | NULL | NULL | | BTREE | | |
...
- No index
ipb_address_unique
exists in MW 1.31. - Long story short, the following workaround worked(!) by replacing the content of the sql patch with:
# cat /var/www/html/maintenance/archives/patch-ipblocks-fix-ipb_address_unique.sql
DROP INDEX /*i*/ipb_address ON /*_*/ipblocks;
CREATE UNIQUE INDEX /*i*/ipb_address_unique ON /*_*/ipblocks (ipb_address(255), ipb_user, ipb_auto);
- The variant with
ALTER TABLE /*_*/ipblocks DROP INDEX /*i*/ipb_address
is always failing (due to the Mysql version?) 134.34.200.62 (talk) 12:24, 7 October 2020 (UTC) - If the split version works fine, we should probably just swap to that. It's easier all around... Reedy (talk) 14:55, 7 October 2020 (UTC)
- Oh. It's not the split that's the problem. It's the fact the patch is trying to drop the wrong index.
- Sigh. Should've been more obvious Reedy (talk) 15:18, 7 October 2020 (UTC)
- I'm getting myself confused now.
- Your split version isn't the same.
- The updater for patch-ipblocks-rename-ipb_address.sql should've renamed the index, and given it the incorrect signature.
- Then patch-ipblocks-fix-ipb_address_unique.sql should've been run (as it is) to correct the signature. But at that point, the ipb_address index shouldn't still exist, it should already be ipb_address_unique.
- However, I just noticed "...skipping update to shared table ipblocks.". Which will explain why the first patch isn't being applied. Reedy (talk) 15:30, 7 October 2020 (UTC)
- Right. So it's because the updater returns the same result for whether the table is shared, or if the index exists. This is wrong.
- Correct fix in https://gerrit.wikimedia.org/r/632749 Reedy (talk) 15:56, 7 October 2020 (UTC)
Navigation bar missing and CSS broken
RESOLVED | |
I exported the articles of the mediawiki 1.26 and imported them into a new installation of mediawiki 1.35. |
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 upgrading my server openSuse 15.1 to openSuse 15.2 my mediawiki appearance is miserable. The navigation bar has gone. The CSS seems lost.
I must admit that it is a rather old version of mediawiki: Version 1.26.1
Now I tried to upgrade to the newest version 1.35 - but that did not work, I got some errors. Then I upgraded to 1.26.4. That was successful but my problem still exists.
I have no navigation bar and the CSS of all articles seems gone.
Please help 178.189.133.52 (talk) 15:27, 5 October 2020 (UTC)
- Please check the error log of your web browser, and check the errors in the console of your web browser's developer tools. Malyacko (talk) 18:10, 5 October 2020 (UTC)
- On the server I see some error messages in the apache2/error_log
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/www/htdocs/fg_mediawiki/languages/LanguageConverter.php on line 694
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/www/htdocs/fg_mediawiki/includes/json/FormatJson.php on line 397
ThanksforHelp (talk) 07:00, 6 October 2020 (UTC)- On the JavaScript Console I see some error messages:
The resource from “https://grubit.at/fg_mediawiki/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=monobook” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
- I don't understand what that is supposed to mean. ThanksforHelp (talk) 07:17, 6 October 2020 (UTC)
- This url is returning html instead of javascript. Clicking on it I see 'Exception encountered, of type "Error"'
- Turn on debugging and see what that page says. ☠MarkAHershberger☢(talk)☣ 15:04, 6 October 2020 (UTC)
- When I debug the site, I see in the head area of the site this script container:
<link rel="stylesheet" href="/fg_mediawiki/load.php?debug=false&amp;amp;lang=de&amp;amp;modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.monobook.styles&amp;amp;only=styles&amp;amp;skin=monobook" />
- Is this normal? ThanksforHelp (talk) 20:08, 6 October 2020 (UTC)
- Please help.
- Everything worked well before I upgraded my server ...
- I cannot find out what might have been changed on the apache server during the upgrade. All my other websites (i.e Joomla sites) are working well ...
- Can I make a fresh install of mediawiki 1.35 and then import the database from version 1.26 ... ? ThanksforHelp (talk) 19:41, 6 October 2020 (UTC)
- What version of PHP do you have? Can you ensure that it is at least PHP 7.3 and then re-do the upgrade to 1.35? ☠MarkAHershberger☢(talk)☣ 22:52, 5 October 2020 (UTC)
- I tried a redo of the upgrade to version 1.35.
- The result was bad. The wiki could not be opened. When opening the wiki in the web browser, a dialog appears and asks me which program should open then index.php file ... ThanksforHelp (talk) 19:47, 6 October 2020 (UTC)
- The PHP version is 7.4.6 ThanksforHelp (talk) 06:55, 6 October 2020 (UTC)
- Here is a link to that wiki site:
- https://grubit.at/fg_mediawiki ThanksforHelp (talk) 07:04, 6 October 2020 (UTC)
- The Link above is wrong.
- This should be the right link:
- https://grubit.at/fg_mediawiki ThanksforHelp (talk) 08:50, 6 October 2020 (UTC)
- I made a XML export of the wiki articles - only the last version of each article. Then I did a new install of mediawiki 1.35.
- In the new mediawiki instance I imported the XML data using the Special page Import.
- After some trial and error I managed to see the contents of the wiki in the new mediawiki instance.
- Everything seems okay. ThanksforHelp (talk) 16:34, 7 October 2020 (UTC)
HTTP Error 500 after changing $wgDefaultSkin in the LocalSettings.php
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 changing the variable $wgDefaultSkin = 'vector' to $wgDefaultSkin = 'timeless' in the LocalSettings.php i get the HTTP 500 error when trying to load the wiki in a browser.
Now here is the thing, even after changing the variable back to its original value, restarting the server which runs the wiki and restarting apache (its running on a LAMP server) i still get the same HTTP 500 error, even though all settings are back to their original value. I did not change any other Settings, what can i do?
EDIT:
I am using version 1.33.0
I tried adding the following to the <?php part of the LocalSettings.php, however no errors are displayed in the browser if i try to load the page.
error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); Ihopethisnameisnottaken (talk) 15:48, 5 October 2020 (UTC)
- Strange that it isn't showing any error.
- Is there anything in your error.log?
- What line, exactly, did you add to the LocalSettings.php? Did you remember to put a semi-colon at the end? ☠MarkAHershberger☢(talk)☣ 22:50, 5 October 2020 (UTC)
- Also,try upgrading to 1.35. ☠MarkAHershberger☢(talk)☣ 22:50, 5 October 2020 (UTC)
- See the first red warning at the beginning of the page Manual:LocalSettings.php Ciencia Al Poder (talk) 08:53, 6 October 2020 (UTC)
- Hey, thank you guys for your replies.
- I think Ciencia is definetly onto something here. Checking the error.log file, i have a syntax error in the LocalSettings.php in the line i edited, after some fiddling around i could fix it. I was using the default text editor installed on my server. Thank you both for your help, you are legends, i'd upvote you, but this isn't StackOverflow :) Ihopethisnameisnottaken (talk) 11:32, 6 October 2020 (UTC)
Fight spam on my wiki
RESOLVED | |
Users often using: ConfirmEdit, SpamBlacklist, TitleBlacklist, TorBlock, CheckUser, Extension:QuestyCaptcha, Extension:AbuseFilter and see: Manual:Combating spam. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Hi! I hope you can help me, it turns out that in my wiki we have installed all the anti spam extensions that you recommend, but even so, dozens of bots are registered on the wiki AND THEY EVEN WRITE ARTICLES, how can I solve it? Thank you. ShakeUY (talk) 17:39, 5 October 2020 (UTC)
- See Manual:Combating spam. Malyacko (talk) 18:09, 5 October 2020 (UTC)
- What exact anti-spam extensions and methods do you use? Fokebox (talk) 18:02, 5 October 2020 (UTC)
- ConfirmEdit, SpamBlacklist, TitleBlacklist, TorBlock, CheckUser ShakeUY (talk) 20:08, 5 October 2020 (UTC)
- I use additionally Extension:QuestyCaptcha - it helps well, but depends on the anti-spam questions, sometimes bots can answer them. And also set the extension for all unregistered users.
- And adding to this I use Extension:AbuseFilter - I set it so, that unregistered users cannot add external links in articles.
- Hope it all helps you fighting spam. Fokebox (talk) 21:14, 5 October 2020 (UTC)
- Hello again, if it is not a bother for you, could you tell me exactly how to configure the extension as you? thanks. ShakeUY (talk) 19:09, 7 October 2020 (UTC)
- Questy Captcha is configured so:As soon as you installed AbuseFilter, go to Special:AbuseFilter and create new rule:
# Anti-spam measures require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); require_once( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php"); $wgMainCacheType = CACHE_ANYTHING; $wgCaptchaTriggers['edit'] = true; $wgCaptchaTriggers['create'] = true; $wgCaptchaTriggers['createtalk'] = true; $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['createaccount'] = true; $wgCaptchaTriggers['badlogin'] = true; $wgGroupPermissions['*' ]['skipcaptcha'] = false; $wgGroupPermissions['user' ]['skipcaptcha'] = true; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; $wgGroupPermissions['bot' ]['skipcaptcha'] = true; // registered bots $wgGroupPermissions['sysop' ]['skipcaptcha'] = true; $wgCaptchaClass = 'QuestyCaptcha'; $arr = array ( 'You tricky anti-bot question' => 'tricky answer', ); foreach ( $arr as $key => $value ) { $wgCaptchaQuestions[] = array( 'question' => $key, 'answer' => $value ); }
It prevents any unregistered user/bot to create pages with external links. Usually bots create pages at wiki with links so that rule stop them doing this. Fokebox (talk) 20:58, 7 October 2020 (UTC)action == 'edit' & user_age == 0 & article_namespace == 0 & added_lines rlike 'https?://'
- And note that you can create as many tricky questions as you want:Fokebox (talk) 21:00, 7 October 2020 (UTC)
$arr = array ( 'You tricky anti-bot question 1' => 'tricky answer 1', 'You tricky anti-bot question 2' => 'tricky answer 2',
- Thank you! ShakeUY (talk) 22:48, 5 October 2020 (UTC)
How to solve given error in mediawiki project
RESOLVED | |
Do not post the same question again and again and again. Thanks. See Project:Support desk/Flow/2020/10#h-I_am_getting_error_in_my_page._Please_help_me_to_solve_this.-2020-10-05T20:13:00.000Z |
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.
Lua error: Paramètre « tr » inconnu.
Backtrace:
- (tail call): ?
- [C]: in function "error"
- Module:Paramètres:280: in function "process"
- Module:Traduction:46: in function "chunk"
- mw.lua:511: ?
- (tail call): ?
- [C]: in function "xpcall"
- MWServer.lua:99: in function "handleCall"
- MWServer.lua:313: in function "dispatch"
- MWServer.lua:52: in function "execute"
- mw_main.lua:7: in main chunk
- [C]: ? Dev687 (talk) 19:44, 5 October 2020 (UTC)
I am getting error in my page. Please help me to solve this.
RESOLVED | |
Current error is duplicate of Project:Support desk/Flow/2020/09#h-I_have_few_scripting_error_on_my_page._Please_help_me_to_solve_them.-2020-09-29T12:22:00.000Z |
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 need to import this page https://en.wiktionary.org/wiki/space to my mediawiki project https://naijionary.elizia.net/index.php?title=Main_Page. and my imported page is https://naijionary.elizia.net/index.php?title=Space . This page has error. So what I did and how I imported this page is as follow:
Step 1. I exported this page from https://en.wiktionary.org/wiki/Special:Export. I typed Space in "Add pages manually:" field and checked all the three checkboxes(Include only the current revision, not the full history, Include templates and Save as file).
Step 2. I imported the generated xml file from step 1 to my project https://naijionary.elizia.net/index.php?title=Special:Import . I typed Mediawiki in "Interwiki prefix:" field, leave comment field blank and choose Import to default locations radio button.
I performed above two step to import space page from https://en.wiktionary.org/wiki/ to my project but I did not get the same content. I got lots of error in my project. I tried lots of article by doing so I solved many error but still few are remaining there, those I am not able to remove.
Please help me to solve the error from my project. You can get all the error on my page https://naijionary.elizia.net/index.php?title=Space Dev687 (talk) 20:13, 5 October 2020 (UTC)
- @Dev687: Please stop posting the same question again and again and again and again, otherwise will you be blocked. Thanks. Malyacko (talk) 20:47, 5 October 2020 (UTC)
- @Dev687 See Project:Support desk/Flow/2020/10#h-https://naijionary.elizia.net/index.php?title=Space-2020-10-01T08:22:00.000Z, Project:Support desk/Flow/2020/09#h-I_am_getting_errors_in_my_page._Can_someone_help_me_to_solve_it?-2020-09-25T12:32:00.000Z, Project:Support desk/Flow/2020/09#h-I_am_getting_error_while_I_importing_Space_page.-2020-09-14T18:04:00.000Z, Project:Support desk/Flow/2020/09#h-I_have_few_scripting_error_on_my_page._Please_help_me_to_solve_them.-2020-09-29T12:22:00.000Z, and probably more of your postings which waste other people's time as you continue to ignore answers. Malyacko (talk) 20:50, 5 October 2020 (UTC)
- @Malyacko I am posting same again and again because I didn't get my solution. I tried all the solutions that were given by other. Dev687 (talk) 04:57, 6 October 2020 (UTC)
- @Dev687 You received answers on some the links that I posted. You have not provided any information whatsoever why these answers did not work. Or what you tried. Or what you did after receiving answers.
- Instead you continue to repeat the same question from the beginning again.
- Do you think that's constructive? Malyacko (talk) 08:24, 6 October 2020 (UTC)
- Pardon me for this mistake, but I did lots of research but I didn't get actual solution. Dev687 (talk) 08:34, 6 October 2020 (UTC)
- Mr. Malyacko please give me a solution so that I can complete my work. Dev687 (talk) 08:36, 6 October 2020 (UTC)
- The error "The lua binary (/home/naijionary/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable" is self explanatory. Make it executable! Ciencia Al Poder (talk) 08:49, 6 October 2020 (UTC)
- Mr. @Ciencia Al Poder, I made it executable but nothing change. Dev687 (talk) 08:58, 6 October 2020 (UTC)
- Are you sure? The link you gave now has no error. Ciencia Al Poder (talk) 10:36, 6 October 2020 (UTC)
- I make it executable. but still errors on my mediawiki page Dev687 (talk) 12:15, 6 October 2020 (UTC)
- @Dev687 Which error? Please always include error messages. And steps to reproduce. And a link. And sufficient information. Malyacko (talk) 19:12, 6 October 2020 (UTC)
- @Malyacko Errors on this page, https://naijionary.elizia.net/index.php?title=Space.
- I export this page from https://en.wiktionary.org/wiki/space
- and error are
- Lua error: Paramètre « 3 » inconnu.
- Lua error: Paramètre « tr » inconnu.
- Lua error: Paramètre « sc » inconnu.
{{{3}}}
Dev687 (talk) 07:05, 7 October 2020 (UTC)- @Dev687: Read Project:Support desk/Flow/2020/09#h-I_am_getting_error_while_I_importing_Space_page.-2020-09-14T18:04:00.000Z. Read Project:Support desk/Flow/2020/10#h-https://naijionary.elizia.net/index.php?title=Space-2020-10-01T08:22:00.000Z. Read Project:Support desk/Flow/2020/09#h-I_have_few_scripting_error_on_my_page._Please_help_me_to_solve_them.-2020-09-29T12:22:00.000Z. And stop asking the same question again and again. Thanks. Malyacko (talk) 13:43, 7 October 2020 (UTC)
Здравствуйте. Как написать статью?
Как написать статью? Viktor Tambovkin (talk) 23:19, 5 October 2020 (UTC)
- В Википедии? Или где? https://ru.wikipedia.org/wiki/Википедия:Как_править_статьи Malyacko (talk) 08:21, 6 October 2020 (UTC)
From 1.15.5-2squeeze5 to 1.35.0
Can I still migrate my configs and database from old 1.15.5 to 1.35.0?
Please help. Ethwald (talk) 02:21, 6 October 2020 (UTC)
- yes. It should just work with normal upgrade process. If you run into issues, ask. Bawolff (talk) 03:09, 6 October 2020 (UTC)
- There's a lot of Directories in V1.35.0 in /var/lib/mediawiki.
- If I'll rsync the files from V1.15.5 /var/lib/mediawiki to V1.35.0 /var/lib/mediawiki, will there be any issue? Ethwald (talk) 04:05, 6 October 2020 (UTC)
- Do not copy old files from the old installation to the new one, unless they are configuration files or the uploaded images. See Manual:Upgrading#Other_files Ciencia Al Poder (talk) 08:51, 6 October 2020 (UTC)
- Note, that some configs in Localsetting file should be set up in other way. I advice to swithch off all extensions and set up them one by one. It might be so, that some extensions that you use in 1.15 are not supported in 1.35. Anyway it should not be very challanging. Fokebox (talk) 10:41, 6 October 2020 (UTC)
- Thanks for the replies. I'll try it now and ask for further help if need be. Ethwald (talk) 23:30, 6 October 2020 (UTC)
- Is exporting/importing the database from old mediawiki to new mediawiki and copying the images directory enough to migrate all the data? Ethwald (talk) 10:14, 7 October 2020 (UTC)
- Please read this carefully: Manual:Upgrading
- 1) Make a back up of your website (files and mysql) You can request it by your hosting
- 2) Upload new files of MW (keep your images files)
- 3) Run update.php via ssh
- 4) Set up all extensions. Fokebox (talk) 13:04, 7 October 2020 (UTC)
- If you're switching servers, see also Manual:Moving a wiki Ciencia Al Poder (talk) 17:28, 7 October 2020 (UTC)
Admins blocking user for fun
RESOLVED | |
User to ask on the relevant website. |
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.
My friend is in Wikipedia. He told me that an admin has blocked him. In the reason section there was written 'No Reasons'. We should report this kind of admins and protect the innocent user who have been blocked for no reasons as my friend User: Ruhaan Aditya. Dorarama (talk) 03:40, 6 October 2020 (UTC)
- @Dorarama Welcome to the support desk for the MediaWiki software. If there are non-technical but social problems on some website, for example some Wikipedia, then you'll have to discuss them on that website. Malyacko (talk) 08:18, 6 October 2020 (UTC)
Error "Error creating thumbnail: /usr/bin/timeout..." when wiki tries to regenerate thumbnail
RESOLVED | |
I set $wgMaxShellMemory = 0; and now it works. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just updated to MW1.35.0. To do so I also had to update to PHP7.4.3. I think my problem started after that: some pre-existing, small images on my wiki create the following error when trying to load:
Error creating thumbnail: /usr/bin/timeout: the monitored command dumped core /home/xxx/xxx.xxx.ca/includes/shell/limit.sh: line 101: 28448 Aborted /usr/bin/timeout $MW_WALL_CLOCK_LIMIT /bin/bash -c "$1" 3>&- Error code: 134
The problem seems to be with the following line:
$wgMaxShellMemory/bin/bash '/home/xxx/xxx.xxx.ca/includes/shell/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/bin/convert'\'' '\''-background'\'' '\''white'\'' '\''/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF'\'' '\''-thumbnail'\'' '\''84x92!'\'' '\''-set'\'' '\''comment'\'' '\''File source: https://xxx.xxx.ca/index.php?title=File:K_qm.GIF'\'' '\''+set'\'' '\''Thumb::URI'\'' '\''-depth'\'' '\''8'\'' '\''-rotate'\'' '\''-0'\'' '\''/tmp/transform_c4d77dd7b8bb.gif'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
When I run this in the console I get the same error.
Full set of relevant lines in the error log:
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/53/K_qm.GIF/84px-K_qm.GIF [FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/5/53/K_qm.GIF/84px-K_qm.GIF does not exist TransformationalImageHandler::doTransform: creating 84x92 thumbnail at /tmp/transform_c4d77dd7b8bb.gif using scaler im TransformationalImageHandler::doTransform: called wfMkdirParents(/tmp) BitmapHandler::transformImageMagick: running ImageMagick: '/usr/bin/convert' '-background' 'white' '/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF' '-thumbnail' '84x92!' '-set' 'comment' 'File source: https://srg.kuality.ca/index.php?title=File:K_qm.GIF' '+set' 'Thumb::URI' '-depth' '8' '-rotate' '-0' '/tmp/transform_c4d77dd7b8bb.gif' [exec] MediaWiki\Shell\Command::execute: /bin/bash '/home/xxx/xxx.xxx.ca/includes/shell/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/bin/convert'\'' '\''-background'\'' '\''white'\'' '\''/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF'\'' '\''-thumbnail'\'' '\''84x92!'\'' '\''-set'\'' '\''comment'\'' '\''File source: https://srg.kuality.ca/index.php?title=File:K_qm.GIF'\'' '\''+set'\'' '\''Thumb::URI'\'' '\''-depth'\'' '\''8'\'' '\''-rotate'\'' '\''-0'\'' '\''/tmp/transform_c4d77dd7b8bb.gif'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes' [exec] Probably exited with signal 6: /bin/bash '/home/xxx/xxx.xxx.ca/includes/shell/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/bin/convert'\'' '\''-background'\'' '\''white'\'' '\''/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF'\'' '\''-thumbnail'\'' '\''84x92!'\'' '\''-set'\'' '\''comment'\'' '\''File source: https://srg.kuality.ca/index.php?title=File:K_qm.GIF'\'' '\''+set'\'' '\''Thumb::URI'\'' '\''-depth'\'' '\''8'\'' '\''-rotate'\'' '\''-0'\'' '\''/tmp/transform_c4d77dd7b8bb.gif'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes' [thumbnail] thumbnail failed on ps481774: error 134 "/usr/bin/timeout: the monitored command dumped core /home/xxx/xxx.xxx.ca/includes/shell/limit.sh: line 101: 9032 Aborted /usr/bin/timeout $MW_WALL_CLOCK_LIMIT /bin/bash -c "$1" 3>&-" from "'/usr/bin/convert' '-background' 'white' '/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF' '-thumbnail' '84x92!' '-set' 'comment' 'File source: https://srg.kuality.ca/index.php?title=File:K_qm.GIF' '+set' 'Thumb::URI' '-depth' '8' '-rotate' '-0' '/tmp/transform_c4d77dd7b8bb.gif'" [thumbnail] Removing bad 10-byte thumbnail "/tmp/transform_c4d77dd7b8bb.gif". unlink() succeededTenbergen (talk) 14:38, 6 October 2020 (UTC)
- It looks like you are running into a limit with $wgMaxShellWallClockTime. Try setting that to 0 and seeing if it still causes a problem. ☠MarkAHershberger☢(talk)☣ 15:17, 6 October 2020 (UTC)
- Thanks Mark. When I change that, the error changes to
- Tenbergen (talk) 17:14, 6 October 2020 (UTC)
Error creating thumbnail: /home/xxx/xxx.xxx.ca/includes/shell/limit.sh: line 99: 26303 Aborted (core dumped) OMP_NUM_THREADS='1' '/usr/bin/convert' '-background' 'white' '/home/xxx/xxx.xxx.ca/images/5/53/K_qm.GIF' '-thumbnail' '84x92!' '-set' 'comment' 'File source: https://xxx.xxx.ca/index.php?title=File:K_qm.GIF' [e] [fe] '+set' 'Thumb::URI' '-depth' '8' '-rotate' '-0' '/tmp/transform_8b94f01c66fd.gif' Error code: 134
- What version of ImageMagick do you have? Can you upload the file somewhere so I can look at it? ☠MarkAHershberger☢(talk)☣ 17:46, 6 October 2020 (UTC)
- Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114
- File is at https://srg.kuality.ca/images/5/53/K_qm.GIF Tenbergen (talk) 15:35, 7 October 2020 (UTC)
- its probably something wrong with your version of image magick. Try upgrading.
- If you're using latest you could take the core dump and ask the image magick people Bawolff (talk) 20:28, 6 October 2020 (UTC)
- Ask your host to upgrade to at least ImageMagick 6.9.10 -- which I've tested on my machine. ☠MarkAHershberger☢(talk)☣ 01:47, 8 October 2020 (UTC)
- See also $wgMaxShellMemory and try to increase it. Ciencia Al Poder (talk) 16:04, 9 October 2020 (UTC)
- I set
$wgMaxShellMemory = 0;
and now it works. Thanks! Tenbergen (talk) 22:16, 14 October 2020 (UTC)
Debug log file getting too big
My debug log file is getting way to big. Today I noticed the timestamp was yesterday morning and the size 2147483719 (I think this is exactly 2 GB?).
Two questions:
Am I correct logging has stopped because the file became too large?
Can I limit the size by logging less details?
Thanks a lot!
Regards, Jethro Waanders (talk) 14:43, 6 October 2020 (UTC)
- If you don't need the debug log, it is safe to just turn off debug logging and erase the file. Generally, if you are not looking for any problem in particular, you should not have the debug log on. ☠MarkAHershberger☢(talk)☣ 15:07, 6 October 2020 (UTC)
- it maybe depends on file system and things, but 2gb is biggest signed 32bit int, so probably.
- You should probably not have debugging on just generally, but if you do need it look into something like logrotate to automatically rotate the files Bawolff (talk) 20:27, 6 October 2020 (UTC)
Uncommitted DB writes at login
Hello all,
We've a problem with some (!) users who can't login. They get an error: Fatale error, MWException.
If I set "$wgShowExceptionDetails = true;" they get:
MWException from line 432 of /home/evm/mediawiki/core/includes/htmlform/HTMLForm.php: Descriptor with no class for rememberMe: Array
(
[default] => 1
[tabindex] => 3
)
Backtrace:
#0 /home/evm/mediawiki/core/includes/htmlform/HTMLForm.php(452): HTMLForm::getClassFromDescriptor(string, array)
#1 /home/evm/mediawiki/core/includes/htmlform/VFormHTMLForm.php(48): HTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)
#2 /home/evm/mediawiki/core/includes/htmlform/HTMLForm.php(327): VFormHTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)
#3 [internal function]: HTMLForm->__construct(array, RequestContext)
#4 /home/evm/mediawiki/core/includes/htmlform/HTMLForm.php(271): ReflectionClass->newInstanceArgs(array)
#5 /home/evm/mediawiki/core/includes/specialpage/LoginSignupSpecialPage.php(645): HTMLForm::factory(string, array, RequestContext)
#6 /home/evm/mediawiki/core/includes/specialpage/LoginSignupSpecialPage.php(544): LoginSignupSpecialPage->getAuthForm(array, string, Message, string)
#7 /home/evm/mediawiki/core/includes/specialpage/LoginSignupSpecialPage.php(366): LoginSignupSpecialPage->mainLoginForm(array, Message, string)
#8 /home/evm/mediawiki/core/includes/specialpage/SpecialPage.php(522): LoginSignupSpecialPage->execute(NULL)
#9 /home/evm/mediawiki/core/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#10 /home/evm/mediawiki/core/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#11 /home/evm/mediawiki/core/includes/MediaWiki.php(735): MediaWiki->performRequest()
#12 /home/evm/mediawiki/core/includes/MediaWiki.php(509): MediaWiki->main()
#13 /home/evm/mediawiki/core/index.php(43): MediaWiki->run()
#14 {main}
Apache log file shows at the same moment (but I'm not sure if it has anything to do with each other):
PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (User::checkNewtalk)). in /home/evm/mediawiki/core/includes/db/Database.php on line 3306
We use MW 1.27.2, PHP 7.1.
This is really a problem. Somebody can please help?
2 Questions
RESOLVED | |
Unrelated to MW sofware, for 3rd party site |
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 purchased MM for Windows (Gold). DOes the license include the Mobile version for Android?
- How can I change my e-mail address in my MM Profile? 2001:16B8:28C8:F200:E501:AF30:514C:2D74 (talk) 19:42, 6 October 2020 (UTC)
- Welcome to the forum for the MediaWiki software. What is "MM" and how is it related to MediaWiki? Malyacko (talk) 23:40, 6 October 2020 (UTC)
- MM stands fo Media Monkey. I was under the imnpression this is the Mediamonkey Support.... 2001:16B8:2841:D400:34CC:C57C:93B5:6513 (talk) 13:32, 7 October 2020 (UTC)
- MediaMonkey support is in the MediaMonkey forums.
- I've asked them to update their help link. ☠MarkAHershberger☢(talk)☣ 17:57, 8 October 2020 (UTC)
Bugs in Math Extension after upgrading to 1.35
RESOLVED | |
The issue has been resolved by upgrading extension to curl 7.29.0 (x86_64-redhat-linux-gnu) // A topic on the issue was created on phabricator |
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 upgraded my Wiki to 1.35. Installed Math Extension and set following settings at my LocalSettings file:
wfLoadExtension( 'Math' ); $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_';1) After that I go to any page with math formula I see the error on the top:
Warning: Use of undefined constant CURLMOPT_MAX_HOST_CONNECTIONS - assumed 'CURLMOPT_MAX_HOST_CONNECTIONS' (this will throw an Error in a future version of PHP) in /var/www/u0402490/data/www/mysite/includes/libs/http/MultiHttpClient.php on line 448 Warning: curl_multi_setopt() expects parameter 2 to be int, string given in /var/www/u0402490/data/www/mysite/includes/libs/http/MultiHttpClient.php on line 448 Warning: Use of undefined constant CURLMOPT_MAX_HOST_CONNECTIONS - assumed 'CURLMOPT_MAX_HOST_CONNECTIONS' (this will throw an Error in a future version of PHP) in /var/www/u0402490/data/www/mysite/includes/libs/http/MultiHttpClient.php on line 448 Warning: curl_multi_setopt() expects parameter 2 to be int, string given in /var/www/u0402490/data/www/mysite/includes/libs/http/MultiHttpClient.php on line 448but math formulas are displayed at the same time. If I refresh the page, the error disappears and never returns.
If I create page with Math formula in Wiki editor and click "Preview" I also see this error, but math formula is shown. I see the same error at: Special:MathStatus. And at this all tested well except this: Comparing the generated SVG with the reference failed
When I use VisualEditor to insert math formulas - all works perfect.
Could you please let me know why I have this error and how can I fix it? Fokebox (talk) 19:58, 6 October 2020 (UTC)
- is the php curl extension installed (this is a php extension not a mediawiki extension) and what version?
- What version of php do you have? Is it at least 7.0.7? Bawolff (talk) 01:24, 7 October 2020 (UTC)
- Here what I have:
Продукт | Версия |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.4.10 (cgi-fcgi) |
MySQL | 5.7.27-30 |
ICU | 50.1.2 |
Lua | 5.1.5 |
- Ask your hosting provider what version of cURL extension is installed. – Ammarpad (talk) 13:41, 7 October 2020 (UTC)
- cURL is 7.29.0 Fokebox (talk) 14:57, 7 October 2020 (UTC)
- The constant was added in cURL 7.30.0, so it's not available in your version. – Ammarpad (talk) 20:04, 7 October 2020 (UTC)
- Thank you! I try to request my hosting to update the extension. Fokebox (talk) 20:49, 7 October 2020 (UTC)
- i filed https://phabricator.wikimedia.org/T264986 Bawolff (talk) 05:41, 8 October 2020 (UTC)
- I also requested my hosting to upgrade curl extension. As soon as they do it, I check if everything works fine. Fokebox (talk) 07:49, 8 October 2020 (UTC)
How to add google adsense on Mobilefronted?
I heared someone succeed to do this by editing Extension/skin/includes/minerva.php
But I can not find this file and don't know what to do.
Could you kindly let me know how to do this? 211.106.121.188 (talk) 12:02, 7 October 2020 (UTC)
- I use automatic ads and use: Extension:HeadScript Fokebox (talk) 15:14, 7 October 2020 (UTC)
Account Registration Problems
Hi all, I'm getting reports from quite a number of users that they are really struggling to set up their accounts. I have manually set up at least 3 accounts for people and not faced the issue so I'd entirely beleive it was user error but the fact many unlreated people describe the exact same error makes me think otherwise. They will fill out the registration form and be send an email with a confirmation code. As soon as the link comes through they click it to be told the confirmation code has expired already (almost instantly after its sent) but somehow if they close that tab and login as normal it works fine. The second issue is that when confirming the email people are reporting they are not receiving the email at all. Checking the mail logs on the server and it's sending perfectly fine but it's just not coming through. That one could be down to the mail provider but I've never known many providers such as Gmail, Yahoo, Outlook etc to take hours to deliver an email like this.
Any ideas foilk?
Thanks RobHowdle (talk) 12:53, 7 October 2020 (UTC)
- Diagnosing mail problems is tricky, but if the emails are taking too long, it may be that resending the email will provide them with an un-expired link since the first one may have been delayed by greylisting. ☠MarkAHershberger☢(talk)☣ 17:43, 8 October 2020 (UTC)
PHP Warning & Notice while installing Mediawiki 1.27.4
RESOLVED | |
PHP Version too high, downgraded it and the leftover error is with Bluespice, user to contact Bluespice |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, i want to start my first MediaWiki & Bluespice Installation but when i run bluespice/index.php and click on Please setup the wiki first.. i get forwarded to the bluespice/mw-config/index.php site and there are many errors appearing. does someone got an idea?
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\inetpub\wwwroot\bluespice\includes\json\FormatJson.php on line 297
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\inetpub\wwwroot\bluespice\languages\LanguageConverter.php on line 757
PHP Notice: compact(): Undefined variable: messages in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: digitGroupingPattern in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRuleTypes in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: compiledPluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: fallback in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: messages in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: rtl in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: digitTransformTable in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: fallback8bitEncoding in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: linkPrefixExtension in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: linkPrefixCharset in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: datePreferenceMigrationMap in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: extraUserToggles in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: preloadedMessages in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: digitGroupingPattern in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRuleTypes in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: compiledPluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: messages in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: digitGroupingPattern in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: pluralRuleTypes in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: compact(): Undefined variable: compiledPluralRules in C:\inetpub\wwwroot\bluespice\includes\cache\localisation\LocalisationCache.php on line 531
PHP Notice: Undefined property: BsWebInstallerOutput::$useShortHeader in C:\inetpub\wwwroot\bluespice\mw-config\overrides\includes\BsWebInstallerOutput.php on line 62
Thanks for your help 85.214.87.218 (talk) 13:59, 7 October 2020 (UTC)
- After finding out my PHP Version was to high, i downgraded it and now there is still but only 1 error left: PHP Notice: Undefined property: BsWebInstallerOutput::$useShortHeader in C:\inetpub\wwwroot\bluespice\mw-config\overrides\includes\BsWebInstallerOutput.php on line 62 85.214.87.218 (talk) 15:37, 7 October 2020 (UTC)
- For the remaining error, you have to contact Bluespice maintainers. – Ammarpad (talk) 14:02, 8 October 2020 (UTC)
Error 1054: Unknown column 'ipb_sitewide'
RESOLVED | |
After adding the patch for ipb_sitewide the error disappears. |
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.
During upgrade MW 1.31 -> 1.35 the Error 1091: Can't DROP 'ipb_address_unique' occured and after founding a workaround, the Error 1054: Unknown column 'ipb_sitewide' in 'field list' occurs after page refresh:
Error 1054: Unknown column 'ipb_sitewide' in 'field list' (mysql)
Function: MediaWiki\Block\DatabaseBlock::newLoad
Query: SELECT ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_sitewide,comment_ipb_reason.comment_text AS `ipb_reason_text`,comment_ipb_reason.comment_data AS `ipb_reason_data`,comment_ipb_reason.comment_id AS `ipb_reason_cid`,actor_ipb_by.actor_user AS `ipb_by`,actor_ipb_by.actor_name AS `ipb_by_text`,ipb_by_actor FROM `zeus_de`.`ipblocks` JOIN `comment` `comment_ipb_reason` ON ((comment_ipb_reason.comment_id = ipb_reason_id)) JOIN `actor` `actor_ipb_by` ON ((actor_ipb_by.actor_id = ipb_by_actor)) WHERE ipb_address = '134.34.200.62' OR ((ipb_range_start LIKE '8622%' ESCAPE '`' ) AND (ipb_range_start <= '8622C83E') AND (ipb_range_end >= '8622C83E'))
Backtrace:
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /var/www/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, string, string, array, array)
#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /var/www/html/includes/block/DatabaseBlock.php(302): Wikimedia\Rdbms\DBConnRef->select(array, array, string, string, array, array)
#7 /var/www/html/includes/block/DatabaseBlock.php(1187): MediaWiki\Block\DatabaseBlock::newLoad(User, integer, boolean, string)
#8 /var/www/html/includes/block/BlockManager.php(139): MediaWiki\Block\DatabaseBlock::newListFromTarget(User, string, boolean)
#9 /var/www/html/includes/user/User.php(1603): MediaWiki\Block\BlockManager->getUserBlock(User, WebRequest, boolean)
#10 /var/www/html/includes/user/User.php(1986): User->getBlockedStatus(boolean)
#11 /var/www/html/includes/block/BlockManager.php(472): User->getBlock()
#12 /var/www/html/includes/MediaWiki.php(767): MediaWiki\Block\BlockManager->trackBlockWithCookie(User, WebResponse)
#13 /var/www/html/includes/MediaWiki.php(648): MediaWiki::preOutputCommit(RequestContext, Closure)
#14 /var/www/html/includes/MediaWiki.php(956): MediaWiki->doPreOutputCommit(Closure)
#15 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main()
#16 /var/www/html/index.php(53): MediaWiki->run()
#17 /var/www/html/index.php(46): wfIndexMain()
#18 {main}
The error is still there even after adding manually ipb_sitewide
to table ipblocks
(based on patch-ipb_sitewide.sql).
mysql> ALTER TABLE ipblocks ADD ipb_sitewide bool NOT NULL default 1;
Query OK, 0 rows affected (0.18 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> describe ipblocks;
+----------------------+---------------------+------+-----+----------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+---------------------+------+-----+----------------+----------------+
...
| ipb_parent_block_id | int(11) | YES | MUL | NULL | |
| ipb_sitewide | tinyint(1) | NO | | 1 | |
+----------------------+---------------------+------+-----+----------------+----------------+
21 rows in set (0.00 sec)
134.34.200.62 (talk) 14:31, 7 October 2020 (UTC)
Erro no banco de dados
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.
Houve um erro na consulta ao banco de dados. Isto pode indicar um bug no software.
[d381395baf9afb2626d61f23] /wiki/index.php/Especial:P%C3%A1ginas_especiais Wikimedia\Rdbms\DBQueryError from line 1603 of C:\wamp64\www\wiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT * FROM `oathauth_users` WHERE id = '1' LIMIT 1
Function: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser
Error: 1146 Table 'my_wiki.oathauth_users' doesn't exist (localhost)
Backtrace:
#0 C:\wamp64\www\wiki\includes\libs\rdbms\database\Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 C:\wamp64\www\wiki\includes\libs\rdbms\database\Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 C:\wamp64\www\wiki\includes\libs\rdbms\database\Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#3 C:\wamp64\www\wiki\includes\libs\rdbms\database\Database.php(1899): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#4 C:\wamp64\www\wiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string)
#5 C:\wamp64\www\wiki\includes\libs\rdbms\database\DBConnRef.php(333): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 C:\wamp64\www\wiki\extensions\OATHAuth\src\OATHUserRepository.php(86): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string)
#7 C:\wamp64\www\wiki\extensions\OATHAuth\src\Special\OATHManage.php(79): MediaWiki\Extension\OATHAuth\OATHUserRepository->findByUser(User)
#8 C:\wamp64\www\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php(184): MediaWiki\Extension\OATHAuth\Special\OATHManage->__construct()
#9 C:\wamp64\www\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php(102): Wikimedia\ObjectFactory::getObjectFromSpec(array, array)
#10 C:\wamp64\www\wiki\includes\specialpage\SpecialPageFactory.php(447): Wikimedia\ObjectFactory->createObject(string, array)
#11 C:\wamp64\www\wiki\includes\specialpage\SpecialPageFactory.php(478): MediaWiki\Special\SpecialPageFactory->getPage(string)
#12 C:\wamp64\www\wiki\includes\specials\SpecialSpecialpages.php(56): MediaWiki\Special\SpecialPageFactory->getUsablePages(User)
#13 C:\wamp64\www\wiki\includes\specials\SpecialSpecialpages.php(44): SpecialSpecialpages->getPageGroups()
#14 C:\wamp64\www\wiki\includes\specialpage\SpecialPage.php(575): SpecialSpecialpages->execute(NULL)
#15 C:\wamp64\www\wiki\includes\specialpage\SpecialPageFactory.php(611): SpecialPage->run(NULL)
#16 C:\wamp64\www\wiki\includes\MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#17 C:\wamp64\www\wiki\includes\MediaWiki.php(900): MediaWiki->performRequest()
#18 C:\wamp64\www\wiki\includes\MediaWiki.php(527): MediaWiki->main()
#19 C:\wamp64\www\wiki\index.php(44): MediaWiki->run()
#20 {main}
OBS: O bug ocorreu na minha wiki em páginas especiais. Alguém me ajude!!!!
ou
@ Qualquer um Gustavo Borges Matos (talk) 17:25, 7 October 2020 (UTC)
- You almost certainly need to run Manual:Update.php Reedy (talk) 19:55, 7 October 2020 (UTC)
Every time Edit is clicked, a "Welcome to XYZ Wiki" popup appears
RESOLVED | |
"This seems to be coming from VisualEditor. Try setting $wgVisualEditorShowBetaWelcome = false in LocalSettings.php" |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just updated to Mediawiki 1.35.0 and a "Welcome to XYZ Wiki" dialog keeps popping up every time anyone clicks "Edit". There doesn't seem to be a preference to turn it off, and there's no option to turn it off or "Don't show this again" in the dialog.
Full text of the dialog:
Welcome to XYZ Wiki
Anyone can edit, and every improvement helps. Thank you for helping the world discover more!
Start editing
Install stats:
MediaWiki | 1.35.0 |
PHP | 7.4.9 (apache2handler) |
MySQL | 5.7.30 |
Lua | 5.1.5 |
- This seems to be coming from VisualEditor. Try setting
$wgVisualEditorShowBetaWelcome = false
in LocalSettings.php – Ammarpad (talk) 20:13, 7 October 2020 (UTC)
DBQueryError for l10n_cache
RESOLVED | |
Trying 4 or 5 more times seems to have solved this....but I'm not sure how. But it works now? |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to install mediawiki using docker using a Sqlite db.
Environment:
Host OS - Ubuntu 20.04
Docker version: 19.03.13
Docker image: mediawiki:latest
Mediawiki version: 1.35.0
PHP version: 7.3.23
After following the docker-compose instructions on the mediawiki Dockerhub page (without the mariadb database
service) I get the following error
[14d4c4867e9879dd14ae9fe8] / Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1: no such table: l10n_cache
Function: LCStoreDB::get
Query: SELECT lc_value FROM l10n_cache WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Backtrace:
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /var/www/html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /var/www/html/includes/libs/rdbms/database/Database.php(1746): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 /var/www/html/includes/cache/localisation/LCStoreDB.php(63): Wikimedia\Rdbms\Database->selectField(string, string, array, string)
#6 /var/www/html/includes/cache/localisation/LocalisationCache.php(449): LCStoreDB->get(string, string)
#7 /var/www/html/includes/cache/localisation/LocalisationCache.php(495): LocalisationCache->isExpired(string)
#8 /var/www/html/includes/cache/localisation/LocalisationCache.php(414): LocalisationCache->initLanguage(string)
#9 /var/www/html/includes/cache/localisation/LocalisationCache.php(333): LocalisationCache->loadSubitem(string, string, string)
#10 /var/www/html/languages/Language.php(2645): LocalisationCache->getSubitem(string, string, string)
#11 /var/www/html/includes/cache/MessageCache.php(1030): Language->getMessage(string)
#12 /var/www/html/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#13 /var/www/html/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#14 /var/www/html/includes/language/Message.php(1304): MessageCache->get(string, boolean, LanguageEn)
#15 /var/www/html/includes/language/Message.php(862): Message->fetchMessage()
#16 /var/www/html/includes/language/Message.php(954): Message->toString(string)
#17 /var/www/html/includes/title/MalformedTitleException.php(51): Message->text()
#18 /var/www/html/includes/title/MediaWikiTitleCodec.php(346): MalformedTitleException->__construct(string, string)
#19 /var/www/html/includes/Title.php(3413): MediaWikiTitleCodec->splitTitleString(string, integer)
#20 /var/www/html/includes/Title.php(427): Title->secureAndSplit(string)
#21 /var/www/html/includes/MediaWiki.php(88): Title::newFromURL(NULL)
#22 /var/www/html/includes/MediaWiki.php(151): MediaWiki->parseTitle()
#23 /var/www/html/includes/MediaWiki.php(902): MediaWiki->getTitle()
#24 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main()
#25 /var/www/html/index.php(53): MediaWiki->run()
#26 /var/www/html/index.php(46): wfIndexMain()
#27 {main}
My docker-compose.yml is
version: '3'
services:
mediawiki:
container_name: wiki
image: mediawiki
restart: always
ports:
- 8081:80
volumes:
- $HOME/volumes/mediawiki/images:/var/www/html/images
# After initial setup, download LocalSettings.php to the same directory as
# this yaml and uncomment the following line and use compose to restart
# the mediawiki service
#- $HOME/volumes/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php Driftsam (talk) 20:09, 7 October 2020 (UTC)
DB connection error
RESOLVED | |
O erro foi solucionado na Umbler servidor de hospedagem. |
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.
Estou cadastrando minha wiki na Umbler mas não consigo descobrir o Servidor da base de dados da o seguinte erro:
DB connection error: php_network_getaddresses: getaddrinfo failed: Name or service not known (CNAME)
Verifique o servidor, nome de usuário e senha e tente novamente.
@Reedy@Bawolff@TiltedCerebellum
ou
@ Qualquer um me ajude. Gustavo Borges Matos (talk) 21:42, 7 October 2020 (UTC)
- ou então Connection refused Gustavo Borges Matos (talk) 21:44, 7 October 2020 (UTC)
- so, if you're going to ask everyone to respond to you, it might be helpful to tell us why the names you have in $wgDBserver is what it should be. ☠MarkAHershberger☢(talk)☣ 01:38, 8 October 2020 (UTC)
- O erro já foi resolvido :) Gustavo Borges Matos (talk) 13:11, 8 October 2020 (UTC)
"Error Saving Draft" with the Drafts extension on Mediawiki 1.35
I put the drafts extension in the extensions folder and added wfLoadExtension( 'Drafts' )
;. I also added these in localSettings.php:
$egDraftsAutoSaveWait = 120;
$egDraftsAutoSaveTimeout = 10;
$egDraftsAutoSaveInputBased = false;
$egDraftsLifeSpan = 30;
$egDraftsCleanRatio = 1000;
whenever I make a change and click "Save Draft," it says "Error Saving Draft." How do I fix this? YousufSSyed (talk) 05:17, 8 October 2020 (UTC)
- Extension:Drafts is unmaintained. You should look for alternative. – Ammarpad (talk) 13:58, 8 October 2020 (UTC)
- Do you know any alternatives? YousufSSyed (talk) 19:48, 8 October 2020 (UTC)
- No, I don't. – Ammarpad (talk) 06:38, 9 October 2020 (UTC)
- I also ran into an error with this unmaintained "Drafts" plugin with MediaWiki 1.35. Looking at the HTTP request flow with Chrome Developer tools, the error was a "badinteger" error for the "section" value when it called api.php. According to the Drafts plugin, the section value can be an integer or null.
- Mediawiki 1.35 introduces Parameter Validation. It cannot handle null values for integers. I think this might be a bug but I'm not sure.
- To work around the bug, you can edit the integer parameter validation. In "./includes/libs/ParamValidator/TypeDef/IntegerDef.php", look for this line:
if ( !preg_match( '/^[+-]?\d+$/D', $value ) ) {
- and change the it to:
if ( !preg_match( '/^[+-]?\d*$/D', $value ) ) {
- Then it will be able to handle values like null. This let me save Drafts with the plugin.
- My suggestion is a workaround, not a fix, since values like "+" or "-" can also be accepted. A better workaround or fix would handle that case.
- I think that Parameter Validation should be able to accept empty values but that is just my opinion. Jahoti (talk) 02:36, 3 February 2021 (UTC)
- I worked around this issue in commit 28f48e343e675fc887ea2fe59025de7ce7d19208; see also https://phabricator.wikimedia.org/T273703. I've tested Drafts on 1.35 and it seems to be working as expected. Jack Phoenix (Contact) 20:12, 26 February 2022 (UTC)
Wiki displayed as if connection was slow
Hello,
I just upgraded my wiki from 1.33 to 1.35
I am wondering why the wiki is displayed as if the connection was slow ("raw" text without skin") ?
In fact the problem was already present before upgrading but I don't understand why because the last time all was ok and I changed nothing since.
The old instance: https://signipedia.ecoleetsurdite.be/
The new instance: https://signipedia.ecoleetsurdite.be/mediawiki-1.35.0/
Thanks for the support Bseutin (talk) 10:49, 8 October 2020 (UTC)
- See the HTTP 403 errors in your browser's developer tools. Also see Manual:Common errors and symptoms#The wiki appears without styles applied and images are missing Malyacko (talk) 11:51, 8 October 2020 (UTC)
Documentation page for common.js ?
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 didn't find it. Did I missed it or should we create one ? Where (which namespace). To not be confused with MediWiki:common.js and User:{USERNAME}/common.js which are the actual, functional pages. Yug (talk) 14:33, 8 October 2020 (UTC)
- Are you looking for Manual:Interface/JavaScript? * Pppery * it has begun 14:55, 8 October 2020 (UTC)
- Seems to be thank you ! I created the redirect page Manual:Common.js. Yug (talk) 15:24, 8 October 2020 (UTC)
Help with DRAW.IO extension
Hello,
I'm trying to use this: https://www.mediawiki.org/wiki/Extension:DrawioEditor
Everything works fine and it's loading but when I'm trying to save, it will load forever and never save.
Any idea for what to look for?
Maybe a permission issue? I'm using MediaWiki 1.35 on Ubuntu 20.04
I've been looking around the logs but I found nothing.
My web console reports this:
[Warning] This page is using the deprecated ResourceLoader module "jquery.ui". (load.php, line 155)
Please use OOUI instead.
[Warning] JQMIGRATE: jQuery.fn.delegate() is deprecated (load.php, line 144)
[Warning] JQMIGRATE: jQuery.fn.bind() is deprecated (load.php, line 144)
[Info] Successfuly preconnected to https://storage.googleapis.com/
[Warning] jQuery.Deferred exception: Can't find variable: error (2) (load.php, line 51) UGOBOSS777 (talk) 19:58, 8 October 2020 (UTC)
- I haven't tried this extension but I see this in the installation instructions:
- If you want so use SVG (recommended) and the version of your MediaWiki is 1.26 or newer, you need to add the namespace
http://www.w3.org/1999/xhtml
to$validNamespaces
inincludes/upload/UploadBase.php
. See Requirements for more information on why this is currently needed.
- If you want so use SVG (recommended) and the version of your MediaWiki is 1.26 or newer, you need to add the namespace
- Did you do that? ☠MarkAHershberger☢(talk)☣ 22:42, 8 October 2020 (UTC)
- @MarkAHershberger thanks for your reply. Yeah I did do that part. I think I checked at all the requirements too. UGOBOSS777 (talk) 00:52, 9 October 2020 (UTC)
- have you checked the write permissions on the directories where the files (png or svgs) are uploaded to? Maybe the process running the wiki is not allowed to write the uploaded images and thus fails there (in case you run apache you can check the logs there and see if you see some php errors there). Maureli (talk) 11:10, 14 October 2020 (UTC)
- Hey @Maureli, yes I did! It writes to the image directory defined in LocalSettings.
- I even tried setting it to 777 just to test. UGOBOSS777 (talk) 02:35, 17 October 2020 (UTC)
Donation link on sidebar not working
I'm having an issue with the donation link on the sidebar (usually on the left side of a wiki page). I downloaded and installed every extension available (including the 'master' version) and entered the code into my localsettings.php. The word "donate" comes up on my sidebar but cannot be clicked and shows as grey (as opposed to blue like usual links). Am I doing something wrong? or is there another code i need to substitute for the one i found on the extensions:sidebardonatebox page? any and all siggestions would help. TIA. Thepainking (talk) 21:50, 8 October 2020 (UTC)
- The extension SidebarDonateBox says it is not maintained. Are you sure this is the extension you want? ☠MarkAHershberger☢(talk)☣ 22:35, 8 October 2020 (UTC)
- I'm open to suggestions as I'm very inexperienced in these matters. I do need a donation link on the webpage but i'll accept any method to get a donation button on there. I understand it is not maintained but if wikipedia uses it then it should be okay, no? Thepainking (talk) 20:12, 16 October 2020 (UTC)
- That is not the extension that Wikipedia uses. ☠MarkAHershberger☢(talk)☣ 03:00, 17 October 2020 (UTC)
- i've deleted it. Thanks for the info! You wouldn't happen to know which extension wikipedia uses by any chance? Thepainking (talk) 17:25, 12 November 2020 (UTC)
- Are you using a service like that offers a page to link to for donations, or the code to embed a donate button on a website? If not please ignore my comment.
- You can create a sidebar link to your service's donation page in MediaWiki:Sidebar, adding the following works fine for me and looks pretty much exactly like the en.wikipedia.org donate link, unless I'm misunderstanding where you are looking and what you're after (quite possible):
** https://yoururl.com|Donate
- Then can use your browser's web inspector to find the name of it's unique css selector, then style in via Common.css if a button or some other look is desired for it.
- You can also use a hook to put the stuff before the sidebar, Manual:Hooks/SidebarBeforeOutput. TiltedCerebellum (talk) 01:27, 16 November 2020 (UTC)
Upgrade to latest from 1.27.7
Currently on
Product | Version |
---|---|
MediaWiki | 1.27.7 |
PHP | 7.2.24 (apache2handler) |
MariaDB | 10.3.17-MariaDB-log |
Elasticsearch | 1.7.6 |
is it difficult to take content from this version to the latest version? Do we need to upgrade to LTS or legacy first before moving to 1.35?
Any snags that you see us running into?
- MediaWiki 1.35.0 - stable
- MediaWiki 1.34.4 - legacy
- MediaWiki 1.31.10 - long-term support (LTS) 75.157.56.52 (talk) 04:47, 9 October 2020 (UTC)
- I should add that I have a 1.35 server functioning right now that I could move the content to. Hopefully this is an export to tar ball, import to new server, run script! 75.157.56.52 (talk) 04:54, 9 October 2020 (UTC)
- I upgraded from 1.29 to 1.35 and have not any problems while installation. Only challenging was setting extensions that was used in previous version. Fokebox (talk) 08:05, 9 October 2020 (UTC)
- Also, note that 1.35 is an LTS. ☠MarkAHershberger☢(talk)☣ 15:02, 9 October 2020 (UTC)
Are there any alternatvies to Extension:Draft?
RESOLVED | |
See Project:Support desk/Flow/2020/10#h-"Error_Saving_Draft"_with_the_Drafts_extension_on_Mediawiki_1.35-2020-10-08T05:17:00.000Z |
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 need an extension that can save edits as drafts onto the database. Any extensions like that? YousufSSyed (talk) 08:25, 9 October 2020 (UTC)
- Why don't you save a draft as a separate page like: Article_name/Draft? Fokebox (talk) 08:45, 9 October 2020 (UTC)
Windows cannot deal with files from MW1.35 archive ending with a dot
Hi,
I am running a MW1.35 installation on a linux server. Before doing any changes on this live server I am trying out first on my windows machine using xampp.. That worked fine untill now.. Windows cannot copy files to the linux server nor another location on my local windows machine because several files end with an dot (.). Windows cannot deal with files ending with a dot.
Can these files please be renamed in 1.35.1 version? it is quite annoying. See just some examples below from folder \extensions\VisualEditor\lib\ve\lib\oojs-ui
oojs-ui-apex-icons-editing-advanced.rtl.
oojs-ui-apex-icons-editing-citation.rtl.
oojs-ui-wikimediaui-icons-accessibility.
oojs-ui-wikimediaui-icons-wikimedia.rtl. Gjtokkel (talk) 10:06, 9 October 2020 (UTC)
- @Gjtokkel No those files do not end with a dot. They do end with .css instead of a dot.
- By any chance, did you use 7-Zip to decompress the tarball? Malyacko (talk) 11:22, 9 October 2020 (UTC)
- Hmm, no I did use IZArc. But you are right. I can see the files with proper extension when I unpack using tar -xf ...
- Tnx Gjtokkel (talk) 12:48, 9 October 2020 (UTC)
Lua lessons and examples
Small wiktionary here, el.wiktionary. Trying to make modules. I cannot apply what I read at this nice page Extension:Scribunto/Lua reference manual without real life examples to copypaste from. Nothing works for me without some helping tips. All Lua lessons start with 'Hello world' and then, nothing. Could we have example modules? or rules? like https://el.wiktionary.org/wiki/Χρήστης:Sarri.greek/Learn_Lua_and_wikitext Thanks ~ Sarri.greek (talk) 11:48, 9 October 2020 (UTC)
- It looks like you have a good start. If you want real-world examples, have a look at Module:Yesno on Wikipedia which is used by Module:Infobox. ☠MarkAHershberger☢(talk)☣ 14:59, 9 October 2020 (UTC)
- Thank you User:MarkAHershberger. Please! We need professional Lua persons to write 20 Modules for wihat is needed in wiktionaries, 20 Modules for wikipedias, 20 Modules for.. , so that little wikis can use them by changing the 'words' or some peculiarities of their language. I cannot do this. I know NOTHING about Lua. It took me 2 days to find out the correct way to write childish things. En.wiktionary is too complicated and it cannot be used as a model. People from there have helped me a lot, like https://en.wiktionary.org/wiki/User:Erutuon who has spent a lot of his precious time helping me. We cannot bother people all the time for this and that. We, small wikis need permanetnt technical support: how to do things. I am a wreck. Sarri.greek. Sarri.greek (talk) 15:12, 9 October 2020 (UTC)
- @Sarri.greek meta:Small_wiki_toolkits lists resources for smaller communities. The Lua resources listed welcome improvements. There is hope that this might happen in the next months as part of phab:T254956. Malyacko (talk) 19:15, 9 October 2020 (UTC)
- The 'lua lessons' stop at lesson1, also at wikiversity similar pages, they stop at lesson5. This https://meta.wikimedia.org/wiki/Small_wiki_toolkits/Starter_kit/Templates_and_Modules has some complicated wikipedia-only modules, but may be usefult.<br>In the meantime, could someone correct this https://el.wiktionary.org/wiki/Module:data1 because i cannot make cateogizations without it? Sarri.greek (talk) 19:30, 9 October 2020 (UTC)
how much computing power does we need for 1000 users writing articles at time in MediaWiki?
At a time 1000 users will be participating on my MediaWiki, how many processors and RAM should i need for trouble free accessing? 103.96.16.115 (talk) 12:40, 9 October 2020 (UTC)
- See Manual:Installation requirements. Malyacko (talk) 13:42, 9 October 2020 (UTC)
- Thank you Malyacko, but how much load does 256 MB of RAM takes, I mean how many users can use that website at a time? Ramu ummadishetty (talk) 15:00, 9 October 2020 (UTC)
- it depends on a lot of factors, what type of caching is setup, what extensions are installed, if the server is also running other services (e.g. your db or your memcached), how "at the same time" do you mean by at the same time, etc.
- I would suggest experimenting and seeing. Bawolff (talk) 19:49, 9 October 2020 (UTC)
- From my own tests, only 256MB is not going to be enough for a wiki of any size. As the installation requirements say:
- ..this will not suffice for a busy public site or a site with uploading enabled.
- A decent modern wiki with the various services that it needs should really have at least 1GB of ram and probably 4GBs. ☠MarkAHershberger☢(talk)☣ 20:10, 15 October 2020 (UTC)
Unable to setup mediawiki on MYSQL 5.8.8 with Bin Logging enabled
I am attempting to setup MediaWiki 1.35.0. I am using PHP 7.4.4 and MySQL 5.8.8. The database has bin logging enabled. So when I go through the setup process I get an error message "MySQL 5.5.8 or later is required. You have 5.5.8-log." Is there any way to circumvent this, add -log as part of the check, or strip the -log from the MySQL version being reported? 107.213.5.207 (talk) 16:09, 9 October 2020 (UTC)
- This is a bug and should be reported: bugreport Ciencia Al Poder (talk) 11:22, 10 October 2020 (UTC)
- https://phabricator.wikimedia.org/T265294 Malyacko (talk) 17:21, 12 October 2020 (UTC)
Unable to restore images from backup
I have an old mediawiki which I am trying to update, which has a TONNE of extensions, and seems quite a complex set up (multiple different languages, a "commons" wiki etc").
I have five different sql dumps, but I only want to, for now, focus on the english version. "central.sql", "commons.sql" and "en.sql"
In order to get it working I created a blank wiki using the version it currently runs on, and restored a database dump.
For this to work I had to restore the "central" sql dump over the one of the language one - in this case english. This has given me the pages, layout and text of the wiki.
I am trying to restore the images but it is not working - I have copy and pastes the images into the image directory, in their original fire structure but am getting no file exists by that name
Anyone able to help at all?. 82.27.57.77 (talk) 17:25, 9 October 2020 (UTC)
- mixing backups from different wikis won't give you a working wiki.
- Images are probably from the commons wiki. Images are tracked on database tables (see image table and related), so only putting them in the filesystem won't make them appear on MediaWiki.
- Restoring the image, oldimage and filearchive tables from commons may work, but this may conflict with any existing local image Ciencia Al Poder (talk) 19:37, 9 October 2020 (UTC)
- can you post the LocalSettings.php (with passwords removed)?
- It sounds like you're using the stock LocalSettings.php that comes with mediawiki after running the installer for the new version. I would reccomend against that (if your goal is to eventually set things up as before). I would reccomend restoring all the sql dumps into appropriately named db's, put the old LocalSettings.php into the mediawiki directory, and run update.php. (you might have to run that separately for each db. For shared dbs you might have to run db updates manually) Bawolff (talk) 19:46, 9 October 2020 (UTC)
- pastebin pKnvYRtg https://pastebin.com/raw/pKnvYRtg 82.27.57.77 (talk) 20:36, 9 October 2020 (UTC)
- So each of the database is chosen because of the prefix for the website - i.e en.wikiname for the English LocalSettings̠̟̜̠.php and commons.wikiname.com for the Common LocalSettings.php 82.27.57.77 (talk) 20:41, 9 October 2020 (UTC)
- I am trying to but the abuse filter wont let me 82.27.57.77 (talk) 20:18, 9 October 2020 (UTC)
unicodedata
Which version of unicodedata we have at ruwiki and maybe we should update it? (ruwiki discussion) 217.117.125.72 (talk) 18:07, 9 October 2020 (UTC)
- Whatever latest stable (!) Debian ships, I think: https://tracker.debian.org/pkg/unicode-data Malyacko (talk) 19:17, 9 October 2020 (UTC)
- I think it depends in which context or area you mean.
- Much of mediawiki will use php's intl extension for unicode support. Bawolff (talk) 19:37, 9 October 2020 (UTC)
- We have some redirects as ӻ → Ӻ. 217.117.125.72 (talk) 07:21, 10 October 2020 (UTC)
- https://phabricator.wikimedia.org/T219279 might be related. Bawolff (talk) 05:15, 23 October 2020 (UTC)
failed to open stream: Permission denied in /vendor/wikimedia/services/src/ServiceContainer.php on line 125
RESOLVED | |
Page was cached with the error for some reason, purging it fixed it |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm getting this error on a random file page on my wiki after updating to MediaWiki 1.35.
Warning: require(/var/www/html/w/extensions/Translate/src/ServiceWiring.php): failed to open stream: Permission denied in /var/www/html/w/vendor/wikimedia/services/src/ServiceContainer.php on line 125
Fatal error: require(): Failed opening required '/var/www/html/w/extensions/Translate/src/ServiceWiring.php' (include_path='/var/www/html/w/vendor/pear/console_getopt:/var/www/html/w/vendor/pear/mail:/var/www/html/w/vendor/pear/mail_mime:/var/www/html/w/vendor/pear/net_smtp:/var/www/html/w/vendor/pear/net_socket:/var/www/html/w/vendor/pear/pear-core-minimal/src:/var/www/html/w/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/html/w/vendor/wikimedia/services/src/ServiceContainer.php on line 125
I don't understand it because the file page doesn't even use the translate extension. I tried using an older backup of the translate extension, the 1.34 version, the 1.35 version, and the master version, but the error remains. I also tried turning off the extension but it's still there too. Vishkujo (talk) 06:59, 10 October 2020 (UTC)
Como muda o menu esquerdo da minha wiki?
RESOLVED | |
See Manual:Interface/Sidebar. |
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.
Estou em duvida sobre como posso mudar o menu lateral (esquerdo) da minha wiki alguém pode me ajudar!!! Gustavo Borges Matos (talk) 13:16, 10 October 2020 (UTC)
- Hi! See Manual:Interface/Sidebar. Ciencia Al Poder (talk) 14:51, 10 October 2020 (UTC)
Não consigo sair da minha wiki
Alguém me ajude pois quando vou tentar sair aparece o seguinte erro:
Não é possível sair agora: badtoken Gustavo Borges Matos (talk) 15:07, 10 October 2020 (UTC)
- Por favor alguém pode me ajudar rápido porque o site esta online e pode causar problemas para os Usuários. se preciso crie uma conta no site abaixo e me avise aqui porque assim poderei dar os privilégios que for preciso para concertar o erro.
- Site: wikiquedia.atwebpages.com
- OBS: se precisar de privilégios para concertar o erro deixe abaixo o nome de usuário que foi criado. Gustavo Borges Matos (talk) 19:13, 10 October 2020 (UTC)
- @Gustavo Borges Matos: In my understanding, you are illegally using the Wikipedia logo on your website. See https://foundation.wikimedia.org/wiki/Trademark_policy .
- For login problems, see Manual:How to debug/Login problems . Malyacko (talk) 08:11, 11 October 2020 (UTC)
Can't log in after update
RESOLVED | |
Updating my LocalSettings.php with the more recent PasswordPolicy block (from DefaultSettings.php) solved it. |
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 updating today from 1.34 to 1.35 it seems I can no longer log in. Attempting to do so gives the following:
[a1093c4edeaa20a33aa39bfa] /index.php?title=Special:UserLogin&returnto=Main+Page InvalidArgumentException from line 58 of /var/www/my.site/public_html/mediawiki-1.35.0/includes/password/UserPasswordPolicy.php: Policy check functions must be callable. 'PasswordCannotMatchBlacklist' isn't callable.
Backtrace: #0 /var/www/my.site/public_html/mediawiki-1.35.0/includes/user/User.php(1090): UserPasswordPolicy->__construct() #1 /var/www/my.site/public_html/mediawiki-1.35.0/includes/auth/AbstractPasswordPrimaryAuthenticationProvider.php(109): User->checkPasswordValidity() #2 /var/www/my.site/public_html/mediawiki-1.35.0/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php(153): MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider->checkPasswordValidity() #3 /var/www/my.site/public_html/mediawiki-1.35.0/includes/auth/AuthManager.php(467): MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider->beginPrimaryAuthentication() #4 /var/www/my.site/public_html/mediawiki-1.35.0/includes/auth/AuthManager.php(397): MediaWiki\Auth\AuthManager->continueAuthentication() #5 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(372): MediaWiki\Auth\AuthManager->beginAuthentication() #6 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep() #7 /var/www/my.site/public_html/mediawiki-1.35.0/includes/htmlform/HTMLForm.php(707): AuthManagerSpecialPage->handleFormSubmit() #8 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit() #9 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/LoginSignupSpecialPage.php(319): AuthManagerSpecialPage->trySubmit() #10 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/SpecialPage.php(600): LoginSignupSpecialPage->execute() #11 /var/www/my.site/public_html/mediawiki-1.35.0/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run() #12 /var/www/my.site/public_html/mediawiki-1.35.0/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath() #13 /var/www/my.site/public_html/mediawiki-1.35.0/includes/MediaWiki.php(940): MediaWiki->performRequest() #14 /var/www/my.site/public_html/mediawiki-1.35.0/includes/MediaWiki.php(543): MediaWiki->main() #15 /var/www/my.site/public_html/mediawiki-1.35.0/index.php(53): MediaWiki->run() #16 /var/www/my.site/public_html/mediawiki-1.35.0/index.php(46): wfIndexMain() #17 {main}
I've never run into this fault before and am not sure how best to correct it. Any thoughts/guidance would be greatly appreciated! Huwmanbeing (talk) 23:25, 10 October 2020 (UTC)
- Corrected. (Updating my LocalSettings.php with the more recent PasswordPolicy block (from DefaultSettings.php) solved it.) Huwmanbeing (talk) 00:28, 11 October 2020 (UTC)
Solved: "Cannot connect to database" after upgrade to 1.35.0
RESOLVED | |
In LocalSettings.php, user changed $wgDBmwschema from "mediawiki" to null, and the wiki page started displaying. |
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 LocalSettings.php, I changed $wgDBmwschema from "mediawiki" to null, and the wiki page started displaying. 2001:4998:EFFD:7F06:0:0:0:106E (talk) 01:56, 11 October 2020 (UTC)
Replacing deprecated wgParser in SimpleTable extension, avoiding clash with Maps extension
RESOLVED | |
It needed a rewrite of the extension application process, new code here |
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.
Extension:SimpleTable installs itself with
public function __construct() { global $wgParser; $wgParser->setHook('tab', array(&$this, 'hookTab')); }
But this was deprecated with mediawiki 1.32, and while it works in 1.34 with 1.35 it stops Extension:Maps working, presumably because both use pseudo html tags.
I find both extensions very useful and am prepared to try and get SimpleTable working again. Manual:$wgParser says use MediaWikiServices::getInstance()->getParser(), but I can't find any more advice on what changes might be needed. Is there a simple guide for a php and mediawiki coding novice? Vicarage (talk) 10:46, 12 October 2020 (UTC)
- That might be all that is needed. Have you tried
- ☠MarkAHershberger☢(talk)☣ 15:16, 12 October 2020 (UTC)
use MediaWiki\MediaWikiServices; public function __construct() { $parser = MediaWikiServices::getInstance()->getParser(); $parser->setHook('tab', array(&$this, 'hookTab')); }
- Thanks for taking an interest. Doing that (well moving the use out of the SimpleTable class to the top of the file) allows SimpleTable to continue working without the wgParser warning, bus sadly Maps still won't work, displaying the text
{{#display_map:center=Brandenburg Gate, Berlin, Germany}} <display_map height="150px" scrollwheelzoom="off" service="leaflet"> Gent, Belgie~The city Ghent~Ghent is awesome~ ~ ~Ghent Brussel~The city Brussel~The capital of Belgium~ ~ ~Brussels Antwerp~The city Antwerp~ ~ ~ ~Antwerp </display_map>
- rather than the maps
- It seems that the mere presence of the hookTab function is enough to upset it, as cutting the function down to
public function hookTab($tableText, $argv, $parser) { $HTML = "bother"; return $HTML; }
- is enough to stop the Maps appearing Vicarage (talk) 16:27, 12 October 2020 (UTC)
- The global parser thing should actually be changed to use ParserFirstCallInit hook (there are edge cases where using MediaWikiServices might not work if there are multiple instances of Parser about) Bawolff (talk) 01:21, 13 October 2020 (UTC)
- It took ages to fix this, as I had to rewrite the registration process for SimpleTable to use extension.json and Tag extensions approach. See here for my solution. Given I don't understand php or mediawiki internals, that was painful. Bawolff was right. Vicarage (talk) 16:02, 30 October 2020 (UTC)
ページデータの取り込み時に内部エラーが発生する
Mediawiki 1.31から先日1.35へとアップグレードしたのですが、それまで使えていたページ取り込み機能が使えなくなり、以下のような内部エラーが表示されます。
エラーの原因を自力で解決しようと調べたのですが、まったく原因がわからなかったためここに書き込ませていただきます。
[X4RURY1fRvv6foXbG6muxwAAAbY] /wiki/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%87%E3%83%BC%E3%82%BF%E5%8F%96%E3%82%8A%E8%BE%BC%E3%81%BF&action=submit Exception from line 68 of /virtual/tzwiki/public_html/wiki/includes/import/WikiImporter.php: Import requires PHP to have been compiled with libxml support
Backtrace:
#0 /virtual/tzwiki/public_html/wiki/includes/specials/SpecialImport.php(202): WikiImporter->__construct(ImportStreamSource, GlobalVarConfig)
#1 /virtual/tzwiki/public_html/wiki/includes/specials/SpecialImport.php(118): SpecialImport->doImport()
#2 /virtual/tzwiki/public_html/wiki/includes/specialpage/SpecialPage.php(600): SpecialImport->execute(NULL)
#3 /virtual/tzwiki/public_html/wiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#4 /virtual/tzwiki/public_html/wiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#5 /virtual/tzwiki/public_html/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#6 /virtual/tzwiki/public_html/wiki/includes/MediaWiki.php(543): MediaWiki->main()
#7 /virtual/tzwiki/public_html/wiki/index.php(53): MediaWiki->run()
#8 /virtual/tzwiki/public_html/wiki/index.php(46): wfIndexMain()
#9 {main} Srpz007 (talk) 13:15, 12 October 2020 (UTC)
- You need to install php-xml for the import to work.
- インポートを機能させるには、php-xmlをインストールする必要があります。
- (Translation via google translate.) ☠MarkAHershberger☢(talk)☣ 15:21, 12 October 2020 (UTC)
- ご指摘ありがとうございます。php-xmlがインストールされているか確認しましたが、libxml 2.9.1がインストールされていることが確認できましたが、機能しません。
- アップグレード時に何か間違ったことをしてしまったのでしょうか? Srpz007 (talk) 08:42, 14 October 2020 (UTC)
- @Srpz007 You need php-xml. Not libxml. php-xml is not libxml. Malyacko (talk) 10:02, 14 October 2020 (UTC)
- 勘違いしてlibxmlを確認していました。申し訳ございません。再度確認したところ、php-xmlもインストールされていることを確認しました。
- ファイルをアップロードすると、
Class 'XMLReader' not found
と出てしまい、こちらもエラーとなります。Project:Support desk/Flow/2020/02#h-ファイルのアップロードにて-2020-02-20T12:40:00.000Z とほぼ同一の事例のようですが、解決方法がわかりません。 Srpz007 (talk) 16:17, 14 October 2020 (UTC) - Did you restart your server after installing php-xml? If you're on a command line and type
php -i | grep XMLReader
do you see "XMLReader => enabled
"? ☠MarkAHershberger☢(talk)☣ 16:24, 15 October 2020 (UTC)
Após eu tirar o GeoData minha wiki da erro
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.
Após eu tirar o wfLoadExtension( 'GeoData' ) do meu localSettings a wiki apresenta o seguinte erro:
[X4ReILmwK2YAADneliIAAAFQ] / Wikimedia \ Rdbms \ DBQueryError da linha 1603 de /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/rdbms/database/Database.php: Ocorreu um erro de consulta de banco de dados. Você se esqueceu de executar o atualizador do esquema do banco de dados do seu aplicativo após a atualização?
Para evitar a criação de lag replicação alta, esta operação foi abortada porque a duração de gravação ($ 1) excedeu o limite de $ 2 segundos. Se você está mudando muitos itens de uma vez, tente fazer várias operações menores em vez disso. \ "; '), (' Pt-br ',' messages: laggedslavemode ',' s: 78: \" Aviso: a página pode não conter atualizações recentes. \ "; '), (' pt-br ',' messages: readonly ',' s: 23: \" Banco de dados trancado \ "; '), (' pt-br ',' messages: enterlockreason ',' s: 105: \ "Entre com um motivo para trancá-lo, incluindo uma estimativa de quando pode ser novamente destrancado \"; '), (' pt-br ',' mensagens: readonlytext ',' s: 274: \ " Os dados seguintes encontrados-se armazenados na \ '\' cache \ '\' e podem não estar disponíveis. No máximo $ 1 resultados estão disponíveis na \ '\' cache \ '\'. \ "; '), (' Pt-br ',' messages: perfcachedts ',' s: 187: \ "Os seguintes dados obtidos-se armazenados no \ '\' cache \ '\' e foram impressos como $ 1. No máximo $ 4 resultados estão disponíveis no \ '\' cache \ '\'. \ "; '), (' pt-br ',' messages: querypage-no-updates ',' s: 140: \" Momentaneamente as atualizações para esta página estão desativadas. Por enquanto , os dados aqui presentes não foram selecionados. \ "; '), (' pt-br ',' messages: querypage-updates-periodical ',' s: 67: \"contra novas edições ou ações relacionadas. \ "; '), (' pt-br ',' mensagens: viewsourcetext ',' s: 48: \" Você pode ver e copiar o código desta página. \ "; '), ( 'pt-br', 'messages: viewyourtext', 's: 80: \ "Você pode ver e copiar o código fonte \' \ '\' das suas edições \ '\' \ 'a esta página. \";' ), ('pt-br', 'messages: protectedinterface', 's: 263: \ "Esta página oferece texto de interface ao software deste wiki, se encontrando protegida para prevenir abusos. \ n \ nPara adicionar ou alterar traduções em todos os wikis, utilize o translatewiki.net, projeto de traduções do MediaWiki. \ "; '), (' pt-br ',' messages: editando interface ',' s: 234: \ "\'\'\'Aviso:\'\'\'Você se encontra prestes a editar uma página que é utilizada para fornecer texto de interface ao software. \ NAlterações nesta página afetam a aparência da interface de usuário para outros usuários desta wiki. \ "; '), (' Pt-br ', 'messages: translateinterface', 's: 164: \ "Para adicionar ou modificar traduções para todas as wikis, por favor use translatewiki.net, o de localização do MediaWiki. \"; '), (' pt-br ',' messages: cascadeprotected ',' s: 205: \ "Esta página foi protegida contra edições porque é transcluída nas próximas páginas que estão protegidas com a opção \ "em cascata \" ativada: $ 2 \ "; '), (' pt-br ',' messages: namespaceprotected ',' s: 78: \"Você não possui permissão para editar páginas no espaço nominal \ '\' \ '$ 1 \' \ '\'. \ "; '), (' Pt-br ',' messages: customcssprotected ',' s: 118: \" Você não tem permissão para editar esta página CSS, porque ele contém configurações pessoais de outro usuário. \ "; '), (' Pt-br ',' messages: customjsonprotected ',' s: 121: \" Você não tem permissão para editar esta página JSON porque ela contém as configurações pessoais de outro usuário. \ "; '), (' pt-br ',' messages: customjsprotected ',' s: 128: \" Você não tem permissão para editar esta página de JavaScript , porque ele contém configurações pessoais de outro usuário. \ "; '), (' pt-br ',' messages: sitecssprotected ',' s: 95: \"Não tem permissão para editar esta página de CSS porque ela pode afetar todos os visitantes. \ "; '), (' Pt-br ',' mensagens: sitejsonprotected ',' s: 96: \" Não tem permissão para editar esta página de JSON porque ela pode afetar todos os visitantes. \ "; '), (' pt-br ',' mensagens: sitejsprotected ',' s: 105: \" Você não tem permissão para editar esta página JavaScript porque ela pode afetar todos os visitantes. \ "; '), (' pt-br ',' messages: mycustomcssprotected ',' s: 54: \" Você não tem permissão para editar esta página CSS \ "; '), (' pt-br ' , 'messages: mycustomjsonprotected', 's: 56: \ "Você não tem permissão para editar esta página JSON. \";'), ('pt-br', 'messages: mycustomjsprotected', 's: 61: \ "Você não tem permissão para editar esta página JavaScript \ "; '), (' pt-br ',' messages: myprivateinfoprotected ',' s: 66: \" Você não tem permissão para editar suas informações privadas. \ "; ') , ('pt-br', 'messages: mypreferencesprotected', 's: 57: \ "Você não tem permissão para editar suas favoritas. \";'), ('pt-br', 'messages: ns-specialprotected' , 's: 43: \ "Não é possível editar páginas especiais \";'), ('pt-br', 'messages: titleprotected', 's: 124: \ "Este título foi protegido, para que não seja criado . \ nQuem o protegeu foi $ 1, com a justificativa: $ 2 . \ "; '), (' pt-br ',' messages: filereadonlyerror ',' s : 192: \ "Não é modificar possível o arquivo \" $ 1 \ "porque o repositório do arquivo \ "$ 2 \" está em modo somente leitura. \ n \ nO administrador de sistema que bloqueou ofereceu a seguinte explicação: \ "$ 3 \". \ "; '), (' pt-br ',' messages: invalidtitle ',' s: 17: \ "Título inválido \"; '), (' pt-br ',' messages: invalidtitle-knownnamespace ',' s: 58: \ "Título inválido para o espaço nominal \" $ 2 \ "e texto \" $ 3 \ "\"; '), (' pt-br ',' messages: invalidtitle-unknownnamespace ',' s: 82: \ "Título inválido para o espaço nominal de número desconhecido ($ 1) e texto \ "$ 2 \" \ "; '), (' pt-br ',' mensagens: exception-nologin ',' s: 22: \" Não está autenticado \ "; '), (' pt-br ' , 'messages: exception-nologin-text', 's: 65: \ "Por favor,faça login para poder acessar esta página ou ação. \ "; '), (' pt-br ',' messages: exception-nologin-text-manual ',' s: 62: \" Por favor clique $ 1 para poder acessar essa página ou ação. \ "; '), (' pt-br ',' messages: virus-badscanner ',' s: 51: \" Má configuração: antivírus desconhecido: \ '\' $ 1 \ '\' \ "; '), (' pt-br ',' messages: virus-scanfailed ',' s: 35: \ "a verificação falhou (código $ 1) \"; '), (' pt-br ',' messages: virus- unknownscanner ',' s: 24: \ "antivírus desconhecido: \"; '), (' pt-br ',' messages: logouttext ',' s: 196: \ "\ '\' \ 'Agora você encontra-se desautenticado. \ '\' \ '\ n \ nNote que algumas páginas podem continuar sendo exibidas como se você ainda estiver autenticado até que você limpe a \ '\' cache \ '\' do seu navegador. \ "; '), (' pt-br ',' messages : logout-notifica ',' s: 50: \ "Você está sendo desconectado, por favor aguarde. \"; '), (' pt-br ',' mensagens: logout-falhou ',' s: 32: \ "Não é possível sair agora: $ 1 \"; '), (' pt-br ',' messages: can'tlogoutnow-title ',' s: 42: \ "Não é possível encerrar a sessão agora \"; '), ('pt-br', 'messages: can'tlogoutnow-text', 's: 33: \ "Não é possível sair usando $ 1. \";'), ('pt-br', 'messages: welcomeuser', 's : 14: \ "Bem-vindo, $ 1! \"; '), (' Pt-br ',' messages: welcomecreation-msg ',' s: 124: \ "A sua conta foi criada. \ NNão se esqueça de personalizar as suas preferenciais no wiki MediaWiki. \ "; '), (' Pt-br ',' mensagens: seunome ', 's: 17: \ "Nome de usuário: \";'), ('pt-br', 'messages: userlogin-yourname', 's: 19: \ "Nome de usuário (a) \";') , ('pt-br', 'messages: userlogin-yourname-ph', 's: 31: \ "Escreva seu nome de usuário (a) \";'), ('pt-br', 'messages: createacct -another-username-ph ',' s: 27: \ "Forneça o nome de usuário \"; '), (' pt-br ',' messages: yourpassword ',' s: 6: \ "Senha: \" ; '), (' pt-br ',' messages: userlogin-yourpassword ',' s: 5: \ "Senha \"; '), (' pt-br ',' messages: userlogin-yourpassword-ph ', de: 16: \ "Digite sua senha \ "; '), (' pt-br ',' messages: createacct-yourpassword-ph ',' s: 16: \" Digite uma senha \ "; '), (' pt-br ',' messages: yourpassword novamente ',' s: 18: \ "Redigite sua senha \"; '), (' pt-br ',' messages: createacct-yourpassword novamente ',' s: 15: \ "Confirmar senha \"; ') , ('pt-br', 'messages: createacct-yourpassword-ph', 's: 24: \ "Digite a senha novamente \";'), ('pt-br', 'messages: userlogin-remembermypassword', 's: 24: \ "Mantenha-me conectado (a) \";'), ('pt-br', 'messages: userlogin-signwithsecure', 's: 21: \ "Use a conexão segura \";' ), ('pt-br', 'messages: can'tlogin-title', 's: 38: \ "Não é possível entrar com sua conta \";'), ('pt-br', 'mensagens: can'tlogin-text ',' s: 30: \ "Não é possível conectar-se. \"; '), (' pt-br ',' messages: can'tloginnow-title ',' s: 41: \ "Não é possível iniciar a sessão agora \ "; '), (' pt-br ',' messages: can'tloginnow-text ',' s: 39: \" Não é possível autenticar usando $ 1. \ "; '), (' pt -br ',' messages: can'tcreateaccount-title ',' s: 33: \ "Não é possível criar uma conta \"; '), (' pt-br ',' messages: can'tcreateaccount-text ',' s: 62 : \ "A criação direta de contas não está habilitada nessa wiki. \"; '), (' Pt-br ',' messages: yourdomainname ',' s: 13: \ "Seu domínio: \"; '), ( 'pt-br', 'messages: password-change-forbidden', 's: 42: \ "Você não pode alterar senhas nessa wiki. \";'), ('pt-br', 'messages: externaldberror', 's: 117: \ "Ocorreu ou um erro no banco de dados durante a autenticação ou não lhe é permitido atualizar a sua conta externa. \";'), ('pt-br', ' mensagens: login ',' s: 13: \ "Autenticar-se \"; '), (' pt-br ',' mensagens: login-security ',' s: 24: \ "Verificar identidade \"; ' ), ('pt-br', 'messages: nav-login-createaccount', 's: 20: \ "Entrar / criar conta \";'), ('pt-br', 'messages: logout', ' s: 4: \ "Sair \"; '), (' pt-br ',' messages: userlogout ',' s: 4: \ "Sair \"; '), (' pt-br ',' messages: notloggedin ',' s: 19: \ "Não autenticado (a) \"; '), (' pt-br ',' messages: userlogin-noaccount ',' s: 22: \ "Não possui uma conta? \" ; '),('pt-br', 'messages: userlogin-joinproject', 's: 32: \ "Junte-se ao projeto MediaWiki \";'), ('pt-br', 'messages: createaccount' , 's: 11: \ "Criar conta \";'), ('pt-br', 'messages: userlogin-resetpassword-link', 's: 19: \ "Esqueceu sua senha? \";'), ('pt-br', 'messages: userlogin-helplink2', 's: 17: \ "Ajuda com o login \";'), ('pt-br', 'messages: userlogin-loggingin', 's: 115: \ "Você já está conectado como $ 1. \ NUse o formulário abaixo para iniciar sessão como outro usuário. \"; '), (' Pt-br ',' messages: userlogin-reauth ',' s: 71: \ "Deve iniciar novamente a sessão para verificar se é $ 1. \"; '), (' pt-br ',' messages: userlogin-createanother ',' s: 20:\ "Crie uma outra conta \"; '), (' pt-br ',' messages: createacct-emailrequired ',' s: 19: \ "Endereço de e-mail \"; '), (' pt-br ',' messages: createacct-emailoptional ',' s: 30: \ "Endereço de e-mail (opcional) \"; '), (' pt-br ',' messages: createacct-email-ph ',' s : 32: \ "Confirme seu endereço de e-mail \"; '), (' pt-br ',' messages: createacct-another-email-ph ',' s: 30: \ "Forneça o endereço de e- mail \ "; '), (' pt-br ',' messages: createaccountmail ',' s: 102: \" Usar uma senha aleatória e temporária que será enviada ao endereço de e-mail especificado a seguir \ "; ') , ('pt-br', 'messages: createaccountmail-help', 's: 76: \ "Pode ser usado para criar uma conta para outra pessoa sem saber a senha.\ "; '), (' pt-br ',' messages: createacct-realname ',' s: 20: \" Nome real (opcional) \ "; '), (' pt-br ',' messages: createacct -razão ',' s: 29: \ "Motivo (entrado publicamente) \"; '), (' pt-br ',' messages: createacct-reason-ph ',' s: 39: \ "Por que você está criando outra conta \ "; '), (' pt-br ',' messages: createacct-reason-help ',' s: 51: \" Mensagem mostrada no registro de criação de conta \ "; '), (' pt -br ',' messages: createacct-submit ',' s: 14: \ "Crie sua conta \"; '), (' pt-br ',' messages: createacct-another-submit ',' s: 11: \ "Criar conta \"; '), (' pt-br ',' mensagens: createacct-continue-submit ',' s: 28: \ "Continuar criação de conta \"; '), (' pt-br ' , 'mensagens: createacct-another-continue-submit ',' s: 28: \ "Continuar criação de conta \"; '), (' pt-br ',' messages: createacct-benefício-header ',' s: 45: \ "MediaWiki é feito por pessoas como você. \"; '), (' Pt-br ',' messages: createacct-benefício-body1 ',' s: 32: \ "edições \ "; '), (' pt-br ',' messages: createacct-benef-body2 ',' s: 30: \" páginas \ "; ' ), ('pt-br', 'messages: createacct-benef-body3', 's: 50: \ "contribuidores recentes \";'), ('pt-br' , 'messages: badretype', 's: 45: \ "As senhas que você digitou não são iguais. \";'), ('pt-br', 'messages: usernameinprogress', 's: 93: \ "Uma criação da conta para este nome de usuário já está em andamento. \ NPor favor, aguarde. \ "; '), (' Pt-br ',' messages: userexists ',' s: 73: \" O nome de usuário fornecido já está em uso. \ nEscolha um nome diferente. \ "; '), (' pt-br ',' messages: createacct-normalization ',' s: 80: \" O seu nome de usuário será conectado para \ " $ 2 \ "devido a restrições técnicas. \"; '), (' Pt-br ',' messages: loginerror ',' s: 22: \ "Erro de autenticação \"; '), (' pt-br ', 'messages: createacct-error', 's: 21: \ "Erro ao criar uma conta \";'), ('pt-br', 'messages: createaccounterror', 's: 36: \ "Não foi possível criar a conta: $ 1 \ "; '), (' pt-br ',' messages: nocookiesnew ',' s: 269: \" A conta do usuário foi criada,mas você não foi autenticado. \ n MediaWiki utiliza \ '\' cookies \ '\' para autenticar os usuários. \ nVocê tem os \ '\' cookies \ '\' desativados no seu navegador. \ nPor favor ativo -os, depois autentique-se com o seu novo nome de usuário e a sua senha. \ "; '), (' pt-br ',' messages: nocookieslogin ',' s: 176: \" Você tem os cookies desativados no seu navegador, ea MediaWiki utiliza cookies para ligar os usuários às suas contas. Por favor os ative e tente novamente. \ "; '), (' pt -br ',' messages: nocookiesfornew ',' s: 174: \ "A conta de usuário não foi criada porque não foi possível confirmar a sua origem. \ nCertifique-se de que tem os cookies ativados, recarregue esta página e tente novamente . \ "; '), (' pt-br ',' mensagens:nocookiesforlogin ',' s: 22: \ "MediaWiki uses cookies to log in users. You have cookies disabled. Please enable them and try again. \"; '), (' pt-br ',' messages: createacct-loginerror ',' s: 151: \ "A conta foi criada com final, mas não pôde ser autenticado automaticamente. Por favor, faça o início de sessão manualmente. \ "; '), (' pt-br ',' messages: noname ',' s: 47 : \ "Você não colocou um nome de usuário válido. \"; '), (' Pt-br ',' messages: loginsuccesstitle ',' s: 11: \ "Autenticado \"; '), (' pt-br ',' messages: loginsuccess ',' s: 91: \ "\ '\' \ 'Agora você está autenticado ao wiki MediaWiki como \" $ 1 \ "\' \ '\'. \ "; '), (' pt-br ',' messages: nosuchuser ',' s: 187: \" Não existe nenhum usuário com o nome \ "$ 1 \".\ nOs nomes de usuário são específicos a letras maiúsculas. \ nVerifique se digitou corretamente ou crie uma nova conta. \ "; '), (' pt-br ',' messages: nosuchusershort ',' s: 73: \ "Não existe um usuário com o nome \" $ 1 \ ". Verifique o nome que introduziu. \"; '), (' pt-br ',' messages: nouserspecified ',' s: 46: \ "Você precisa especificar um nome de usuário. \"; '), (' Pt-br ',' messages: login-userblocked ',' s: 48: \ "Este usuário está bloqueado. Entrada proibida. \"; ') , ('pt-br', 'messages: wrongpassword', 's: 75: \ "Nome de usuário ou senha incorretos inseridos. \ nPor favor, tente novamente. \";'), ('pt-br', ' messages: wrongpasswordempty ',' s: 51: \ "Foi implementada uma senha em branco.\ n renovados novamente. \ "; '), (' pt-br ',' messages: passwordtooshort ',' s: 71: \" As senhas devem ter no mínimo $ 1 caracteres. \ "; '), (' pt-br ',' messages: passwordtoolong ',' s: 77: \" Senhas não podem ser maiores do que $ 1 caracteres. \ "; '), (' pt-br ',' messages: passwordtoopopular ',' s: 102: \ "Não podem ser usadas senha vulgares. Escolha uma palavra-passe mais difícil de adivinhar, por favor. \"; '), ( 'pt-br', 'messages: passwordinlargeblacklist', 's: 104: \ "A senha digitada está na lista de senhas comumente usadas. Por favor, escolha uma senha mais exclusiva. \";'), ('pt-br ',' messages: password-name-match ',' s: 55: \ "A sua senha deve ser diferente de seu nome de usuário.\ "; '), (' pt-br ',' messages: password-login-forbidden ',' s: 55: \" O uso deste nome de usuário e senha foi desautorizado. \ "; '), (' pt -br ',' messages: mailmypassword ',' s: 15: \ "Redefinir senha \"; '), (' pt-br ',' messages: passwordremindertitle ',' s: 38: \ "Nova senha temporária em { {SITENAME}} \ "; '), (' pt-br ',' messages: passwordremindertext ',' s: 496: \" Alguém (a partir do endereço IP $ 1) solicitou uma senha nova para a sua conta na wiki { {SITENAME}} ($ 4). \ NFoi criada a senha temporária \ "$ 3 \" para o usuário \ "$ 2 \". \ NSe o pedido feito por si, entre agora na sua conta e escolha uma palavra-passe nova. \ nA palavra-passe temporária expira após $ 5 dias. \ n \ nCaso outra pessoa tenha feito o pedido,ou se entretanto se registrou da sua senha e já não deseja alterá-la, ignorar esta mensagem e continuar a utilizar uma senha antiga. \ "; '), (' pt-br ',' mensagens: noemail ',' s: 59 : \ "Não há um endereço de e-mail associado ao usuário \" $ 1 \ ". \"; '), (' Pt-br ',' messages: noemailcreate ',' s: 53: \ "Você precisa fornecer um endereço de e-mail válido \ "; '), (' pt-br ',' mensagens: passwordsent ',' s: 122: \" Uma nova senha está sendo enviada para o endereço de e-mail registrado para \ "$ 1 \ ". \ nPor favor, reconecte-se ao recebê-lo. \"; '), (' pt-br ',' messages: emailpassword bloqueado ',' s: 147: \ "O seu endereço de IP foi bloqueado para editar. Para evitar abusos, não é permitido o uso de recuperação de senha a partir deste endereço IP. \ ";'), (' pt-br ',' messages: eauthentsent ',' s: 239: \ "Uma mensagem de segurança foi enviada para o endereço de e-mail fornecido. \ nAntes de qualquer outro e-mail enviado para a sua conta, você seguirá as instruções da mensagem, de modo a confirmar que a conta é mesmo sua. \ "; '), (' pt-br ',' messages: throttled-mailpassword ',' s: 186: \" Um lembrete de senha já enviado nas últimas $ 1 horas. \ NPara prevenir abusos, apenas um lembrete pode ser enviado a cada $ 1 horas. \ "; '), (' pt-br ',' messages: mailerror ',' s: 25: \" Erro a enviar o email: $ 1 \ "; '), (' pt-br ',' messages: acct_creation_throttle_hit ',' s: 275: \ "Visitantes desta wiki com endereço IP igual ao seu criaram $ 1 contas nos últimos (ou últimas) $ 2, o que é o máximo permitido neste período de tempo. \ NComo resultado, visitantes com este endereço IP não podem criar mais nenhuma conta no momento. \ "; ' ), ('pt-br', 'messages: emailauthenticated', 's: 55: \ "O seu endereço de e-mail foi autenticado às $ 3 de $ 2. \";'), ('pt-br', ' mensagens: emailnotauthenticated ',' s: 135: \ "O seu endereço de e-mail ainda não foi autenticado. \ nNão será enviado nenhum e-mail sobre nenhuma das seguintes características. \"; '), (' pt-br ',' messages: noemailprefs ',' s: 76: \ "Especifique um endereço de e-mail para os seguintes recursos funcionem. \"; '), (' pt-br ',' messages: emailconfirmlink ',' s : 34: \ "Confirme o seu endereço de e-mail \"; '), ('pt-br ',' messages: invalidemailaddress ',' s: 160: \ "O endereço de \ '\' e-mail \ '\' não pode ser aceite devido a talvez possuir um inválido formato. Por favor, introduza um endereço bem formatado ou esvazie o campo. \ "; '), (' pt-br ',' messages: can'tchangeemail ',' s: 52: \" A conta de e-mail não pode ser alterada neste wiki. \ "; ' ), ('pt-br', 'messages: emaildisabled', 's: 39: \ "Este site não tem como enviar e-mails. \";'), ('pt-br', 'messages: accountcreated' , 's: 12: \ "Conta criada \";'), ('pt-br', 'messages: accountcreatedtext', 's: 89: \ "A conta de usuário para $ 1 ( talk) foi criada. \ "; '), (' Pt-br ',' messages: createaccount-title ',' s : 34: \ "Criação de conta em MediaWiki \ "; '), (' pt-br ',' messages: createaccount-text ',' s: 225: \" Alguém criou uma conta de nome $ 2 para o seu endereço de email no wiki MediaWiki ($ 4), tendo como senha \ "$ 3 \". \ nVocê deve se autenticar e alterar sua senha. \ n \ nIgnore esta mensagem caso a tenha conta criada por engano. \ "; ') , ('pt-br', 'messages: login-throttled', 's: 103: \ "Você tentou iniciar sessão muitas vezes. \ nPor favor aguarde $ 1 antes de tentar novamente. \";'), ('pt -br ',' messages: login-abort-generic ',' s: 48: \ "A sua autenticação não teve êxito - Abortada \"; '), (' pt-br ',' messages: login-migrated-generic ',' s: 76: \ "A sua conta foi migrada e o seu nome de usuário já não nesta wiki. \"; '),('pt-br', 'messages: loginlanguagelabel', 's: 10: \ "Idioma: $ 1 \";'), ('pt-br', 'messages: suspicious-userlogout', 's: 135: \ "Sua solicitação para sair foi negada porque aparentemente foi enviada por um navegador problemático ou por um servidor proxy com cache. \"; '), (' Pt-br ',' messages: createacct-another-realname-tip ',' s : 141: \ "O nome verdadeiro é opcional. \ NSe você fonte por fornecê-lo, este nome será utilizado para dar ao usuário a período de seu trabalho. \"; '), (' Pt-br ',' messages: pt-login ',' s: 6: \ "Entrar \"; '), (' pt-br ',' mensagens: pt-login-botão ',' s: 6: \ "Entrar \"; '), ('pt-br', 'messages: pt-login-continue-button', 's: 18: \ "Continuar conexão \";'), ('pt-br', 'messages: pt-createaccount ',' s: 14: \ "Crie uma conta \"; '), (' pt-br ',' messages: pt-userlogout ',' s: 4: \ "Sair \"; ' )
Função: LCStoreDB :: finishWrite
Erro: 1142 Comando INSERT negado ao usuário '3608761_wiki'@'185.176.43.102' para a tabela 'l10n_cache' (fdb29.awardspace.net)
Backtrace:
- 0 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/rdbms/database/Database.php(1574): Wikimedia \ Rdbms \ Database-> getQueryExceptionAndLog (string, inteiro, string, string)
- 1 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/rdbms/database/Database.php(1152): Wikimedia \ Rdbms \ Database-> reportQueryError (string, inteiro, string, string, booleano)
- 2 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/rdbms/database/Database.php(2140): Wikimedia \ Rdbms \ Database-> query (string, string)
- 3 / srv / disk7 / 3608761 / www / wikiquedia.atwebpages.com / includes / libs / rdbms / database / DBConnRef.php (68): Wikimedia \ Rdbms \ Database-> insert (string, array, string)
- 4 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/rdbms/database/DBConnRef.php(371): Wikimedia \ Rdbms \ DBConnRef -> __ call (string, array)
- 5 / srv / disk7 / 3608761 / www / wikiquedia.atwebpages.com / includes / cache / localization / LCStoreDB.php (98): Wikimedia \ Rdbms \ DBConnRef-> insert (string, array, string)
- 6 / srv / disk7 / 3608761 / www /wikiquedia.atwebpages.com/includes/cache/localisation/LocalisationCache.php(1042): LCStoreDB-> finishWrite ()
- 7 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/cache/localisation/LocalisationCache .php (489): LocalisationCache-> recache (string)
- 8 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/cache/localisation/LocalisationCache.php(363): LocalisationCache-> initLanguage (string)
- 9 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache-> loadItem (string, string)
- 10 / srv / disk7 / 3608761 / www / wikiquedia.atwebpages.com/languages/Language.php(4413): LocalisationCache-> getItem (string, string)
- 11 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/languages/Language.php(265): Language :: getFallbacksFor (string)
- 12 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/languages/Language.php(225): Language :: newFromCode (string)
- 13 / srv / disk7 / 3608761 / www /wikiquedia.atwebpages.com/includes/ServiceWiring.php(163): Language :: factory (string)
- 14 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/services/ServiceContainer.php(458): Wikimedia \ Services \ ServiceContainer -> {closure} (MediaWiki \ MediaWikiServices)
- 15 / srv / disk7 / 3608761 / www / wikiquedia.atwebpages.com / includes / libs / services / ServiceContainer.php (427): Wikimedia \ Services \ ServiceContainer-> createService (string)
- 16 /srv/disk7/3608761/www/wikiquedia.atwebpages .com / includes / MediaWikiServices.php (540): Wikimedia \ Services \ ServiceContainer-> getService (string)
- 17 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/Setup.php(800): MediaWiki \ MediaWikiServices-> getContentLanguage ()
- 18 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/WebStart.php(81): require_once (string)
- 19 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/index.php(41): require (string)
- 20 {main} Gustavo Borges Matos (talk) 13:50, 12 October 2020 (UTC)
- You need to run update.php. ☠MarkAHershberger☢(talk)☣ 15:22, 12 October 2020 (UTC)
- @MarkAHershberger eu já tentei atualizar várias vezes pela web http://example.com/mw-config/index.php e apareçe que eu já posso usar a wiki mas quando entro na wiki continua a mesma coisa. Gustavo Borges Matos (talk) 16:20, 12 October 2020 (UTC)
- Can you run update.php from the command line? ☠MarkAHershberger☢(talk)☣ 13:38, 15 October 2020 (UTC)
- @MarkAHershberger Yes Gustavo Borges Matos (talk) 20:58, 15 October 2020 (UTC)
I am using mediawiki in mobile and search suggestion not showing in android.
RESOLVED | |
Unrelated to MediaWiki software for which this is the help desk. |
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 using mediawiki in my mobile version 1.34. top search bar not give suggestion on typing only give if paste any word.
it´s working on iphone and desktop. also working when we debag and use laptop-desktop keyboard in mobile but not working when using android mobile keyboard. 122.168.243.143 (talk) 15:08, 12 October 2020 (UTC)
- If Android's mobile keyboard is broken then you need to talk to Android, I'm afraid. Malyacko (talk) 10:03, 14 October 2020 (UTC)
How do I configure MediaWiki sending mail?
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.
So sending mail to users when they register and so on?
Yes, I read https://www.mediawiki.org/wiki/Email and Category:Email variables and Manual:Configuration settings#Email settings. So I've to set $wgEnableEmail to 'true'. But what more? I cannot find a clear description.
Special:CreateAccount gives "MWException from line 358 of /home/evm/mediawiki/core/includes/mail/UserMailer.php: PEAR mail package is not installed". So I have to install a package? https://pear.php.net/package/Mail? 2017? ...
Help is appreciated.
Regards, Jethro Waanders (talk) 18:55, 12 October 2020 (UTC)
- you should only need PEAR mail if using SMTP for your mail sending Bawolff (talk) 20:51, 12 October 2020 (UTC)
- Thanks!
- I tried using $wgSMTP, after removing this e-mail is send (notification confirmation mail after create account), PEAR-message disappeared. So this works out of the box? Why should I use SMTP? And how does this work? MediaWiki core uses PHP mail() function? Waanders (talk) 09:15, 13 October 2020 (UTC)
- yes, mediawiki by default uses php mail() which uses system mail facilities. Some people prefer to use smtp. You should use whatever you prefer. Bawolff (talk) 16:12, 13 October 2020 (UTC)
- Thanks, works fine now, set $wgSMTP to false. Mail is send by Postfix. Waanders (talk) 16:07, 15 October 2020 (UTC)
[resolved] Error Message
RESOLVED | |
needed to update semantic mediawiki to 3.2. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Getting the following. Any suggestions?
[dfa73d4a65b8fa7af6e802e9] /index.php?title=Main_Page TypeError from line 152 of /var/www/prod/wiki/includes/parser/ParserCache.php: Argument 1 passed to ParserCache::getETag() must be an instance of WikiPage, instance of Article given, called in /var/www/prod/wiki/extensions/SemanticMediaWiki/src/MediaWiki/Hooks.php on line 646
Backtrace:
#0 /var/www/prod/wiki/extensions/SemanticMediaWiki/src/MediaWiki/Hooks.php(646): ParserCache->getETag(Article, ParserOptions)
#1 /var/www/prod/wiki/includes/HookContainer/HookContainer.php(320): SMW\MediaWiki\Hooks->onArticleViewHeader(Article, boolean, boolean)
#2 /var/www/prod/wiki/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#3 /var/www/prod/wiki/includes/HookContainer/HookRunner.php(886): MediaWiki\HookContainer\HookContainer->run(string, array)
#4 /var/www/prod/wiki/includes/page/Article.php(719): MediaWiki\HookContainer\HookRunner->onArticleViewHeader(Article, boolean, boolean)
#5 /var/www/prod/wiki/includes/actions/ViewAction.php(74): Article->view()
#6 /var/www/prod/wiki/includes/MediaWiki.php(527): ViewAction->show()
#7 /var/www/prod/wiki/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
#8 /var/www/prod/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#9 /var/www/prod/wiki/includes/MediaWiki.php(543): MediaWiki->main()
#10 /var/www/prod/wiki/index.php(53): MediaWiki->run()
#11 /var/www/prod/wiki/index.php(46): wfIndexMain()
#12 {main} 68.110.86.107 (talk) 20:46, 12 October 2020 (UTC)
- its a bug in semantic mediawiki. Check to make sure your version of semantic mediawiki corresponds to your version of mediawiki. If that doesnt resolve it, complain to semantic mediawiki people. Bawolff (talk) 20:50, 12 October 2020 (UTC)
- huh ok. thanks. 68.110.86.107 (talk) 20:51, 12 October 2020 (UTC)
- Turns out I needed to update semantic mediawiki to 3.2. 68.110.86.107 (talk) 00:29, 13 October 2020 (UTC)
I can't seem to figure out how to get images to work
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm migrating to a new server, and I've got the pages up and running. I moved the images to the new server and they all have the same file structure. I've given the folders 755 and files 644. Media wiki still can't seem to find the images. 68.110.86.107 (talk) 00:28, 13 October 2020 (UTC)
- ensure $wgUploadPath and $wgUploadDirectory is correct. Check that the webserver serves them, and on pages check the page source and that the img tags have the src attribute you expect them to.
- Also check if its just on ordinary pages or if it is also image description pages. Bawolff (talk) 00:56, 13 October 2020 (UTC)
- no luck.
- I'm just using the default directories for the images and uploads, so those variables weren't even set on my prior server.
- However, just to make sure I tried it correctly. the wiki is in a folder called wiki, but the domain hides that. so those variables should just be '/images'
- The images aren't show on any of the pages, or on their description pages. 68.110.86.107 (talk) 15:33, 13 October 2020 (UTC)
- Thanks,@Bawolff!
- When I view the source I have something like this:
- <a href="/index.php?title=File:Georgia-1822.jpg" class="mw-redirect" title="File:Georgia-1822.jpg">File:Georgia-1822.jpg</a>
- So no path to really verify.
- And on the description page, it just says "No file by this name exists, but you can upload it." So no path to inspect here either. 68.110.86.107 (talk) 15:45, 13 October 2020 (UTC)
- i'd reccomend changing those settings back to default if they are not the issue (in particular /images is probably not the right value for manual:$wgUploadDirectory, but from your description the defaults sound right)
- what happens if you go directly to the url of one of the images (e.g. if one of the images were in wiki/images/a/ab/image.jpg, what happens when you view mysite.com/images/a/ab/image.jpg ?) Bawolff (talk) 15:54, 13 October 2020 (UTC)
- 403 forbidden. So I'm guessing nginx is misconfigured somehow. 68.110.86.107 (talk) 16:08, 13 October 2020 (UTC)
- it might be that the permissions on the files themselves are wrong if you transferred between servers. Make sure the image directory (and files/subdirectories) are owned by the webserver and readable by it (using unix tools like chown and chmod) Bawolff (talk) 16:11, 13 October 2020 (UTC)
- ok so if I go do domain/images/0/01/William_Edwards_%281817%29_Headstone.jpg I get the image. However if I go to domain/index.php?title=File:William_Edwards_(1817)_Headstone.jpg it shows "No file by this name exists, but you can upload it
- Does that mean the mediawiki scripts cant read the directory? 68.110.86.107 (talk) 17:43, 13 October 2020 (UTC)
- checkImages.php says
- PHP Warning: Use of undefined constant NS_IMAGE - assumed 'NS_IMAGE' (this will throw an Error in a future version of PHP) in /var/www/prod/wiki/LocalSettings.php on line 208
- PHP Warning: Use of undefined constant NS_IMAGE_TALK - assumed 'NS_IMAGE_TALK' (this will throw an Error in a future version of PHP) in /var/www/prod/wiki/LocalSettings.php on line 209
- Good images: 0/0 68.110.86.107 (talk) 18:08, 13 October 2020 (UTC)
- I fixed the php warning ....
- still 0/0 good images 68.110.86.107 (talk) 18:12, 13 October 2020 (UTC)
- ok I have successfully loaded a new image, and it displays just fine. it's saving in the same directory as all the other images. I've verify the same permissions on the new file as all the old ones.
- It just seems as though mediawiki has decided the images don't exist so it's not even looking. 68.110.86.107 (talk) 19:30, 13 October 2020 (UTC)
- ok not sure what I did, but messing around with the nginx config let me run the import images script.
- That's lead me to some other things that need to be fixed, but at least it seems like the photos are recognized now. 68.110.86.107 (talk) 21:33, 13 October 2020 (UTC)
Flow error after upgrade to MW-1.35.0
$wgDBname
after migration.So I'm currently wrapping up my upgrade to MW-1.35.0 but I can't resolve this Flow error.
Flow seems fine on every page on my wiki EXCEPT the Main_page, which was the ONLY page that had actual comments on the talk page.
The error says: /w2/index.php?title=Talk:Main_Page Flow\Exception\UnknownWorkflowIdException from line 127 of /home/username/mysite.com/w2/extensions/Flow/includes/WorkflowLoaderFactory.php: The requested workflow does not exist on this wiki.
Here is the backtrace:
Backtrace |
---|
[X4VV0pVE93WnqlxhG9zRLQAAAAE] /w2/index.php?title=Talk:Main_Page Flow\Exception\UnknownWorkflowIdException from line 127 of /home/username/mysite.com/w2/extensions/Flow/includes/WorkflowLoaderFactory.php: The requested workflow does not exist on this wiki. Backtrace: #0 /home/username/mysite.com/w2/extensions/Flow/includes/WorkflowLoaderFactory.php(103): Flow\WorkflowLoaderFactory->loadWorkflowById(Title, Flow\Model\UUID) #1 /home/username/mysite.com/w2/extensions/Flow/includes/Actions/FlowAction.php(99): Flow\WorkflowLoaderFactory->createWorkflowLoader(Title) #2 /home/username/mysite.com/w2/extensions/Flow/includes/Actions/ViewAction.php(26): Flow\Actions\FlowAction->showForAction(string, OutputPage) #3 /home/username/mysite.com/w2/extensions/Flow/includes/Actions/FlowAction.php(49): Flow\Actions\ViewAction->showForAction(string) #4 /home/username/mysite.com/w2/includes/MediaWiki.php(527): Flow\Actions\FlowAction->show() #5 /home/username/mysite.com/w2/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title) #6 /home/username/mysite.com/w2/includes/MediaWiki.php(940): MediaWiki->performRequest() #7 /home/username/mysite.com/w2/includes/MediaWiki.php(543): MediaWiki->main() #8 /home/username/mysite.com/w2/index.php(53): MediaWiki->run() #9 /home/username/mysite.com/w2/index.php(46): wfIndexMain() #10 {main} |
I already tried running update.php and composer update --no-dev
to no avail.
I set both my upgraded wiki (mysite.com/w2) and my backup wiki (mysite.com/w) to use the home/user/tmp folder for the temp directory ($wgTmpDirectory) — could that be related at all...? Maybe I need to assign them to different folders?
Here's my plugin settings for reference:
Extension settings |
---|
# Flow + Echo + Thanks Settings wfLoadExtension( 'Echo' ); wfLoadExtension( 'Flow' ); wfLoadExtension( 'Thanks' ); $wgNamespaceContentModels[NS_TALK] = 'flow-board'; $wgNamespaceContentModels[NS_USER_TALK] = 'flow-board'; $wgGroupPermissions['administrator']['flow-create-board'] = true; $wgTmpDirectory = '/home/username/tmp/'; // Required to get Flow extension working |
Any ideas?
Relevant settings info:
Product | Version |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.4.3 (cgi-fcgi) |
MySQL | 5.7.28-log |
Extension:Flow | 1.2.0 (4c1f4e6) 16:49, 21 September 2020 |
$wgMainCacheType | CACHE_ACCEL (APCu 5.1.19) |
$wgSessionCacheType | CACHE_DB |
Knomanii (talk) 07:42, 13 October 2020 (UTC)
- Well I wasn't able to figure out what caused that so I just followed the Old Remnants instructions here: Extension:StructuredDiscussions#Old Remnants
- I was able to delete the entire discussion page and recreate it.
- But I'm still having issues with StructuredDiscussions.
- Clicking on any comment to edit, delete, or even permalink to it sends me to an "Undefined" page (mysite.com/w/undefined).
- Any ideas on how to resolve these issues with Flow / StructuredDiscussions?
- I'll leave the ticket open in case anyone has an idea of what to try.
- I don't use Memcached, only CACHE_ACCEL (APCu), so I also wonder if that has anything to do with it. Knomanii (talk) 23:13, 13 October 2020 (UTC)
- Ah, I figured out the cause of the issue and it was me. ;-)
- I had created a custom common.js script for a .mw-ui-button button, which was affecting ALL buttons, including those on StructuredDiscussions/Flow.
- I found the problematic rule in Event Listeners, then adjusted it in Common.js.
- Now Flow is working fine. Sorry to bother everyone. Knomanii (talk) 01:26, 19 October 2020 (UTC)
- I moved my wiki 1.34 to another hosting and when I deployed the database all messages in Structured Discussions disappeared, but when I tried to create a new discussion everything works fine, how can I get my messages back while the old wiki is still running where all the messages are still there?
- Such a message on all pages where messages were left in the discussions:
- =Unknown topic=
- Return to Main Page
- [ec6a92449bc3d4db30961b24] /wiki/%D0%9E%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5:%D0%9E%D1%82%D1%81%D1%82%D0%B0%D0%B2%D0%BD%D0%BE%D0%B9_%D0%9F%D0%BE%D0%BB%D0%BA%D0%BE%D0%B2%D0%BD%D0%B8%D0%BA Flow\Exception\UnknownWorkflowIdException from line 127 of /home/admin/web/so-wiki.ru/public_html/w/extensions/Flow/includes/WorkflowLoaderFactory.php: The requested workflow does not exist on this wiki.
- Backtrace:
- #0 /home/admin/web/so-wiki.ru/public_html/w/extensions/Flow/includes/WorkflowLoaderFactory.php(103): Flow\WorkflowLoaderFactory->loadWorkflowById(Title, Flow\Model\UUID)
- #1 /home/admin/web/so-wiki.ru/public_html/w/extensions/Flow/includes/Actions/Action.php(105): Flow\WorkflowLoaderFactory->createWorkflowLoader(Title)
- #2 /home/admin/web/so-wiki.ru/public_html/w/extensions/Flow/includes/Actions/ViewAction.php(20): Flow\Actions\FlowAction->showForAction(string, OutputPage)
- #3 /home/admin/web/so-wiki.ru/public_html/w/extensions/Flow/includes/Actions/Action.php(50): Flow\Actions\ViewAction->showForAction(string)
- #4 /home/admin/web/so-wiki.ru/public_html/w/includes/MediaWiki.php(511): Flow\Actions\FlowAction->show()
- #5 /home/admin/web/so-wiki.ru/public_html/w/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
- #6 /home/admin/web/so-wiki.ru/public_html/w/includes/MediaWiki.php(900): MediaWiki->performRequest()
- #7 /home/admin/web/so-wiki.ru/public_html/w/includes/MediaWiki.php(527): MediaWiki->main()
- #8 /home/admin/web/so-wiki.ru/public_html/w/index.php(44): MediaWiki->run()
- #9 {main} Rogue Vor tex (talk) 14:29, 13 March 2021 (UTC)
- As is often the case with MW, you need to dive in the code to figure out what is wrong.
- In
WorkflowLoaderFactory.php
: if ( $workflow->getWiki() !== wfWikiID() ) { throw new UnknownWorkflowIdException( 'The requested workflow does not exist on this wiki.' ); }
- A worklow stores it's associated wiki in database and it was likely identified by
$wgDBName
. If during migration$wgDBName
changed, it will throw this error. - To fix it, you need to restore your previous database name in
LocalSettings.php
. Tinss (talk) 00:20, 23 January 2022 (UTC)
I'm new to Semantic Mediawiki and need help
On a given page, I want to have multiple property values of the same property, have dates associated with each property value, so on another page, I can query all the property values, sorted by date.
I did lots of google searching and reading on Semantic Mediawiki and had trouble getting close to this. What I tried include two property values, on two different pages:
- [[Property::Property value]][[Property::Property value2]]
- [[Property::Property value]]
this inline query:
{{#ask: [[Property::+]] | ?property |format=ul }}
and this is the output:
Test Page 1 (Population: Property value, Property value2)
Test Page 2 (Population: Property value)
Is there a way to show different values for the same property in two bullet points or table cells (I prefer bullet points but I'm open to tables), and include dates for each property value so I could sort them in a query?
If you don't have ideas to build on what I got, then what kind of markup would I include on pages to annotate pieces of text with a label and date, and then query all the text with that label, sorted by date, on Semantic Mediawiki? So far this is very confusing.
I'm on Mediawiki version 1.35, PHP 7.4.10, MariaDB 10.4.14, and Semantic Mediawiki 3.2.0. YousufSSyed (talk) 08:01, 13 October 2020 (UTC)
- I think there are two possible solutions to this if you want to accumulate all properties on one single page.
- The first is to store properties as Records. But as records internally use Subobjects I think it would be more appropiate to use those directly.
- An example could look like the following:
{{#subobject: |Property value=value |Property date=date |... }}
- You'd need to add a subobject for each different data / date combination. Octfx (talk) 12:32, 13 October 2020 (UTC)
- This could work, but how I can display text with each subobject on the page with the subobject? YousufSSyed (talk) 14:28, 13 October 2020 (UTC)
- Then to print out the subobjects one would insert this code on the same page:
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] |?property1 |?property2 }}
- Documentation is found here: https://www.semantic-mediawiki.org/wiki/Help:Subobjects_and_queries :) Octfx (talk) 14:33, 13 October 2020 (UTC)
- Is there a way to display a property value in wikitext in a query? Like can I make == Heading ==, appear as an actual heading in a query? By the way, When I try
[[Property::~*Value*]]
in a query, It doesn't return property values containing the phrase, do you know what could be done? YousufSSyed (talk) 15:21, 13 October 2020 (UTC)
How to use DataTables in MediaWiki 1.34
Hi,
I need help with using Datatables in Mediawiki.
I have inserted the below code in the LocalSettings.php file
$wgResourceModules['DataTables'] = array(
'scripts' => array( '/extensions/DataTables/media/js/jquery.js','/extensions/DataTables/media/js/jquery.dataTables.min.js'),
'styles' => array( '/extensions/DataTables/media/css/jquery.dataTables.min.css'),
// could e.g. add dependencies on core modules here
);
// ...and set up a hook to add it to every page
function addDataTablesScript( &$out ) {
$out->addModules( 'DataTables' );
return true;
}
$wgHooks['BeforePageDisplay'][] = 'addDataTablesScript';
and In common.js file
$( document ).ready(function() {
$('.wikitable').DataTable();
});
Its throwing below error in console..
Uncaught TypeError: Cannot read property 'mData' of undefined
I have searched about this error, it saying it occured because of missing thead tag.
But in wikieditor there is option to insert <thead> tag, Tried with raw html table also, its not working.
Please help me on this, If anyone know how resolve this issue..
Thanks,
Vikas Vikasgunjeti (talk) 08:54, 13 October 2020 (UTC)
Module, Category & Template Setup
Hi My Self Mayur Bhatt.
I have recently build fresh mediawiki website https://wikidot.com.au/
I want to build page with Infobox but templates are not available. website hasn`t any template
So any one can help to Module, Category & Template Setup? 103.249.233.154 (talk) 09:06, 13 October 2020 (UTC)
- You'll have to start with Manual:Importing Wikipedia infoboxes tutorial. AhmadF.Cheema (talk) 11:00, 13 October 2020 (UTC)
- Thank you AhmadF.Cheema For guide.
- First i have copied
- I have created https://wikidot.com.au/wiki/MediaWiki:Common.css and others but while copied and publish
- https://en.wikipedia.org/wiki/MediaWiki:Common.js
- 403 Server error (Access to this resource on the server is denied!)
- I use filezilla too so any setup related it please share. 43.250.165.145 (talk) 14:15, 13 October 2020 (UTC)
- you should not be using filezilla to edit pages on your wiki like https://wikidot.com.au/wiki/MediaWiki:Common.js . Filezilla is for editing things like LocalSettings.php Bawolff (talk) 15:47, 13 October 2020 (UTC)
- Yes i know i was asking for fixing 403 Server error (Access to this resource on the server is denied!) error. because during creating https://wikidot.com.au/wiki/MediaWiki:Common.js i face this error.
- you can see also https://wikidot.com.au/wiki/User:Wikiweb with same error this is main user page Mayurbhatt (talk) 05:17, 14 October 2020 (UTC)
- it seems like your webserver doesnt like colons, but https://wikidot.com.au/wiki/User%3AWikiweb is fine
- Check your webserver config and any webserver error logs. Also check if you have mod_security or a WAF enabled. Bawolff (talk) 20:37, 14 October 2020 (UTC)
- Article Delete Function is not working.
- Showing error [aec80ff68a4833f78ffd48f3] 2020-11-10 08:21:08: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" Mayurbhatt (talk) 08:21, 10 November 2020 (UTC)
PDF Problems after 1.35 Upgrade
I have been using the PDFEmbed extension to display pdf files in my wiki. This stopped working when I upgraded to 1.35.
I then decided to try PDFHandler instead, but this only seems to work for pdf files uploaded after the switch. To make this work, it seems I would have to upload over 250 pdfs again.
Should PDFHandler work on pdfs uploaded in the past?
If not, is there a way to bulk upload my old pdfs?
Is it possible to get PDFEmbed to work in 1.35?
Many Thanks! Thurstonbayne (talk) 09:07, 13 October 2020 (UTC)
- @Thurstonbayne If something broke, please provide error messages (server log etc) to know what broke. Also see Extension:PDFEmbed which links to a forked version for 1.35. Malyacko (talk) 13:10, 13 October 2020 (UTC)
visual editor deleting all text
When i'm on a page and i click on edit (with Visual studio) it deletes all text on that page. when i click on edit source (Default editor) i see all text. Johanoosterwaal (talk) 16:58, 13 October 2020 (UTC)
- @Johanoosterwaal That's not enough information. Please see the infobox on this page, section "Before you post" - thanks. Malyacko (talk) 10:05, 14 October 2020 (UTC)
- Yes sorry indeed to little information.
- I have a Raspberry pi 4 stretch that is running as my public Mediawiki server. To make is easier to add or edit text for users i wanted to install Visual Editor.
- followed this link to install it.
- Specs of my installation:
MediaWiki | 1.35.0 |
PHP | 7.4.10 (apache2handler) |
MariaDB | 10.1.45-MariaDB-0+deb9u1 |
ICU | 65.1 |
Extension | Version | License | Description | Authors |
---|---|---|---|---|
VisualEditor | 0.1.2 (10ac245) 05:46, 11 September 2020 | MIT |
- The issue that i have is when a try to edit an existing page created via visual editor or edit source (Default text editor) all the text on that page disappears en i'm left with a black page. Canceling the edit i get my text back but when i save all my old text is gone. Johanoosterwaal (talk) 15:00, 14 October 2020 (UTC)
Video wall setup
RESOLVED | |
User is in the wrong place, welcome to the help desk for MediaWiki software. |
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 keep attempting to setup a new video wall and we keep running into a problem. We created a grid for our video wall layout and once we clink next, the only thing on the left side menu is Default Group. Nothing lists under it such as a device tree. I have attempted this multiple times and cannot get the steps in the manual to work. Help! 2001:579:F100:2B:1A2:EB3C:C1B6:C0AD (talk) 21:42, 13 October 2020 (UTC)
email service blacklist
Hello, a query, do you know how I can create a blacklist FREE so that only gmail and outlook emails are admitted? To avoid bots. Thank you ShakeUY (talk) 23:31, 13 October 2020 (UTC)
- Admitted for what exactly? Malyacko (talk) 10:06, 14 October 2020 (UTC)
- The signup. ShakeUY (talk) 14:37, 14 October 2020 (UTC)
- try extension:SpamBlacklist (it has an email option, might not be enabled by default though) Bawolff (talk) 20:28, 14 October 2020 (UTC)
- I have not been able to configure it, could you leave me an example of how it is done? ShakeUY (talk) 17:44, 20 October 2020 (UTC)
SQL Error when searching for a non existing page
When i try to search fo a non existing page, my old MediaWiki 1.25 installation gave me the option on the search results page to create a new page.
But after upgrading to 1.35, it says on the search result page (debug is on):
[7388b947c3055361d6f5912a] /index.php?search=vd&title=Spezial%3ASuche&go=Seite Wikimedia\Rdbms\DBQueryError from line 1699 of /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1191: Can't find FULLTEXT index matching the column list (127.0.0.1)
Function: SearchMySQL::searchInternal
Query: SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+vd ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_title) AGAINST('+vd ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21
Backtrace:
#0 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query()
#4 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchMySQL.php(193): Wikimedia\Rdbms\DBConnRef->select()
#7 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchMySQL.php(179): SearchMySQL->searchInternal()
#8 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchDatabase.php(74): SearchMySQL->doSearchTitleInDB()
#9 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchEngine.php(156): SearchDatabase->doSearchTitle()
#10 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchEngine.php(187): SearchEngine->{closure}()
#11 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/search/SearchEngine.php(157): SearchEngine->maybePaginate()
#12 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/specials/SpecialSearch.php(387): SearchEngine->searchTitle()
#13 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/specials/SpecialSearch.php(179): SpecialSearch->showResults()
#14 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/specialpage/SpecialPage.php(600): SpecialSearch->execute()
#15 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
#16 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#17 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/MediaWiki.php(940): MediaWiki->performRequest()
#18 /srv/www/sites/wiki.germanscooterforum.de/htdocs/includes/MediaWiki.php(543): MediaWiki->main()
#19 /srv/www/sites/wiki.germanscooterforum.de/htdocs/index.php(53): MediaWiki->run()
#20 /srv/www/sites/wiki.germanscooterforum.de/htdocs/index.php(46): wfIndexMain()
#21 {main} 93.254.133.111 (talk) 07:49, 14 October 2020 (UTC)
- Did you run update.php Taavi (talk!) 08:48, 14 October 2020 (UTC)
- Yes.
- Do you need the console output of update.php? 93.254.133.111 (talk) 12:33, 14 October 2020 (UTC)
- searchindex table is somehow missing indicies (this index goes back to beginning of mediawiki so not an update issue). So i guess something went wrong during install.
- You could try manually adding it (look in maintenance/tables.sql for definition) or try reinstalling mediawiki. Bawolff (talk) 20:27, 14 October 2020 (UTC)
- There are so many CREATE INDEX commands in the tables.sql, i'm having a hard time to identify the right ones.
- Could you help me out? 93.254.133.111 (talk) 09:20, 15 October 2020 (UTC)
- Look at the ones for the searchindex table. That should be no more than a handful. ☠MarkAHershberger☢(talk)☣ 20:21, 15 October 2020 (UTC)
Dividing disk space
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.
We have moved to a new hosting environment and I want to have expanded the disk space.
The administrator offers me 1 TB but now he's asking if there are any best practices regarding dividing disk space between the different mount-paths.
Any suggestions/advice?
Thanks, Jethro Waanders (talk) 13:07, 14 October 2020 (UTC)
- @Waanders Hi, could you elaborate how this is related to MediaWiki? Malyacko (talk) 14:28, 14 October 2020 (UTC)
- Well, set up so MediaWiki is performing as optimal as possible. May be there are considerations typical for MediaWiki. Waanders (talk) 15:29, 14 October 2020 (UTC)
- Which mount paths do you use? Malyacko (talk) 18:34, 14 October 2020 (UTC)
- mediawiki generally does not use a lot of disk space except for uploaded media. (Well also the db uses disk space but that is not directly mediawiki)
- Make sure whereever the images folder is has enough disk space. Otherwise there is nothing specific to mediawiki. Bawolff (talk) 20:22, 14 October 2020 (UTC)
- Thanks a lot! Waanders (talk) 08:05, 15 October 2020 (UTC)
How to add MediaWiki:Gadget-TranslationAdder.js to Wiktionary.ro?
Hi!
The Romanian Wiktionary project is currently lacking this tool and I'm wondering how can I add it in order to improve user experience and boost user involvement?
Thanks in advance!
/Robert Robbie SWE (talk) 14:47, 14 October 2020 (UTC)
- @Robbie SWE See the Gadgets section on https://meta.wikimedia.org/wiki/Small_wiki_toolkits Malyacko (talk) 15:01, 14 October 2020 (UTC)
- I'll check it out! However, we don't have anyone with permission to do MediaWiki edits or even an administrator with interface rights on our site. I'm the only active admin/bureaucrat. Robbie SWE (talk) 15:14, 14 October 2020 (UTC)
- See the page that I linked, which will lead you to Gadget kitchen, which will bring you to meta:Interface_administrators, which will answer your comment. Malyacko (talk) 18:33, 14 October 2020 (UTC)
Error creating thumbnail: Unable to save thumbnail to destination
Installed software
Product | Version |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.3.19-1~deb10u1 (apache2handler) |
MariaDB | 10.3.23-MariaDB-0+deb10u1 |
ICU | 63.1 |
The pages are not displaying the images and I'm getting a above error message.
This media wiki is set up as Read-only clone of our main wiki.
$wgReadOnly = "This is a Read-Only/Backup of our main wiki"
If I removed that line, it works fine. Please help Ethwald (talk) 14:48, 14 October 2020 (UTC)
- Ok, I think I found the fix..
- $wgIgnoreImageErrors = true; Ethwald (talk) 14:50, 14 October 2020 (UTC)
- You might want to check: https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Unable_to_save_thumbnail_to_destination TiltedCerebellum (talk) 06:49, 17 October 2020 (UTC)
- I turned off ImageMagick and STILL get that error. 2A09:5E40:3010:620:99D4:9593:7A80:D678 (talk) 10:58, 16 June 2022 (UTC)
How to get text not having large spacing when table is inserted
RESOLVED | |
The issue was caused by empty lines in-between the noinclude and includeonly tags |
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 everyone,
I created a template which inserts a table into a page with the provided parameters. Issue is, that despite me using style="float:right;" and the table aligning to the right is there always a large gap between the top of the page and the text itself.
As an example adding {{my template}} with any text below it will result in the text having a large gap from the top.
Adding the table below the text results in the text being normal, but the table put below it (i.e. when using headers) which I don't want.
How can I now make the table be on the right side without the text being influenced?
Here is the mediawiki code I used to create the table itself. Hope that helps.{| class="wikitable" style="float:right;" ! colspan="2" | Syntax |- | colspan="2" style="padding-bottom: 10px; padding-top: 10px;" | <center>{{sign|{{{line1|[train]}}}|{{{line2|}}}|{{{line3|}}}|{{{line4|}}}}}</center> |- | colspan="2" style="text-align: center;" | {{{description|''No description provided.''}}} |- ! scope="row" style="text-align: left; padding-left: 10px;" | Supports [train]? | {{{train|Yes}}} |- ! scope="row" style="text-align: left; padding-left: 10px;" | Supports [cart]? | {{{cart|Yes}}} |- ! scope="row" style="text-align: left; padding-left: 10px;" | Supports remote control? | {{{remote|Yes}}} |}Andreas Sebastian Schmidt (talk) 15:06, 14 October 2020 (UTC)
- check to make sure your template doesnt have extra newlines at the beggining or end, and there arent extra newlines between where you invoke the template and your text.
- It would help if you could link to your wiki. Bawolff (talk) 20:18, 14 October 2020 (UTC)
- I do have it inside includeonly-tags but even when those are on the same line before and after the brackets does this not change anything.
- The page in question is https://wiki.traincarts.net/index.php/Template:Sign_Info and I myself are only a contributor (member) so I do not have admin access or similar, but can forward any information to those responsible if needed. Andreas Sebastian Schmidt (talk) 00:57, 15 October 2020 (UTC)
- so at the beginning you have:
- [Flow is stupid and not letting me copy and paste].
- You have an ending noinclude, an empty line, a comment, another empty line and then an includeonly. These 2 empty lines tell mw to push things down. Try putting the ending noinclude right beside (same line) as the includeonly so there are no extra empty lines. Bawolff (talk) 05:28, 23 October 2020 (UTC)
Recover Account Having Forgetten pw on 7yo account.
Excuse me Please:
To whom would I go for assistance in recovering an account that the Username/Email Password Recovery page is not assisting?
I have a unique-enough Username(which is indicated already exists on the wiki system), but am expecting a no-longer-accessible email is where the failure is occurring at. 99.203.17.184 (talk) 16:44, 14 October 2020 (UTC)
Issue Logging In
RESOLVED | |
Contact the website owner as it may be a problem with their config, which this help desk can't help with. |
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.
Having issues logging in on a wiki using the MediaWiki resource. Have tried creating 4+ new accounts and whenever I try to log in it brings me back to the main page, but if I provide the incorrect password for the account then it will let me know that the information I provided was incorrect and keep me on the login page. 72.142.80.83 (talk) 18:32, 14 October 2020 (UTC)
- If you cannot log in on some website out there you probably have to contact that website out there. Malyacko (talk) 09:07, 15 October 2020 (UTC)
Visual Editor on a password protected site
Solved using the following:
SetEnvIfNoCase User-Agent VisualEditor-MediaWiki/* visualeditor
<Directory /var/www/>
AuthUserFile /var/www/files/.htpasswd
AuthName "Restricted Access"
AuthType Basic
Require local
Require env visualeditor
Require valid-user
</Directory>
Hello, for the testing version of my site, I would like to have the site password protected (its under a sub-domain).
The way I was trying to do this was through .htaccess, now when I do that I get a 401 from Parsoid Visual Editor.
From the following: User:Andrujhon/Allow Parsoid Server I was assuming that to fix it all I needed to do was whitelist localhost. So I tried moving the authentication to my apache2 config with the following (https://stackoverflow.com/a/27209938/14435944):
<Directory /var/www/>
AuthType Basic
AuthName "Please enter your username and password"
AuthUserFile /var/www/files/.htpasswd
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
Require ip local
Require valid-user
</RequireAny>
</Directory>
But it is still blocking my parsoid (deleting the password protection makes parsoid/visual editor works correctly, to be clear).
Does anyone know what I'm doing wrong, or any better suggestion as to having a testing sub-domain password protected?
Thank you
Eddie Eddie K Smith (talk) 21:00, 14 October 2020 (UTC)
- Also tried the following:
<Directory /var/www/> <If "%{REMOTE_ADDR} != '127.0.0.1'"> AuthType Basic AuthName "Development Environment" AuthUserFile /var/www/files/.htpasswd require valid-user </If> </Directory>
- Which looks very similar to User:Andrujhon's solution. Just that it is done in apache conf instead of
LocalSettings.php
. Eddie K Smith (talk) 23:58, 14 October 2020 (UTC) - I can confirm that
SetEnvIfNoCase User-Agent VisualEditor-MediaWiki/* visualeditor
"resolves" the problem, in the sense that Visual Editor works again for an Apache-hosted wiki usingAuthType Basic
. However, it also allows anyone to access to your wiki if they merely setUser-Agent: VisualEditor-MediaWiki/something
on their request. - To demonstrate this:
curl -ILH 'User-Agent: VisualEditor-MediaWiki/foo' https://url.for.your/wiki
- This effectively defeats your site's password protection, so it's inadvisable to do this for a wiki where any kind of access from untrusted users is possible, and especially for a wiki on the public InterWebs.
- I wish I had better news, but I don't, yet. I'm confronted with two equally unpalatable options: not use VisualEditor, or switch to a private wiki instead of HTTP auth, leaving more parts of MediaWiki exposed to the public internet. --Ernstkm (talk) 11:06, 14 January 2024 (UTC)
Semantic Mediawiki: ~ search operator not working
RESOLVED | |
I just needed to set the datatype for Label to text |
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.
The query below works
<nowiki> {{#ask: [[-Has subobject::+]] [[Label::prop1]] |?Date |?Text }} </nowiki
But not the one below, where ~*prop1* should return subobjects where the phrase "pop1" is found anywhere in the Label property value.
<nowiki> {{#ask: [[-Has subobject::+]] [[Label::prop1]] |?Date |?Text }} </nowiki
Do you know a fix for this? YousufSSyed (talk) 23:10, 14 October 2020 (UTC)
Why isn't the refresh link active
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Since updating to 1.35, my refresh link isn't active. I can't seem to find any settings for that, does anyone know what might be the problem? 68.110.86.107 (talk) 01:35, 15 October 2020 (UTC)
- What do you mean by "refresh link"? Taavi (talk!) 08:16, 15 October 2020 (UTC)
- refresh under the more tab on each page 68.110.86.107 (talk) 15:23, 15 October 2020 (UTC)
- The refresh link is probably added by a gadget or something. For instance, I found this in one of the wikis I work on:
/* This line adds the "Refresh" tab to all pages*/ mw.util.addPortletLink ('p-views', '?action=purge', 'Refresh');
- Search your MediaWiki namespace for action=purge and you may find what you're looking for. ☠MarkAHershberger☢(talk)☣ 20:16, 15 October 2020 (UTC)
- That's interesting. It does have "<li id="ca-purge" class="is-disabled"><a href="/index.php?title=MediaWiki:Common.css&action=purge">Refresh</a></li>" in the source. But I don't have an entry for it in mediawiki:common.css. 68.110.86.107 (talk) 21:07, 15 October 2020 (UTC)
- I'm not really familiar with CSS. Do you know how I would reactivate it? 68.110.86.107 (talk) 18:40, 18 October 2020 (UTC)
- Can you provide a link to your wiki so we can check it out? ☠MarkAHershberger☢(talk)☣ 19:01, 18 October 2020 (UTC)
- @MarkAHershberger I don't think you are going to be able to see it unlessed you are logged in, but here is the link, and as screenshot. https://www.crewsgenealogy.com/wiki/File:Screen_Shot_2020-10-23_at_9.34.45_AM.png The1gofer (talk) 16:35, 23 October 2020 (UTC)
- I appreciate that my permissions on your wiki do not allow me to see that, but what I mostly wanted was a link to your wiki to see if we could identify anything that could be causing the problem.
- But, no, I couldn't find anything. Without more rights on your wiki, I can't see anything that would cause the problem. ☠MarkAHershberger☢(talk)☣ 17:21, 23 October 2020 (UTC)
- can I add css to activate it? The1gofer (talk) 20:10, 23 October 2020 (UTC)
- Page named:
- MediaWiki:Gadget-purgetab.js
- Build
- And put the contents of this link in it:
- https://en.wikipedia.org/wiki/MediaWiki:Gadget-purgetab.js Sokote zaman (talk) 21:12, 23 October 2020 (UTC)
- For anyone who follows behind, you'll need to install
- https://www.mediawiki.org/wiki/Extension:Gadgets and do some configuration to make it work. The1gofer (talk) 16:17, 26 October 2020 (UTC)
I need help. updated to the latest version of mediawiki and got this error.
RESOLVED | |
Yea, after some tweaking, and some stubbornness I finally fixed it. |
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 updated to the latest version of mediawiki, in doing so I had to install a new version of xampp to get the latest php. I copied the new xampp over my old one and did the same with mediawiki but now I get this error.
Fatal error: Uncaught TypeError: Argument 1 passed to
Wikimedia\ObjectFactory::__construct() must be an instance of
Psr\Container\ContainerInterface, instance of
MediaWiki\MediaWikiServices given, called in
G:\xampp\htdocs\wiki\includes\ServiceWiring.php on line 787 and defined
in
G:\xampp\htdocs\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php:85
Stack trace:
#0 G:\xampp\htdocs\wiki\includes\ServiceWiring.php(787):
Wikimedia\ObjectFactory->__construct(Object(MediaWiki\MediaWikiServices))
#1
G:\xampp\htdocs\wiki\includes\libs\services\ServiceContainer.php(430):
Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices))
#2
G:\xampp\htdocs\wiki\includes\libs\services\ServiceContainer.php(414):
Wikimedia\Services\ServiceContainer->createService('ObjectFactory')
#3 G:\xampp\htdocs\wiki\includes\MediaWikiServices.php(976):
Wikimedia\Services\ServiceContainer->getService('ObjectFactory')
#4 G:\xampp\htdocs\wiki\includes\ServiceWiring.php(418):
MediaWiki\MediaWikiServices->getObjectFactory()
#5 in G:\xampp\htdocs\wiki\vendor\wikimedia\object-factory\src\ObjectFactory.php on line 85
I've tried everything I can think of and nothing is working. Please help.
Also, I do have a complete backup of both.
Ok I managed to get past that but now I have this error
MediaWiki internal error.
Original exception: [a3f1b1a0a719244f571c94b8] /wiki/index.php/Main_Page Error from line 252 of G:\xampp\htdocs\wiki\extensions\TinyMCE\TinyMCE.hooks.php: Call to undefined method MagicWord::get() Backtrace: #0 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(320): TinyMCEHooks::handleMagicWords(Parser, string) #1 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array) #2 G:\xampp\htdocs\wiki\includes\HookContainer\HookRunner.php(2922): MediaWiki\HookContainer\HookContainer->run(string, array) #3 G:\xampp\htdocs\wiki\includes\parser\Parser.php(1680): MediaWiki\HookContainer\HookRunner->onParserBeforeTidy(Parser, string) #4 G:\xampp\htdocs\wiki\includes\parser\Parser.php(654): Parser->internalParseHalfParsed(string, boolean, boolean) #5 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1301): Parser->parse(string, Title, ParserOptions, boolean) #6 G:\xampp\htdocs\wiki\includes\language\Message.php(1258): MessageCache->parse(string, Title, boolean, boolean, LanguageEn) #7 G:\xampp\htdocs\wiki\includes\language\Message.php(889): Message->parseText(string) #8 G:\xampp\htdocs\wiki\includes\language\Message.php(942): Message->toString(string) #9 G:\xampp\htdocs\wiki\includes\skins\Skin.php(956): Message->parse() #10 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(284): Skin->lastModified() #11 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(391): SkinTemplate->getFooterLinks() #12 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate() #13 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML() #14 G:\xampp\htdocs\wiki\includes\OutputPage.php(2615): SkinTemplate->outputPage() #15 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output() #16 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Error) #17 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer) #18 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Error) #19 G:\xampp\htdocs\wiki\includes\MediaWiki.php(579): MWExceptionHandler::handleException(Error, string) #20 G:\xampp\htdocs\wiki\index.php(53): MediaWiki->run() #21 G:\xampp\htdocs\wiki\index.php(46): wfIndexMain() #22 {main}
Exception caught inside exception handler: [a3f1b1a0a719244f571c94b8] /wiki/index.php/Main_Page UnexpectedValueException from line 486 of G:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php: Invalid server index index #DB_SLAVE Backtrace: #0 G:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(899): Wikimedia\Rdbms\LoadBalancer->getConnectionIndex(string, array, string) #1 G:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1046): Wikimedia\Rdbms\LoadBalancer->getConnection(string, array, string, integer) #2 G:\xampp\htdocs\wiki\includes\GlobalFunctions.php(2469): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(string, array, string) #3 G:\xampp\htdocs\wiki\extensions\TinyMCE\TinyMCE.hooks.php(409): wfGetDB(string) #4 G:\xampp\htdocs\wiki\extensions\TinyMCE\TinyMCEAction.php(61): TinyMCEHooks::enableTinyMCE(Title, RequestContext) #5 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(320): TinyMCEAction::displayTab(SkinMonoBook, array) #6 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array) #7 G:\xampp\htdocs\wiki\includes\HookContainer\HookRunner.php(3580): MediaWiki\HookContainer\HookContainer->run(string, array, array) #8 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(1102): MediaWiki\HookContainer\HookRunner->onSkinTemplateNavigation(SkinMonoBook, array) #9 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(430): SkinTemplate->buildContentNavigationUrls() #10 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate() #11 G:\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML() #12 G:\xampp\htdocs\wiki\includes\OutputPage.php(2615): SkinTemplate->outputPage() #13 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output() #14 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Error) #15 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer) #16 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Error) #17 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(156): MWExceptionHandler::handleException(Error, string) #18 [internal function]: MWExceptionHandler::handleUncaughtException(Error) #19 {main} Dark gundam (talk) 02:13, 15 October 2020 (UTC)
Documents on patients file aaefaii2 $,.
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.
MY log in to the office website to apply an email on case files of patients that has being save in the patients files . 2601:102:8380:2CC0:8028:3CD5:D2E9:91CE (talk) 03:08, 15 October 2020 (UTC)
- Welcome to the MediaWiki support desk. What does this have to do with MediaWiki? If you have problems with some "office website" you'll have to contact that office website instead. Malyacko (talk) 09:13, 15 October 2020 (UTC)
Need help adding information to my uploads.
RESOLVED | |
"Probably best to ask in a support forum on commons.wikimedia.org where you uploaded those files - they might know best." |
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.
Hey Wiki. So I recently uploaded some images from the Wendover Air Force Base and I couldn't figure out where to add the National Register Information System ID number. The number is 75001827. I'm sure this probably isn't the place to ask for help for this problem but navigating wiki is a daunting task to say the least. I was hoping the photographs I uploaded were entered into the contest you're hosting as well but I'm not sure if I uploaded them correctly. Thanks for your help and if you can add the National Register Information System ID number to the images that would be great and you have my permission to do so. All the images were from the Wendover Air Force Base and the images were all taken on August 23, 2013 during a private tour of the facilities. If possible I'd like to add as much information about the images as possible but not sure if it's necessary or recommended. Anywho. Thanks for your help. Have a good one. MikeyMystery (talk) 05:39, 15 October 2020 (UTC)
- @MikeyMystery : Hi, it seems you uploaded some images to the website commons.wikimedia.org. Unfortunately I don't know what a "National Register Information System ID number" is (or in which country that exists), or which contest you have in mind. Probably best to ask in a support forum on commons.wikimedia.org where you uploaded those files - they might know best. Thanks! :) Malyacko (talk) 09:12, 15 October 2020 (UTC)
My Wiki Site fails to work
I transferred hosting to a different company, installed mediawiki through theior cpanel then imported my database into my account
it should all have worked, but my wiki does not work and getting loads of error
the link is: http://www.gmdesign.org.uk 82.29.138.142 (talk) 08:54, 15 October 2020 (UTC)
- <?php
- # This file was automatically generated by the MediaWiki 1.23.9
- # installer. If you make manual changes, please keep track in case you
- # need to recreate them later.
- #
- # See includes/DefaultSettings.php for all configurable settings
- # and their default values, but don't forget to make changes in _this_
- # file, not there.
- #
- # Further documentation for configuration settings may be found at:
- # https://www.mediawiki.org/wiki/Manual:Configuration_settings
- # Protect against web entry
- if ( !defined( 'MEDIAWIKI' ) ) {
- exit;
- }
- ## Uncomment this to disable output compression
- # $wgDisableOutputCompression = true;
- $wgSitename = 'All about Ayrshire';
- $wgMetaNamespace = "All about Ayrshire";
- ## The URL base path to the directory containing the wiki;
- ## defaults for all runtime URL paths are based off of this.
- ## For more information on customizing the URLs
- ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
- ## https://www.mediawiki.org/wiki/Manual:Short_URL
- $wgScriptPath = "";
- $wgScriptExtension = ".php";
- ## The protocol and server name to use in fully-qualified URLs
- $wgServer = "http://www.gmdesign.org.uk/";
- ## The relative URL path to the skins directory
- $wgStylePath = "$wgScriptPath/skins";
- ## The relative URL path to the logo. Make sure you change this from the default,
- ## or else you'll overwrite your logo when you upgrade!
- $wgLogo = "$wgStylePath/common/images/wiki.png";
- ## UPO means: this is also a user preference option
- $wgEnableEmail = true;
- $wgEnableUserEmail = true; # UPO
- $wgEmergencyContact = XXXXXXXXXX';
- $wgPasswordSender = XXXXXXXXXX';
- $wgEnotifUserTalk = false; # UPO
- $wgEnotifWatchlist = false; # UPO
- $wgEmailAuthentication = true;
- ## Database settings
- $wgDBtype = "mysql";
- $wgDBserver = "XXXXXXXXXX";
- $wgDBname = "XXXXXXXXXX";
- $wgDBuser = "XXXXXXXXXX";
- $wgDBpassword = "XXXXXXXXXX";
- # MySQL specific settings
- $wgDBprefix = "gmyx_";
- # MySQL table options to use during installation or update
- $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
- # Experimental charset support for MySQL 5.0.
- $wgDBmysql5 = false;
- ## Shared memory settings
- $wgMainCacheType = CACHE_NONE;
- $wgMessageCacheType = CACHE_NONE;
- $wgMemCachedServers = array();
- ## To enable image uploads, make sure the 'images' directory
- ## is writable, then set this to true:
- $wgEnableUploads = true;
- #$wgUseImageMagick = true;
- #$wgImageMagickConvertCommand = "/usr/bin/convert";
- # InstantCommons allows wiki to use images from http://commons.wikimedia.org
- $wgUseInstantCommons = true;
- ## If you use ImageMagick (or any other shell command) on a
- ## Linux server, this will need to be set to the name of an
- ## available UTF-8 locale
- $wgShellLocale = "en_US.utf8";
- ## If you want to use image uploads under safe mode,
- ## create the directories images/archive, images/thumb and
- ## images/temp, and make them all writable. Then uncomment
- ## this, if it's not already uncommented:
- #$wgHashedUploadDirectory = false;
- ## Set $wgCacheDirectory to a writable directory on the web server
- ## to make your wiki go slightly faster. The directory should not
- ## be publically accessible from the web.
- #$wgCacheDirectory = "$IP/cache";
- # Site language code, should be one of the list in ./languages/Names.php
- $wgLanguageCode = 'en';
- $wgSecretKey = "XXXXXXXXXX";
- # Site upgrade key. Must be set to a string (default provided) to turn on the
- # web installer while LocalSettings.php is in place
- $wgUpgradeKey = "XXXXXXXXXX";
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, ie 'cologneblue', 'monobook', 'vector':
- $wgDefaultSkin = "vector";
- ## For attaching licensing metadata to pages, and displaying an
- ## appropriate copyright notice / icon. GNU Free Documentation
- ## License and Creative Commons licenses are supported so far.
- $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
- $wgRightsUrl = "";
- $wgRightsText = "";
- $wgRightsIcon = "";
- # Path to the GNU diff3 utility. Used for conflict resolution.
- $wgDiff3 = "/usr/bin/diff3";
- # The following permissions were set based on your choice in the installer
- $wgGroupPermissions['*']['createaccount'] = false;
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['user']['edit'] = false;
- # require that users log in to read
- $wgGroupPermissions['*']['read'] = false;
- # require that users log in to edit
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['sysop']['edit'] = true;
- # Enabled Extensions. Most extensions are enabled by including the base extension file here
- # but check specific extension documentation for more details
- # The following extensions were automatically enabled:
- require_once "$IP/extensions/Cite/Cite.php";
- require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
- require_once "$IP/extensions/Gadgets/Gadgets.php";
- require_once "$IP/extensions/ImageMap/ImageMap.php";
- require_once "$IP/extensions/InputBox/InputBox.php";
- require_once "$IP/extensions/Interwiki/Interwiki.php";
- require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";
- require_once "$IP/extensions/Nuke/Nuke.php";
- require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
- require_once "$IP/extensions/PdfHandler/PdfHandler.php";
- require_once "$IP/extensions/Poem/Poem.php";
- require_once "$IP/extensions/Renameuser/Renameuser.php";
- require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";
- require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
- require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";
- require_once "$IP/extensions/WikiEditor/WikiEditor.php";
- require_once "$IP/extensions/MsUpload/MsUpload.php";
- # End of automatically generated settings.
- # Add more configuration options below.
- require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
- require_once "$IP/skins/Nimbus/Nimbus.php";
- require_once "$IP/extensions/Variables/Variables.php";
- require_once "$IP/extensions/ExtensionInstaller/ExtensionInstaller.php";
- require_once "$IP/extensions/Validator/Validator.php"; # Validator must be included *before* Maps.
- require_once "$IP/extensions/Maps/Maps.php"; # Maps
- require_once "$IP/extensions/TemplateData/TemplateData.php";
- // Set this to true to enable the TemplateData GUI editor
- $wgTemplateDataUseGUI = true;
- # Enables use of WikiEditor by default but still allows users to disable it in preferences
- $wgDefaultUserOptions['usebetatoolbar'] = 1;
- # Enables link and table wizards by default but still allows users to disable them in preferences
- $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
- # Displays the Preview and Changes tabs
- $wgDefaultUserOptions['wikieditor-preview'] = 1;
- # Displays the Publish and Cancel buttons on the top right side
- $wgDefaultUserOptions['wikieditor-publish'] = 1;
- require_once "$IP/extensions/ContactPage/ContactPage.php";
- $wgContactConfig['default'] = array(
- 'RecipientUser' => 'Gordonuk', // Must be the name of a valid account which also has a verified e-mail-address added to it.
- 'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
- 'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
- 'RequireDetails' => true, // Either "true" or "false" as required
- 'IncludeIP' => true, // Either "true" or "false" as required
- 'AdditionalFields' => array(
- 'Text' => array(
- 'label-message' => 'emailmessage',
- 'type' => 'textarea',
- 'rows' => 20,
- 'cols' => 80,
- 'required' => true, // Either "true" or "false" as required
- ),
- ),
- // Added in MW 1.26
- 'DisplayFormat' => 'table', // See HTMLForm documentation for available values.
- 'RLModules' => array(), // Resource loader modules to add to the form display page.
- 'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page.
- );
- require_once("$IP/skins/Nimbus/Nimbus.php");
- $wgEnableUploads = true;
- $wgUseImageMagick = true;
- require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );
- $wgExtensionFunctions[] = function() {
- $GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL();
- return true;
- };
- $wgUploadWizardConfig = array(
- 'debug' => false,
- 'autoAdd' => array(
- 'wikitext' => array( 'This file was uploaded with the UploadWizard extension.' ),
- ),
- 'feedbackPage' => 'Feedback about UploadWizard',
- 'altUploadForm' => 'Special:Upload',
- 'fallbackToAltUploadForm' => false,
- 'enableFormData' => true, # Should FileAPI uploads be used on supported browsers?
- 'enableMultipleFiles' => true,
- 'enableMultiFileSelect' => false,
- 'tutorial' => array(
- 'skip' => false
- ),
- 'fileExtensions' => $wgFileExtensions //omitting this can cause errors
- );
- include_once("$IP/extensions/iDisplay/iDisplay.php");
- require_once("$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php");
- require_once "$IP/skins/Metrolook/Metrolook.php";
- # DeleteHistory
- $wgGroupPermissions['sysop']['DeleteHistory'] = true;
- require_once("$IP/extensions/DeleteHistory/DeleteHistory.php");
- require_once( "$IP/extensions/HTML5video/HTML5video.php" );
- require_once "$IP/extensions/Scribunto/Scribunto.php";
- $wgScribuntoDefaultEngine = 'luastandalone';
- $wgShowExceptionDetails=true;
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- $wgShowSQLErrors = true;
- $wgDebugDumpSql = true;
- $wgShowDBErrorBacktrace = true;
- $wgDebugToolbar = true;
- $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';
- $wgUseInstantCommons = false;
- $wgForeignFileRepos[] = array(
- 'class' => 'ForeignAPIRepo',
- 'name' => 'wikimediacommons',
- 'apibase' => 'https://commons.wikimedia.org/w/api.php',
- 'hashLevels' => 2,
- 'fetchDescription' => true,
- 'descriptionCacheExpiry' => 43200,
- 'apiThumbCacheExpiry' => 86400,
- );
- require_once "$IP/extensions/MultiUpload/MultiUpload.php";
- $wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
- $wgAllowCopyUploads = true;
- $wgCopyUploadsFromSpecialUpload = true;
- error_reporting( -1 );
- ini_set( 'display_errors', '1' );
- $wgDebugDumpSql = true;
- $wgShowExceptionDetails = true;
- $wgDevelopmentWarnings = true; 82.29.138.142 (talk) 09:08, 15 October 2020 (UTC)
- Your installation of the DynamicPageList extension seems to be broken. Feel free to uninstall that extension, or update it to the same branch as your unmentioned MediaWiki version. Malyacko (talk) 09:08, 15 October 2020 (UTC)
- i have deleted dynamicpagelist from localsettings but still get this error
- [X4gU6l1JQCncpzPg5FiEOwAAAAk] / Error from line 72 of /homepages/17/d835070261/htdocs/clickandbuilds/MediaWiki/MyWikis/extensions/Maps/Maps.php: Call to undefined function wfRunHooks()
- Backtrace:
- #0 /homepages/17/d835070261/htdocs/clickandbuilds/MediaWiki/MyWikis/includes/Setup.php(906): {closure}()
- #1 /homepages/17/d835070261/htdocs/clickandbuilds/MediaWiki/MyWikis/includes/WebStart.php(81): require_once(string)
- #2 /homepages/17/d835070261/htdocs/clickandbuilds/MediaWiki/MyWikis/index.php(41): require(string)
- #3 {main}
- I deleted Maps also and now get loads of errors as can be seem on link in first post 82.29.138.142 (talk) 09:24, 15 October 2020 (UTC)
- The error seems to be "filemtime(): stat failed". I'm afraid that's PHP and not MediaWiki itself. Malyacko (talk) 11:17, 15 October 2020 (UTC)
- Hi, when I link on you site, there is an issue with Extension:TemplateData. Did you install it? LIMAFOX76 (talk) 11:32, 15 October 2020 (UTC)
Realname as requiered
RESOLVED | |
Not MediaWiki-related |
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.
Is it possible to set the field Realname as requiered in the registration form? I found a possibility to set e-mail as requiered, but that doesn't fix my problem. Thanks for your help! 2003:EC:A711:FA00:F149:DFC7:B2B1:E861 (talk) 09:03, 15 October 2020 (UTC)
- Welcome to the help desk for MediaWiki software, where you can ask questions about the MediaWiki. Is this related to Mediawiki? TiltedCerebellum (talk) 06:08, 17 October 2020 (UTC)
Internal error on hmoegirl.com
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.
The website failed to work and show "Fatal exception of type MWException"" 唔重要嘅人 (talk) 09:54, 15 October 2020 (UTC)
- @唔重要嘅人 If a website does not work, then you have to contact that website. mediawiki.org has nothing to do with hmoegirl.com - both might use the same software, but they are not the same people. Malyacko (talk) 11:14, 15 October 2020 (UTC)
rev_deleted = 8
While rev_deleted (or log_deleted or ar_deleted or rc_deleted, for that matter) could theoretically be equal to 8, having it equal to 8 is pointless and should never actually occur, right?
If you ever find a live edit (or log entry or deleted edit) with rev_deleted (or log_deleted or ar_deleted) equal to 8 on any wiki, rev_deleted (or log_deleted or ar_deleted) and rc_deleted (for recent edits or log entries) should both be changed to 0. GTrang (talk) 15:46, 15 October 2020 (UTC)
- Why shouldn't it be equal to 8? Why do you think it should be 0? ☠MarkAHershberger☢(talk)☣ 20:06, 15 October 2020 (UTC)
- 8 is indeed an invalid value Bawolff (talk) 00:18, 16 October 2020 (UTC)
- Why? I'm confused. ☠MarkAHershberger☢(talk)☣ 03:13, 16 October 2020 (UTC)
- If rev_deleted were to equal 8 (DELETED_RESTRICTED), then the text, edit summary, and editor's username or IP address would all still be visible to everyone. That clearly makes rev_deleted = 8 pointless. GTrang (talk) 15:23, 16 October 2020 (UTC)
- Thank you! ☠MarkAHershberger☢(talk)☣ 03:01, 17 October 2020 (UTC)
While rev_deleted (or log_deleted or ar_deleted or rc_deleted, for that matter) could theoretically be equal to 8...
- How?. It would be easier to make informed comment if you explain how that could happen. Or better open a phabricator task to explain the issue clearly if you think there's actionable bug. – Ammarpad (talk) 04:10, 17 October 2020 (UTC)
- hmm. Well maybe if you set everything restricted, and then uncheck all the restrictions, you might be left with 8.
- I dont think having an 8 there would cause any problems. Bawolff (talk) 23:25, 17 October 2020 (UTC)
Where are Templates and Modules Stored?
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 cannot find an answer to this. Is Templates and Modules stored in the server file structure folder or are they stored in the database? 82.29.138.142 (talk) 17:45, 15 October 2020 (UTC)
- Like all wiki pages, they are stored in the database. ☠MarkAHershberger☢(talk)☣ 20:05, 15 October 2020 (UTC)
- is there any way to search database for a template, as am sure it is there but is not showing on website, so example could I search for a template called TESTXX within the database itself or is that not possible? 82.29.138.142 (talk) 20:07, 15 October 2020 (UTC)
- You can, but you can also search the site from the Special:Search page on your wiki. That should be much easier. ☠MarkAHershberger☢(talk)☣ 20:29, 15 October 2020 (UTC)
got a new error after updating
got a new error after updating to the newest version.
RESOLVED | |
All I had to do was to do a fresh install of mediawiki and MySQL and transfer any of my extensions, without overriding the existing ones, transfer the actual wiki in the data folder and the LocalSettings. |
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 just cant win, i tryed to update and now im having problems. im on windows 10 and using xampp. Yesterday I finally fixed the problem but now I got a new error.i just cant win, i tryed to update and now im having problems. im on windows 10 and using xampp. Yesterday I finally fixed the problem but now I got a new error.When I try to enter wiki i get this:
MediaWiki internal error.Original exception: [992b0d09ddae0f4a7d14e576] /wiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1699 of G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?Error 1932: Table 'my_custem_storys.revision' doesn't exist in engine (localhost)Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromCondsQuery: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((actor_rev_user.actor_user☃☃!= 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_namespace = 8 AND page_title = 'Gadgets-definition' AND (rev_id=page_latest) LIMIT 1Backtrace:#0 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)#1 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)#2 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)#3 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)#4 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(2007): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)#5 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)#6 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)#7 G:\xampp\htdocs\wiki\includes\Revision\RevisionStore.php(2373): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)#8 G:\xampp\htdocs\wiki\includes\Revision\RevisionStore.php(2315): MediaWiki\Revision\RevisionStore->fetchRevisionRowFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, array)#9 G:\xampp\htdocs\wiki\includes\Revision\RevisionStore.php(1105): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, Title)#10 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\MediaWikiGadgetsDefinitionRepo.php(142): MediaWiki\Revision\RevisionStore->getRevisionByTitle(Title)#11 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\MediaWikiGadgetsDefinitionRepo.php(109): MediaWikiGadgetsDefinitionRepo->fetchStructuredList()#12 G:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1529): MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL, array)#13 G:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)#14 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\MediaWikiGadgetsDefinitionRepo.php(116): WANObjectCache->getWithSetCallback(string, integer, Closure, array)#15 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\MediaWikiGadgetsDefinitionRepo.php(32): MediaWikiGadgetsDefinitionRepo->loadGadgets()#16 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\GadgetRepo.php(71): MediaWikiGadgetsDefinitionRepo->getGadgetIds()#17 G:\xampp\htdocs\wiki\extensions\Gadgets\includes\GadgetHooks.php(114): GadgetRepo->getStructuredList()#18 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(320): GadgetHooks::userGetDefaultOptions(array)#19 G:\xampp\htdocs\wiki\includes\HookContainer\HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)#20 G:\xampp\htdocs\wiki\includes\HookContainer\HookRunner.php(4253): MediaWiki\HookContainer\HookContainer->run(string, array)#21 G:\xampp\htdocs\wiki\includes\user\DefaultOptionsLookup.php(99): MediaWiki\HookContainer\HookRunner->onUserGetDefaultOptions(array)#22 G:\xampp\htdocs\wiki\includes\user\UserOptionsManager.php(494): MediaWiki\User\DefaultOptionsLookup->getDefaultOptions()#23 G:\xampp\htdocs\wiki\includes\user\UserOptionsManager.php(135): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)#24 G:\xampp\htdocs\wiki\includes\user\UserOptionsLookup.php(123): MediaWiki\User\UserOptionsManager->getOption(User, string, integer, boolean, integer)#25 G:\xampp\htdocs\wiki\includes\user\User.php(2712): MediaWiki\User\UserOptionsLookup->getIntOption(User, string, integer)#26 G:\xampp\htdocs\wiki\includes\user\User.php(2904): User->getIntOption(string)#27 G:\xampp\htdocs\wiki\includes\linker\LinkRendererFactory.php(99): User->getStubThreshold()#28 G:\xampp\htdocs\wiki\includes\ServiceWiring.php(530): MediaWiki\Linker\LinkRendererFactory->createForUser(User)#29 G:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)#30 G:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)#31 G:\xampp\htdocs\wiki\includes\MediaWikiServices.php(834): Wikimedia\Services\ServiceContainer->getService(string)#32 G:\xampp\htdocs\wiki\includes\page\Article.php(164): MediaWiki\MediaWikiServices->getLinkRenderer()#33 G:\xampp\htdocs\wiki\includes\page\Article.php(211): Article->__construct(Title)#34 G:\xampp\htdocs\wiki\includes\page\Article.php(227): Article::newFromTitle(Title, RequestContext)#35 G:\xampp\htdocs\wiki\includes\actions\Action.php(188): Article::newFromWikiPage(WikiPage, RequestContext)#36 G:\xampp\htdocs\wiki\includes\MediaWiki.php(166): Action::getActionName(RequestContext)#37 G:\xampp\htdocs\wiki\includes\MediaWiki.php(903): MediaWiki->getAction()#38 G:\xampp\htdocs\wiki\includes\MediaWiki.php(543): MediaWiki->main()#39 G:\xampp\htdocs\wiki\index.php(53): MediaWiki->run()#40 G:\xampp\htdocs\wiki\index.php(46): wfIndexMain()#41 {main}Exception caught inside exception handler: [992b0d09ddae0f4a7d14e576] /wiki/index.php/Main_Page Wikimedia\Rdbms\DBTransactionStateError from line 1501 of G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php: Cannot execute query from LCStoreDB::get while transaction status is ERRORBacktrace:#0 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1220): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed(string, string)#1 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)#2 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1746): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)#3 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField(string, string, array, string)#4 G:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(300): Wikimedia\Rdbms\DBConnRef->__call(string, array)#5 G:\xampp\htdocs\wiki\includes\cache\localisation\LCStoreDB.php(63): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string)#6 G:\xampp\htdocs\wiki\includes\cache\localisation\LocalisationCache.php(394): LCStoreDB->get(string, string)#7 G:\xampp\htdocs\wiki\includes\cache\localisation\LocalisationCache.php(408): LocalisationCache->loadItem(string, string)#8 G:\xampp\htdocs\wiki\includes\cache\localisation\LocalisationCache.php(333): LocalisationCache->loadSubitem(string, string, string)#9 G:\xampp\htdocs\wiki\includes\cache\localisation\LocalisationCache.php(353): LocalisationCache->getSubitem(string, string, string)#10 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(289): LocalisationCache->getSubitemList(string, string)#11 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1091): MessageCache->load(string)#12 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)#13 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)#14 G:\xampp\htdocs\wiki\includes\cache\MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)#15 G:\xampp\htdocs\wiki\includes\language\Message.php(1304): MessageCache->get(string, boolean, LanguageEn)#16 G:\xampp\htdocs\wiki\includes\language\Message.php(862): Message->fetchMessage()#17 G:\xampp\htdocs\wiki\includes\language\Message.php(954): Message->toString(string)#18 G:\xampp\htdocs\wiki\includes\OutputPage.php(944): Message->text()#19 G:\xampp\htdocs\wiki\includes\OutputPage.php(993): OutputPage->setHTMLTitle(Message)#20 G:\xampp\htdocs\wiki\includes\OutputPage.php(2651): OutputPage->setPageTitle(string)#21 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(142): OutputPage->prepareErrorPage(string)#22 G:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)#23 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)#24 G:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)#25 G:\xampp\htdocs\wiki\includes\MediaWiki.php(576): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)#26 G:\xampp\htdocs\wiki\index.php(53): MediaWiki->run()#27 G:\xampp\htdocs\wiki\index.php(46): wfIndexMain()#28 {main}
this is what happens when i try an update:
Warning: Database is using unrecognized collation.Notice: Undefined property: stdClass::$Type in G:\xampp\htdocs\wiki\includes\installer\MysqlInstaller.php on line 197...have ipb_id field in ipblocks table....have ipb_expiry field in ipblocks table....already have interwiki tableAn error occurred:[653f4e41725c9eae47c6d11e] /wiki/mw-config/?page=Upgrade MWException from line 527 of G:\xampp\htdocs\wiki\includes\installer\MysqlUpdater.php: Missing rc_timestamp field of recentchanges table. Should not happen.Backtrace:#0 G:\xampp\htdocs\wiki\includes\installer\DatabaseUpdater.php(512): MysqlUpdater->doIndexUpdate()#1 G:\xampp\htdocs\wiki\includes\installer\DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(array, boolean)#2 G:\xampp\htdocs\wiki\includes\installer\DatabaseInstaller.php(422): DatabaseUpdater->doUpdates()#3 G:\xampp\htdocs\wiki\includes\installer\WebInstallerUpgrade.php(64): DatabaseInstaller->doUpgrade()#4 G:\xampp\htdocs\wiki\includes\installer\WebInstaller.php(269): WebInstallerUpgrade->execute()#5 G:\xampp\htdocs\wiki\mw-config\index.php(82): WebInstaller->execute(array)#6 G:\xampp\htdocs\wiki\mw-config\index.php(40): wfInstallerMain()#7 {main}
and this is the mysql error log, it turns off whenever i try an update:
InnoDB: using atomic writes.2020-10-15 14:08:37 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions2020-10-15 14:08:37 0 [Note] InnoDB: Uses event mutexes2020-10-15 14:08:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.112020-10-15 14:08:37 0 [Note] InnoDB: Number of pools: 12020-10-15 14:08:37 0 [Note] InnoDB: Using SSE2 crc32 instructions2020-10-15 14:08:37 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M2020-10-15 14:08:37 0 [Note] InnoDB: Completed initialization of buffer pool2020-10-15 14:08:37 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=721150662020-10-15 14:08:37 0 [Note] InnoDB: 128 out of 128 rollback segments are active.2020-10-15 14:08:37 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"2020-10-15 14:08:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables2020-10-15 14:08:37 0 [Note] InnoDB: Setting file '\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2020-10-15 14:08:37 0 [Note] InnoDB: File '\xampp\mysql\data\ibtmp1' size is now 12 MB.2020-10-15 14:08:37 0 [Note] InnoDB: Waiting for purge to start2020-10-15 14:08:37 3 [ERROR] InnoDB: Page [page id: space=62, page number=0] log sequence number 227284867 is in the future! Current system log sequence number 72115084.2020-10-15 14:08:37 3 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.2020-10-15 14:08:37 3 [ERROR] InnoDB: Page [page id: space=62, page number=3] log sequence number 227284867 is in the future! Current system log sequence number 72115084.2020-10-15 14:08:37 3 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.2020-10-15 14:08:37 0 [Note] InnoDB: 10.4.8 started; log sequence number 72115075; transaction id 352342020-10-15 14:08:37 0 [Note] InnoDB: Loading buffer pool(s) from G:\xampp\mysql\data\ib_buffer_pool2020-10-15 14:08:37 0 [Note] Plugin 'FEEDBACK' is disabled.2020-10-15 14:08:37 0 [Note] Server socket created on IP: '::'.InnoDB: using atomic writes.2020-10-15 14:12:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions2020-10-15 14:12:33 0 [Note] InnoDB: Uses event mutexes2020-10-15 14:12:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.112020-10-15 14:12:33 0 [Note] InnoDB: Number of pools: 12020-10-15 14:12:33 0 [Note] InnoDB: Using SSE2 crc32 instructions2020-10-15 14:12:33 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M2020-10-15 14:12:33 0 [Note] InnoDB: Completed initialization of buffer pool2020-10-15 14:12:33 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=721150842020-10-15 14:12:34 0 [Note] InnoDB: 128 out of 128 rollback segments are active.2020-10-15 14:12:34 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"2020-10-15 14:12:34 0 [Note] InnoDB: Creating shared tablespace for temporary tables2020-10-15 14:12:34 0 [Note] InnoDB: Setting file '\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2020-10-15 14:12:34 0 [Note] InnoDB: File '\xampp\mysql\data\ibtmp1' size is now 12 MB.2020-10-15 14:12:34 0 [Note] InnoDB: Waiting for purge to start2020-10-15 14:12:34 2 [ERROR] InnoDB: Page [page id: space=62, page number=0] log sequence number 227284867 is in the future! Current system log sequence number 72115102.2020-10-15 14:12:34 2 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.2020-10-15 14:12:34 2 [ERROR] InnoDB: Page [page id: space=62, page number=3] log sequence number 227284867 is in the future! Current system log sequence number 72115102.2020-10-15 14:12:34 2 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.2020-10-15 14:12:34 0 [Note] InnoDB: 10.4.8 started; log sequence number 72115093; transaction id 352342020-10-15 14:12:34 0 [Note] InnoDB: Loading buffer pool(s) from G:\xampp\mysql\data\ib_buffer_pool2020-10-15 14:12:34 0 [Note] Plugin 'FEEDBACK' is disabled.2020-10-15 14:12:34 0 [Note] Server socket created on IP: '::'.'::'.☃☃
im at a loss. i dont know what i have to do it almost feels like i should give up on this version of mediawiki, but i really wanted visual editer, or i have to make a completely new one and somehow migrate all my work, images, and template to the new one. can someone pelase help me. Dark gundam (talk) 18:24, 15 October 2020 (UTC)
- Did you run update.php? What version are you updating from? ☠MarkAHershberger☢(talk)☣ 19:59, 15 October 2020 (UTC)
- I did yesterday and it was running fine but when I loaded today, that's when I got the errors and I think it was Dark gundam (talk) 20:06, 15 October 2020 (UTC)
- The error seems to be coming from MySQL:
[ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files.
- Do you have a backup of your database? ☠MarkAHershberger☢(talk)☣ 20:04, 15 October 2020 (UTC)
- I have an entire backup of not only the previous wiki but also my work and the xampp. Dark gundam (talk) 20:08, 15 October 2020 (UTC)
- It looks like you have corrupted tables. As your logs say:
Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
☠MarkAHershberger☢(talk)☣ 20:28, 15 October 2020 (UTC)- Which method would you suggest. I've never done this before and I don't
- what to screw anything up. Also, I've never touched command prompt or
- shell. Dark gundam (talk) 20:48, 15 October 2020 (UTC)
- id suggest reinstalling mysql and then reinstalling mediawiki. Bawolff (talk) 00:15, 16 October 2020 (UTC)
- I haven't tried fresh installs but I have tried my old copies with the new ones. Dark gundam (talk) 00:48, 16 October 2020 (UTC)
- Actually, the fresh install of MySQL and mediawiki worked. Thanks everyone for helping me. Dark gundam (talk) 19:07, 17 October 2020 (UTC)
How to have my IP unblocked?
My project is using the Wiki API to search for images and my server IP 198.27.68.164 has been blocked. I modified my code to reduce the number of requests and include the maxlag parameter. Where can I request to have my IP unblocked?
Thank you! Jpg666 (talk) 18:46, 15 October 2020 (UTC)
- You should probably read the IP block exemption page on Commons to find that information. ☠MarkAHershberger☢(talk)☣ 19:57, 15 October 2020 (UTC)
Collapsible Nested Lists
I'm trying to created an unordered list that is collapsible. The list has multiple levels. So, for example:
List Title (show/hide)
- Level 1a
- Level 2a
- Level 2b
- Level 3a
- Level 2c
- Level 1b
I want to be able to click on the List Title and have it collapse the whole list. I was using something like this:
<ul class="mw-collapsible mw-collapsed" data-collapsetext="List Title (hide)" data-expandtext="List Title (show)">
<li>Level 1a</li>
<ul>
<li>Level 2a</li>
<li>Level 2b</li>
<ul>
<li>Level 3a</li>
</ul>
<li>Level 2c</li>
</ul>
<li>Level 1b</li>
</ul>
However, it only collapses the first level. Is it possible to collapse the whole list and, if so, what am I missing? SweeBill (talk) 19:04, 15 October 2020 (UTC)
- Would something like this be of any help?
- https://www.mediawiki.org/wiki/Manual:Collapsible_elements/Demo/Advanced
- https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#jquery.makeCollapsible TiltedCerebellum (talk) 06:05, 17 October 2020 (UTC)
- Where are you putting this? In the sidebar? Or elsewhere?
- For sidebar I'd use: Extension:DynamicSidebar or if Vector is in use Extension:CollapsibleVector
- For lists based on categories and/or pages I use: Extension:CategoryTree
- For other stuff, collapsible elements the provided resources or Manual:Collapsible elements should work... folks here can't troubleshoot without having a link, seeing your code in use, being able to use the web inspector/console on the page, knowing your MW version etc. TiltedCerebellum (talk) 18:00, 27 October 2020 (UTC)
- So, technically, I'm trying to use it everywhere (sidebar and body of the wiki). While I didn't get exactly what I wanted, here is where I was able to get it to work:
- https://constructionmanual.deldot.a2hosted.com/index.php/Part_F_-_eConstruction#F3.02_Unifier_Business_Process_.28BP.29_Training_info
- I'm using MW 1.35.0. I can't seem to figure out Dynamic Sidebar though, I tried it and never got it working so I just abandoned the idea. SweeBill (talk) 01:01, 28 October 2020 (UTC)
Erro no MobileFrontend
me ajudem por favor!!!!!!!!!!!!!!!!!
Fatal error: Uncaught Error: Class 'MobileFrontend\AMC\UserMode' not found in /srv/disk7/3608761/www/wikiquedia.atwebpages.com/extensions/MobileFrontend/includes/ServiceWiring.php:60 Stack trace: #0 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #1 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService('MobileFrontend....') #2 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/extensions/MobileFrontend/includes/MobileFrontendHooks.php(1110): Wikimedia\Services\ServiceContainer->getService('MobileFrontend....') #3 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/Hooks.php(174): MobileFrontendHooks::onMakeGlobalVariablesScript(Array, Object(OutputPage)) #4 /srv/disk7/3608761/www/wikiquedia.atwebpages.com/includes/Hooks.php(202): Hooks::callHook('MakeGlobalVaria...', Array, Array, NULL) #5 / in /srv/disk7/3608761/www/wikiquedia.atwebpages.com/extensions/MobileFrontend/includes/ServiceWiring.php on line 60 Gustavo Borges Matos (talk) 21:23, 15 October 2020 (UTC)
- This is a guess:
- Disable this: Extension:MobileFrontend
- Put # in front of the line of text that starts with this word: MobileFrontend in your LocalSettings.php
- Cheers
- Jon Gerdesj (talk) 23:12, 15 October 2020 (UTC)
- @Gerdesj mas amigo eu quero melhorar minha wiki para dispositivos móveis o que posso fazer pois segui todos os passos que foram pedidos.
- OBS: Eu agradeceria muito se você fosse um editor de nossa wiki e de acordo com o que vai evoluindo lhe concedo ser administrador também. pense no caso por favor o site é: wikiquedia.atwebpages.com Gustavo Borges Matos (talk) 16:37, 16 October 2020 (UTC)
For Semantic Mediawiki, how can I make a query output text rendered as wikitext?
RESOLVED | |
instead of doing == Header ==, I can do <h2>Header</h2> |
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.
For example, if I have a property value == Header ==
, in a query, it shows up as an actual header. YousufSSyed (talk) 22:40, 15 October 2020 (UTC)
- ping @Kghbln? ☠MarkAHershberger☢(talk)☣ 03:16, 16 October 2020 (UTC)
- How do I ping them? YousufSSyed (talk) 08:48, 16 October 2020 (UTC)
- He pinged me. See here [[kgh]] (talk) 08:54, 16 October 2020 (UTC)
- That works but how can I make it appear as headers in a query such as
{{#ask: Has text::+ | ?Has text}}
? YousufSSyed (talk) 18:19, 16 October 2020 (UTC) - Yes, I extended the example.
- See also the docu (#show as a shortcut function) [[kgh]] (talk) 22:01, 16 October 2020 (UTC)
- This would be my query now:
{{#ask: Has text::+ | ?Has text|mainlabel=- }}
, while it does render wikitext, I still want the labels and the table rows. Do you know how to make it show I can get all of them? At least I want things in separate rows in wikitext, the labels aren't important. YousufSSyed (talk) 23:49, 16 October 2020 (UTC) - Could you create an example on the sandbox wiki?! Currently I am not sure what you want to do. Thanks. [[kgh]] (talk) 08:16, 17 October 2020 (UTC)
- I created a page that shows what I'm trying to do YousufSSyed (talk) 01:54, 20 October 2020 (UTC)
- Thanks. You already got derailed by MediaWiki. If you do not create an new line MediaWiki will prevent the rendering. I suggest to use h2-tags instead of == to prevent this. [[kgh]] (talk) 17:20, 20 October 2020 (UTC)
- I tested that, as well are other formatting options to see if they would show up in a query, and they in fact does. YousufSSyed (talk) 00:52, 22 October 2020 (UTC)
refund
RESOLVED | |
Welcome to the help desk for MediaWiki software, the site you came from possibly didn't change the default help link that leads to this MediaWiki software help desk, to their own help link. |
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 accidently bought the creation kit instead of the creation club. I installed it opened it and had no clue what to do with the interface and then uninstalled it. I tried to get my money back via refund (i used paypal) but steam won't let me for some reason. Could i either get my money back (9.99 CAD) or somehow get the creation kit switched to creation club. Money is scarce, i hope you understand.
I can't seem to make an account for some reason. My email is lionexmachina@gmail.com 76.66.121.100 (talk) 05:57, 16 October 2020 (UTC)
- Sorry, but it is mediawiki software support desk. it is not realated to creation kit or creation club. You should go their websites and find proper contacts Fokebox (talk) 07:55, 16 October 2020 (UTC)
- Looks like they came from the CreationKit wiki. Unfortunately, I can't ask anyone there to fix their "Help" link because their wiki requires verified emails and the wiki can't send emails. ☠MarkAHershberger☢(talk)☣ 03:20, 17 October 2020 (UTC)
"The following extensions are required to be installed"
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,
Why is that if I run this scrips, I get the error message? I am trying to work on Active Directory Integration. I am not really good at this. Please help.
extensions/LDAPProvider/maintenance/ShowUserInfo.php extensions/LDAPProvider/maintenance/CheckLogin.php
error: "The following extensions are required to be installed for this script to run: LDAPProvider." Ethwald (talk) 06:53, 16 October 2020 (UTC)
- The error message is quite clear, I am not sure what you're asking for now. – Ammarpad (talk) 03:50, 17 October 2020 (UTC)
- Do you have the MediaWiki extension it mentions installed? TiltedCerebellum (talk) 05:19, 17 October 2020 (UTC)
- @Ammarpad the extension is there. It is installed but still showing that error
- @TiltedCerebellum yes Ethwald (talk) 06:31, 17 October 2020 (UTC)
- Are you sure the extension is really installed, that's can you see it in Special:Version?. – Ammarpad (talk) 06:59, 17 October 2020 (UTC)
- This is already fix. Something in the LocalSettings.php was causing the issue. Ethwald (talk) 03:13, 18 October 2020 (UTC)
Custom domain for my wiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I am hosting my wiki locally. Currently, I can access it via http://192.168.0.10/mediawiki but I'd like to open it with just http://wiki/ if that is somehow possible.
I tried looking it up but can only find the short-URL tutorial, nothing with a custom domain.
Thanks a lot! 87.154.8.129 (talk) 07:07, 16 October 2020 (UTC)
- I suggest you to purchase a relevant domain name and buy some hosting. Upload your wiki at hosting server. Fokebox (talk) 07:53, 16 October 2020 (UTC)
LDAP AD config migration Help! T_T
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,
Can Someone help me please to migrate the old Ldap config (1.15.5-2squeeze6) to new mediawiki 1.35.0.
Old LDAP config 1.15.5-2squeeze6
# Enable LDAP Authentication
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
require_once ("$IP/includes/AuthPlugin.php");
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "ad.test.com.au" );
$wgLDAPServerNames = array( "ad.test.com.au" => "test-ser.ad.test.com.au" );
$wgLDAPSearchStrings = array( "ad.test.com.au" => "ad\\USER-NAME" );
$wgLDAPEncryptionType = array( "ad.test.com.au" => "clear" );
$wgLDAPUseLocal = true;
$wgMinimalPasswordLength = 1;
$wgLDAPBaseDNs = array( "ad.test.com.au" => "dc=ad,dc=test,dc=com,dc=au" );
$wgLDAPSearchAttributes = array( "ad.test.com.au" =>'sAMAccountName' );
$wgLDAPRetrievePrefs = array( "ad.test.com.au" =>true );
$wgLDAPGroupUseFullDN = array("ad.test.com.au"=>true);
$wgLDAPGroupObjectclass = array( "ad.test.com.au"=>'group' );
$wgLDAPGroupAttribute = array( "ad.test.com.au"=>'member' );
$wgLDAPGroupSearchNestedGroups = array( "ad.test.com.au"=>true );
$wgLDAPGroupNameAttribute = array( "ad.test.com.au"=>"cn" );
$wgLDAPUseLDAPGroups = array( "ad.test.com.au"=>true );
$wgLDAPRequiredGroups = array("ad.test.com.au" => array("cn=RoleIT,ou=Groups,dc=ad,dc=test,dc=com,dc=au" ) );
$wgDebugLogGroups['ldap'] = '/tmp/debug.log';
Product | Version |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.3.19-1~deb10u1 (apache2handler) |
MariaDB | 10.3.23-MariaDB-0+deb10u1 |
ICU | 63.1 |
New Config 1.35.0 (required extensions are all the same version REL1_35)
wfLoadExtensions( [
'PluggableAuth',
'Auth_remoteuser',
'LDAPProvider',
'LDAPAuthentication2',
'LDAPAuthorization',
'LDAPUserInfo'
] );
$LDAPAuthorizationAutoAuthRemoteUserStringParser = 'username-at-domain';
$LDAPAuthentication2UsernameNormalizer = 'strtolower';
$LDAPAuthentication2AllowLocalLogin = true;
$wgAuthRemoteuserAllowUserSwitch = true;
$wgPluggableAuth_EnableLocalLogin = true;
$wgAuthRemoteuserUserName = function() {
$user = '';
if( isset( $_SERVER[ 'REMOTE_USER' ] ) ) {
$user = strtolower( $_SERVER[ 'REMOTE_USER' ] );
}
return $user;
};
$LDAPProviderDomainConfigProvider = function() {
$config = [
'ad.test.com.au' => [
'connection' => [
"server" => "test-ser.ad.test.com.au",
"options" => [
"LDAP_OPT_DEREF" => 1
],
"basedn" => "dc=ad,dc=test,dc=com,dc=au",
"groupbasedn" => "ou=groups,dc=ad,dc=test,dc=com,dc=au",
"userbasedn" => "ou=people,dc=ad,dc=test,dc=com,dc=au",
"searchattribute" => "samaccountname",
"usernameattribute" => "samaccountname",
"realnameattribute" => "cn",
"searchstring" => "uid=USER-NAME,ou=people,dc=ad,dc=test,dc=com,dc=au",
"emailattribute" => "mail",
"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupMember::factory"
],
'authorization' => [
'rules' => [
'groups' => [
'required' => [
'cn=roleit,ou=groups,dc=ad,dc=test,dc=com,dc=au'
]
]
]
],
'userinfo' => [
'attributes-map' => [
'email' => 'mail',
'realname' => 'cn'
]
]
]
];
return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
};
Errors
[PluggableAuth] ERROR: Could not authenticate credentials against domain "ad.structerre.com.au"
php ShowUserInfo.php --domain domain.my --username user
MWException from line 208 of /var/lib/mediawiki/extensions/LDAPProvider/src/Client.php: Error in LDAP search: Operations error #0 /var/lib/mediawiki/extensions/LDAPProvider/src/UserInfoRequest.php(61): MediaWiki\Extension\LDAPProvider\Client->search('(samaccountname...', 'ou=people,dc=ad...', Array) #1 /var/lib/mediawiki/extensions/LDAPProvider/src/Client.php(241): MediaWiki\Extension\LDAPProvider\UserInfoRequest->getUserInfo('test.user') #2 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(149): MediaWiki\Extension\LDAPProvider\Client->MediaWiki\Extension\LDAPProvider\{closure}(500) #3 /var/lib/mediawiki/extensions/LDAPProvider/src/Client.php(242): BagOStuff->getWithSetCallback('wikidb:ldap-pro...', 500, Object(Closure)) #4 /var/lib/mediawiki/extensions/LDAPProvider/maintenance/ShowUserInfo.php(49): MediaWiki\Extension\LDAPProvider\Client->getUserInfo('test.user') #5 /var/lib/mediawiki/maintenance/doMaintenance.php(107): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserInfo->execute() #6 /var/lib/mediawiki/extensions/LDAPProvider/maintenance/ShowUserInfo.php(72): require_once('/var/lib/mediaw...') #7 {main}
php CheckLogin.php --domain domain.my --username user
FAILED
Please help. Be easy on me please. I'm not really good at this. Help pretty please.. Ethwald (talk) 09:47, 16 October 2020 (UTC)
- I haven't done migrations like this and haven't seen the error (
Operations error
) you're getting, so I'm not likely to be much help. However, @Osnard is very familiar with this sort of thing and might know what the answer is right away. - However, it is the weekend for him, so I wouldn't expect to hear anything from him until Monday. ☠MarkAHershberger☢(talk)☣ 02:52, 17 October 2020 (UTC)
- @MarkAHershberger Thank you. I hope @Osnard will reply Ethwald (talk) 03:55, 17 October 2020 (UTC)
- An
Operations error
usually occurs when the user that is bound to LDAP is not allowed to search the LDAP. I'd recommend to use a "proxy user"/"service account" in the "connection" section rather than do the binding with the user that actually logs in. Osnard (talk) 10:16, 17 October 2020 (UTC) - @Osnard Thank you! It's working nowwwwww Ethwald (talk) 15:33, 17 October 2020 (UTC)
Versioning and rolling out / rolling back of data
Hi, I understand that there is a History page as well as Recent Changes page. I was wondering whether there is a recommended approach for versioning using MediaWiki / Semantic MediaWiki (e.g. something like Memento) such that downstream consumers of the data (e.g. using the RDF APIs etc) know exactly what version of the data they are getting. Nnaka1 (talk) 13:35, 16 October 2020 (UTC)
- There are revision ids through which you can access old versions of pages on the wiki. (See this page from 2005 which voices a common complaint about the confusion of MediaWiki and Wikimedia, for an example.)
- There are also extensions like Approved Revs and Flagged Revs which allow you to pin a page to a specific revision. ☠MarkAHershberger☢(talk)☣ 14:08, 17 October 2020 (UTC)
MediaWiki 1.35.0 CirrusSearch/ElasticSearch has 0 indices after indexing
Hello,
Performed an upgrade from 1.16.5 to 1.35.0, upgrade worked without any issues. However after enabling CirrusSearch and indexing, no indices seem to be created.
Following is the environment details
OS: Windows
PHP: 7.4.10
MediaWIki: 1.35.0
MySql: 5.7
I performed the below steps to enable CirrusSearch
- Installed elasticSearch 6.8.12 as a service in windows
- ran the below 3 commands to perform indexing.
php UpdateSearchIndexConfig.php :
mw_cirrus_metastore missing, creating new metastore index.
Creating metastore index... mw_cirrus_metastore_first Scanning available plugins...none
ok
Green!Creating mw_cirrus_metastore alias to mw_cirrus_metastore_first.
Indexing namespaces...done
content index...
Fetching Elasticsearch version...6.8.12...ok
Scanning available plugins...none
Picking analyzer...english
Inferring index identifier...wikidb_content_first
Creating index...ok
Validating number of shards...ok
Validating replica range...ok
Validating shard allocation settings...done
Validating max shards per node...ok
Validating analyzers...ok
Validating mappings...
Validating mapping...different...corrected
Validating aliases...
Validating wikidb_content alias...alias is free...corrected
Validating wikidb alias...alias not already assigned to this index...corrected
Updating tracking indexes...done
general index...
Fetching Elasticsearch version...6.8.12...ok
Scanning available plugins...none
Picking analyzer...english
Inferring index identifier...wikidb_general_first
Creating index...ok
Validating number of shards...ok
Validating replica range...ok
Validating shard allocation settings...done
Validating max shards per node...ok
Validating analyzers...ok
Validating mappings...
Validating mapping...different...corrected
Validating aliases...
Validating wikidb_general alias...alias is free...corrected
Validating wikidb alias...alias not already assigned to this index...corrected
Updating tracking indexes...done
archive index...
Fetching Elasticsearch version...6.8.12...ok
Scanning available plugins...none
Picking analyzer...english
Inferring index identifier...wikidb_archive_first
Creating index...ok
Validating number of shards...ok
Validating replica range...ok
Validating shard allocation settings...done
Validating max shards per node...ok
Validating analyzers...ok
Validating mappings...
Validating mapping...different...corrected
Validating aliases...
Validating wikidb_archive alias...alias is free...corrected
Updating tracking indexes...done
php ForceSearchIndex.php --skipLinks --indexOnSkip :
Indexed a total of 5154 pages at 79/second
php ForceSearchIndex.php --skipParse
Indexed a total of 5154 pages at 90/second
But checking the generated indices in elastic search shows that no indices are created
curl "localhost:9200/_cat/indices?v"
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open mw_cirrus_metastore_first JlrF-uGVRIGbq0RiWQEp4w 1 0 56 0 13kb 13kb
green open wikidb_general_first h0kr2udLSqWhDaRquQcsqw 4 0 0 0 920b 920b
green open wikidb_archive_first C3x_jAcYSXSyI8jvQkTymQ 4 0 0 0 920b 920b
green open wikidb_content_first IsvWMUMRSPylwK81fKZ24w 4 0 0 0 920b 920b
Kindly help
Thanks ! Sandeshsuresh (talk) 13:43, 16 October 2020 (UTC)
- What happens when you try to search on the wiki? ☠MarkAHershberger☢(talk)☣ 14:10, 17 October 2020 (UTC)
- Initially, there were no results. But upon navigating a few pages, I could see the index count slightly increase, and a few search results, but the results are nowhere near as earlier
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open wikidb_archive_first aXJUrLPrQxyCsN6Y2eZ87g 4 0 0 0 1kb 1kb
green open wikidb_general_first PrYbbhTETAmTrZNS20jZfg 4 0 0 0 1kb 1kb
green open mw_cirrus_metastore_first JfG-lo-1QFq54uMQF3pnsQ 1 0 56 0 15.8kb 15.8kb
green open wikidb_content_first pdz7u6p7R5uCCTC50z2NfA 4 0 101 12 3.6mb 3.6mb
- PS: I did another setup, this time I upgraded to 1.34.2 (and its corresponding extenstions) instead of 1.35, this time I see a lot more indices, and the search results in the wiki also seems to be at par compared to 1.16.5 with lucene search.
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open wikidb_general_first Y0GQT3UMRui_zGUsQahYKg 4 0 3510 722 50.6mb 50.6mb
green open mw_cirrus_metastore_first e0SLzUM2RZGdz3hPUWdcnw 1 0 56 0 13.2kb 13.2kb
green open wikidb_archive_first NPDGIt_jQxCzXK9c3A3AZw 4 0 0 0 1kb 1kb
green open wikidb_content_first aO6deucsS_-O3TXsEtTQvA 4 0 1644 397 51.3mb 51.3mb
Sandeshsuresh (talk) 09:27, 19 October 2020 (UTC)- Since the updates are happening as you browse, you might look at runJobs.php and setting up a way to automatically flush the job queue. ☠MarkAHershberger☢(talk)☣ 14:41, 19 October 2020 (UTC)
- Many thanks !
- I could see a pending job for Cirrus Search
php showJobs.php --group
cirrusSearchElasticaWrite: 5415 queued; 0 claimed (0 active, 0 abandoned); 0 delayed
- After running
php runJobs.php --type cirrusSearchElasticaWrite
I could see the indices updated and search working fine. health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open mw_cirrus_metastore_first c9t04ZF4QVC9eBsq7FAMUg 1 0 56 6 16.9kb 16.9kb
green open wikidb_general_first kjtdexBwT0isr93TvSE83A 4 0 3510 309 40.1mb 40.1mb
green open wikidb_archive_first 21sCpGh6Si-aiHBTlDXKLg 4 0 0 0 1kb 1kb
green open wikidb_content_first HAkMB3-mSY-mDW1M1Litlw 4 0 1644 97 46.4mb 46.4mb
Sandeshsuresh (talk) 16:32, 19 October 2020 (UTC)
Edit Problem
RESOLVED | |
Not related to MW software |
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 want to edit a Bhamwiki page Steinbauer's Grocery and it's an open source and I can't edit. How to I locate the person to edit? John Jsteinbauer (talk) 14:28, 16 October 2020 (UTC)
- @Jsteinbauer Hi, you need to ask "Bhamwiki" about that. We are not "Bhamwiki" and we cannot influence the settings of "Bhamwiki". Malyacko (talk) 15:06, 16 October 2020 (UTC)
- Welcome to the MediaWiki help desk, where you can ask questions about MediaWiki software. Probably the site you started on never changed the default Help link that points here, instead to point their own help resources. You might try going back to the site you started on, and finding some contact information for people there, or posting on someone's talk page who is active there. This MW help desk cannot help you with a 3rd party website unfortunately.
- Try going to "recent changes" and clicking on an active user to visit their user page, and see if they've posted any way to contact them.
- Nevermind, look in the left sidebar, you'll see a site support link that has their contact information:
- http://www.bhamwiki.com/w/Bhamwiki:Site_support TiltedCerebellum (talk) 05:33, 17 October 2020 (UTC)
gallery of new files doesn't show anything
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.
Does anyone know why the gallery of new files wouldn't show anything? They files show up in the list of files, and I can view them, etc. Just this one page doesn't show anything. 68.110.86.107 (talk) 17:09, 16 October 2020 (UTC)
- You're question is too vague. First, what gallery and where? What version of MW, PHP, SQL? Site link? What site are you talking about? TiltedCerebellum (talk) 05:51, 17 October 2020 (UTC)
- if you mean Specisl:newfiles, it has different filters on by default (including filtering bots) than special:listfiles. Perhaps the photos are being filtered. Bawolff (talk) 19:21, 17 October 2020 (UTC)
- Yes, I meant Special:NewFiles, sorry.
- That was the issue. For some reason it thinks every single file I uploaded is by a bot. Any ideas why that might be? 68.110.86.107 (talk) 18:36, 18 October 2020 (UTC)
- Fixed it. Somehow I got added to the bot group. Changing that fixed it. Thanks for your help! 68.110.86.107 (talk) 18:38, 18 October 2020 (UTC)
logo doesn't can't see
i install mediawiki 1.35 and the logo doesn't can't see, only the space is empty, ¿what can i do? Gota de agua (talk) 21:08, 16 October 2020 (UTC)
- @Gota de agua Check your web server logs and check the output of your web browser's developer tools for errors. Then fix your settings (e.g. the path to your logo). See also Manual:FAQ#How do I change the logo? Malyacko (talk) 11:54, 17 October 2020 (UTC)
Cannot get shell maintenance commands to work
I entered shell and when use php update.php command
-bash: maintenance: command not found
(uiserver):u101519602:~/igoaddons.eu.org$ cd maintenance
(uiserver):u101519602:~/igoaddons.eu.org/maintenance$ php7.1 update.php
X-Powered-By: PHP/7.1.33
Content-type: text/html; charset=UTF-8
This script must be run from the command line(uiserver):u101519602:~/igoaddons.eu.org/maintenance$ php7.1 php update.php
Status: 404 Not Found
X-Powered-By: PHP/7.1.33
Content-type: text/html; charset=UTF-8
No input file specified.
(uiserver):u101519602:~/igoaddons.eu.org/maintenance$ A01020304a (talk) 22:38, 16 October 2020 (UTC)
- Manual:Update.php#Details TiltedCerebellum (talk) 05:21, 17 October 2020 (UTC)
- If I do php7.1 update.php from base directory (the one that has localsettings i get this
- This script must be run from the command line(uiserver):u101519602:~/igoaddons.eu.org$ php7.1 update.php
- Status: 404 Not Found
- X-Powered-By: PHP/7.1.33
- Content-type: text/html; charset=UTF-8
- No input file specified.
- If I do php7.1 update.php from maintenance folder i get this
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ This script must be run from the command line(uiserver):u101519602:~/igoaddons.eu.org$ php7.1 update.php
- -bash: syntax error near unexpected token `('
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ Status: 404 Not Found
- -bash: Status:: command not found
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ X-Powered-By: PHP/7.1.33
- -bash: X-Powered-By:: command not found
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ Content-type: text/html; charset=UTF-8
- -bash: Content-type:: command not found
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ No input file specified.
- -bash: No: command not found
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ $ php update.php
- -bash: $: command not found
- if i do php update.php shell defaults back to php4 and i get this
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ php update.php
- X-Powered-By: PHP/4.4.9
- Content-type: text/html
- <br />
- <b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in <b>/homepages/17/d835070261/htdocs/igoaddons.eu.org/maintenance/update.php</b> on line <b>30</b><br />
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ A01020304a (talk) 05:34, 17 October 2020 (UTC)
- The folks here will probably want to know what version of Mediawiki, php, sql etc. I can't visit the site's Special:Version page to look, I get redirected to something else for some reason. Looks like it's a shoutwiki, you might want to contact the shoutwiki people.
- Is php 7.1 compatible with the version of MediaWiki you are using?
- https://www.mediawiki.org/wiki/Compatibility#PHP TiltedCerebellum (talk) 05:46, 17 October 2020 (UTC)
- its my own wiki which is a work in progress, its nothing to do with shout wiki, that text was just added as a filler rather than what it is.
- http://igoaddons.eu.org/index.php?title=Special:Version
Product | Version |
---|---|
MediaWiki | 1.31.0-rc.0 |
PHP | 7.3.22 (cgi-fcgi) |
MySQL | 5.7.30-log |
ICU | 63.1 |
Lua | 5.1.5 |
- I tried version 1.35 but my database hated that and would not load anything so after trial and error this wiki version works. all pages load apart from extensions which i cannot install as need composer. cannot seem to inatall semanticmaps or semanticwiki as need composer and nothing works A01020304a (talk) 05:58, 17 October 2020 (UTC)
- In this comment you say you ran update.php, but the output you pasted seems to indicate that you pasted a few wrong things into the command line before correctly using the
php update.php
. - But that invokes php 4(!!!) which is ancient and will not work.
- Try using the command
php7.3 update.php
in order to invoke the 7.3 version on the command line which matches the version that your website is using. ☠MarkAHershberger☢(talk)☣ 14:40, 17 October 2020 (UTC)- neither works
- (uiserver):u101519602:~/igoaddons.eu.org$ php7.3 update.php
- Status: 404 Not Found
- X-Powered-By: PHP/7.3.22
- Content-type: text/html; charset=UTF-8
- No input file specified.
- (uiserver):u101519602:~/igoaddons.eu.org$ cd maintenance
- (uiserver):u101519602:~/igoaddons.eu.org/maintenance$ php7.3 update.php
- X-Powered-By: PHP/7.3.22
- Content-type: text/html; charset=UTF-8
- This script must be run from the command line(uiserver):u101519602:~/igoaddons.eu.org/maintenance$ A01020304a (talk) 22:16, 17 October 2020 (UTC)
- it sounds like you are using the php-cgi executable instead of the php-cli executable. your system may have php-cli installed under a different name or you may have to ask your system administrator to install it. Bawolff (talk) 17:17, 17 October 2020 (UTC)
- seems the command had to be
- /usr/bin/php7.3-cli igoaddons.eu.org/maintenance/update.php
- would never have guessed that solution A01020304a (talk) 22:17, 17 October 2020 (UTC)
- thank you very much for find out 2.57.131.128 (talk) 20:45, 7 March 2021 (UTC)
Output from DR135T MK111 fitted with 135 OT2
RESOLVED | |
Not MediaWiki |
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.
G'day is there any way the feed to the D 9 connection on the dr135T when fitted with the internal OT module to get packets displayed on an external PC?
if so what are the pin outs. The circuit shows CN3 goes TO RADIO the wiring from the D clam shell goes into the side of the OT internal module, what are those pin outs, A output in the OTWIN CFG just shows audio so if so what external program can decode the packets?c 121.200.13.217 (talk) 00:42, 17 October 2020 (UTC)
- Welcome to the MediaWiki help desk, where you can ask questions about MediaWiki software. Probably the website you started on (that uses the MediaWiki software to run on) never changed the default help link away from this site, to their own help page. Lots of folks end up here asking questions related to other sites, so possibly this might be the case with your question. TiltedCerebellum (talk) 05:29, 17 October 2020 (UTC)
- Found the wiki that this may have originated from and requested that they update their links. ☠MarkAHershberger☢(talk)☣ 15:22, 17 October 2020 (UTC)
I want to delete unused images and pages in Mediawiki
Mediawiki Version: 1.34
PHP Version: 7.3
Database Type: 10.3.24-MariaDB - MariaDB Server
Web Address: http://www.wikiweb.nl/html/index.php/Main_Page
Is there a way to do a "mass delete" of unused pages and pictures. The deleteArchivedFiles.php is not working as expected. Dsouzajoel23 (talk) 09:42, 17 October 2020 (UTC)
- @Dsouzajoel23 If something does not work as expected, then please explain why. Thanks. Malyacko (talk) 11:53, 17 October 2020 (UTC)
- I have close to 300 unused images. I want to delete them but the deleteArchivedFiles.php doesnt delete them. Also i want to delete unused pages, it doesnt delete that either. 115.96.42.2 (talk) 11:55, 17 October 2020 (UTC)
- You probably want an extension to help you delete big batches of pages at a time. DeleteBatch looks like it does what you want. ☠MarkAHershberger☢(talk)☣ 16:06, 17 October 2020 (UTC)
- But how do i get all the unused pages and files in order to delete them? 115.96.42.2 (talk) 18:26, 17 October 2020 (UTC)
- note: deleteArchovedFiles only permenently deletes files that have already been deleted in the web interface. It does not delete files just because they are unused. Bawolff (talk) 19:18, 17 October 2020 (UTC)
- So is there a way to firstly have a script to list down all unused images and articles and then save this to a file which can then be fed to DeleteBatch Dsouzajoel23 (talk) 04:45, 18 October 2020 (UTC)
- see the page Special:unusedimages on your wiki (or equivalent from list=querypage in the api) Bawolff (talk) 05:32, 23 October 2020 (UTC)
Where is the php file for the vector sidebar?
Where in the mediawiki 1.35 core folders would I find the php file for the sidebar in the vector or minever skin?, I want to modify the donation link. Goodman Andrew (talk) 12:06, 17 October 2020 (UTC)
- See Manual:Sidebar. ☠MarkAHershberger☢(talk)☣ 16:03, 17 October 2020 (UTC)
- I've read all that before asking, it's not there.
- Please, I don't need anymore referral, anyone responding to this question should say the exact directory the file is. Goodman Andrew (talk) 16:10, 17 October 2020 (UTC)
- the link given to you tells you how to modify the donation link on vector (and minerva, but that might depend on version see also https://github.com/wikimedia/mediawiki-skins-MinervaNeue#wgminervadonatelink . I think some older versions of Minerva did not use the standard mediawiki sidebar. )
- It is impossible to modify the donation link through the php file because its not implemented in the php file.
- If instead of links to documentation you want someone to read it for you and then explain it to, you may want to try Professional development and consulting because its unlikely people will do that for you for free. Bawolff (talk) 17:07, 17 October 2020 (UTC)
- @Bawolff: , a year ago I modified the donation link via a php file in mediawiki 1.33, if my post-amnesia memory serves me well, the file should be in vector skin folder/include/i18n but I can't know for sure which in particular, and that directory seems very unlikely, but that's what my post-partial-amnesia memory insists on. Although I'm unable to rediscovered the php file, the fact that I was able to edit it for 1.33 means it can be done via a php file, but on 1.35 maybe it cannot (I'm not sure).
- Regarding how to respond properly to a 'how-to-thread' like this, see: this answer and learn. Goodman Andrew (talk) 17:50, 17 October 2020 (UTC)
- > Regarding how to respond properly to a 'how-to-thread' like this, see: this answer and learn.
- The point of this forum is to direct people to the answers they seek, not be your personal secratary. If you want to learn how to conduct yourself appropriately in a software support forum i would suggest reading through http://www.catb.org/~esr/faqs/smart-questions.html Bawolff (talk) 18:57, 17 October 2020 (UTC)
- See Manual:Sidebar There you can find some information about how it works and more. Gustavo Borges Matos (talk) 17:57, 17 October 2020 (UTC)
- @Gustavo Borges Matos: so, tell me: where's the file after outsmarting me to read Manual:Sidebar? Goodman Andrew (talk) 18:09, 17 October 2020 (UTC)
- Not all links are in files. You need to enter "MediaWiki:Sidebar" on your wiki. wargo (talk) 20:04, 15 November 2020 (UTC)
- The manual page tells you how to navigate to the wiki page that controls the sidebar. It is not a physical file on your server, it is a wiki page. The manual page tells you how to get there and find it (enter the corresponding web address in your browser's address bar to visit the page that needs to be edited) TiltedCerebellum (talk) 05:14, 17 November 2020 (UTC)
Who knows how to setup Extension:ArticleCreationWorkflow ?
I tried to on MediaWiki 1.35 but it doesn't intercept article creation process for any user; everything is still as if the extension isn't registered on the wiki. I'm I missing something? Goodman Andrew (talk) 12:11, 17 October 2020 (UTC)
- You should read the documentation. I don't think this is designed the way you think -- it doesn't appear to meant to "intercept" the article creation process. ☠MarkAHershberger☢(talk)☣ 16:02, 17 October 2020 (UTC)
- I've read all that, nothing of value. Besides, That page is obsolete. It is being retained for archival purposes. It document extensions or features that are obsolete and/or no longer supported.
- Please, no more referral to a documentation; only those who have actually implemented the extension in their wiki should reply to this thread. Goodman Andrew (talk) 16:13, 17 October 2020 (UTC)
- there is a general expectation that you read and make a reasonable attempt to understand all relavent documentation before asking for help here. Bawolff (talk) 17:02, 17 October 2020 (UTC)
- @Bawolff: I would not ask if a documentation on the web was enough. Nothing of great value anywhere including at CommonSettings.php, but the IniSettings.php have a little clue but unclear.
- Many people are lost on the practical application of this extension. Just look at the extension talk page. Goodman Andrew (talk) 17:35, 17 October 2020 (UTC)
- if you have specific questions that aren't covered by the documentation, by all means ask them. But if you start the conversation by implying you have no intention to read the documentation, nobody is going to help you. Bawolff (talk) 19:02, 17 October 2020 (UTC)
- p.s. in fairness,the documentationon extension:ArticleCreationWorkflow was kind of lacking so i added some stuff to it about under what circumstances interception happens. Bawolff (talk) 19:16, 17 October 2020 (UTC)
- The following is all you added:
- ArticleCreationWorkflow helps users create new pages, intercepting article creation for new users and giving them wiki-configurable options such as using the Article wizard or creating a draft as a user subpage.
- In order for users to be intercepted, they must have the createpage right, must not have the createinmainns right, the page they are trying to create must be in the main namespace (and not yet exist) and the page pointed to by $wgArticleCreationLandingPage must exist.
- But this is something any admin would readily know already.
- I looked at your user rights and noticed you have a lot of them; I would be grateful if you can test the extension in a test environment and feed us. Goodman Andrew (talk) 20:51, 17 October 2020 (UTC)
- Many people are lost on the practical application of this extension. Just look at the extension talk page.
- Maybe that is why the extension has been largely abandoned? ☠MarkAHershberger☢(talk)☣ 17:37, 17 October 2020 (UTC)
- But it works seamlessly on Wikipedia. Goodman Andrew (talk) 18:04, 17 October 2020 (UTC)
- User:Bawolff please caution User:41.115.125.195 not to change the subject of this thread again. Goodman Andrew (talk) 09:07, 18 October 2020 (UTC)
- This is how to set it in LocalSettings.php: how to configure mediawiki extension ArticleCreationWorkflow 197.210.226.172 (talk) 22:28, 3 November 2020 (UTC)
- Thank you Goodman Andrew (talk) 22:39, 3 November 2020 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 301) error
RESOLVED | |
Marking resolved because the original poster seems satisfied. |
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,
my MediaWiki installation on a Synology NAS (not using the package in the package manager though)
when enabling VisualEditor, and trying to edit any page with it, it gives the error "Error contacting the Parsoid/RESTBase server (HTTP 301)"
Product | Version |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.4.9 (fpm-fcgi) |
MariaDB | 10.3.21-MariaDB |
ICU | 56.1 |
Lua | 5.1.5 |
here is what is listed in Special:Version
any assistance to this problem would be much appreciated, thanks! 2A02:2F01:5305:E200:29D0:E2E2:A7A7:8FF5 (talk) 12:13, 17 October 2020 (UTC)
- It looks like the rest endpoint (rest.php instead of api.php) is sending a redirect. The first thing I would do is look at your access logs to see if you can see accesses to rest.php and if they end up in 301 redirects.
- Keep in mind that rest.php does not appear to be documented very well yet (at least in my own troubleshooting, I haven't found much). ☠MarkAHershberger☢(talk)☣ 13:56, 17 October 2020 (UTC)
- nothing related to rest.php, just api.php, and its 200, not sure if i set up the apache access log correctly
- 127.0.0.1 - - [18/Oct/2020:18:45:37 +0300] "GET /w/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2&oldid=1184 HTTP/1.1" 200 371 2A02:2F01:5305:E200:2DF5:6B6C:F6D:86DA (talk) 15:47, 18 October 2020 (UTC)
- That is odd.
- I'm currently troubleshooting problem with VE on 1.35 (I'm getting a 400) and here are the two log lines I see from the wiki:
XX.XX.XX.XX - - [18/Oct/2020:18:27:32 +0000] "GET /w/index.php?title=User:MarkAHershberger&action=edit&redlink=1 HTTP/1.1" 200 20098 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [18/Oct/2020:18:27:48 +0000] "POST /w/rest.php/example.com/v3/transform/html/to/wikitext/User%3AMarkAHershberger HTTP/1.1" 400 4670 "-" "VisualEditor-MediaWiki/1.35.0"
- So you can see that MediaWiki is attempting to talk to rest.php on the localhost. ☠MarkAHershberger☢(talk)☣ 18:33, 18 October 2020 (UTC)
- in particular, check any rewrite rules you may have for short urls (including those stnology might set up themselves if you are using their version of mediawiki instead of the official one) Bawolff (talk) 16:59, 17 October 2020 (UTC)
- i have no short URL's put in, and i dont use the mediawiki Synology provides, i use a fresh install from a tarball
- i'll check my access logs, thanks for the suggestion 2A02:2F01:5305:E200:2DF5:6B6C:F6D:86DA (talk) 15:36, 18 October 2020 (UTC)
- I have the same error after installing 1.35 and using certbot https://certbot.eff.org/lets-encrypt/ubuntubionic-apache.html to install SSL certificate.
- I chose 2 for the following cert option:
- 1: No redirect - Make no further changes to the webserver configuration.
- 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration.
- My question is, how to set up https redirect and visual editor together? it works fine under just http but may not be the safest option. Or should I selectively redirect (i.e. redirect all users to https but parsoid stays in http?) If so how can I do that?
- Thanks a lot! Timingliu (talk) 21:08, 22 October 2020 (UTC)
- Please ask a new question instead of posting on an old question. ☠MarkAHershberger☢(talk)☣ 21:15, 22 October 2020 (UTC)
Minha wiki não abre o Visual Editor
por favor alguém me ajude a solucionar este problema entre na minha wiki e pressione em editar:
http://wikiquedia.atwebpages.com/wiki/index.php Gustavo Borges Matos (talk) 14:56, 17 October 2020 (UTC)
- It looks like there is some problem with transactions that you can see when you visit load.php on your site.
- If you turn on the debug log, does it have anything interesting? ☠MarkAHershberger☢(talk)☣ 15:52, 17 October 2020 (UTC)
- @MarkAHershberger eu já tentei seguir o que esta nessa página debugs utilizando o LocalSettings, php.ini e .htaccess mas é como se o erro passa-se despercebido pelo sistema ou seja seria impossível solucionar o problema enquanto que ele retorna para página inicial sempre, Acredito que esteja faltando algum arquivo de inicialização ou algo do tipo mesmo que eu tenha enviado tudo para o File-Manager. Gustavo Borges Matos (talk) 16:53, 17 October 2020 (UTC)
- Did you set up a debug log file using $wgDebugLogFile? Does it have anything in it? ☠MarkAHershberger☢(talk)☣ 17:32, 17 October 2020 (UTC)
- Que eu me lembre não configurei nada sobre esta questão . Gustavo Borges Matos (talk) 17:48, 17 October 2020 (UTC)
- Seria possível de solucionar o problema se eu lhe desse permissões de administrador no site? @MarkAHershberger Gustavo Borges Matos (talk) 16:55, 17 October 2020 (UTC)
- ou teria que resolver direto no File - Manager? Gustavo Borges Matos (talk) 16:55, 17 October 2020 (UTC)
- ensure $wgShowExceptionDetails=true; in LocalSettings.php to get detailed error messages Bawolff (talk) 16:58, 17 October 2020 (UTC)
- @MarkAHershberger Outra coisa também é que antes de eu lançar a nova versão do mediawiki ao site no localsettings havia funcionado e agora em um servidor online não funciona. Gustavo Borges Matos (talk) 17:00, 17 October 2020 (UTC)
- Are you saying 1.35 worked on your system but it isn't working on the hosted server? ☠MarkAHershberger☢(talk)☣ 17:34, 17 October 2020 (UTC)
- yes Gustavo Borges Matos (talk) 17:37, 17 October 2020 (UTC)
- In that case, I would contact the people you are hosting with. ☠MarkAHershberger☢(talk)☣ 17:41, 17 October 2020 (UTC)
- E também na versão anterior do mediawiki não estava apresentando este bug Gustavo Borges Matos (talk) 17:43, 17 October 2020 (UTC)
- Bom, todos os arquivos foram enviados para o servidor de hospedagem via FileZilla Gustavo Borges Matos (talk) 17:42, 17 October 2020 (UTC)
- @Bawolff acabei de ativar Gustavo Borges Matos (talk) 17:02, 17 October 2020 (UTC)
- the load.php error is weird. I would make sure that all files from mediawiki are the same version (and not potentially a mix of versions) and also try disabling all extensions to ensure none of them are at fault. Bawolff (talk) 17:10, 17 October 2020 (UTC)
- Another weird thing is that if you add
?debug=true
to load.php, many of the db problems go away. ☠MarkAHershberger☢(talk)☣ 17:35, 17 October 2020 (UTC)- Sim, isto também é muito estranho Gustavo Borges Matos (talk) 17:41, 17 October 2020 (UTC)
- @Bawolff mas eu baixei tudo direto do mediawiki eu baixei apenas o mediawiki 1.5 e mais nada e nenhuma extensão. Gustavo Borges Matos (talk) 17:37, 17 October 2020 (UTC)
- Did you install the system over an old MediaWiki system? ☠MarkAHershberger☢(talk)☣ 17:42, 17 October 2020 (UTC)
- Se você quer dizer substituir arquivo não.
- Primeiro eu apaguei tudo do mediawiki 1.4 e logo depois coloquei o mediawiki 1.5 Gustavo Borges Matos (talk) 17:45, 17 October 2020 (UTC)
Model Files
Hello
I have a question regarding the model files
I am using cadence - spectre simulator
I have downloaded free pdk 15 nm but I could not find the model files in it
I can only see one model file in hspice folder and I can not use it
could you please point me to the model file that I can use with spectre ?
Thank you 41.68.243.233 (talk) 17:55, 17 October 2020 (UTC)
- See Manual:Page content models I believe this is what you are looking for Gustavo Borges Matos (talk) 18:01, 17 October 2020 (UTC)
- Unlikely. We have no idea what "cadence" or "spectre simulator" is, or what a "model file" is. Malyacko (talk) 21:00, 17 October 2020 (UTC)
- True, even because right below I corrected saying that it has nothing to do with mediawiki Gustavo Borges Matos (talk) 14:59, 18 October 2020 (UTC)
TiltedCerebellum (talk) 18:03, 17 October 2020 (UTC)
- I believe you asked this question on the wrong website here is just to fix the errors that happen on mediawiki Gustavo Borges Matos (talk) 18:31, 17 October 2020 (UTC)
How did you change the 'Donate' link in minever skin?
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.
Please don't send a documentation link, only the steps (how you did it) is needed.
Don't be lazy. Goodman Andrew (talk) 18:18, 17 October 2020 (UTC)
- @Goodman Andrew Hi, please explain what "minever skin" is and what was "changed" and compared to what. Is this about some link target? Some layout position? Some layout rendering? Don't drop required context. Malyacko (talk) 20:37, 17 October 2020 (UTC)
Mobile Frontend Skins
Como faço para mudar a skin do mobile frontend ? Gustavo Borges Matos (talk) 19:48, 17 October 2020 (UTC)
Error creating thumbnail: libgomp: Thread creation failed: Resource temporarily unavailable
RESOLVED | |
Set $wgMaxShellMemory = 819600; in LocalSettings. See my last comment. |
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. When uploading a simple 4kb SVG on a freshly installed private test wiki running MW 1.35, I get the above error. The only modification done to the installation was adding SVG to $wgFileExtensions.
After uploading the SVG file, the file page displays the SVG. It just doesn't display in the "Thumbnail" cell in the "File history" section, and does not display on any other page when used. The above error is displayed in its place instead.
On the hosting platform/environment running 1.34, the same works perfectly fine.
To be 100% sure, I had also retried installing fresh on another subdomain. Same result.
Any idea what has changed/how to solve this issue? Rehman 07:04, 18 October 2020 (UTC)
- Based on my research, it seems like Manual:$wgMaxShellMemory needs to be modified as the default is not being set or is insufficient - for MediaWiki 1.35.
- When manually adding in
$wgMaxShellMemory = 819600;
(and probably any larger value than the default), the thumbnails/SVG works. - For those that have this working automatically, Manual_talk:$wgMaxShellMemory#Note_about_minimum_size might be the reason.
- Hope this helps. Rehman 08:01, 18 October 2020 (UTC)
Special:ReplaceText went south after upgrade from MW1.33 to .35
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.
Error message on run-time:
[X4wGZtdUeC840gaP-iEIRQAAGgU] /wiki/Special:ReplaceText Wikimedia\Rdbms\DBQueryError from line 1699 of /home1/logosneg/public_html/en/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) = old_id) AND (page_title LIKE 'Help`_desk%' ESCAPE '`' ) ORDER BY pa' at line 1 (localhost) Function: ReplaceTextSearch::doSearchQuery Query: SELECT page_id,page_namespace,page_title,old_text FROM `page`,`revision`,`text`,`slots`,`content` WHERE (old_text LIKE '%example%' ESCAPE '`' ) AND page_namespace = 4 AND (rev_id = page_latest) AND (rev_id = slot_revision_id) AND (slot_content_id = content_id) AND (CAST(SUBSTRING(content_address, 4) AS INTEGER) = old_id) AND (page_title LIKE 'Help`_desk%' ESCAPE '`' ) ORDER BY page_namespace, page_title LIMIT 250 Backtrace: #0 /home1/logosneg/public_html/en/w/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /home1/logosneg/public_html/en/w/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /home1/logosneg/public_html/en/w/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /home1/logosneg/public_html/en/w/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer) ....Goodman Andrew (talk) 09:31, 18 October 2020 (UTC)
ServiceContainer.php: Recursive service instantiation: Circular dependency when creating service
I upgraded from a very old version (25?) to 1.35.0 and get an internal error. I don't know what wikimedia services are but it sounds like I dodn't need it at all.
MediaWiki internal error.
Original exception: [3ae6162e9b487b54644fa2ee] /index.php?title=Main_Page Wikimedia\Services\RecursiveServiceDependencyException from line 437 of /vendor/wikimedia/services/src/ServiceContainer.php: Recursive service instantiation: Circular dependency when creating service! Parser -> Parser
Backtrace:
- 0 /vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
- 1 /includes/MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService(string)
- 2 /includes/Setup.php(794): MediaWiki\MediaWikiServices->getParser()
- 3 /vendor/wikimedia/object-factory/src/ObjectFactory.php(172): {closure}()
- 4 /includes/StubObject.php(128): Wikimedia\ObjectFactory::getObjectFromSpec(array)
- 5 /includes/DeprecatedGlobal.php(55): StubObject->_newObject()
- 6 /includes/StubObject.php(172): DeprecatedGlobal->_newObject()
- 7 /includes/StubObject.php(115): StubObject->_unstub(string, integer)
- 8 /includes/StubObject.php(142): StubObject->_call(string, array)
- 9 /LocalSettings.php(238): StubObject->__call(string, array)
- 10 /includes/HookContainer/HookContainer.php(320): wfbreakExtension(Parser)
- 11 /includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
- 12 /includes/HookContainer/HookRunner.php(2959): MediaWiki\HookContainer\HookContainer->run(string, array)
- 13 /includes/parser/Parser.php(532): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Parser)
- 14 /includes/parser/Parser.php(477): Parser->firstCallInit()
- 15 /includes/parser/ParserFactory.php(142): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageEn, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer)
- 16 /includes/ServiceWiring.php(816): ParserFactory->create()
- 17 /vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
- 18 /vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
- 19 /includes/MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService(string)
- 20 /includes/content/WikitextContent.php(373): MediaWiki\MediaWikiServices->getParser()
- 21 /includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
- 22 /includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
- 23 /includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
- 24 /includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
- 25 /includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
- 26 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
- 27 /includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
- 28 /includes/poolcounter/PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- 29 /includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
- 30 /includes/page/Article.php(810): PoolCounterWork->execute()
- 31 /includes/actions/ViewAction.php(74): Article->view()
- 32 /includes/MediaWiki.php(527): ViewAction->show()
- 33 /includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
- 34 /includes/MediaWiki.php(940): MediaWiki->performRequest()
- 35 /includes/MediaWiki.php(543): MediaWiki->main()
- 36 /index.php(53): MediaWiki->run()
- 37 /index.php(46): wfIndexMain()
38 {main}
Subfader (talk) 10:26, 18 October 2020 (UTC)
- @Subfader Why would you move to an outdated insecure ancient version (1.30) with known and public security vulnerabilities, instead of upgrading to a supported and secure version? Malyacko (talk) 10:31, 18 October 2020 (UTC)
- Sorry, 1.35.0 ;) Subfader (talk) 10:32, 18 October 2020 (UTC)
- whats the code/extension defining the wfbreakExtension() function and what hook is it using?
- At a glance it looks like its calling $wgParser (which creates a new parser) while executing a Parser initialization hook, which is causing a loop. If the extension is being passed a Parser, it should use that instance instead of $wgParser. Bawolff (talk) 21:35, 19 October 2020 (UTC)
- Thanks, it was a mini extension I had added directly in LocalSettings and didn't recognize. Subfader (talk) 13:54, 25 October 2020 (UTC)
runJobs.php: ffmpeg threads suspended
On MW-1.31.9 this is what I get upon issueing sudo -u www-data php ./maintenance/runJobs.php --type webVideoTranscode --globals --maxjobs 1
:
2020-10-18 10:51:58 webVideoTranscode Datei:Videolektion_Stochastische_Simulation,_Hypothesentest.webm transcodeMode=derivative transcodeKey=480p.webm prioritized= requestId=ad8742786ea9de1157c65059 (id=17604,timestamp=20200511094949) STARTING Encoding to codec: vp8 Running cmd: '/usr/bin/ffmpeg' -y -i '/var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm' -threads 1 -crf '10' -qmin 1 -qmax 51 -vb '1024000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 854x480 -an -pass '1' -passlogfile '/tmp/transcode_480p.webm0aade261f277.webm.log' /dev/null </-pre> After that the command just sits there without any reaction. <code>ps aux</code> shows the following processes: <pre> www-data 612 0.0 0.0 4628 828 pts/5 S 10:51 0:00 sh -c /bin/bash '/var/www/html/mwiki/includes/shell/limit.sh' ''\''/usr/bin/ffmpeg'\'' -y -i '\''/var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm'\'' -threads 1 -crf '\''10'\'' -qmin 1 -qmax 51 -vb '\''1024000'\'' -vcodec libvpx -slices '\''4'\'' -g '\''240'\'' -speed 4 -f webm -s 854x480 -an -pass '\''1'\'' -passlogfile '\''/tmp/transcode_480p.webm0aade261f277.webm.log'\'' /dev/null 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=28800; MW_CGROUP='\'''\'''''<nowiki/>'''; MW_MEM_LIMIT=2097152; MW_FILE_SIZE_LIMIT=3145728; MW_WALL_CLOCK_LIMIT=28800; MW_USE_LOG_PIPE=yes'<nowiki/>''' www-data 613 0.0 0.0 14604 3204 pts/5 S 10:51 0:00 /bin/bash /var/www/html/mwiki/includes/shell/limit.sh '/usr/bin/ffmpeg' -y -i '/var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm' -threads 1 -crf '10' -qmin 1 -qmax 51 -vb '1024000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 854x480 -an -pass '1' -passlogfile '/tmp/transcode_480p.webm0aade261f277.webm.log' /dev/null 2>&1 MW_INCLUDE_STDERR=;MW_CPU_LIMIT=28800; MW_CGROUP=''; MW_MEM_LIMIT=2097152; MW_FILE_SIZE_LIMIT=3145728; MW_WALL_CLOCK_LIMIT=28800; MW_USE_LOG_PIPE=yes'' www-data 614 0.0 0.0 13488 836 pts/5 S 10:51 0:00 /usr/bin/timeout 28800 /bin/bash -c '/usr/bin/ffmpeg' -y -i '/var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm' -threads 1 -crf '10' -qmin 1 -qmax 51 -vb '1024000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 854x480 -an -pass '1' -passlogfile '/tmp/transcode_480p.webm0aade261f277.webm.log' /dev/null 2>&1 www-data 615 0.0 0.0 14604 3112 pts/5 T 10:51 0:00 /bin/bash -c '/usr/bin/ffmpeg' -y -i '/var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm' -threads 1 -crf '10' -qmin 1 -qmax 51 -vb '1024000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 854x480 -an -pass '1' -passlogfile '/tmp/transcode_480p.webm0aade261f277.webm.log' /dev/null 2>&1 www-data 616 0.0 0.2 515044 34184 pts/5 T 10:51 0:00 /usr/bin/ffmpeg -y -i /var/www/html/mwiki/images/9/93/Videolektion_Stochastische_Simulation,_Hypothesentest.webm -threads 1 -crf 10 -qmin 1 -qmax 51 -vb 1024000 -vcodec libvpx -slices 4 -g 240 -speed 4 -f webm -s 854x480 -an -pass 1 -passlogfile /tmp/transcode_480p.webm0aade261f277.webm.log /dev/null
Notice that the last process which should do the actual transcoding is of status T which, accoring to the man-page of top, means "stopped by job control signal".
How can that be? Any advice for trouble-shooting? Sm8ps (talk) 12:25, 18 October 2020 (UTC)
- Answering my own question: as pointed out in Extension:TimedMediaHandler#Running_transcode_jobs it was indeed necessary and sufficient to set
$wgTranscodeBackgroundTimeLimit = 0;
. Sm8ps (talk) 19:18, 21 October 2020 (UTC)
AWB browser issue with bot tabber
Hello, I am a staff called Elizhaa on a the related wiki. I found that I have after a while the bot tab disappears with no real reason from AWB: https://gyazo.com/22f821fbbfca85211dd3d3e1022188b2
I think it happened after I update AWB to the new version.
I don't know what do to fix the error since nothing looks posted online; re-downloading the application and even using its previous version was not helpful.
Can someone tell me how to fix the error?
Thanks in advance. 2601:586:C980:E3D0:2874:CEC4:B60B:2D59 (talk) 13:35, 18 October 2020 (UTC)
Visualeditor issues due to nginx???
Hi,
I am running wiki 1.35 php7.4 and cannot get visualeditor properly to work. I had to disable it. Apparently the issue is that the rest api is not called correctly. I am wondering whether this is due to nginx.... my phpinfo shows:
$_SERVER['SERVER_SOFTWARE'] | nginx/1.10.3 |
Here: Parsoid I did read: "If you're serving MediaWiki with Nginx, you'll need to also add something like this to your server conf:"
location /rest.php/ { try_files $uri $uri/ /rest.php?$query_string; }
Do I need to ask my provider to add this in de nginx config in order to make visualeditor work? Is there any way I can find out myself? Gjtokkel (talk) 14:09, 18 October 2020 (UTC)
- How is it not working properly? The visual editor loads in the page but won't read existing content and adds a bunch of code to the page upon saving. Nicholaslue (talk) 21:35, 14 December 2020 (UTC)
- Same problem using nginx with Ubuntu Server 20.04 and visualeditor. What worked for me was to install additional php components:
- sudo apt install php7.4-mbstring php7.4-xml php7.4-fpm php7.4-json php7.4-mysql php7.4-curl php7.4-intl php7.4-gd php7.4-mbstring texlive imagemagick 68.145.238.178 (talk) 19:25, 19 September 2021 (UTC)
Installing MediaWiki on Digital Ocean
RESOLVED | |
It all seemed to go well, thanks. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've run MediaWiki for about 15 years now on a shared server - for the first while on a friend's home computer - and am thinking of moving to Digital Ocean, primarily for something faster. Are there any pitfalls to be aware of? Are there any online guides you could recommend? Thanks. Jonathan3 (talk) 20:32, 18 October 2020 (UTC)
- There is nothing specific, make sure you have php-apcu enabled as that will make mediawiki much faster. Bawolff (talk) 21:27, 19 October 2020 (UTC)
- Thanks for that advice. I might not have spotted it. For my reference, and maybe for others', here are some links:
- Manual:Installation guide
- PHP configuration
- Manual:Performance tuning#Local server Jonathan3 (talk) 08:29, 20 October 2020 (UTC)
How does German Wikipedia show the article size (kilobytes)? How to enable it?
Above the source editor on the German Wikipedia, one can see the page size in kilobytes.
What is the name of that MediaWiki feature and how can one enable it? 79.241.207.111 (talk) 21:26, 18 October 2020 (UTC)
Globalusage API call times out
I am trying to get the global usage with help of this API call:
But it times out. Is it related to the name of the file ("352 & 350 West Derby Road.jpg")?
Thanks for looking into it. Renek78 (talk) 22:22, 18 October 2020 (UTC)
Why did MW 1.34 cut Oracle DB, SQL Server, and HHVM support?
RESOLVED | |
Because nobody was willing to maintain and test it. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just wondering out of curiosity. YousufSSyed (talk) 00:52, 19 October 2020 (UTC)
- our oracle and sql server support was pretty bad, nobody was testing it, and there werent enough people willing to maintain it. See also https://phabricator.wikimedia.org/T191231
- Hhvm has decided they wanted to remove support for references, which mediawiki needs. https://hhvm.com/blog/2019/10/01/deprecating-references.html Bawolff (talk) 01:47, 19 October 2020 (UTC)
Lua error on reference section after importing all the citation module from Wikipedia
Now all our article references displays:
"Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got nil)."
This happened in MediaWiki 1.35 Goodman Andrew (talk) 01:44, 19 October 2020 (UTC)
- Did you run update.php? ☠MarkAHershberger☢(talk)☣ 13:15, 20 October 2020 (UTC)
- @MarkAHershberger: I did every such thing, it doesn't work. Goodman Andrew (talk) 13:17, 20 October 2020 (UTC)
- Is there a backtrace or is that the entire message? ☠MarkAHershberger☢(talk)☣ 13:23, 20 October 2020 (UTC)
Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got nil). Backtrace: (tail call): ? [C]: in function "old_ipairs" ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua:23: in function "ipairs" Module:Citation/CS1/Utilities:38: in function "in_array" Module:Citation/CS1:3718: in function "validate" Module:Citation/CS1:3879: in function "chunk" mw.lua:518: ? (tail call): ? [C]: in function "xpcall" MWServer.lua:99: in function "handleCall" MWServer.lua:313: in function "dispatch" MWServer.lua:52: in function "execute" mw_main.lua:7: in main chunk [C]: ?
- I know that a lua table is missing in the database but I just don't know how to insert it. Goodman Andrew (talk) 13:49, 20 October 2020 (UTC)
- Your line numbers seem to not exactly line up with https://en.wikipedia.org/wiki/Module:Citation/CS1/Utilities, did you exactly copy-paste from here? RheingoldRiver (talk) 18:51, 20 October 2020 (UTC)
- Thanks @RheingoldRiver: , I won't have believed I forgot to copy Utilities. Now some of the references works while others show the following error:
Lua error in Module:Citation/CS1/Identifiers at line 42: attempt to index a nil value. Backtrace: (tail call): ? Module:Citation/CS1/Identifiers:42: in function "external_link_id" Module:Citation/CS1/Identifiers:416: in function "doi" Module:Citation/CS1/Identifiers:1059: in function "build_id_list" Module:Citation/CS1:3276: in function "citation0" Module:Citation/CS1:3858: in function "chunk" mw.lua:518: ? (tail call): ? [C]: in function "xpcall" MWServer.lua:99: in function "handleCall" MWServer.lua:313: in function "dispatch" MWServer.lua:52: in function "execute" mw_main.lua:7: in main chunk [C]: ?
- What could be the cause of this one (I have copied Identifiers exactly as it is on Wikipedia)? Goodman Andrew (talk) 20:39, 20 October 2020 (UTC)
- I'd need to see a page at this point, your line numbers still don't line up with what I'm seeing there, external_link_id is lines 87-111 but you have an error in that function on line 42 somehow? Either way it would be helpful to see which references work and which don't. RheingoldRiver (talk) 04:16, 21 October 2020 (UTC)
- References like those in the following text works:
'''Collaborative learning''' is a situation in which two or more people learn or attempt to learn something together.<ref name="Dillenbourg">Dillenbourg, P. (1999). Collaborative Learning: Cognitive and Computational Approaches. Advances in Learning and Instruction Series. New York, NY: Elsevier Science, Inc.</ref> Unlike individual learning, people engaged in collaborative learning capitalize on one another's resources and skills (asking one another for information, evaluating one another's ideas, monitoring one another's work, etc.).<ref>Chiu, M. M. (2000). [http://www.gse.buffalo.edu/fas/chiu/pdf/Group_Problem_Solving_Processes.pdf Group problem solving processes: Social interactions and individual actions] {{Webarchive|url=https://web.archive.org/web/20170922005214/http://gse.buffalo.edu/fas/chiu/pdf/group_problem_solving_processes.pdf |date=2017-09-22 }}. for the Theory of Social Behavior, 30, 1, 27-50.600-631.</ref><ref name="Chiu">Chiu, M. M. (2008).[http://www.gse.buffalo.edu/fas/chiu/pdf/Flowing_Toward_Correct_Contributions.pdf Flowing toward correct contributions during groups' mathematics problem solving] {{Webarchive|url=https://web.archive.org/web/20170329173028/http://gse.buffalo.edu/fas/chiu/pdf/Flowing_Toward_Correct_Contributions.pdf |date=2017-03-29 }}: A statistical discourse analysis. ''Journal of the Learning Sciences'', 17 (3), 415 - 463.</ref> More specifically, collaborative learning is based on the model that knowledge can be created within a population where members actively interact by sharing experiences and take on asymmetric roles.
- Whereas those in the following text don't work:
<ref name="Mitkin">{{cite journal | last1 = Mitnik | first1 = R. | last2 = Recabarren | first2 = M. | last3 = Nussbaum | first3 = M. | last4 = Soto | first4 = A. | year = 2009 | title = Collaborative Robotic Instruction: A Graph Teaching Experience | url = | journal = Computers & Education | volume = 53 | issue = 2| pages = 330–342 | doi=10.1016/j.compedu.2009.02.010}}</ref> Put differently, [[Collaboration|collaborative]] learning refers to [[Collaborative method|methodologies and environments]] in which learners engage in a common task where each individual depends on and is accountable to each other. These include both face-to-face conversations<ref>{{cite journal | last1 = Chiu | first1 = M. M. | year = 2008 | title = Effects of argumentation on group micro-creativity | url = http://www.gse.buffalo.edu/fas/chiu/pdf/Effects_of_Argumentation.pdf | journal = [[Contemporary Educational Psychology]] | volume = 33 | issue = 3| pages = 383–402 | doi=10.1016/j.cedpsych.2008.05.001}}</ref> and computer discussions (online forums, chat rooms, etc.).<ref name="Chen">{{cite journal | last1 = Chen | first1 = G. | last2 = Chiu | first2 = M. M. | year = 2008 | title = Online discussion processes | journal = Computers and Education | volume = 50 | issue = 3| pages = 678–692 | doi=10.1016/j.compedu.2006.07.007}}</ref> Methods for examining collaborative learning processes include [[conversation analysis]] and statistical discourse analysis.<ref>{{cite journal | last1 = Chiu | first1 = M. M. | last2 = Khoo | first2 = L. | year = 2005 | title = A new method for analyzing sequential processes: Dynamic multi-level analysis | url = http://www.gse.buffalo.edu/fas/chiu/pdf/Group_Problem_Solving_Processes.pdf | journal = Small Group Research | volume = 36 | issue = 5 | pages = 600–631 | doi = 10.1177/1046496405279309 | citeseerx = 10.1.1.476.6858 | access-date = 2011-04-27 | archive-url = https://web.archive.org/web/20170922005214/http://gse.buffalo.edu/fas/chiu/pdf/group_problem_solving_processes.pdf | archive-date = 2017-09-22 | url-status = dead }}</ref> Thus, collaborative learning is commonly illustrated when groups of students work together to search for understanding, meaning, or solutions or to create an artifact or product of their learning. Furthermore, collaborative learning redefines the traditional student-teacher relationship in the classroom which results in controversy over whether this paradigm is more beneficial than harmful.
- UNFORTUNATELY, THE FIRST LUA ERROR (OLD_IPAIRS) IS BACK. Goodman Andrew (talk) 09:58, 21 October 2020 (UTC)
- I am also getting the same error
- Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got nil). Ramu ummadishetty (talk) 20:04, 24 November 2020 (UTC)
- @Ramu ummadishetty: this girl did it for me: Aisha. Talk to her. Goodman Andrew (talk) 20:50, 24 November 2020 (UTC)
Mediawiki Templates
Does Mediawiki or visualeditor come with prefilled templates? I'm trying to use visualeditor to embed a youtube video and I've seen places online that do this but anytime I try to do it, its a redlink and nothing happens. I don't seem to have any templates pre-installed.
I looked into the extension templatedata and I installed that, and that doesn't seem to do anything either?
Any suggestions. Thank you! 24.45.134.47 (talk) 02:11, 19 October 2020 (UTC)
- you need an additional extension. Extension:embedVideo or extension:YouTube are popular for videos from youtube Bawolff (talk) 02:57, 19 October 2020 (UTC)
Multiple login method
Is it possible to set up mediawiki so that user is able to either login through OpenIDConnect or through the normal Mediawiki login? 210.245.86.220 (talk) 04:23, 19 October 2020 (UTC)
- Yes. PluggableAuth could be set up to do this. ☠MarkAHershberger☢(talk)☣ 13:14, 20 October 2020 (UTC)
Need help with finding information regarding the extensions relating to the (property-term), (property-create), (item-term), and (item-redirect) permissions
I've been able to find pages in the Manual: or Extension: namespaces that relate to most of the permissions that I've been researching so far, but I'm currently struggling to find sufficient information relating to the extensions that add the (property-term), (property-create), (item-term), and (item-redirect) permissions. I was wondering whether pages about those permissions exist on this site. I can't seem to find them. Not even in the category of archived extensions. This also complicates trying to find their repositories on GitHub, if any repositories relating to them exist. ― C.Syde (talk | contribs) 05:45, 19 October 2020 (UTC)
- sounds kind of like extension:wikibase (just a guess). If not that maybe extension:SemanticMediaWiki Bawolff (talk) 06:37, 19 October 2020 (UTC)
- @Bawolff, your first guess was right.
- @C.Syde65 here is some documention: permissions. ☠MarkAHershberger☢(talk)☣ 21:12, 19 October 2020 (UTC)
Restricting the number of languages to choose from
Hi, I would like to restrict the number of languages a user can choose from to only three.
Question 1) I see you can either hide change language preferences or allow all languages, but is there a way to restrict to a small list (I'm thinking in Preferences)?
Question 2) Also is it possible to restrict the number of Languages for Universal Language Selector?
Question 3) Would it work if I just delete the languages in /languages/data/Names.php? Though I assume there's a better way...
The reason I want to do this is because I created a small extension and it is not available in any language other than those three.
Thank you very much 148.252.132.152 (talk) 10:04, 19 October 2020 (UTC)
- This seems to reduce the number of languages, in
LocalSettings.php
\MediaWiki\Languages\Data\Names::$names = [
'en' => 'English', # English
'es' => 'Español' # Spanish
];
148.252.132.152 (talk) 09:10, 20 October 2020 (UTC)
Restrict $wgAllowUserJs and $wgAllowUserCss to certain usergroups
So let's say I want to restrict $wgAllowUserJs and $wgAllowUserCss to sysop only, how do I do that? 211.36.141.233 (talk) 15:30, 19 October 2020 (UTC)
- There's no official way to do so, because it looks kind of strange. But I think you can hack it anyway, by removing the permission that allows editing the relevant pages.
- For instance, set
$wgGroupPermissions['user']['editmyuserjs'] = false
; and then give 'editmyuserjs' to the groups you want. Thereafter do the same for CSS. (Note, this hack only prevents editing the page not actual loading of these files as $wgAllowUserJs/Css will do). So any user who already has js/css code in their script page, it will continue to work, but they'll no longer be able to modify it if they are not in the group you allow. - Also note, this hack will not affect 'edituser*' permission set which allow other users to edit these that belong to other users. – Ammarpad (talk) 16:00, 19 October 2020 (UTC)
Special:Export page does not exist.
On my MediaWiki 1.34.1 / PHP 7.3.19 installation, the Export page is just missing.
A link to that page appears red, and the target page appears as if the special page did not exist (“No such special page”).
What causes the page to be missing?
There is an Export RDF feature from Semantic MediaWiki, which is not the same. Has that replaced it somehow? 198.24.162.179 (talk) 15:39, 19 October 2020 (UTC)
Echo: Email from other user
I have set
$wgEnableUserEmail = false;
but I still see "Email from other user" in Echo/Preferences.
Is Email from another user not have been disabled with that configuration, or is it just a bug? Edward Gaskin (talk) 17:31, 19 October 2020 (UTC)
Edward Gaskin (talk) 19:22, 19 October 2020 (UTC)
- If you set $wgEnableUserEmail correctly, there'd be no user email feature and checking/unchecking the checkbox will be no-op. There's a minor bug Extension:Echo however, (of showing the checkbox) when the feature is disabled. You can file a bug report to get it fixed. – Ammarpad (talk) 07:03, 20 October 2020 (UTC)
- Thank you Ammarpad Edward Gaskin (talk) 08:51, 20 October 2020 (UTC)
- Filed in https://phabricator.wikimedia.org/T266087 – Ammarpad (talk) 06:22, 21 October 2020 (UTC)
Requesting help using API action=clientlogin
Hi guys,
As a relative noobie to mediawiki I am looking to get a little help regarding a very basic SSO project. I have a php based web site "mysite" which requires user login. I am trying to come up with a php script that does the following:
1) User logs into mysite
2) The user login scripts executes a "wikilogin.php" script
3) The wikilogin.php script logs into mywikisite and creates the required cookies in the browser
4) User can now go to mywikisite and access pages etc. without having to log into mywikisite
I am not trying to build any logic to manage user creation/change/deletion or password change. The assumption for now is simply that credentials are identical across the 2 applications.
I have tried to put together a basic "wikilogin.php" which uses the mediawiki api as follows:
a) Get a logintoken using "api?action=query&meta=tokens&type=login&format=json
b) Parse out the returned logintoken to a string variable
c) Perform the login using "api?action=clientlogin&username=joe&password=secret&logintoken=<token from step 2>"&loginreturnurl=http:mysite,org"
however I am running into the error:
"code": "badtoken", "info": "Invalid CSRF token."
I have tried to change "type"="csrf" in step 1), however then I get:
"code": "nologintoken","info": "The \"logintoken\" parameter must be set."
Below is the php - any help would be much appreciated.
Thanks
Dennis
//
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://mywikisite.org/api.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"action=query&meta=tokens&type=login&format=json");
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
//echo $server_output;
$logintoken_array = json_decode($server_output);
$logintoken = $logintoken_array->query->tokens->logintoken;
echo $logintoken;
curl_setopt($ch, CURLOPT_URL,"http://mywikisite.org/api.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"action=clientlogin&username=joe&password=secret&logintoken=" . $logintoken . "&loginreturnurl=http://mywikisite.org");
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
echo $server_output;
curl_close ($ch);
?> Mrwassen (talk) 21:42, 19 October 2020 (UTC)
- Forgot to mention versions:
- mediawiki 1.34.4
- php 7.2 Mrwassen (talk) 21:47, 19 October 2020 (UTC)
- i think you need to tell curl to save and send cookies for the login to work.
- You may also be interested in reading about SessionManager - which i think is the more proper way to do what you are trying to do in MediaWiki. Bawolff (talk) 01:36, 20 October 2020 (UTC)
- Hi Bawolff,
- Thanks for your help - I was able to make some progress: I rewrote the php script to write a cookie file and then login using action=clientlogin which thankfully returned the following response:
- { "clientlogin": { "status": "PASS", "username": "Admin" }}
- However, I think I am still missing something: once this login was successful I was expecting in the same browser to be able to open a mediawiki page without logging in, however the main page is still showing "not logged in".
- I also noticed that after the script successfully logged in, there was nothing listed in the browsers "Storage/Cookies" list under the domain.
- Is this a case of me not understanding how cookies work?
- Any help appreciated.
- Dennis
- EDIT: or will I need to programmatically open the wiki page from php using something like Headers() after using setcookies() to set the cookies?
- EDIT#2:
- OK so a little further progress:
- I logged in as normal directly through the wiki main page to determine cookie behavior and saw that 3 cookies are created:
- 1) session cookie containing a token
- 2) username cookie
- 3) user ID cookie
- I then added code to the php script which replicates these exact cookies after the login is completed using the newly acquired token to create the session cookie.
- What I notice is that I can run my php script and see the 3 cookies get created and when the script echos the page, it shows as logged in.
- However the moment I click on a link to go to a different wiki page, the user ID and session cookies disappear and only the user ID cookie remains "in the browser" and the page logs out.
- So it seems I am close, but the elusive part is how to get those cookies to persist so that the session stays logged in?
- php:
<?php
$cookie_jar = tempnam('/volume1/web/cookies','cookie');
//retrieve token
$c = curl_init('http://mywikisite/api.php?action=query&meta=tokens&type=login&format=json');
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_HEADER, 0);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
$page = curl_exec($c);
$logintoken_array = json_decode($page);
$logintoken = $logintoken_array->query->tokens->logintoken;
echo $logintoken;
curl_close($c);
//log in
$c = curl_init('http://mywikisite/api.php');
$post = [
'action' => 'clientlogin',
'password' => 'xxxxxxxxx',
'username' => 'admin',
'logintoken' => $logintoken,
'loginreturnurl' => 'http://1mywikisite/index.php'
];
$c = curl_init('http://mywikisite/tng/wiki/api.php');
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, $post);
curl_setopt($c, CURLOPT_HEADER, 0);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
$page = curl_exec($c);
curl_close($c);
//create 3 cookies
$cookie_name = "tng_upgrade_12_3_wiki__session";
$cookie_value = $logintoken;
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
$cookie_name = "tng_upgrade_12_3_wiki_UserID";
$cookie_value = "1";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
$cookie_name = "tng_upgrade_12_3_wiki_UserName";
$cookie_value = "Admin";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
//open wiki
$c = curl_init('http://mywikisite/index.php?title=Main_Page');
curl_setopt($c, CURLOPT_HEADER, 0);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
$page = curl_exec($c);
echo $page;
curl_close($c);
?>
Mrwassen (talk) 04:12, 20 October 2020 (UTC)- The normal approach would be for your script to set its own cookies, and then use sessionmanager so that mediawiki recognizes those cookies and then sets its own cookies appropriately.
- I think the reason why your code isnt working is because you are assuming that the login token will be the same as the session cookie value (i dont think it is) Bawolff (talk) 05:20, 23 October 2020 (UTC)
- Hi Bawolff.,
- Thanks again - based on your earlier reply, I managed to figure out that the returned token is NOT the same as the session cookie token (as you also mentioned above). I was able to get curl to write the cookies to a temporary "cookie jar" file which I then read, parse into an array after which I submit a set of setcookie() commands which create the cookies in the browser.
- The one minor issue I had is that it seems that action=clientlogin does not (yet?) support a "rememberMe" attribute (despite documentation showing an example using it), but since I am now fairly fluent in cookie baking, I am able to tweak the expiry time to get a session length I would like.
- I am only able to use v. 1.34.4 due to other constraints, but perhaps rememberMe was introduced in 1.35.xx?
- In any case, many thanks for your help!
- Thanks
- Dennis Mrwassen (talk) 19:10, 23 October 2020 (UTC)
- Hi Mrwassen,
- did you finally manage to make the script working so that the session stays logged in? And if yes, could you please share your code?
- Thanks Sasha Rizzetto (talk) 16:05, 26 October 2020 (UTC)
- Hi Mrwassen,
- would you please help me?
- I'm new here and I'm a little confused. this is exactly what we want:
- 1-our users go to the Media Wiki login form (they have no account in Media Wiki)
- 2- they fill the username and password input by their username and password(the username and password which they use to login to our website)
- now we want:
- 3-the username and password have to be sent to our website API link:
- ourSiteDomain.com/Api/GetPersonRow?UserName=$userName&Password=$password
- *** The $username and $password are filled in step 2
- 4-our API returns a JSON response with user info without password
- 5-if the user is really our user and API response returns true, the user can log in to Media Wiki
- these steps are what we want.
- I don't know how to do these steps
- thank you very much Mwkaryar (talk) 10:03, 29 October 2020 (UTC)
- I am confused by the statement "1-our users go to the Media Wiki login form (they have no account in Media Wiki)".
- If they have no account, then it wouldnt make sense for them to type anything into the mediawiki login form ? Will they eventually become mediawiki users?
- That being said, I am probably not the right person to guide you due to my relative lack of MW experience - hopefully more knowledgeable folks will chime in here. Mrwassen (talk) 06:36, 3 November 2020 (UTC)
- Details might vary depending on which login extensions are installed, your wiki may be different than wikipedia. Check api.php?action=query&meta=authmanagerinfo&amirequestsfor=login on your wiki for what the remember me field is named. Bawolff (talk) 03:07, 26 October 2020 (UTC)
- Bawolf: thanks for that advice, I will do some more digging on this.
- Sasha: yes I finally managed to get this working, below is the code. Modify with your login details, URL's and temp folder path then run the script. Once you have run the script, you should find the cookie jar file in the temp folder as well as "login_details.txt" which will contain the login token and cookie details which were used to create the cookies.
- (Since the final curl call redirects a header with the cookies, it is not possible to do any echos prior to that, hence the "log file").
- Thanks
- Dennis
- <?php
- //open file for logging progress:
- $temp_folder = '/volume1/web/cookies/';
- $log = fopen($temp_folder . 'login_details.txt', 'w');
- //create cookie jar file to temporary store cookie data
- $cookie_jar = tempnam($temp_folder,'cookie');
- $tokenurl='http://192.168.xxx.xxx:90xx/wiki/api.php?action=query&meta=tokens&type=login&format=json';
- // acquire mediawiki login token
- $c = curl_init($tokenurl);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
- $page = curl_exec($c);
- $logintoken_array = json_decode($page);
- $logintoken = $logintoken_array->query->tokens->logintoken;
- fwrite($log,'Token = ' . $logintoken . PHP_EOL . PHP_EOL);
- // log in to mediawiki using action=clientlogin
- curl_close($c);
- $post = [
- 'action' => 'clientlogin',
- 'username' => '<your username>',
- 'password' => '<your password>',
- 'logintoken' => $logintoken,
- 'loginreturnurl' => 'http://192.168.xxx.xxx:90xx'
- ];
- $loginurl='http://192.168.xxx.xxx:90xx/wiki/api.php';
- $c = curl_init($loginurl);
- curl_setopt($c, CURLOPT_POST, 1);
- curl_setopt($c, CURLOPT_POSTFIELDS, $post);
- curl_setopt($c, CURLOPT_HEADER, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
- //write cookies to the file $cookie_jar
- $page = curl_exec($c);
- curl_close($c);
- //extract cookies from $cookie_jar
- $file=$cookie_jar;
- $fopen = fopen($file, "r");
- $fread = fread($fopen,filesize($file));
- fclose($fopen);
- $remove = "\n";
- $split = explode($remove, $fread);
- $array[] = null;
- $tab = "\t";
- foreach ($split as $string) {
- $row = explode($tab, $string);
- array_push($array,$row);
- }
- fwrite($log, 'Cookie details:' . PHP_EOL);
- for ($x = 5; $x <= 9; $x++) {
- $cookie_name = $array[$x][5];
- if (isset($cookie_name)) {
- $cookie_expire = $array[$x][4];
- $cookie_value = $array[$x][6];
- setcookie($cookie_name, $cookie_value, $cookie_expire, "/");
- fwrite($log, $cookie_name . '|' . $cookie_value . '|' . $cookie_expire . PHP_EOL);
- }
- }
- //delete the file $cookie_jar
- //if (file_exists($cookie_jar)) {
- //unlink($cookie_jar);
- // }
- fclose($log);
- ?> Mrwassen (talk) 05:52, 29 October 2020 (UTC)
- Thank you very much Mrwassen, it works, if I run the script I get the cookies set, but if I open my MediaWiki homepage I'm not actually logged in. Am I missing something? Sasha Rizzetto (talk) 16:49, 1 November 2020 (UTC)
- Hi,
- Understand that I am not very knowledgeable about this topic. That being said, you should check that 4 cookies are created after the login attempt (at least that is what I am seeing) - these are:
- Name = xxxx_wiki_UserName | Value = the wiki user name e.g. "Admin"
- Name = xxxx_wiki_UserID | Value = the wiki user ID e.g. 1
- Name = xxxx_wiki_Token | Value = a 32 digit alphanumeric token
- Name = xxxx_wiki_session | Value = a 32 digit alphanumeric token
- The presence of the session cookie may depend upon whether you include "rememberMe = 1" as a parameter in your action=clientlogin (Im not 100% sure).
- If you don't at least get the 3 first cookies listed above then your login wasn't successful.
- Another thing to try would be to modify your script adding this line:
echo $page;
- right AFTER
$page = curl_exec($c);
- Then you should get the result of the login attempt something like "FAIL" or "SUCCESS"
- Thanks
- Dennis Mrwassen (talk) 18:56, 1 November 2020 (UTC)
- Thank you very much MrWassen, I managed make it working thanks to your tips!
- Greetings
- Sasha Sasha Rizzetto (talk) 15:18, 12 November 2020 (UTC)
- I copied your code changed the URL settings etc and managed to get a successful login: {"clientlogin":{"status":"PASS","username":"Wiki member"}}
- However, my Wiki home page does not actually load. I just get a blank page with the above 'clientlogin' status message. I assumed using the Mediawiki api.php with clientlogin would login AND load the webpage.
- I tried loading the webpage at the end of the script with: header( "Location: https: // xxxxxx.xxx/mediawiki/index.php" ); but that loaded the Wiki home page without showing the above login.
- Am I missing the final step to load the page with the required user already logged in?
- Environment:
- Joomla 3.9.21
- php 7.4.14
- Sourcerer 8.4.2
- MediaWiki 1.34.2
- Thanks
- Robin Robinhair2441 (talk) 14:15, 7 February 2021 (UTC)
- I've done a bit more research on this and found the login doesn't persist. Immediately after the api call to 'ClientLogin' I've queried the login status like this:
- .....
- //write cookies to the file $cookie_jar
- $page = curl_exec($c);
- echo $page;
- curl_close($c);
- //check login
- $loginurl='https:// xxxxxxx.xxx/mediawiki/api.php?action=query&meta=authmanagerinfo&amirequestsfor=login';
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, $loginurl);
- $page = curl_exec($c);
- echo $page;
- curl_close($c);
- ...and the resulting api call shows no logged in account!
- Any thoughts on what could be preventing the Login from persisting?
- Thanks
- Robin
- OUTPUT......
- {"clientlogin":{"status":"PASS","username":"HRCA member"}}
- This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.
- Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.
- See the complete documentation, or the API help for more information.
{
"batchcomplete": "",
"query": {
"authmanagerinfo": {
"canauthenticatenow": "",
"cancreateaccounts": "",
"preservedusername": "",
"requests": [
{
"id": "MediaWiki\\Auth\\PasswordAuthenticationRequest",
"metadata": {},
"required": "primary-required",
"provider": "Password-based authentication",
"account": "",
"fields": {
"username": {
"type": "string",
"label": "Username",
"help": "Username for authentication."
},
"password": {
"type": "password",
"label": "Password",
"help": "Password for authentication.",
"sensitive": ""
}
}
},
{
"id": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
"metadata": {},
"required": "optional",
"provider": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
"account": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
"fields": {
"rememberMe": {
"type": "checkbox",
"label": "Keep me logged in",
"help": "Whether the password should be remembered for longer than the length of the session.",
"optional": ""
}
}
}
]
}
}
}
Robinhair2441 (talk) 17:50, 7 February 2021 (UTC)- I'm new to how cookies are stored and formatted. Do these entries look valid? Is the 'FALSE' aspect a concern? [I've xed out the domain name]
- # Netscape HTTP Cookie File
- # http://curl.haxx.se/docs/http-cookies.html
- # This file was generated by libcurl! Edit at your own risk.
- #HttpOnly_xxxx.xxx FALSE / TRUE 0 www_mediawiki_mw__session v5cotr45k6i5gs4infvhvjmkhpl9dhg8
- #HttpOnly_xxxx.xxx FALSE / TRUE 1612804602 www_mediawiki_mw_UserID 1039
- #HttpOnly_xxxx.xxx FALSE / TRUE 1612804602 www_mediawiki_mw_UserName Wiki%20member
- #HttpOnly_xxxx.xxx FALSE / TRUE 1612718212 UseDC master
- #HttpOnly_xxxx.xxx FALSE / TRUE 1612718212 UseCDNCache false <=====Is this likely to cause a problem? Robinhair2441 (talk) 19:08, 7 February 2021 (UTC)
- did the redirection work ? i get blank page
- {
- "clientlogin": {
- "status": "PASS",
- "username": "Admin"
- }
- } 136.226.244.178 (talk) 16:22, 14 May 2024 (UTC)
RestBase installation on Lambda
I understand installing a RESTBase server will help with dirty differences (I keep getting these 'return' symbols when switching from wikieditor to visualeditor and I understand a RESTBase server will help with that).
Is it possible to set up as a Lambda service in Amazon AWS instead of having a fully devoted server? i.e. does anyone have any pointers as to whether that should be possible (I assume API Gateway + Lambda function)?
Thank you! Krug Walton (talk) 21:55, 19 October 2020 (UTC)
- API Gateway + Lambda function + Amazon Keyspaces (for Apache Cassandra) that is Krug Walton (talk) 09:20, 20 October 2020 (UTC)
MediaWiki 1.35 Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I just installed MediaWiki 1.35 on an Amazon Linux EC2 server, with php 7.3 and MariaDB
Everything seems to work fine, except when I try to edit a page using VisualEditor.
I cannot load a page for editing, I get the error:
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I can edit a new page with VisualEditor, but I when I try to save it, I get the same error.
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I have no trouble reaching the page via the REST endpoint:
http://MyWayCoolIPAddress/rest.php/v1/page/Main_Page
Which returns:
// 20201019142902
// http://MyWayCoolIPAddress/rest.php/v1/page/Main_Page
{
"id": 1,
"key": "Main_Page",
"title": "Main Page",
"latest": {
"id": 1,
"timestamp": "2020-10-14T17:17:27Z"
},
"content_model": "wikitext",
"license": {
"url": "",
"title": ""
},
"source": "MediaWiki has been installed.\n\nConsult the User's Guide for information on using the wiki software.\n\n== Getting started ==\n* Configuration settings list\n* MediaWiki FAQ\n* MediaWiki release mailing list\n* Localise MediaWiki for your language\n* Learn how to combat spam on your wiki"
}
If I try to call the API endpoint directly:
http://MyWayCoolIPAddress/api.php?action=visualeditor&paction=parse&page=Main_Page
I get a similar error:
{
"error": {
"code": "apierror-visualeditor-docserver-http-error",
"info": "Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached",
"*": "See http://MyWayCoolIPAddress/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
}
}
This is MediaWiki 1.35, and as far as I know it includes Parsoid-PHP, so I don't need to do any additional configuration.
I assume VisualEditor is not the problem because I can edit a new page, I just can't save it. CharlesCivi (talk) 21:58, 19 October 2020 (UTC)
- It sounds like the web server isn't allowed to make http connections to itself. Try turning off selinux for just the webserver. ☠MarkAHershberger☢(talk)☣ 13:12, 20 October 2020 (UTC)
- SELinux status: disabled CharlesCivi (talk) 13:42, 20 October 2020 (UTC)
- Is it trying to reach parsoid from the client, or from the server side and then pass it to the client? CharlesCivi (talk) 13:52, 20 October 2020 (UTC)
- VE connects to MW via
api.php
and then, because of the way VE was originally created, MW makes an http call to itself via rest.php. I'm pretty sure this will change in the next version of MW/VE. - The connections (from the instances I've seen) are made on localhost. Maybe your webserver isn't listening on localhost?
- In any, case check the "Linking with Parsoid" section of the documentation. It may help. ☠MarkAHershberger☢(talk)☣ 18:56, 20 October 2020 (UTC)
- On the server I execute:
curl http://localhost/rest.php/v1/page/Main_Page
and I get a good result - I checked the Link with Parsoid section, and it suggests adding the URL parameter, which I do,
- But, setting it to
'url' => $wgServer . $wgScriptPath . '/rest.php'
as suggested merely results in a timeout, as I would expect, because it can't reach itself by domain name - I set it specifically to
'url' => 'http://localhost/rest.php'
Which I've proven works through curl, but I receive a different error - 404, not found. - I added to the apache server to
Listen localhost:8000
and then modified the url to use:'url' => 'http://localhost:8000/rest.php'
but that gets the 404 - Based on those results, I assume that parsoid is using $wgServer by default, which is why it can't reach itself. CharlesCivi (talk) 20:43, 20 October 2020 (UTC)
- Based on my last response, I realized parsoid is using $wgServer to connect to rest.php
- So, I added the domain name to /etc/hosts using 127.0.0.1 and now it works!
- Thanks for helping me work it through CharlesCivi (talk) 20:45, 20 October 2020 (UTC)
- But it does make me wonder why it got a 404 when I changed the URL to localhost? CharlesCivi (talk) 20:47, 20 October 2020 (UTC)
- Your webserver probably thought that it wasn't serving a site named "localhost" but when you gave it your domain name, it worked. If you had told your server to serve the same site on localhost and your domain name, it probably would have worked. ☠MarkAHershberger☢(talk)☣ 15:01, 27 October 2020 (UTC)
- I am getting the same error above on Mediawiki 1.35, but only on large pages with large tables. Visual Editor works on all other pages without issue. On large pages, the progress bar for loading gets about 75% of the way and then this error pops up.
- Is there a way to increase the time limit? Ryansbudza (talk) 07:44, 27 October 2020 (UTC)
- Please ask a new question instead of replying to old ones with new issues. ☠MarkAHershberger☢(talk)☣ 15:02, 27 October 2020 (UTC)
Changing site content language
changing the language code should change the language for everyone who hasnt set a language different than previous default (it also has other effects like namespace names and certain wikisyntax changes).
If you want to change peoples preferences who have set it to something not default see Manual:userOptions.php Bawolff (talk) 01:31, 20 October 2020 (UTC)
- For the record, the previous post content was:
- Martin Urbanec (talk) 00:15, 23 October 2020 (UTC)
Hi, I'm trying to change my whole site to Italian and if I change the $wgLanguageCode to 'it' in my LocalSettings.php, it only changes the title of the page to Italian. I was looking to change the language to Italian for the whole site rather than just having users to log in and change their preferences. Is there any efficient way to do that? Thank you!
How to make my wiki look and act like a typical fandom wiki.
I'm on Windows 10, use xampp, and have mediawiki 1.35
Does anyone know if there's a way to make my wiki look, feel, and act like a typical fandom wiki. This includes the drop down menu, the image gallery, the infoboxes, character boxes, and so on. like what theme do they use, what extension, templates and soon.
An example of what I mean: https://naruto.fandom.com/wiki/Naruto_Uzumaki.
If not then that's fine, just something I've been wondering. Dark gundam (talk) 03:11, 20 October 2020 (UTC)
- To start with try Skin:Oasis. Look at the list of extensions on Special:Version on the fandom wiki and try and use all that you can (however some of wikia's stuff is difficult to use. Im not even sure if all of it is open source)
- If you're looking for a wikia alternative, ShoutWiki is a popular one i think. Bawolff (talk) 07:33, 20 October 2020 (UTC)
- Thanks for the skin and i didn't even know you could look at their Special:Version. It's also too late for me to switch to something else, I've written too much to change now but thanks anyways. Dark gundam (talk) 03:01, 21 October 2020 (UTC)
Question about * user group
Which users does actually the * group represent?
Based on the documentation which mentions "all users (including anonymous)", I had the impression that any change made for the * group would be inherited by all the other groups.
In practice though, for example setting $wgGroupPermissions['*']['edit'] = false; does prevent only unregistered users from editing pages and has no effect on logged in users who belong to the "user" group.
So which users are part of the * group? Costas Athan (talk) 12:22, 20 October 2020 (UTC)
- The * covers all users if no other groups have that permission set. If you look at DefaultSettings.php, though, you'll see that logged in users, by default, are explicitly allowed to edit. So $wgGroupPermissions['*']['edit'] = false; takes away anonymous user's right to edit, but not logged in users because $wgGroupPermissions['user']['edit'] = true; ☠MarkAHershberger☢(talk)☣ 13:06, 20 October 2020 (UTC)
- @MarkAHershberger
- OK. So in this case all, doesn't mean literally all, but all the ones who haven't a permission set through other groups. Maybe this should be explicitly explained in the documentation. Costas Athan (talk) 14:41, 20 October 2020 (UTC)
- I think there might be a misinterpretation here.
- The * group is all users, whether logged in, out etc. $wgGroupPermissions['*']['edit'] = false; only takes away rights in the sense that if you do that, anons are then in zero groups that have edit rights, while logged in users are still in at least one group that has edit rights. Setting a wgGroupPermissions right to false is not a revocation of the right (like $wgRevokePermissions would be), its just saying that that particular group no longer grants that particular right (because its overriding a previous true), without saying anything about what any other group does.
$wgGroupPermissions['*']['edit'] = false;
is the same asunset($wgGroupPermissions['*']['edit']);
or just never setting it in the first place. - In short: for a user to have a right, they have to be in at lesst one group with that right (and not have it be revoked by $wgRevokePermissions). The users rights are a combination of all the true values in $wgGroupPermissions (extensions can also add additional rights) Bawolff (talk) 03:23, 21 October 2020 (UTC)
- I wonder if we could use this to make the documentation clearer? ☠MarkAHershberger☢(talk)☣ 14:20, 21 October 2020 (UTC)
- Its a wiki. Feel free to add that. ☠MarkAHershberger☢(talk)☣ 18:37, 20 October 2020 (UTC)
- Yes, I know. I generally would hesitate to do so, because I'm a new user of MediaWiki without deep knowledge of it and I wouldn't like to introduce errors in the documentation. Anyway, I guess other users can always correct errors. Costas Athan (talk) 20:01, 20 October 2020 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 415)
I just installed mediawiki 1.35 every time I edit with the visual editor, when I save changes, I get error 415 and I don't know what happens, what can I do? 189.217.121.39 (talk) 12:43, 20 October 2020 (UTC)
- Check your access log and tell us what lines you see there for rest.php. ☠MarkAHershberger☢(talk)☣ 12:59, 20 October 2020 (UTC)
- i can't obtain access of the logs of the visualeditor, my wiki is alojed in host shared 189.217.121.39 (talk) 13:16, 20 October 2020 (UTC)
- i check yhis mistake of the file rest.php
- {"messageTranslations":{"es":"La ruta relativa solicitada () no coincide con ningún controlador conocido","en":"The requested relative path () did not match any known handler"},"httpCode":404,"httpReason":"Not Found"} Gota de agua (talk) 13:36, 20 October 2020 (UTC)
- How was that generated? And, it looks like VE is not set up correctly. How did you install it? ☠MarkAHershberger☢(talk)☣ 13:52, 20 October 2020 (UTC)
- that was installed with the mediawiki installation Gota de agua (talk) 14:24, 20 October 2020 (UTC)
- Can you add the following to your LocalSettings.php:(Change $logDir to something the webserver can write to, if needed.)
$logDir = "$IP/cache"; $wgDebugLogGroups['rest'] = "$logDir/rest.php";
- And apply the following diff:(If you don't know what I mean by "apply the following diff", let me know and I'll try to guide you through it.)
diff --git a/includes/Rest/EntryPoint.php b/includes/Rest/EntryPoint.php index 84704e67bb..e9031619a7 100644 --- a/includes/Rest/EntryPoint.php +++ b/includes/Rest/EntryPoint.php @@ -130,14 +130,23 @@ class EntryPoint { public function execute() { ob_start(); + + wfDebugLog( "rest", __METHOD__ . " got router: " . get_class( $this->router ) ); $response = $this->router->execute( $this->request ); + $proto = $response->getProtocolVersion(); + $req = $this->request->getUri(); + $code = $response->getStatusCode(); + $reason = $response->getReasonPhrase(); + wfDebugLog( "rest", "Got $code:$reason in response to $req" ); - $this->webResponse->header( - 'HTTP/' . $response->getProtocolVersion() . ' ' . - $response->getStatusCode() . ' ' . - $response->getReasonPhrase() ); + $this->webResponse->header( "HTTP/$proto $code $reason" ); - foreach ( $response->getRawHeaderLines() as $line ) { + wfDebugLog( "rest", "body: " . $this->request->getBody() ); + foreach ( $this->request->getHeaders() as $headerType => $line ) { + wfDebugLog( "rest", "< $headerType: " . implode( "/", $line ) ); + } + foreach ( $response->getRawHeaderLines() as $lineNo => $line ) { + wfDebugLog( "rest", "> $lineNo: $line" ); $this->webResponse->header( $line ); } diff --git a/includes/Rest/Router.php b/includes/Rest/Router.php index b6e674ea3c..1cb1b4f41f 100644 --- a/includes/Rest/Router.php +++ b/includes/Rest/Router.php @@ -362,8 +362,10 @@ class Router { } // Run the main part of the handler + wfDebugLog( "rest", "About to execute: " . get_class( $handler ) ); $response = $handler->execute(); if ( !( $response instanceof ResponseInterface ) ) { + wfDebugLog( "rest", "Response: $response" ); $response = $this->responseFactory->createFromReturnValue( $response ); }
- After that, you should get messages in your rest.log file (the one you will have told MediaWiki to log requests to with your LocalSettings.php modifications) which should begin to give us an idea of what is happening. ☠MarkAHershberger☢(talk)☣ 13:51, 20 October 2020 (UTC)
- ok, i add the lines a localsentigs.php i don't undernstand "aplic the next diference " the file rest.log where to consult? Gota de agua (talk) 14:23, 20 October 2020 (UTC)
- Nevermind the diff. Just put replace
includes/Rest/EntryPoint.php
in your mediawiki installation with this file. After that, try to use the VE. A log file should show up undercache/rest.log
on your shared hosing site. ☠MarkAHershberger☢(talk)☣ 18:36, 20 October 2020 (UTC)
this is what the register marks |
---|
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: body:
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Connection: close
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="<nowiki>https://www.mediawiki.org/wiki/Specs/HTML/2.0.0</nowiki>"
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < If-Match: W/"1/937a6cbd-1304-11eb-a83c-ac1f6b445cf0"
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-20 18:49:02 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: body:
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Connection: close
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="<nowiki>https://www.mediawiki.org/wiki/Specs/HTML/2.0.0</nowiki>"
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < If-Match: W/"1/937a6cbd-1304-11eb-a83c-ac1f6b445cf0"
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-20 18:49:03 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: body:
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Connection: close
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="<nowiki>https://www.mediawiki.org/wiki/Specs/HTML/2.0.0</nowiki>"
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < If-Match: W/"1/937a6cbd-1304-11eb-a83c-ac1f6b445cf0"
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: body:
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Connection: close
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="<nowiki>https://www.mediawiki.org/wiki/Specs/HTML/2.0.0</nowiki>"
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < If-Match: W/"1/937a6cbd-1304-11eb-a83c-ac1f6b445cf0"
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-20 18:51:09 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
|
Gota de agua (talk) 18:52, 20 October 2020 (UTC)
- So.... I have some logs from earlier this month that show the 415 responses like you're getting here, ... and I can't figure out what I did to get rid of them. ☠MarkAHershberger☢(talk)☣ 00:11, 21 October 2020 (UTC)
- so, that registers are solutions for this problem? Gota de agua (talk) 00:15, 21 October 2020 (UTC)
- There are. ping me here tomorrow and I'll ask you for some more debugging info that might help. ☠MarkAHershberger☢(talk)☣ 01:06, 21 October 2020 (UTC)
- good morning, According to everything, we agree that there is a solution, I hope it works, well then what remains to be done? Gota de agua (talk) 12:03, 21 October 2020 (UTC)
- Could you replace the files under
extensions/VisualEditor
with the following: - Then remove your old rest.log that you posted yesterday and then try the editing again. Assuming it won't work (I don't know why it would), please share what is in your rest.log, then. ☠MarkAHershberger☢(talk)☣ 14:40, 21 October 2020 (UTC)
- Gota de agua (talk) 15:23, 21 October 2020 (UTC)
now the result is 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="></head><body><p>gyighgfdf</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: body: 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 15:22:55 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'c59d59a3b73c98e8ce45e6fe', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '','' 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 15:22:55 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'c59d59a3b73c98e8ce45e6fe', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '','' ) 2020-10-21 15:22:55 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="><base href="https://lapluma.tk/index.php?title="></head><body><p>gyighgfdf</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: body: 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 15:22:56 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '4bfaead2e476a2ffb147c08b', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '','' 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 15:22:56 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '4bfaead2e476a2ffb147c08b', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '','' ) 2020-10-21 15:22:56 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415)
- Thank you. One more file. In mediawiki: includes/Rest/Validator/Validator.php
- Then remove the rest log and re-do the edit test as before. This time, though, look for the section in your
rest.log
that begins "validateBody got headers: " and paste only that section. - ☠MarkAHershberger☢(talk)☣ 15:59, 21 October 2020 (UTC)
example 2020-10-21 15:47:53 li2079-154 my_wiki: validateBody got headers: array ( 'Host' => array ( 0 => 'example.com', ), 'if-match' => array ( 0 => 'W/"32198/b8c6a998-13b4-11eb-8ebd-2dcfb48b422e"', ), 'accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'accept-language' => array ( 0 => 'en', ), 'user-agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'api-user-agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'cookie' => array ( 0 => 'my_wikiUserName=MarkAHershberger; VEE=visualeditor; my_wiki_session=4938qpn8h51u6lj47gomltfhnkl0qnkg; my_wikiUserID=28077', ), 'Content-Length' => array ( 0 => '1763', ), 'Content-Type' => array ( 0 => 'multipart/form-data; boundary=------------------------08126a5bb97e0366', ), 'Expect' => array ( 0 => '100-continue', ), )
- I just tested the visual editor and it still doesn't work, replace the above code in the rest.php file and it remains the same Gota de agua (talk) 16:12, 21 October 2020 (UTC)
- The last result you posted contained a line that looked like this:
'content-type' => 'application/json',
'via' => '1.1 alproxy',
- The via seems to indicate that you are using a proxy server and it may be caching and/or changing your headers. Can you remove the proxy? ☠MarkAHershberger☢(talk)☣ 16:30, 21 October 2020 (UTC)
- ok, these lines have been eliminated, i don't see any results Gota de agua (talk) 16:52, 21 October 2020 (UTC)
- What do you mean by "these lines"?
- Did you delete the old
rest.log
and use the includes/Rest/Validator/Validator.php replacement for the corresponding MediaWiki file that I pasted to generate a newrest.log
? ☠MarkAHershberger☢(talk)☣ 16:56, 21 October 2020 (UTC) - yes, I deleted the old rest, the new one removed the proxy lines and also added the "replacement of validateboy", the validator file, php, is also already modified Gota de agua (talk) 17:08, 21 October 2020 (UTC)
- Could you humor me and post the new
rest.log
? ☠MarkAHershberger☢(talk)☣ 17:21, 21 October 2020 (UTC)
2020-10-21 16:48:31 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:48:31 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="></head><body><p>m</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: body: 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:48:31 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'd47cb9ad4c4c23412cc8c4d0', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:48:31 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'd47cb9ad4c4c23412cc8c4d0', 'transfer-encoding' => 'chunked', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:48:32 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="><base href="https://lapluma.tk/index.php?title="></head><body><p>m</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 15:47:53 li2079-154 my_wiki: validateBody tiene encabezados: array ( 'Anfitrión' => matriz 0 => 'ejemplo.com', ), 'if-match' => matriz 0 => 'W / "32198 / b8c6a998-13b4-11eb-8ebd-2dcfb48b422e"', ), 'aceptar' => matriz 0 => 'texto / html; juego de caracteres = utf-8; profile = "https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" ', ), 'accept-language' => matriz 0 => 'en', ), 'user-agent' => matriz 0 => 'VisualEditor-MediaWiki / 1.35.0', ), 'api-user-agent' => matriz 0 => 'VisualEditor-MediaWiki / 1.35.0', ), 'cookie' => matriz 0 => 'my_wikiUserName = MarkAHershberger; VEE = visualeditor; my_wiki_session = 4938qpn8h51u6lj47gomltfhnkl0qnkg; my_wikiUserID = 28077 ', ), 'Content-Length' => matriz 0 => '1763', ), 'Content-Type' => matriz 0 => 'multipart / form-data; límite = ------------------------ 08126a5bb97e0366 ', ), 'Esperar' => matriz 0 => '100-continuar', ), ) 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: body: 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:48:33 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'e1ee6ec8d83009c5c44858db', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:48:33 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'e1ee6ec8d83009c5c44858db', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:48:33 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="></head><body><p>m</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: body: 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:51:14 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '6a174afd7ee8e266c841e9ee', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:51:14 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '6a174afd7ee8e266c841e9ee', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:51:14 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="><base href="https://lapluma.tk/index.php?title="></head><body><p>m</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: body: 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:51:14 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '1e2ecb5f6423b7b33defe1a5', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:51:14 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '1e2ecb5f6423b7b33defe1a5', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:51:15 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="></head><body><p>hcg</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: body: 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:51:24 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:51:24 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '61c23335300ab8c46bd6a1f9', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:51:24 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '61c23335300ab8c46bd6a1f9', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:51:25 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="><base href="https://lapluma.tk/index.php?title="></head><body><p>hcg</p></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: body: 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:51:26 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'dca14dfa71367245305588b1', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:51:26 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'dca14dfa71367245305588b1', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-21 16:51:26 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="></head><body><pre>2020-10-21 15:47:53 li2079-154 my_wiki: validateBody got headers: array ( \'Host\' => array ( 0 => \'example.com\', ), \'if-match\' => array ( 0 => \'W/"32198/b8c6a998-13b4-11eb-8ebd-2dcfb48b422e"\', ), \'accept\' => array ( 0 => \'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"\', ), \'accept-language\' => array ( 0 => \'en\', ), \'user-agent\' => array ( 0 => \'VisualEditor-MediaWiki/1.35.0\', ), \'api-user-agent\' => array ( 0 => \'VisualEditor-MediaWiki/1.35.0\', ), \'cookie\' => array ( 0 => \'my_wikiUserName=MarkAHershberger; VEE=visualeditor; my_wiki_session=4938qpn8h51u6lj47gomltfhnkl0qnkg; my_wikiUserID=28077\', ), \'Content-Length\' => array ( 0 => \'1763\', ), \'Content-Type\' => array ( 0 => \'multipart/form-data; boundary=------------------------08126a5bb97e0366\', ), \'Expect\' => array ( 0 => \'100-continue\', ), )</body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: body: 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:53:06 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '60018f8eead0860aad484087', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => , 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:53:06 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '60018f8eead0860aad484087', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => , ) 2020-10-21 16:53:06 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ('html' => '<!doctype html><html><head><base href="https://lapluma.tk/index.php?title="><base href="https://lapluma.tk/index.php?title="></head><body> 2020-10-21 15:47:53 li2079-154 my_wiki: validateBody got headers: array ( \'Host\' => array ( 0 => \'example.com\', ), \'if-match\' => array ( 0 => \'W/"32198/b8c6a998-13b4-11eb-8ebd-2dcfb48b422e"\', ), \'accept\' => array ( 0 => \'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"\', ), \'accept-language\' => array ( 0 => \'en\', ), \'user-agent\' => array ( 0 => \'VisualEditor-MediaWiki/1.35.0\', ), \'api-user-agent\' => array ( 0 => \'VisualEditor-MediaWiki/1.35.0\', ), \'cookie\' => array ( 0 => \'my_wikiUserName=MarkAHershberger; VEE=visualeditor; my_wiki_session=4938qpn8h51u6lj47gomltfhnkl0qnkg; my_wikiUserID=28077\', ), \'Content-Length\' => array ( 0 => \'1763\', ), \'Content-Type\' => array ( 0 => \'multipart/form-data; boundary=------------------------08126a5bb97e0366\', ), \'Expect\' => array ( 0 => \'100-continue\', ), )</body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => NULL, 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: body: 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Connection: close 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Wed, 21 Oct 2020 16:53:07 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'ffdacf9cda9e61e7a892a07d', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => , 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Wed, 21 Oct 2020 16:53:07 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'ffdacf9cda9e61e7a892a07d', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => , ) 2020-10-21 16:53:07 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) |
Gota de agua (talk) 17:37, 21 October 2020 (UTC)
- This is the part I was looking for:
2020-10-21 16:48:32 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), )
- You can see that MediaWiki (
Api-User-Agent
) is going through the proxy (Via
) and that the headers do not includeContent-Type
. - Do you have $wgHTTPProxy set? ☠MarkAHershberger☢(talk)☣ 18:31, 21 October 2020 (UTC)
- the proxyhttp i don't know, i don't know how configure that.
- that code should it be removed or added? Gota de agua (talk) 20:00, 21 October 2020 (UTC)
- I thought you might be using and that might be causing the problem.
- The problem apprears to be that mediawiki is somehow using a proxy when it should not be and that proxy appears to be filtering out some headers that Parsoid or VE expects.
- Beyond that, I don't know what I can tell you since I'm not familiar with how your MediaWiki, php, or server is configured. ☠MarkAHershberger☢(talk)☣ 22:27, 21 October 2020 (UTC)
- ok i understand, visualeditor i think that is the configuration predeterm and i don't if exist how change that
- my server is in alwaysdata is shared, these are my dates of software in the wiki, That would be solved although I don't know how it is
Producto | Versión |
---|---|
MediaWiki | 1.35.0 |
PHP | 7.3.22 (cgi-fcgi) |
MariaDB | 10.4.14-MariaDB |
ICU | 63.1 |
Lua | 5.1.5 |
- ==URL del punto de entrada==
Punto de entrada | URL |
---|---|
Ruta del artículo | /index.php?title=$1 |
Ruta de la secuencia de órdenes | / |
index.php | /index.php |
api.php | /api.php |
rest.php | /rest.php |
- ==Apariencias instaladas==
Apariencia | Versión | Licencia | Descripción | Autores |
---|---|---|---|---|
Vector | – | GPL-2.0-or-later | Versión moderna de MonoBook, con un aspecto actualizado y muchas mejoras de usabilidad | Trevor Parscal, Roan Kattouw y otros |
- ==Extensiones instaladas==
Páginas especiales | ||||
---|---|---|---|---|
Extensión | Versión | Licencia | Descripción | Autores |
CiteThisPage | – | GPL-2.0-or-later | Añade una página especial para citar las páginas y un enlace en el cuadro de herramientas | Ævar Arnfjörð Bjarmason y James D. Forrester |
Interwiki | 3.2 | GPL-2.0-or-later | Añade una página especial para ver y editar la tabla de interwikis | Stephanie Amanda Stevens, Alexandre Emsenhuber, Robin Pepermans, Siebrand Mazeland, Platonides, Raimond Spekking, Sam Reed, Jack Phoenix, Calimonius the Estrange y otros |
Nuke | 1.3.0 | GPL-2.0-or-later | Da a los administradores la posibilidad de borrar páginas de forma masiva | Brion Vibber y Jeroen De Dauw |
Renameuser | – | GPL-2.0-or-later | Añade una página especial para cambiar el nombre de un usuario (necesita el permiso renameuser) | Ævar Arnfjörð Bjarmason y Aaron Schulz |
Replace Text | 1.4.1 | GPL-2.0-or-later | Provee a los administradores de una página especial para realizar una búsqueda y reemplazo global de una expresión en todas las páginas de una wiki. | Yaron Koren, Niklas Laxström y otros |
Editores | ||||
Extensión | Versión | Licencia | Descripción | Autores |
CodeEditor | – | GPL-2.0-or-later AND BSD-3-Clause | Edición de páginas con resaltado de sintaxis para JavaScript y CSS, usando el editor Ace | Brion Vibber, Derk-Jan Hartman y authors of Ace |
VisualEditor | 0.1.2 | MIT | Editor visual para MediaWiki | Alex Monk, Bartosz Dziewoński, C. Scott Ananian, Christian Williams, David Lynch, Ed Sanders, Inez Korczyński, James D. Forrester, Moriel Schottlender, Roan Kattouw, Rob Moen, Subramanya Sastry, Thalia Chan, Timo Tijhof, Trevor Parscal y otros |
WikiEditor | 0.5.3 | GPL-2.0-or-later | Provee una interfaz avanzada y extensible de edición de wikitexto | Derk-Jan Hartman, Trevor Parscal, Roan Kattouw, Nimish Gautam y Adam Miller |
Extensiones del analizador sintáctico | ||||
Extensión | Versión | Licencia | Descripción | Autores |
CategoryTree | – | GPL-2.0-or-later | Navegar dinámicamente por la estructura de categorías | Daniel Kinzler |
Cite | – | GPL-2.0-or-later | Añade las etiquetas <ref> y <references> para citas. |
Ævar Arnfjörð Bjarmason, Andrew Garrett, Brion Vibber, Ed Sanders, Marius Hoch, Steve Sanbeg, Trevor Parscal y otros |
ImageMap | – | GPL-2.0-or-later | Permite image-maps dinámicos usando la etiqueta <imagemap> |
Tim Starling |
InputBox | 0.3.0 | MIT | Permite la inclusión de formularios HTML predefinidos | Erik Moeller, Leonardo Pimenta, Rob Church, Trevor Parscal y DaSch |
ParserFunctions | 1.6.0 | GPL-2.0-or-later | Mejora el analizador con funciones lógicas. | Tim Starling, Robert Rohde, Ross McClure y Juraj Simlovic |
Poem | – | CC0-1.0 | Añade la etiqueta <poem> para dar el formato propio de un poema. |
Nikola Smolenski, Brion Vibber y Steve Sanbeg |
Scribunto | – | GPL-2.0-or-later AND MIT | Marco para la incorporación de lenguajes de script en páginas de MediaWiki | Victor Vasiliev, Tim Starling y Brad Jorsch |
SyntaxHighlight | 2.0 | GPL-2.0-or-later | Permite resaltar el código fuente usando la etiqueta <syntaxhighlight> . Esta extensión usa Pygments - Resaltador de sintaxis en Python |
Brion Vibber, Tim Starling, Rob Church, Niklas Laxström, Ori Livneh y Ed Sanders |
TemplateData | 0.1.2 | GPL-2.0-or-later | Implementa almacenamiento de datos para parámetros de plantillas (mediante JSON). | Timo Tijhof, Moriel Schottlender, James D. Forrester, Trevor Parscal, Bartosz Dziewoński, Marielle Volz y otros |
Manejadores de medios | ||||
Extensión | Versión | Licencia | Descripción | Autores |
PDF Handler | – | GPL-2.0-or-later | Controlador para ver archivos PDF en modo imagen. | Martin Seidel y Mike Połtyn |
Prevención de spam | ||||
Extensión | Versión | Licencia | Descripción | Autores |
ConfirmEdit | 1.6.0 | GPL-2.0-or-later | Provee técnicas CAPTCHA para proteger contra spam y adivinación de contraseña. | Brion Vibber, Florian Schmidt, Sam Reed y otros |
SpamBlacklist | – | GPL-2.0-or-later | Herramienta anti-spam basada en expresiones regulares que permite filtrar URLs en páginas y direcciones de correo electrónico para usuarios registrados | Tim Starling, John Du Hart y Daniel Kinzler |
TitleBlacklist | 1.5.0 | GPL-2.0-or-later | Permite que los administradores prohíban la creación de páginas y cuentas de usuario mediante una lista negra y una lista blanca | Victor Vasiliev y Fran Rogers |
API | ||||
Extensión | Versión | Licencia | Descripción | Autores |
PageImages | – | WTFPL | Recopila información sobre las imágenes utilizadas en la página | Max Semenik |
Otro | ||||
Extensión | Versión | Licencia | Descripción | Autores |
Gadgets | – | GPL-2.0-or-later | Permite a los usuarios seleccionar accesorios de CSS y JavaScript personalizados en sus preferencias. | Daniel Kinzler y Max Semenik |
LocalisationUpdate | 1.4.0 | GPL-2.0-or-later | Mantiene los mensajes traducidos tan actualizados como sea posible | Tom Maaswinkel, Niklas Laxström y Roan Kattouw |
MultimediaViewer | – | GPL-2.0-or-later | Expande las miniaturas a un tamaño mayor en una vista de pantalla completa. | MarkTraceur (Mark Holmquist), Gilles Dubuc, Gergő Tisza, Aaron Arcos, Zeljko Filipin, Pau Giner, theopolisme, MatmaRex, apsdehal, vldandrew, Ebrahim Byagowi, Dereckson, Brion VIBBER, Yuki Shira, Yaroslav Melnychuk, tonythomas01, Raimond Spekking, Kunal Mehta, Jeff Hall, Christian Aistleitner, Amir E. Aharoni y otros |
Parsoid | – | Licencia | The Parsoid extension enables the REST API for Parsoid. This is needed to support VisualEditor. | |
SecureLinkFixer | – | GPL-3.0-or-later | Reescribe las URL a HTTPS si el dominio siempre requiere HTTPS | Kunal Mehta |
TextExtracts | – | GPL-2.0-or-later | Proporciona extractos del contenido de una página en texto sencillo o HTML limitado | Max Semenik |
Bibliotecas instaladas
Biblioteca | Versión | Licencia | Descripción | Autores |
---|---|---|---|---|
composer/semver | 1.5.1 | MIT | Semver library that offers utilities, version constraint parsing and validation. | Nils Adermann, Jordi Boggiano y Rob Bast |
composer/spdx-licenses | 1.5.3 | MIT | SPDX licenses list and validation library. | Nils Adermann, Jordi Boggiano y Rob Bast |
composer/xdebug-handler | 1.4.3 | MIT | Restarts a process without Xdebug. | John Stevenson |
cssjanus/cssjanus | 1.3.0 | Apache-2.0 | Convert CSS stylesheets between left-to-right and right-to-left. | Trevor Parscal, Roan Kattouw y Timo Tijhof |
dnoegel/php-xdg-base-dir | 0.1.1 | MIT | implementation of xdg base directory specification for php | |
doctrine/cache | 1.10.2 | MIT | PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others. | Guilherme Blanco, Roman Borschel, Benjamin Eberlei, Jonathan Wage y Johannes Schmitt |
doctrine/dbal | 2.10.2 | MIT | Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management. | Guilherme Blanco, Roman Borschel, Benjamin Eberlei y Jonathan Wage |
doctrine/event-manager | 1.1.1 | MIT | The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects. | Guilherme Blanco, Roman Borschel, Benjamin Eberlei, Jonathan Wage, Johannes Schmitt y Marco Pivetta |
doctrine/instantiator | 1.3.1 | MIT | A small, lightweight utility to instantiate objects in PHP without invoking their constructors | Marco Pivetta |
doctrine/sql-formatter | 1.1.0 | MIT | a PHP SQL highlighting library | Jeremy Dorn |
felixfbecker/advanced-json-rpc | 3.1.1 | ISC | A more advanced JSONRPC implementation | Felix Becker |
giorgiosironi/eris | 0.10.0 | MIT | PHP library for property-based testing. Integrates with PHPUnit. | Gabriele Lana, Giorgio Sironi y Mirko Bonadei |
guzzlehttp/guzzle | 6.5.4 | MIT | Guzzle is a PHP HTTP client library | Michael Dowling |
guzzlehttp/promises | 1.4.0 | MIT | Guzzle promises library | Michael Dowling |
guzzlehttp/psr7 | 1.7.0 | MIT | PSR-7 message implementation that also provides common utility methods | Michael Dowling y Tobias Schultze |
hamcrest/hamcrest-php | 2.0.1 | BSD-3-Clause | This is the PHP port of Hamcrest Matchers | |
johnkary/phpunit-speedtrap | 3.2.0 | MIT | Find and report on slow tests in your PHPUnit test suite | John Kary |
justinrainbow/json-schema | 5.2.10 | MIT | A library to validate a json schema. | Bruno Prieto Reis, Justin Rainbow, Igor Wiedler y Robert Schönthal |
liuggio/statsd-php-client | 1.0.18 | MIT | Statsd (Object Oriented) client library for PHP | Giulio De Donato |
mediawiki/mediawiki-codesniffer | 31.0.0 | GPL-2.0-or-later | MediaWiki CodeSniffer Standards | |
mediawiki/mediawiki-phan-config | 0.10.2 | GPL-2.0-or-later | Standard MediaWiki phan configuration | MediaWiki developers |
mediawiki/phan-taint-check-plugin | 3.0.2 | GPL-2.0-or-later | A Phan plugin to do security checking | Brian Wolff |
microsoft/tolerant-php-parser | 0.0.20 | MIT | Tolerant PHP-to-AST parser designed for IDE usage scenarios | Rob Lourens |
monolog/monolog | 1.25.5 | MIT | Sends your logs to files, sockets, inboxes, databases and various web services | Jordi Boggiano |
myclabs/deep-copy | 1.10.1 | MIT | Create deep copies (clones) of your objects | |
netresearch/jsonmapper | 2.1.0 | OSL-3.0 | Map nested JSON structures onto PHP classes | Christian Weiske |
nikic/php-parser | 4.4.0 | BSD-3-Clause | A PHP parser written in PHP | Nikita Popov |
nmred/kafka-php | 0.1.5 | BSD-3-Clause | Kafka client for php | |
oojs/oojs-ui | 0.39.3 | MIT | Provides library of common widgets, layouts, and windows. | Bartosz Dziewoński, Ed Sanders, James D. Forrester, Kirsten Menger-Anderson, Kunal Mehta, Prateek Saxena, Roan Kattouw, Rob Moen, Timo Tijhof y Trevor Parscal |
pear/console_getopt | 1.4.3 | BSD-2-Clause | More info available on: http://pear.php.net/package/Console_Getopt | Andrei Zmievski, Stig Bakken y Greg Beaver |
pear/mail | 1.4.1 | BSD-2-Clause | Class that provides multiple interfaces for sending emails. | Chuck Hagenbuch, Richard Heyes y Aleksander Machniak |
pear/mail_mime | 1.10.8 | BSD-3-clause | Mail_Mime provides classes to create MIME messages | Cipriano Groenendal y Aleksander Machniak |
pear/net_smtp | 1.9.1 | BSD-2-Clause | An implementation of the SMTP protocol | Jon Parise y Chuck Hagenbuch |
pear/net_socket | 1.2.2 | PHP License | More info available on: http://pear.php.net/package/Net_Socket | Chuck Hagenbuch, Aleksander Machniak y Stig Bakken |
pear/pear-core-minimal | 1.10.10 | BSD-3-Clause | Minimal set of PEAR core files to be used as composer dependency | Christian Weiske |
pear/pear_exception | 1.0.1 | BSD-2-Clause | The PEAR Exception base class. | Helgi Thormar y Greg Beaver |
phan/phan | 2.6.1 | MIT | A static analyzer for PHP | Tyson Andre, Rasmus Lerdorf y Andrew S. Morrison |
phar-io/manifest | 1.0.3 | BSD-3-Clause | Component for reading phar.io manifest information from a PHP Archive (PHAR) | Arne Blankerts, Sebastian Heuer y Sebastian Bergmann |
phar-io/version | 2.0.1 | BSD-3-Clause | Library for handling version information and constraints | Arne Blankerts, Sebastian Heuer y Sebastian Bergmann |
php-parallel-lint/php-console-color | 0.3 | BSD-2-Clause | Jakub Onderka | |
php-parallel-lint/php-console-highlighter | 0.5 | MIT | Highlight PHP code in terminal | Jakub Onderka |
php-parallel-lint/php-parallel-lint | 1.2.0 | BSD-2-Clause | This tool check syntax of PHP files about 20x faster than serial check. | Jakub Onderka |
phpdocumentor/reflection-common | 2.2.0 | MIT | Common reflection classes used by phpdocumentor to reflect the code structure | Jaap van Otterdijk |
phpdocumentor/reflection-docblock | 5.2.2 | MIT | With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock. | Mike van Riel y Jaap van Otterdijk |
phpdocumentor/type-resolver | 1.4.0 | MIT | A PSR-5 based resolver of Class names, Types and Structural Element Names | Mike van Riel |
phpspec/prophecy | 1.12.1 | MIT | Highly opinionated mocking framework for PHP 5.3+ | Konstantin Kudryashov y Marcello Duarte |
phpunit/php-code-coverage | 7.0.10 | BSD-3-Clause | Library that provides collection, processing, and rendering functionality for PHP code coverage information. | Sebastian Bergmann |
phpunit/php-file-iterator | 2.0.2 | BSD-3-Clause | FilterIterator implementation that filters files based on a list of suffixes. | Sebastian Bergmann |
phpunit/php-text-template | 1.2.1 | BSD-3-Clause | Simple template engine. | Sebastian Bergmann |
phpunit/php-timer | 2.1.2 | BSD-3-Clause | Utility class for timing | Sebastian Bergmann |
phpunit/php-token-stream | 3.1.1 | BSD-3-Clause | Wrapper around PHP's tokenizer extension. | Sebastian Bergmann |
phpunit/phpunit | 8.5.8 | BSD-3-Clause | The PHP Unit Testing framework. | Sebastian Bergmann |
pimple/pimple | 3.3.0 | MIT | Pimple, a simple Dependency Injection Container | Fabien Potencier |
pleonasm/bloom-filter | 1.0.2 | BSD-2-Clause | A pure PHP implementation of a Bloom Filter | Matthew Nagi |
psr/container | 1.0.0 | MIT | Common Container Interface (PHP FIG PSR-11) | PHP-FIG |
psr/http-message | 1.0.1 | MIT | Common interface for HTTP messages | PHP-FIG |
psr/log | 1.1.3 | MIT | Common interface for logging libraries | PHP-FIG |
psy/psysh | 0.10.4 | MIT | An interactive shell for modern PHP. | Justin Hileman |
ralouphie/getallheaders | 3.0.3 | MIT | A polyfill for getallheaders. | Ralph Khattar |
sabre/event | 5.1.2 | BSD-3-Clause | sabre/event is a library for lightweight event-based programming | Evert Pot |
sebastian/code-unit-reverse-lookup | 1.0.1 | BSD-3-Clause | Looks up which function or method a line of code belongs to | Sebastian Bergmann |
sebastian/comparator | 3.0.2 | BSD-3-Clause | Provides the functionality to compare PHP values for equality | Jeff Welch, Volker Dusch, Bernhard Schussek y Sebastian Bergmann |
sebastian/diff | 3.0.2 | BSD-3-Clause | Diff implementation | Kore Nordmann y Sebastian Bergmann |
sebastian/environment | 4.2.3 | BSD-3-Clause | Provides functionality to handle HHVM/PHP environments | Sebastian Bergmann |
sebastian/exporter | 3.1.2 | BSD-3-Clause | Provides the functionality to export PHP variables for visualization | Sebastian Bergmann, Jeff Welch, Volker Dusch, Adam Harvey y Bernhard Schussek |
sebastian/global-state | 3.0.0 | BSD-3-Clause | Snapshotting of global state | Sebastian Bergmann |
sebastian/object-enumerator | 3.0.3 | BSD-3-Clause | Traverses array structures and object graphs to enumerate all referenced objects | Sebastian Bergmann |
sebastian/object-reflector | 1.1.1 | BSD-3-Clause | Allows reflection of object attributes, including inherited and non-public ones | Sebastian Bergmann |
sebastian/recursion-context | 3.0.0 | BSD-3-Clause | Provides functionality to recursively process PHP variables | Jeff Welch, Sebastian Bergmann y Adam Harvey |
sebastian/resource-operations | 2.0.1 | BSD-3-Clause | Provides a list of PHP built-in functions that operate on resources | Sebastian Bergmann |
sebastian/type | 1.1.3 | BSD-3-Clause | Collection of value objects that represent the types of the PHP type system | Sebastian Bergmann |
sebastian/version | 2.0.1 | BSD-3-Clause | Library that helps with managing the version number of Git-hosted PHP projects | Sebastian Bergmann |
seld/jsonlint | 1.7.1 | MIT | JSON Linter | Jordi Boggiano |
squizlabs/php_codesniffer | 3.5.5 | BSD-3-Clause | PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. | Greg Sherwood |
symfony/console | 5.1.7 | MIT | Symfony Console Component | Fabien Potencier y Symfony Community |
symfony/polyfill-intl-grapheme | 1.18.1 | MIT | Symfony polyfill for intl's grapheme_* functions | Nicolas Grekas y Symfony Community |
symfony/polyfill-intl-idn | 1.17.0 | MIT | Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions | Laurent Bassin y Symfony Community |
symfony/polyfill-intl-normalizer | 1.18.1 | MIT | Symfony polyfill for intl's Normalizer class and related functions | Nicolas Grekas y Symfony Community |
symfony/polyfill-php72 | 1.18.1 | MIT | Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions | Nicolas Grekas y Symfony Community |
symfony/polyfill-php73 | 1.18.1 | MIT | Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions | Nicolas Grekas y Symfony Community |
symfony/polyfill-php80 | 1.18.1 | MIT | Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions | Ion Bazan, Nicolas Grekas y Symfony Community |
symfony/service-contracts | 2.2.0 | MIT | Generic abstractions related to writing services | Nicolas Grekas y Symfony Community |
symfony/string | 5.1.7 | MIT | Symfony String component | Nicolas Grekas y Symfony Community |
symfony/var-dumper | 5.1.7 | MIT | Symfony mechanism for exploring and dumping PHP variables | Nicolas Grekas y Symfony Community |
symfony/yaml | 5.0.11 | MIT | Symfony Yaml Component | Fabien Potencier y Symfony Community |
theseer/tokenizer | 1.2.0 | BSD-3-Clause | A small library for converting tokenized PHP source code into XML and potentially other formats | Arne Blankerts |
webmozart/assert | 1.9.1 | MIT | Assertions to validate method input/output with nice error messages. | Bernhard Schussek |
wikimedia/assert | 0.5.0 | MIT | Provides runtime assertions | Daniel Kinzler y Thiemo Kreuz |
wikimedia/at-ease | 2.0.0 | GPL-2.0-or-later | Safe replacement to @ for suppressing warnings. | Tim Starling y MediaWiki developers |
wikimedia/avro | 1.9.0 | Apache-2.0 | A library for using Apache Avro with PHP. | Michael Glaesemann, Andy Wick, Saleem Shafi, A B, Doug Cutting y Tom White |
wikimedia/base-convert | 2.0.1 | GPL-2.0-or-later | Convert an arbitrarily-long string from one numeric base to another, optionally zero-padding to a minimum column width. | Brion Vibber y Tyler Romeo |
wikimedia/cdb | 1.4.1 | GPL-2.0+ | Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent. | Daniel Kinzler, Tim Starling, Chad Horohoe y Ori Livneh |
wikimedia/cldr-plural-rule-parser | 1.0.0 | GPL-2.0+ | Evaluates plural rules specified in the CLDR project notation. | Tim Starling y Niklas Laxström |
wikimedia/common-passwords | 0.2.0 | MIT | List of the 100,000 most commonly used passwords | Sam Reed |
wikimedia/composer-merge-plugin | 1.4.1 | MIT | Composer plugin to merge multiple composer.json files | Bryan Davis |
wikimedia/html-formatter | 1.0.2 | GPL-2.0-or-later | Performs transformations of HTML by wrapping around libxml2 and working around its countless bugs. | MediaWiki contributors |
wikimedia/ip-set | 2.1.0 | GPL-2.0-or-later | Efficiently match IP addresses against a set of CIDR specifications. | Brandon Black |
wikimedia/ip-utils | 1.0.0 | GPL-2.0-or-later | Functions and constants to play with IP addresses and ranges | MediaWiki developers |
wikimedia/less.php | 3.0.0 | Apache-2.0 | PHP port of the Javascript version of LESS http://lesscss.org (Originally maintained by Josh Schmidt) | Josh Schmidt, Matt Agar y Martin Jantošovič |
wikimedia/object-factory | 2.1.0 | GPL-2.0-or-later | Construct objects from configuration instructions | Bryan Davis |
wikimedia/parsoid | 0.12.0 | GPL-2.0-or-later | Parsoid, a bidirectional parser between wikitext and HTML5 | Wikimedia Parsing Team and the broader MediaWiki community |
wikimedia/php-session-serializer | 1.0.7 | GPL-2.0-or-later | Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION | Brad Jorsch |
wikimedia/purtle | 1.0.7 | GPL-2.0-or-later | Fast streaming RDF serializer | Daniel Kinzler, Stanislav Malyshev, C. Scott Ananian y Thiemo Kreuz |
wikimedia/relpath | 2.1.1 | MIT | Compute a relative filepath between two paths. | Ori Livneh |
wikimedia/remex-html | 2.2.0 | MIT | Fast HTML 5 parser | Tim Starling |
wikimedia/running-stat | 1.2.1 | GPL-2.0+ | PHP implementations of online statistical algorithms | Ori Livneh |
wikimedia/scoped-callback | 3.0.0 | GPL-2.0-or-later | Class for asserting that a callback happens when a dummy object leaves scope | Aaron Schulz |
wikimedia/services | 2.0.1 | GPL-2.0-or-later | Generic service to manage named services using lazy instantiation based on instantiator callback functions | Daniel Kinzler |
wikimedia/testing-access-wrapper | 1.0.0 | GPL-2.0+ | A simple helper class to access non-public elements of a class when testing. | Adam Roses Wight, Brad Jorsch y Gergő Tisza |
wikimedia/timestamp | 3.0.0 | GPL-2.0-or-later | Creation, parsing, and conversion of timestamps | Tyler Romeo |
wikimedia/utfnormal | 2.0.0 | GPL-2.0-or-later | Contains Unicode normalization routines, including both pure PHP implementations and automatic use of the 'intl' PHP extension when present | Brion Vibber |
wikimedia/wait-condition-loop | 1.0.1 | GPL-2.0+ | Wait loop that reaches a condition or times out | Aaron Schulz |
wikimedia/wikipeg | 2.0.4 | MIT | Parser generator for JavaScript and PHP | |
wikimedia/wrappedstring | 3.2.0 | MIT | Automatically compact sequentially-outputted strings that share a common prefix / suffix pair. | Timo Tijhof |
wikimedia/xmp-reader | 0.7.0 | GPL-2.0-or-later | Reader for XMP data containing properties relevant to images | Brian Wolff |
wikimedia/zest-css | 1.1.3 | MIT | Fast, lightweight, extensible CSS selector engine for PHP | Christopher Jeffrey y C. Scott Ananian |
wmde/hamcrest-html-matchers | 0.1.1 | LGPL-2.1 | Set of Hamcrest matchers for HTML assertrions | Aleksey Bekh-Ivanov |
zordius/lightncandy | 1.2.5 | MIT | An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ). | Zordius Chen |
Gota de agua (talk) 00:00, 22 October 2020 (UTC)
- This information is helpful, but would probably be most helpful is your LocalSettings.php file with passwords elided. ☠MarkAHershberger☢(talk)☣ 00:29, 22 October 2020 (UTC)
- Gota de agua (talk) 00:50, 22 October 2020 (UTC)
<?php #This file was automatically generated by the MediaWiki 1.35.0 #installer. If you make manual changes, please keep track in case you #need to recreate them later. # #See includes/DefaultSettings.php for all configurable settings #and their default values, but don't forget to make changes in _this_ #file, not there. # #Further documentation for configuration settings may be found at: #https://www.mediawiki.org/wiki/Manual:Configuration_settings #Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } ##Uncomment this to disable output compression #$wgDisableOutputCompression = true; $wgSitename = "La pluma azul"; $wgMetaNamespace = "La_pluma_azul"; ##The URL base path to the directory containing the wiki; ##defaults for all runtime URL paths are based off of this. ##For more information on customizing the URLs ##(like /w/index.php/Page_title to /wiki/Page_title) please see: ##https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = ""; ##The protocol and server name to use in fully-qualified URLs $wgServer = "http://lapluma.tk"; ##The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; ##The URL paths to the logo. Make sure you change this from the default, ##or else you'll overwrite your logo when you upgrade! $wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ]; ##UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "apache@lapluma.tk"; $wgPasswordSender = "apache@lapluma.tk"; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true; ##Database settings $wgDBtype = "mysql"; $wgDBserver = "mysql-pony.alwaysdata.net"; $wgDBname = "pony_mediawiki"; $wgDBuser = "pony_mediawiki1"; $wgDBpassword = "---"; #MySQL specific settings $wgDBprefix = "wiki"; #MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; ##Shared memory settings $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = []; ##To enable image uploads, make sure the 'images' directory ##is writable, then set this to true: $wgEnableUploads = false; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; #InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = false; #Periodically send a pingback to https://www.mediawiki.org/ with basic data #about this MediaWiki instance. The Wikimedia Foundation shares this data #with MediaWiki developers to help guide future development efforts. $wgPingback = false; ##If you use ImageMagick (or any other shell command) on a ##Linux server, this will need to be set to the name of an ##available UTF-8 locale $wgShellLocale = "C.UTF-8"; ##Set $wgCacheDirectory to a writable directory on the web server ##to make your wiki go slightly faster. The directory should not ##be publicly accessible from the web. #$wgCacheDirectory = "$IP/cache"; #Site language code, should be one of the list in ./languages/data/Names.php $wgLanguageCode = "es"; $wgSecretKey = "---"; #Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1"; #Site upgrade key. Must be set to a string (default provided) to turn on the #web installer while LocalSettings.php is in place $wgUpgradeKey = "---"; ##For attaching licensing metadata to pages, and displaying an ##appropriate copyright notice / icon. GNU Free Documentation ##License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; #Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = "/usr/bin/diff3"; ##Default skin: you can change the default skin. Use the internal symbolic ##names, ie 'vector', 'monobook': $wgDefaultSkin = "vector"; #Enabled skins. #The following skins were automatically enabled: wfLoadSkin( 'Vector' ); wfLoadExtension( 'CategoryTree' ); wfLoadExtension( 'Cite' ); wfLoadExtension( 'CiteThisPage' ); wfLoadExtension( 'CodeEditor' ); wfLoadExtension( 'ConfirmEdit' ); wfLoadExtension( 'Gadgets' ); wfLoadExtension( 'ImageMap' ); wfLoadExtension( 'InputBox' ); wfLoadExtension( 'Interwiki' ); wfLoadExtension( 'LocalisationUpdate' ); wfLoadExtension( 'MultimediaViewer' ); wfLoadExtension( 'Nuke' ); wfLoadExtension( 'PageImages' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'PdfHandler' ); wfLoadExtension( 'Poem' ); wfLoadExtension( 'Renameuser' ); wfLoadExtension( 'ReplaceText' ); wfLoadExtension( 'Scribunto' ); wfLoadExtension( 'SecureLinkFixer' ); wfLoadExtension( 'SpamBlacklist' ); wfLoadExtension( 'SyntaxHighlight_GeSHi' ); wfLoadExtension( 'TemplateData' ); wfLoadExtension( 'TextExtracts' ); wfLoadExtension( 'TitleBlacklist' ); wfLoadExtension( 'VisualEditor' ); wfLoadExtension( 'WikiEditor' ); #End of automatically generated settings. #Add more configuration options below. $PARSOID_INSTALL_DIR = 'vendor/wikimedia/parsoid'; # bundled copy #$PARSOID_INSTALL_DIR = '/my/path/to/git/checkout/of/Parsoid'; // For developers: ensure Parsoid is executed from $PARSOID_INSTALL_DIR, // (not the version included in mediawiki-core by default) // Must occur *before* wfLoadExtension() if ( $PARSOID_INSTALL_DIR !== 'vendor/wikimedia/parsoid' ) { AutoLoader::$psr4Namespaces += [ // Keep this in sync with the "autoload" clause in // $PARSOID_INSTALL_DIR/composer.json 'Wikimedia\\Parsoid\\' => "$PARSOID_INSTALL_DIR/src", ]; } wfLoadExtension( 'Parsoid', "$PARSOID_INSTALL_DIR/extension.json" ); #Manually configure Parsoid $wgVisualEditorParsoidAutoConfig = false; $wgParsoidSettings = [ 'useSelser' => true, 'rtTestMode' => false, 'linting' => false, ]; $wgVirtualRestConfig['modules']['parsoid'] = []; $logDir = "$IP/cache"; $wgDebugLogGroups['rest'] = "$logDir/rest.php"; $wgVisualEditorFullRestbaseURL = true;
- It looks like you are using the developers instructions which the VE page says:
- By default VisualEditor is automatically configured to talk to a Parsoid service running on the same host. You should not need to change this in most cases!
- What happens if you remove everything after
#Add more configuration options below.
except - ☠MarkAHershberger☢(talk)☣ 02:23, 22 October 2020 (UTC)
$logDir = "$IP/cache"; $wgDebugLogGroups['rest'] = "$logDir/rest.log";
- that don't help, because i preview I tried it and it kept marking the error
- what instrucctions i should revise for the visualeditor normally? Gota de agua (talk) 03:23, 22 October 2020 (UTC)
- Even if you tried it previously, you should try it again now that we have the
rest.log
recording problems. It may tell us something new. ☠MarkAHershberger☢(talk)☣ 16:18, 22 October 2020 (UTC) - Gota de agua (talk) 18:11, 22 October 2020 (UTC)
Extended content 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: > 0: Content-Type: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0" 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: > 1: Content-Language: es 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: > 2: Vary: Accept 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: > 3: Etag: W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0" 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: > 4: Content-Revision-Id: 1 2020-10-22 16:37:08 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 200, 'reason' => 'OK', 'headers' => array ( 'date' => 'Thu, 22 Oct 2020 16:37:06 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'content-language' => 'es', 'vary' => 'Accept,Accept-Encoding', 'content-revision-id' => '1', 'x-request-id' => '1792ef82e7364ebc4835d748', 'etag' => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', 'transfer-encoding' => 'chunked', 'content-type' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0"', 'via' => '1.1 alproxy', ), 'body' => '<!DOCTYPE html> <html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1"/><meta property="mw:pageNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/0"/><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"/><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"/><meta property="isMainPage" content="true"/><meta property="mw:html:version" content="2.1.0"/><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"/><title>Página principal</title><base href="http://lapluma.tk/"/><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"/><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"/><meta http-equiv="vary" content="Accept"/></head><body data-parsoid=\'{"dsr":[0,788,0,0]}\' lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" data-parsoid="{}"><p data-parsoid=\'{"dsr":[0,43,0,0]}\'><strong data-parsoid=\'{"stx":"html","dsr":[0,43,8,9]}\'>MediaWiki se ha instalado.</strong></p> <p data-parsoid=\'{"dsr":[45,186,0,0]}\'>Consulta la <a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" class="external text" data-parsoid=\'{"dsr":[57,128,65,1]}\'>guía</a> para obtener información sobre el uso del software wiki.</p> </section><section data-mw-section-id="1" data-parsoid="{}"><h2 id="Primeros_pasos" data-parsoid=\'{"dsr":[188,208,2,2]}\'>Primeros pasos</h2> <ul data-parsoid=\'{"dsr":[209,788,0,0]}\'><li data-parsoid=\'{"dsr":[209,327,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" class="external text" data-parsoid=\'{"dsr":[211,327,81,1]}\'>Lista de ajustes de configuración</a></li> <li data-parsoid=\'{"dsr":[328,429,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" class="external text" data-parsoid=\'{"dsr":[330,429,62,1]}\'>Preguntas frecuentes sobre MediaWiki</a></li> <li data-parsoid=\'{"dsr":[430,554,1,0]}\'><a rel="mw:ExtLink" href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" class="external text" data-parsoid=\'{"dsr":[432,554,65,1]}\'>Lista de correo de anuncios de publicación de MediaWiki</a></li> <li data-parsoid=\'{"dsr":[555,674,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" class="external text" data-parsoid=\'{"dsr":[557,674,86,1]}\'>Traducir MediaWiki a tu idioma</a></li> <li data-parsoid=\'{"dsr":[675,788,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" class="external text" data-parsoid=\'{"dsr":[677,788,73,1]}\'>Aprende a combatir el spam en tu wiki</a></li></ul></section></body></html>', 'error' => '', 0 => 200, 1 => 'OK', 2 => array ( 'date' => 'Thu, 22 Oct 2020 16:37:06 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'content-language' => 'es', 'vary' => 'Accept,Accept-Encoding', 'content-revision-id' => '1', 'x-request-id' => '1792ef82e7364ebc4835d748', 'etag' => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', 'transfer-encoding' => 'chunked', 'content-type' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0"', 'via' => '1.1 alproxy', ), 3 => '<!DOCTYPE html> <html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1"/><meta property="mw:pageNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/0"/><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"/><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"/><meta property="isMainPage" content="true"/><meta property="mw:html:version" content="2.1.0"/><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"/><title>Página principal</title><base href="http://lapluma.tk/"/><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"/><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"/><meta http-equiv="vary" content="Accept"/></head><body data-parsoid=\'{"dsr":[0,788,0,0]}\' lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" data-parsoid="{}"><p data-parsoid=\'{"dsr":[0,43,0,0]}\'><strong data-parsoid=\'{"stx":"html","dsr":[0,43,8,9]}\'>MediaWiki se ha instalado.</strong></p> <p data-parsoid=\'{"dsr":[45,186,0,0]}\'>Consulta la <a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" class="external text" data-parsoid=\'{"dsr":[57,128,65,1]}\'>guía</a> para obtener información sobre el uso del software wiki.</p> </section><section data-mw-section-id="1" data-parsoid="{}"><h2 id="Primeros_pasos" data-parsoid=\'{"dsr":[188,208,2,2]}\'>Primeros pasos</h2> <ul data-parsoid=\'{"dsr":[209,788,0,0]}\'><li data-parsoid=\'{"dsr":[209,327,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" class="external text" data-parsoid=\'{"dsr":[211,327,81,1]}\'>Lista de ajustes de configuración</a></li> <li data-parsoid=\'{"dsr":[328,429,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" class="external text" data-parsoid=\'{"dsr":[330,429,62,1]}\'>Preguntas frecuentes sobre MediaWiki</a></li> <li data-parsoid=\'{"dsr":[430,554,1,0]}\'><a rel="mw:ExtLink" href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" class="external text" data-parsoid=\'{"dsr":[432,554,65,1]}\'>Lista de correo de anuncios de publicación de MediaWiki</a></li> <li data-parsoid=\'{"dsr":[555,674,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" class="external text" data-parsoid=\'{"dsr":[557,674,86,1]}\'>Traducir MediaWiki a tu idioma</a></li> <li data-parsoid=\'{"dsr":[675,788,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" class="external text" data-parsoid=\'{"dsr":[677,788,73,1]}\'>Aprende a combatir el spam en tu wiki</a></li></ul></section></body></html>', 4 => '', ) 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"></head><body data-parsoid="{"dsr":[0,788,0,0]}" lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><p data-parsoid="{"dsr":[0,43,0,0]}"><strong data-parsoid="{"stx":"html","dsr":[0,43,8,9]}">MediaWiki se ha instalado.</strong></p> <p data-parsoid="{"dsr":[45,186,0,0]}">Consulta la <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[57,128,65,1]}">guía</a> para obtener información sobre el uso del software wiki. </p> <p data-parsoid="{"dsr":[45,186,0,0]}"></p><h4>jgjkk</h4><h2 id="Primeros_pasos" data-parsoid="{"dsr":[188,208,2,2]}">Primeros pasos</h2> <ul data-parsoid="{"dsr":[209,788,0,0]}"><li data-parsoid="{"dsr":[209,327,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[211,327,81,1]}">Lista de ajustes de configuración</a></li> <li data-parsoid="{"dsr":[328,429,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[330,429,62,1]}">Preguntas frecuentes sobre MediaWiki</a></li> <li data-parsoid="{"dsr":[430,554,1,0]}"><a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[432,554,65,1]}">Lista de correo de anuncios de publicación de MediaWiki</a></li> <li data-parsoid="{"dsr":[555,674,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[557,674,86,1]}">Traducir MediaWiki a tu idioma</a></li> <li data-parsoid="{"dsr":[675,788,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[677,788,73,1]}">Aprende a combatir el spam en tu wiki</a></li></ul></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'If-Match' => array ( 0 => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: body: 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Connection: close 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < If-Match: W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0" 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Thu, 22 Oct 2020 16:37:20 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'b9fa68125c0c301813e1e758', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Thu, 22 Oct 2020 16:37:20 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => 'b9fa68125c0c301813e1e758', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-22 16:37:20 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415) 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: ve: reinflating html 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: parsoid: Request: array ( 'method' => 'POST', 'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1', 'body' => array ( 'html' => '<!doctype html><html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"></head><body data-parsoid="{"dsr":[0,788,0,0]}" lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><p data-parsoid="{"dsr":[0,43,0,0]}"><strong data-parsoid="{"stx":"html","dsr":[0,43,8,9]}">MediaWiki se ha instalado.</strong></p> <p data-parsoid="{"dsr":[45,186,0,0]}">Consulta la <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[57,128,65,1]}">guía</a> para obtener información sobre el uso del software wiki. </p> <p data-parsoid="{"dsr":[45,186,0,0]}"></p><h4>jgjkk</h4><h2 id="Primeros_pasos" data-parsoid="{"dsr":[188,208,2,2]}">Primeros pasos</h2> <ul data-parsoid="{"dsr":[209,788,0,0]}"><li data-parsoid="{"dsr":[209,327,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[211,327,81,1]}">Lista de ajustes de configuración</a></li> <li data-parsoid="{"dsr":[328,429,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[330,429,62,1]}">Preguntas frecuentes sobre MediaWiki</a></li> <li data-parsoid="{"dsr":[430,554,1,0]}"><a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[432,554,65,1]}">Lista de correo de anuncios de publicación de MediaWiki</a></li> <li data-parsoid="{"dsr":[555,674,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[557,674,86,1]}">Traducir MediaWiki a tu idioma</a></li> <li data-parsoid="{"dsr":[675,788,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[677,788,73,1]}">Aprende a combatir el spam en tu wiki</a></li></ul></body></html>', 'scrub_wikitext' => 1, ), 'headers' => array ( 'If-Match' => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', 'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', 'Accept-Language' => 'es', 'User-Agent' => 'VisualEditor-MediaWiki/1.35.0', 'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0', ), ) 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: validateBody got headers: array ( 'Connection' => array ( 0 => 'close', ), 'X-Ssl-Client-Verify' => array ( 0 => 'NONE', ), 'X-Ssl' => array ( 0 => '1', ), 'X-Forwarded-Proto' => array ( 0 => 'https', ), 'Via' => array ( 0 => '1.1 alproxy', ), 'Api-User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'User-Agent' => array ( 0 => 'VisualEditor-MediaWiki/1.35.0', ), 'Accept-Language' => array ( 0 => 'es', ), 'Accept' => array ( 0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"', ), 'If-Match' => array ( 0 => 'W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0"', ), 'Host' => array ( 0 => 'lapluma.tk', ), ) 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: body: 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Connection: close 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < X-Ssl: 1 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Accept-Language: es 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0" 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < If-Match: W/"1/d3685dbd-1484-11eb-a83c-ac1f6b445cf0" 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: < Host: lapluma.tk 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: parsoid: response: array ( 'code' => 415, 'reason' => 'Unsupported Media Type', 'headers' => array ( 'date' => 'Thu, 22 Oct 2020 16:37:21 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '43ae62711fb9647e06ed64bc', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 'body' => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 'error' => '', 0 => 415, 1 => 'Unsupported Media Type', 2 => array ( 'date' => 'Thu, 22 Oct 2020 16:37:21 GMT', 'server' => 'Apache', 'x-content-type-options' => 'nosniff', 'x-request-id' => '43ae62711fb9647e06ed64bc', 'transfer-encoding' => 'chunked', 'content-type' => 'application/json', 'via' => '1.1 alproxy', ), 3 => '{"message":"A Content-Type header must be supplied with a request payload.","error":"no-content-type","httpCode":415,"httpReason":"Unsupported Media Type"}', 4 => '', ) 2020-10-22 16:37:21 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415)
- No new information, that I could see. Could you try this updated version of includes/Rest/Validator/Validator.php for mediawiki? I commented out the line causing it to return 415.
- It will probably still fail, but the failure will be interesting. ☠MarkAHershberger☢(talk)☣ 20:36, 22 October 2020 (UTC)
- the changes are diferent
Extended content |
---|
2020-10-22 21:01:27 http7 pony_mediawiki-wiki: parsoid: Request: array (
'method' => 'GET',
'url' => '/restbase/local/v1/page/html/P%C3%A1gina_principal/1?redirect=false&stash=true',
'query' =>
array (
),
'headers' =>
array (
'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
'Accept-Language' => 'es',
'User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
),
)
2020-10-22 21:01:28 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: Got 200:OK in response to /rest.php/lapluma.tk/v3/page/html/P%C3%A1gina_principal/1?redirect=false&stash=true
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: body:
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Connection: close
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < If-None-Match: W/"1/d7e7433d-1491-11eb-a83c-ac1f6b445cf0"
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Content-Length: 0
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: > 0: Content-Type: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0"
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: > 1: Content-Language: es
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: > 2: Vary: Accept
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: > 3: Etag: W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: > 4: Content-Revision-Id: 1
2020-10-22 21:01:29 http7 pony_mediawiki-wiki: parsoid: response: array (
'code' => 200,
'reason' => 'OK',
'headers' =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:27 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'content-language' => 'es',
'vary' => 'Accept,Accept-Encoding',
'content-revision-id' => '1',
'x-request-id' => '2146eb119a52e0d49857f53c',
'etag' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'transfer-encoding' => 'chunked',
'content-type' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0"',
'via' => '1.1 alproxy',
),
'body' => '<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1"/><meta property="mw:pageNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/0"/><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"/><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"/><meta property="isMainPage" content="true"/><meta property="mw:html:version" content="2.1.0"/><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"/><title>Página principal</title><base href="http://lapluma.tk/"/><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"/><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"/><meta http-equiv="vary" content="Accept"/></head><body data-parsoid=\'{"dsr":[0,788,0,0]}\' lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" data-parsoid="{}"><p data-parsoid=\'{"dsr":[0,43,0,0]}\'><strong data-parsoid=\'{"stx":"html","dsr":[0,43,8,9]}\'>MediaWiki se ha instalado.</strong></p>
<p data-parsoid=\'{"dsr":[45,186,0,0]}\'>Consulta la <a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" class="external text" data-parsoid=\'{"dsr":[57,128,65,1]}\'>guía</a> para obtener información sobre el uso del software wiki.</p>
</section><section data-mw-section-id="1" data-parsoid="{}"><h2 id="Primeros_pasos" data-parsoid=\'{"dsr":[188,208,2,2]}\'>Primeros pasos</h2>
<ul data-parsoid=\'{"dsr":[209,788,0,0]}\'><li data-parsoid=\'{"dsr":[209,327,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" class="external text" data-parsoid=\'{"dsr":[211,327,81,1]}\'>Lista de ajustes de configuración</a></li>
<li data-parsoid=\'{"dsr":[328,429,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" class="external text" data-parsoid=\'{"dsr":[330,429,62,1]}\'>Preguntas frecuentes sobre MediaWiki</a></li>
<li data-parsoid=\'{"dsr":[430,554,1,0]}\'><a rel="mw:ExtLink" href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" class="external text" data-parsoid=\'{"dsr":[432,554,65,1]}\'>Lista de correo de anuncios de publicación de MediaWiki</a></li>
<li data-parsoid=\'{"dsr":[555,674,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" class="external text" data-parsoid=\'{"dsr":[557,674,86,1]}\'>Traducir MediaWiki a tu idioma</a></li>
<li data-parsoid=\'{"dsr":[675,788,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" class="external text" data-parsoid=\'{"dsr":[677,788,73,1]}\'>Aprende a combatir el spam en tu wiki</a></li></ul></section></body></html>',
'error' => '',
0 => 200,
1 => 'OK',
2 =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:27 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'content-language' => 'es',
'vary' => 'Accept,Accept-Encoding',
'content-revision-id' => '1',
'x-request-id' => '2146eb119a52e0d49857f53c',
'etag' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'transfer-encoding' => 'chunked',
'content-type' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.1.0"',
'via' => '1.1 alproxy',
),
3 => '<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1"/><meta property="mw:pageNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/0"/><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"/><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"/><meta property="isMainPage" content="true"/><meta property="mw:html:version" content="2.1.0"/><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"/><title>Página principal</title><base href="http://lapluma.tk/"/><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"/><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"/><meta http-equiv="vary" content="Accept"/></head><body data-parsoid=\'{"dsr":[0,788,0,0]}\' lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" data-parsoid="{}"><p data-parsoid=\'{"dsr":[0,43,0,0]}\'><strong data-parsoid=\'{"stx":"html","dsr":[0,43,8,9]}\'>MediaWiki se ha instalado.</strong></p>
<p data-parsoid=\'{"dsr":[45,186,0,0]}\'>Consulta la <a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" class="external text" data-parsoid=\'{"dsr":[57,128,65,1]}\'>guía</a> para obtener información sobre el uso del software wiki.</p>
</section><section data-mw-section-id="1" data-parsoid="{}"><h2 id="Primeros_pasos" data-parsoid=\'{"dsr":[188,208,2,2]}\'>Primeros pasos</h2>
<ul data-parsoid=\'{"dsr":[209,788,0,0]}\'><li data-parsoid=\'{"dsr":[209,327,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" class="external text" data-parsoid=\'{"dsr":[211,327,81,1]}\'>Lista de ajustes de configuración</a></li>
<li data-parsoid=\'{"dsr":[328,429,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" class="external text" data-parsoid=\'{"dsr":[330,429,62,1]}\'>Preguntas frecuentes sobre MediaWiki</a></li>
<li data-parsoid=\'{"dsr":[430,554,1,0]}\'><a rel="mw:ExtLink" href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" class="external text" data-parsoid=\'{"dsr":[432,554,65,1]}\'>Lista de correo de anuncios de publicación de MediaWiki</a></li>
<li data-parsoid=\'{"dsr":[555,674,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" class="external text" data-parsoid=\'{"dsr":[557,674,86,1]}\'>Traducir MediaWiki a tu idioma</a></li>
<li data-parsoid=\'{"dsr":[675,788,1,0]}\'><a rel="mw:ExtLink" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" class="external text" data-parsoid=\'{"dsr":[677,788,73,1]}\'>Aprende a combatir el spam en tu wiki</a></li></ul></section></body></html>',
4 => '',
)
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: ve: reinflating html
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: parsoid: Request: array (
'method' => 'POST',
'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1',
'body' =>
array (
'html' => '<!doctype html><html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"></head><body data-parsoid="{"dsr":[0,788,0,0]}" lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><p data-parsoid="{"dsr":[0,43,0,0]}"><strong data-parsoid="{"stx":"html","dsr":[0,43,8,9]}">MediaWiki se ha instalado.</strong></p>
<p data-parsoid="{"dsr":[45,186,0,0]}">Consulta la <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[57,128,65,1]}">guía</a> para obtener información sobre el uso del software wiki. </p>
<h2 id="Primeros_pasos" data-parsoid="{"dsr":[188,208,2,2]}">Primeros pasos</h2>
<ul data-parsoid="{"dsr":[209,788,0,0]}"><li data-parsoid="{"dsr":[209,327,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[211,327,81,1]}">Lista de ajustes de configuración</a></li>
<li data-parsoid="{"dsr":[328,429,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[330,429,62,1]}">Preguntas frecuentes sobre MediaWiki</a></li>
<li data-parsoid="{"dsr":[430,554,1,0]}"><a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[432,554,65,1]}">Lista de correo de anuncios de publicación de MediaWiki</a></li>
<li data-parsoid="{"dsr":[555,674,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[557,674,86,1]}">Traducir MediaWiki a tu idioma</a></li>
<li data-parsoid="{"dsr":[675,788,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[677,788,73,1]}">Aprende a combatir el spam en tu wiki</a></li></ul></body></html>',
'scrub_wikitext' => 1,
),
'headers' =>
array (
'If-Match' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
'Accept-Language' => 'es',
'User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
),
)
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: validateBody got headers: array (
'Connection' =>
array (
0 => 'close',
),
'X-Ssl-Client-Verify' =>
array (
0 => 'NONE',
),
'X-Ssl' =>
array (
0 => '1',
),
'X-Forwarded-Proto' =>
array (
0 => 'https',
),
'Via' =>
array (
0 => '1.1 alproxy',
),
'Api-User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'Accept-Language' =>
array (
0 => 'es',
),
'Accept' =>
array (
0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
),
'If-Match' =>
array (
0 => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
),
'Host' =>
array (
0 => 'lapluma.tk',
),
)
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: No Content-type header!
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: parsoid transformHandler: Factory, creating handler from html to wikitext
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: parsoid: request: MediaWiki\Rest\RequestFromGlobals::__set_state(array(
'uri' =>
GuzzleHttp\Psr7\Uri::__set_state(array(
'scheme' => '',
'userInfo' => '',
'host' => '',
'port' => NULL,
'path' => '/rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1',
'query' => '',
'fragment' => '',
)),
'protocol' => NULL,
'uploadedFiles' => NULL,
'headerCollection' =>
MediaWiki\Rest\HeaderContainer::__set_state(array(
'headerLists' =>
array (
'Connection' =>
array (
0 => 'close',
),
'X-Ssl-Client-Verify' =>
array (
0 => 'NONE',
),
'X-Ssl' =>
array (
0 => '1',
),
'X-Forwarded-Proto' =>
array (
0 => 'https',
),
'Via' =>
array (
0 => '1.1 alproxy',
),
'Api-User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'Accept-Language' =>
array (
0 => 'es',
),
'Accept' =>
array (
0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
),
'If-Match' =>
array (
0 => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
),
'Host' =>
array (
0 => 'lapluma.tk',
),
),
'headerLines' =>
array (
'Connection' => 'close',
'X-Ssl-Client-Verify' => 'NONE',
'X-Ssl' => '1',
'X-Forwarded-Proto' => 'https',
'Via' => '1.1 alproxy',
'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'Accept-Language' => 'es',
'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
'If-Match' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'Host' => 'lapluma.tk',
),
'headerNames' =>
array (
'connection' => 'Connection',
'x-ssl-client-verify' => 'X-Ssl-Client-Verify',
'x-ssl' => 'X-Ssl',
'x-forwarded-proto' => 'X-Forwarded-Proto',
'via' => 'Via',
'api-user-agent' => 'Api-User-Agent',
'user-agent' => 'User-Agent',
'accept-language' => 'Accept-Language',
'accept' => 'Accept',
'if-match' => 'If-Match',
'host' => 'Host',
),
)),
'pathParams' =>
array (
'domain' => 'lapluma.tk',
'from' => 'html',
'format' => 'wikitext',
'title' => 'Página_principal',
'revision' => '1',
),
'cookiePrefix' => 'pony_mediawiki_wiki',
))
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: body:
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Connection: close
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < If-Match: W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: parsoid: response: array (
'code' => 415,
'reason' => 'Unsupported Media Type',
'headers' =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:36 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'x-request-id' => '7780c0b24a8968cdf3b2a378',
'transfer-encoding' => 'chunked',
'content-type' => 'application/json',
'via' => '1.1 alproxy',
),
'body' => '{"message":"Unsupported Media Type","httpCode":415,"httpReason":"Unsupported Media Type"}',
'error' => '',
0 => 415,
1 => 'Unsupported Media Type',
2 =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:36 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'x-request-id' => '7780c0b24a8968cdf3b2a378',
'transfer-encoding' => 'chunked',
'content-type' => 'application/json',
'via' => '1.1 alproxy',
),
3 => '{"message":"Unsupported Media Type","httpCode":415,"httpReason":"Unsupported Media Type"}',
4 => '',
)
2020-10-22 21:01:36 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415)
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: ve: reinflating html
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: parsoid: Request: array (
'method' => 'POST',
'url' => '/restbase/local/v1/transform/html/to/wikitext/P%C3%A1gina_principal/1',
'body' =>
array (
'html' => '<!doctype html><html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://lapluma.tk/Special:Redirect/revision/1"><head prefix="mwr: http://lapluma.tk/Special:Redirect/"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"><meta charset="utf-8"><meta property="mw:pageId" content="1"><meta property="mw:pageNamespace" content="0"><link rel="dc:replaces" resource="mwr:revision/0"><meta property="mw:revisionSHA1" content="b0eff6a96efaaf41890e9e132429ab874a3754ec"><meta property="dc:modified" content="2020-10-20T12:18:50.000Z"><meta property="isMainPage" content="true"><meta property="mw:html:version" content="2.1.0"><link rel="dc:isVersionOf" href="http://lapluma.tk/P%C3%A1gina_principal"><title>Página principal</title><base href="http://lapluma.tk/"><link rel="stylesheet" href="/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector"><!--[if lt IE 9]><script src="/load.php?modules=html5shiv&only=scripts&skin=vector&sync=1"></script><script>html5.addElements(\'figure-inline\');</script><![endif]--><meta http-equiv="content-language" content="es"><meta http-equiv="vary" content="Accept"></head><body data-parsoid="{"dsr":[0,788,0,0]}" lang="es" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><p data-parsoid="{"dsr":[0,43,0,0]}"><strong data-parsoid="{"stx":"html","dsr":[0,43,8,9]}">MediaWiki se ha instalado.</strong></p>
<p data-parsoid="{"dsr":[45,186,0,0]}">Consulta la <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[57,128,65,1]}">guía</a> para obtener información sobre el uso del software wiki. </p>
<h2 id="Primeros_pasos" data-parsoid="{"dsr":[188,208,2,2]}">Primeros pasos</h2>
<ul data-parsoid="{"dsr":[209,788,0,0]}"><li data-parsoid="{"dsr":[209,327,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[211,327,81,1]}">Lista de ajustes de configuración</a></li>
<li data-parsoid="{"dsr":[328,429,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[330,429,62,1]}">Preguntas frecuentes sobre MediaWiki</a></li>
<li data-parsoid="{"dsr":[430,554,1,0]}"><a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[432,554,65,1]}">Lista de correo de anuncios de publicación de MediaWiki</a></li>
<li data-parsoid="{"dsr":[555,674,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[557,674,86,1]}">Traducir MediaWiki a tu idioma</a></li>
<li data-parsoid="{"dsr":[675,788,1,0]}"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam" rel="mw:ExtLink" class="external text" data-parsoid="{"dsr":[677,788,73,1]}">Aprende a combatir el spam en tu wiki</a></li></ul></body></html>',
'scrub_wikitext' => 1,
),
'headers' =>
array (
'If-Match' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
'Accept-Language' => 'es',
'User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
),
)
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: MediaWiki\Rest\EntryPoint::execute got router: MediaWiki\Rest\Router
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: validateBody got headers: array (
'Connection' =>
array (
0 => 'close',
),
'X-Ssl-Client-Verify' =>
array (
0 => 'NONE',
),
'X-Ssl' =>
array (
0 => '1',
),
'X-Forwarded-Proto' =>
array (
0 => 'https',
),
'Via' =>
array (
0 => '1.1 alproxy',
),
'Api-User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'Accept-Language' =>
array (
0 => 'es',
),
'Accept' =>
array (
0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
),
'If-Match' =>
array (
0 => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
),
'Host' =>
array (
0 => 'lapluma.tk',
),
)
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: No Content-type header!
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: parsoid transformHandler: Factory, creating handler from html to wikitext
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: parsoid: request: MediaWiki\Rest\RequestFromGlobals::__set_state(array(
'uri' =>
GuzzleHttp\Psr7\Uri::__set_state(array(
'scheme' => '',
'userInfo' => '',
'host' => '',
'port' => NULL,
'path' => '/rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1',
'query' => '',
'fragment' => '',
)),
'protocol' => NULL,
'uploadedFiles' => NULL,
'headerCollection' =>
MediaWiki\Rest\HeaderContainer::__set_state(array(
'headerLists' =>
array (
'Connection' =>
array (
0 => 'close',
),
'X-Ssl-Client-Verify' =>
array (
0 => 'NONE',
),
'X-Ssl' =>
array (
0 => '1',
),
'X-Forwarded-Proto' =>
array (
0 => 'https',
),
'Via' =>
array (
0 => '1.1 alproxy',
),
'Api-User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'User-Agent' =>
array (
0 => 'VisualEditor-MediaWiki/1.35.0',
),
'Accept-Language' =>
array (
0 => 'es',
),
'Accept' =>
array (
0 => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
),
'If-Match' =>
array (
0 => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
),
'Host' =>
array (
0 => 'lapluma.tk',
),
),
'headerLines' =>
array (
'Connection' => 'close',
'X-Ssl-Client-Verify' => 'NONE',
'X-Ssl' => '1',
'X-Forwarded-Proto' => 'https',
'Via' => '1.1 alproxy',
'Api-User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'User-Agent' => 'VisualEditor-MediaWiki/1.35.0',
'Accept-Language' => 'es',
'Accept' => 'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"',
'If-Match' => 'W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"',
'Host' => 'lapluma.tk',
),
'headerNames' =>
array (
'connection' => 'Connection',
'x-ssl-client-verify' => 'X-Ssl-Client-Verify',
'x-ssl' => 'X-Ssl',
'x-forwarded-proto' => 'X-Forwarded-Proto',
'via' => 'Via',
'api-user-agent' => 'Api-User-Agent',
'user-agent' => 'User-Agent',
'accept-language' => 'Accept-Language',
'accept' => 'Accept',
'if-match' => 'If-Match',
'host' => 'Host',
),
)),
'pathParams' =>
array (
'domain' => 'lapluma.tk',
'from' => 'html',
'format' => 'wikitext',
'title' => 'Página_principal',
'revision' => '1',
),
'cookiePrefix' => 'pony_mediawiki_wiki',
))
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: Got 415:Unsupported Media Type in response to /rest.php/lapluma.tk/v3/transform/html/to/wikitext/P%C3%A1gina_principal/1
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: body:
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Connection: close
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < X-Ssl-Client-Verify: NONE
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < X-Ssl: 1
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < X-Forwarded-Proto: https
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Via: 1.1 alproxy
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Api-User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < User-Agent: VisualEditor-MediaWiki/1.35.0
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Accept-Language: es
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Accept: text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/2.0.0"
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < If-Match: W/"1/c14ce63d-14a9-11eb-a83c-ac1f6b445cf0"
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: < Host: lapluma.tk
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: > 0: Content-Type: application/json
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: parsoid: response: array (
'code' => 415,
'reason' => 'Unsupported Media Type',
'headers' =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:37 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'x-request-id' => '2df027d449a21282a5900bbc',
'transfer-encoding' => 'chunked',
'content-type' => 'application/json',
'via' => '1.1 alproxy',
),
'body' => '{"message":"Unsupported Media Type","httpCode":415,"httpReason":"Unsupported Media Type"}',
'error' => '',
0 => 415,
1 => 'Unsupported Media Type',
2 =>
array (
'date' => 'Thu, 22 Oct 2020 21:01:37 GMT',
'server' => 'Apache',
'x-content-type-options' => 'nosniff',
'x-request-id' => '2df027d449a21282a5900bbc',
'transfer-encoding' => 'chunked',
'content-type' => 'application/json',
'via' => '1.1 alproxy',
),
3 => '{"message":"Unsupported Media Type","httpCode":415,"httpReason":"Unsupported Media Type"}',
4 => '',
)
2020-10-22 21:01:37 http7 pony_mediawiki-wiki: ve: got exception: Error contacting the Parsoid/RESTBase server (HTTP 415)
|
Gota de agua (talk) 21:03, 22 October 2020 (UTC)
- Well, you are getting farther. I would suggest filing a bug at this point giving as much information as you have. Something is going on with the proxy and I do not know how to fix it. ☠MarkAHershberger☢(talk)☣ 21:13, 22 October 2020 (UTC)
- @MarkAHershberger, something strange that I realized is that when I use http the visual editor does work but when I use https (ssl) the visual editor marks this error when saving the edition Uvas magicas (talk) 23:00, 22 October 2020 (UTC)
- Interesting... Change
$wgServer
tohttps
and see if it works for https edits then. - If it does, then just make the webserver redirect all requests to https. ☠MarkAHershberger☢(talk)☣ 00:45, 23 October 2020 (UTC)
- sorry i meant, the visualeditor 100 % working in url http but in https (ssl) does't work and places this mistake before save the changes Uvas magicas (talk) 01:18, 23 October 2020 (UTC)
- I had the same error here and, despite of the HTTPS redirects, at the end was the lack of "https" in my
$wgServer
. - I've notice this by the JSON response of the 415 error message (using inspect).
- I've also changfe the
$response['code']
toprint_r($response,true)
to get the full error data. ./VisualEditor/includes/ApiParsoidTrait.php: [ 'apierror-visualeditor-docserver-http', $response['code'] ]
Arthurd2 (talk) 03:03, 24 December 2020 (UTC)- Experienced same issue, and it was resolved by changing url of website in $wgServer from http to https. Thanks for the hints. Xelgen (talk) 19:30, 27 February 2021 (UTC)
- Hello, thankful for all of the efforts and details in this thread! As simple as this may sound, the culprit that I found was semicolon characters in the content ¯\_(ツ)_/¯
- I'm running a new installation of MediaWiki 1.35 and I can reproduce this issue just by adding a semicolon to my text in the Visual Editor. When I leave out semicolons, no issue. 73.89.215.13 (talk) 18:21, 25 June 2021 (UTC)
Question about the writeapi right
According to the relative documentation the writeapi user permission enables the groups with that permission (*, user, bot) to use the write API.
The write API includes modules like Delete for example for deletion of pages.
The delete permission is set to true for the sysop group, but is not set at all for the * group in the DefaultSettings.php file. Despite the fact that the writeapi permission is enabled for the unregistered users and the fact that the delete permission is not defined for them, deleting a page through the write API is not possible for users that aren't logged in.
My question is which permissions does actually the writeapi permission give to the groups to which is assigned or in other words what does block the execution of a delete request through the API for the unregistered users? Costas Athan (talk) 15:24, 20 October 2020 (UTC)
- honestly, i thought we were getting rid of the writeapi permission. It doesn't really do all that much useful and breaks mediawiki if you take it away.
- Any permission not defined for a group is the same as false. Bawolff (talk) 03:08, 21 October 2020 (UTC)
- I think you're also fundamentally misunderstanding the `writeapi` permission. It does not grant people ability to carry-out privileged action associated with each and every api module.
- It only allows write access via the api endpoint. But each individual module will do its permission checks and only users with the required permission will be allowed to carry-out the action. The required permissions are the same as used via the web ui. So if you don't have 'delete' permission via the web, you'll definitely not have it via the api either. The same thing applies for every other permission. – Ammarpad (talk) 06:16, 21 October 2020 (UTC)
- @Ammarpad
- Since there are permission checks for each end every module, what's the point of having a permission called "writreapi"? If a certain permission is given to a group like "edit" or "rollback" for example, that should automatically mean that the users of this group have all the required rights to perform these actions also by using the API. Costas Athan (talk) 07:42, 21 October 2020 (UTC)
- Point of permission is to control write action via the api. Even though same permissions as on the web are required for each individual action, api entry point have capability to allow users to do (or abuse) things in incredible ways.
If a certain permission is given to a group like "edit" or "rollback" for example, that should automatically mean that the users of this group have all the required rights to perform these actions also by using the API.
- That's already the case and I have mentioned that above. – Ammarpad (talk) 08:17, 21 October 2020 (UTC)
Point of permission is to control write action via the api. Even though same permissions as on the web are required for each individual action,
- api entry point have capability to allow users to do (or abuse) things in incredible ways.
- Well, that's what made me start this thread. I have a wiki that allows editing only to registered users and as an extra security measure I had disabled the writeapi permission for the * group.
- That had as a result a 403 error by the VisualEditor and unfortunately it is not possible to give the writeapi permission specifically to the VisualEditor.
- It was suggested to me though that disabling the writeapi does not really offer any extra security as the writeapi performs the same permission checks as the web interface.
- So that's the critical question: Does keeping the writeapi enabled increases in any way the security risk or does the fact that the same permission checks are performed for every action, practically means that disabling the API does not offer any real benefit?
That's already the case and I have mentioned it above
- When I say automatically, I mean without explicitly controlling it. In other words to remove such a permission and just keep the others. Costas Athan (talk) 08:56, 21 October 2020 (UTC)
- restricting write api does not offer any security benefits. There is basically zero reasons to ever revoke that right (which is why i think it should be removed from mediawiki) Bawolff (talk) 05:07, 23 October 2020 (UTC)
- @Bawolff
- well, my initial impression was that the writeapi permission was offering certain groups the ability to use all of the write API's modules independently of other permissions. Obviously, that's not the case. If users can't perform an action through the web interface, then they can't perform it neither by using the API. For example users without the edit permission can't use the edit module of the API to make an edit.
- I see only one possible case for the writeapi permission to exist. Is there a possibility for users that have the edit permission to perform more actions through the API compared to the web interface? For example the edit module has a bot parameter. Could a user who has the edit permission set it to true, despite the fact that we talk about a human user?
- If the later is true then maybe there is a reason for existence for the writeapi permission, not for users who don't have certain rights, but for the ones they have those rights, as a measure of preventing extra configuration that are only possible via the API.
- If that's not true, then indeed it offers nothing except a little bit extra confusion and as a result it should be removed. Costas Athan (talk) 16:43, 23 October 2020 (UTC)
- no that's not possible.
- Original motivation was more around preventing easy data exfiltration and protection against performance issues if a bug is found, when the api was first develped. It became less and less relavent as time went on. Bawolff (talk) 19:55, 23 October 2020 (UTC)
New to mediawiki
Hi everyone,
Ive been recently tasked with updating an older media wiki ( about 6 years ago) i know the version of ubuntu, mediawiki, php, and MySQL when the version was last running. I have access to the sql dump from the wiki archive. I have never worked with media wiki before and i really confused on how to start. I have basic technology knowledge but i dont understand how to even run the last working version of the wiki let alone update the site. If anyone is able to give me a quick overview of what i will need to do to just start that would be super helpful. I've viewed the page here on manual updating and it looks like there may be steps to complete before even looking into that page. Drew1209 (talk) 15:48, 20 October 2020 (UTC)
- id suggest:
- import the db
- get a brand new copy of mediawiki and extract
- from the backups, restore LocalSettings.php, the images subdirectory and the extensions subdirectory (but not other files which should all be from new version of mediawiki). You may also have to adjust $wgServer $wgScriptPath $wgArticlePath and db credentials in LocalSettings.php
- go to maintenance subdirectory, run update.php
- If you run into problems doing that, just ask. Bawolff (talk) 01:28, 21 October 2020 (UTC)
Changing namespace numbers while preserving namespace's contents
Hello. It's not often that I pop in here, but here goes.
Today, on a new ByetHost wiki I opened last week (I was formerly a Referata admin), I was in the process of adding extra namespaces to what I started out with. As I report, the kinks have been smoothed out--except for one issue.
My first custom namespace was "Documentation", inspired by the likes of Wikimedia's feature. In LocalSettings.php, I assigned "050" as its number, believing it was the same as 50--only to realise days later that it renders in the API et al. as "40". (Sort of how virtual broadcast channels work in the States.) Tried "070" with one of the new NSs today; turned into 56.
I tried to remedy the quirk by dropping the first "0" and make it the desired "50"--but this led to the panic-inducing side effect of rendering several dozen doc pages temporarily inaccessible. On a "What links here" list, anything with "Documentation:" as the declared namespace turned into "Special:BadTitle/NS40:[TITLE]", complete with error notice.
After reverting it back to "050", I left a maintenance note below the affected definition:
define("NS_DOCUMENTATION", 050);
define("NS_DOCUMENTATION_TALK", 051);
// To move to:
// define("NS_DOCUMENTATION", 50);
// define("NS_DOCUMENTATION_TALK", 51);
If anyone else here experienced this issue before, feel free to give me a solution. Your help and experience are greatly appreciated!
(MW 1.35)
--Slgrandson (talk) 17:35, 20 October 2020 (UTC)
- so numbers starting with 0 means octal (base 8) notation. As an example, 0123 is short for 1*82+2*81+3*80=83. So 050=5*8=40.
- Anyways, its generally not recomended to change namespace numbers after you have used one. You could try using a script like Manual:cleanupTitles.php after changing the namespace number.
- As a general rule, it is reccomended that custom namespaces start at 100. Bawolff (talk) 01:23, 21 October 2020 (UTC)
- Thanks, but...how (and where) do I run that script? Slgrandson (talk) 21:02, 21 October 2020 (UTC)
- ...O.K. So I've discovered Cron jobs can do just that, but I'm having a bit of jitters. Where I am, it reads:
- Run the script http://sitename.bth7.com/ __________
- but I don't want to risk losing my new wiki. To Bawolff: What will happen if I fill in the blank with exactly what MW's manual gives? --Slgrandson (talk) 07:35, 22 October 2020 (UTC)
- it will either not work, in which case nothing happens or it will move them to a new title starting with 'xbroken/ from which you can rename them after.
- If your very concerned it might be best to take a db backup first, even though this should be a fairly safe operation. you could also try using the --dry-run option first which wont make any changes.
- Normally in cron they ask you for a file path and not a url. Bawolff (talk) 05:00, 23 October 2020 (UTC)
- Backed things up just in case; entered the script path just this moment; the site's still up.
- However, cron jobs can only last five seconds for free accounts like mine. Guess I'll have to move all my doc pages to the project namespace as I get things sorted out.
- P.S. I'm aware of one MultiPages by name, and it looked like a sure bet yesterday. Sadly, it's a tad behind the times and won't work on the current MW. --Slgrandson (talk) 07:44, 23 October 2020 (UTC)
- Some other options: You can manually move pages using the API with the fromid parameter, if you know the pages id. This should still work even if the page is normally inaccessible. - https://www.mediawiki.org/wiki/API:Move
- Higher risk: You could use SQL (Often the types of hosts like yours give access via phpmyadmin) to change all the page_namespace fields in the database that use the old namespace number to some other number. Bawolff (talk) 03:10, 26 October 2020 (UTC)
prevent users without confirmed mail from editing on my wiki
Hi guys, the question is in the title, I had tried this:
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['emailconfirmed']['read'] = true;
$wgGroupPermissions['emailconfirmed']['edit'] = true;
And it worked, I couldn't edit without confirming my emial, but when I confirmed it, I still couldn't edit, could you help me? Thank you. ShakeUY (talk) 18:22, 20 October 2020 (UTC)
- Manual:$wgEmailConfirmToEdit 148.252.132.152 (talk) 21:57, 20 October 2020 (UTC)
- I activated it a long time ago but it never worked ... And I have $ wgEmailAuthentication activated too. ShakeUY (talk) 22:09, 20 October 2020 (UTC)
- What do you mean by "it never worked"? You probably did not set it right, but if you did, it should work. If you're sure you did and it's not working, please write a bug report and explain the problem so it can be fixed. – Ammarpad (talk) 23:28, 20 October 2020 (UTC)
- how should i configure it then? ShakeUY (talk) 02:24, 21 October 2020 (UTC)
- so there are 2 ways:
- A) Use https://www.mediawiki.org/wiki/Manual:$wgEmailConfirmToEdit in which case you need to get rid of your custom GroupPermissions above (since there is no emailconfirmed implicit group, the group permission can never be true)
- Or b) keep the group permission above and use $wgAutopromote to create an implicit group named emailconfirmed. E.g.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
Bawolff (talk) 03:01, 21 October 2020 (UTC)
Can someone help me figure how to edit this code. Its coded to use widgets with templatedata but I'd like to use the YouTube extension.
Fill in the info below to add a YouTube video to the Wiki.
Parameter | Description | Type | Status | |
---|---|---|---|---|
YouTube id | id | add the YouTube id here
| Unknown | suggested |
Playlist id | playlist | If you are embedding YouTube playlist instead of a video, add the id here. | String | optional |
Width | width | add the width of the YouTube video here | Number | suggested |
Height | height | add the height of the YouTube video here
| Number | suggested |
This was taken from the view source of https://wiki.ubc.ca/Template:YouTube
I'm having a hard time understanding TemplateData.
Basically all i want to do is be able to insert a youtube video at a default height and width unless stated otherwise and have it formated in this manner using visualeditor:
<youtube width="200" height="120">CCz1kmfqL7g</youtube>
Thanks for any help! 24.45.134.47 (talk) 18:57, 20 October 2020 (UTC)
- for the actual template part (not templateinfo) you have to use {{#tag:youtube|...
- See help:Magic Words for how #tag works. Bawolff (talk) 01:14, 21 October 2020 (UTC)
- Here is what I have in my template currently, I've tried to figure out how to use tags but I think its just over my head...
- @Bawolff
- Your documentation (how to call the template, description of what its purpose is etc) </noinclude> <includeonly> <youtube width="{{{width|200}}}" height="{{{height|100}}}">{{{id}}}</youtube> </includeonly> 24.45.134.47 (talk) 17:21, 21 October 2020 (UTC)
Is PHP Object caching using APCu better than memcached?
Title describes it. I have the choice with my host to use either one. Was wondering which is better? 24.45.134.47 (talk) 19:48, 20 October 2020 (UTC)
- i personally reccomend apcu if you just have 1 server (and were planning to have the cache on the same server as your webserver) (however some people disagree with me).
- Realistically it probably doesnt matter that much. (Assuming that apcu.shm_size is set reasonably large. If it isnt, memcached might be better).
- If you have multiple webservers, always use memcached. Bawolff (talk) 01:10, 21 October 2020 (UTC)
"Administrator" displayed instead of "Bureaucrat" beside username
RESOLVED | |
I'll figure out what they've done to add 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.
For some odd reason, when viewing page revisions, "Username (Administrator)" is displayed beside my name despite being in the bureaucrat group (bureaucrat, sysop, widgeteditor in that order under ug_group in the db). Where everyone else's displays "Username (Bureaucrat)" and I can't quite figure out why. Any idea on how to remedy this? I already tried "createAndPromote.php --bureaucrat --sysop [user] [password] --force" which does nothing because I'm already a bureaucrat, there are no jobs in the job queue, I've hard-refreshed, I tried removing and re-adding administrator rights, I'm at a loss as to how to correct the display of this. )(Also: I know 1.33 is old, we're upgrading to 1.35 on a test site currently but waiting until we have VE working to switch). Thanks.
Product | Version |
---|---|
MediaWiki | 1.33.0 (62dc614) |
PHP | 7.3.15 (cgi-fcgi) |
MySQL | 5.7.28-log |
ICU | 57.1 |
- What is actually appending the "(Administrator)" label? is that an extension or JS script?. I believe core is not doing that, so the first thing to do is to figure out what's adding it in the first place. – Ammarpad (talk) 23:21, 20 October 2020 (UTC)
- Ah, interesting. I'll have to look. I (incorrectly) assumed it was core doing it. Thanks for taking the time. TiltedCerebellum (talk) 18:21, 23 October 2020 (UTC)
Redirecting paths
- Hi,
- I built a new wiki and migrated all the files from our old wiki.
- Is there a way to redirect paths? Say if a user access a wiki page/URLs from the old wiki it will redirect to the new wiki including the path. Because what is happening right now is it redirects but they all go to main page of the new wiki.
- A lot of links within the wiki point to absolute URL within wiki itself. Is there a way to do it properly? Ethwald (talk) 06:17, 21 October 2020 (UTC)
- If you are on a shared hosting platform where you do not have full administrative access to the web server, this could be a challenge, but what you want is documented here for the Apache web server, for example.
- It's a (rather broad) web server administration question, rather than a MediaWiki question, and seems beyond the scope of what people could feasibly help you with here without more specifics.
- As far as fixing absolute URLs within the wiki, the proper way to do it, as I'm sure you know, is to use
[[wikilinks]]
, or thelocalurl:
orfullurl:
magic words, if for some reason you needed more control over the URL than regular wikilinks provide. Both of those let you get an absolute URL for resources on the wiki without hard-coding anything (that you would need to change later if you're ever in this situation again). You could simply search-and-replace all of the articles with the absolute URLs within the wiki interface itself, or do a SQLUPDATE
query on the underlying database to fix them. - There is also pywikibot, which is a Python solution for doing things like this, but requires programming (even more so than SQL queries).
- Hope that helps. A little. Ernstkm (talk) 13:59, 21 October 2020 (UTC)
- Thank you, will check it out Ethwald (talk) 23:39, 21 October 2020 (UTC)
- yes, for example with apache rewrite rules. You need to be more specific about how you are redirecting things currently and what your setup looks like currently for any advice more specific than that. Bawolff (talk) 08:39, 21 October 2020 (UTC)
- @Bawolff thanks for the reply. I would like to redirect it like this..
- Since many users bookmarked some important pages from our old wiki say the below example:
- http://oldwiki.sample.ph/mediawiki/index.php/somepage1#somepage1.1
- will redirect to new wiki: http://newwiki.sample.ph/mediawiki/index.php/somepage1#somepage1.1
- I have migrated all the data from old to new and I need to setup the redirection. Redirecting all the pages from old to new, can this be done? Sorry I am not that technical but I will read on it if you can help me where to look for possible solution/s.
- Regards Ethwald (talk) 08:54, 21 October 2020 (UTC)
- which web server are you using? Bawolff (talk) 11:26, 21 October 2020 (UTC)
- Apache2 Ethwald (talk) 12:05, 21 October 2020 (UTC)
- https://dev-notes.eu/2016/08/moving-a-site-to-a-new-domain/ might help Bawolff (talk) 15:58, 21 October 2020 (UTC)
- Hi,
- Can you help me with this please?
- Alias /test1 /var/www/html/test1
- Alias /test2 /var/www/html/test2
- Alias /Wiki /var/www/html/mediawiki
- RewriteEngine On
- RewriteCond %{HTTP_HOST} !newwiki.samplesite.com$ [NC]
- RewriteRule ^/(.*)$ http://newwiki.samplesite.com/$1 [L,R=301]
- ----
- The redirection works. It redirects to newwiki.samplesite.com including paths..
- But it redirects also the test1 and test2 sites. Is there a way to only redirect the Alias /Wiki?
- Your reply is very much appreciated. Ethwald (talk) 01:05, 24 October 2020 (UTC)
- Thanks! will read on it. Ethwald (talk) 23:39, 21 October 2020 (UTC)
Change realname of an other user
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 want to change the realname of an other user in my wiki. Vincenʈ 09:42, 21 October 2020 (UTC)
- There are no "realnames". There is only a Username field when registering an account. Please elaborate. Malyacko (talk) 10:53, 21 October 2020 (UTC)
- there actually is a realname field. Its just disabled on wikimedia Bawolff (talk) 00:49, 22 October 2020 (UTC)
- only way to do this is through directly manipulating the database with sql. Bawolff (talk) 00:49, 22 October 2020 (UTC)
Mojo install on iPage stalled
I am attempting to install MediaWiki on my iPage host account and the install stalls at 45%. Should I attempt to install directly rather than using the Mojo installer? I have not tried that with any website construction. Thanks. Standekansas (talk) 17:36, 21 October 2020 (UTC)
- What version do they have? And, yes, I would try directly. ☠MarkAHershberger☢(talk)☣ 18:46, 21 October 2020 (UTC)
- 1.23.6; I have never installed a program directly, so I think I have an educational opportunity ahead. This will need to wait; I have lectures to develop. I will be back after Thanksgiving(end of semester) with questions. I plan to include a wiki in my classes next semester. Thank you for your response. Standekansas (talk) 18:58, 21 October 2020 (UTC)
- Yes, if they only have 1.23, there have been a lot of changes since then. The inclusion of the Visual Editor is probably the most notable.
- Good luck and feel free to ping me if I don't jump in to help right away when you return. ☠MarkAHershberger☢(talk)☣ 19:00, 21 October 2020 (UTC)
- Thanks Mark, I am coming to the end of a semester, so I probably won't try this until after that. I have two physics classes, an electronics class and statistics to wrap up; I teach them. I want to incorporate a wiki into next semesters courses. The uncertainty in classroom attendance made this semester difficult and I suspect next semester will be no different. I have ideas I want to try. Thanks again. Stan Standekansas (talk) 03:25, 5 November 2020 (UTC)
update.php is giving table not found errors
I'm trying to upgrade mediawiki from 1.10 to 1.35 and after file upgrade in mediawiki files trying to run update.php file and receving following error and not able to figureout why it's failing to create tables with update.php script.
C:\wiki\websites\mediawiki\maintenance>php update.php
MediaWiki 1.35.0 Updater
Your composer.lock file is up to date with current dependencies!
Wikimedia\Rdbms\DBQueryError from line 1699 of C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php: Error 1146: Table 'wikidb.erp_revision_comment_temp' doesn't exist (localhost)
Function: MessageCache::loadFromDB(en)-small
Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `erp_page` JOIN `erp_revision` ON ((page_id = rev_page)) JOIN `erp_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `erp_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `erp_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `erp_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) LEFT JOIN `erp_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
#0 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1907): Wikimedia\Rdbms\Database->query()
#4 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(573): Wikimedia\Rdbms\DBConnRef->select()
#7 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(448): MessageCache->loadFromDB()
#8 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(371): MessageCache->loadFromDBWithLock()
#9 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(1091): MessageCache->load()
#10 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(1017): MessageCache->getMsgFromNamespace()
#11 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(988): MessageCache->getMessageForLang()
#12 C:\wiki\websites\mediawiki\includes\cache\MessageCache.php(930): MessageCache->getMessageFromFallbackChain()
#13 C:\wiki\websites\mediawiki\includes\language\Message.php(1304): MessageCache->get()
#14 C:\wiki\websites\mediawiki\includes\language\Message.php(862): Message->fetchMessage()
#15 C:\wiki\websites\mediawiki\includes\language\Message.php(966): Message->toString()
#16 C:\wiki\websites\mediawiki\includes\Status.php(202): Message->plain()
#17 C:\wiki\websites\mediawiki\maintenance\update.php(149): Status->getWikiText()
#18 C:\wiki\websites\mediawiki\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()
#19 C:\wiki\websites\mediawiki\maintenance\update.php(253): require_once('C:\\wiki\\website...')
#20 {main} Rajeshekv (talk) 17:56, 21 October 2020 (UTC)
- This looks like something is trying to use the updated DB before the update is run. We probably need to file a bug. ☠MarkAHershberger☢(talk)☣ 18:58, 21 October 2020 (UTC)
- thanks for the info, Is there a way to workaround this issue?
- I noticed that 1.35 is stable version and lot of people started using it. As running update.php is the basic step in upgrade , do we know if there is anything i can do to proceed with upgrade? Rajeshekv (talk) 19:08, 21 October 2020 (UTC)
- You could create the table in mysql and see if update.php would run then. ☠MarkAHershberger☢(talk)☣ 19:35, 21 October 2020 (UTC)
- Thanks for the workaround.!!
- I have created 'revision_comment_temp' table and ran update.php again, now it's complaining about other tables (comment,revision_actor_temp,actor). I have created all 4 tables in total and then executed update script again. Now it's complaining about unknown column. Not sure if I'm doing anything wrong here as it's not able to create tables, unable to delete unwanted columns etc.
- Can you let me know if any configs that i need to look for in LocalSettings.php file or anywhere else?
- C:\wiki\websites\mediawiki\maintenance>php update.php
- MediaWiki 1.35.0 Updater
- Your composer.lock file is up to date with current dependencies!
- Wikimedia\Rdbms\DBQueryError from line 1699 of C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php: Error 1054: Unknown column 'rev_sha1' in 'field list' (localhost)
- Function: MessageCache::loadFromDB(en)-small
- Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `erp_page` JOIN `erp_revision` ON ((page_id = rev_page)) JOIN `erp_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `erp_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `erp_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `erp_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) LEFT JOIN `erp_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id) Rajeshekv (talk) 19:59, 21 October 2020 (UTC)
- I'm able to resolve this issue with web-updater. I have dropped everything from database and re-imported from backup and ran web-updater and able to resolve these update issue. Rajeshekv (talk) 22:04, 21 October 2020 (UTC)
Exporting / Importing many pages to and from MediaWiki instances
I am migrating from one instance of MediaWiki to another and was hoping to learn of an efficient way of moving the contents of the wikis between these two instances. Due to some restrictions, I am not able to simply take copy of the MySQL DB and copy that to the other instance.
I have looked into the Special:Export and Special:Import pages as well as the scripts described in Manual:Importing XML dumps. However, I found that using importDump.php and dumpBackup.php were incredibly slow.
What is the recommended and efficient way of exporting / importing all of the data from MediaWiki to another running instance? Nnaka1 (talk) 20:25, 21 October 2020 (UTC)
- It looks like you've covered all the options. You should now choose something. I would try to get an SQL dump from the database, but an XML import could work as well. ☠MarkAHershberger☢(talk)☣ 22:29, 21 October 2020 (UTC)
- xml dumps dont include any private info like user accounts.
- I would try and get around whatever restrictions you have preventing you from getting a db dump if you care about private info. Bawolff (talk) 00:47, 22 October 2020 (UTC)
- Have a look at pywikibot listpages. One call to get a list of pages you want, then loop over them extracting the pages. Concatenate them to a text file and import with pywikibot's pagefromfile script. It takes about 1s per page to extract and 0.5s to import. Vicarage (talk) 14:12, 23 October 2020 (UTC)
- Thanks for all of the suggestions, @MarkAHershberger @Bawolff @Vicarage
- To add a bit more context, I am hoping to only transfer the data / content within MediaWiki (i.e. not the user information / hashes associated with LocalSettings etc.). For this reason, I was thinking of XML dump instead of the DB dump.
- We have 100,000+ pages and also use Semantic MediaWiki, which could potentially lead to the increrase in time taken in exporting.
- With these things in mind, do you still recommend doing SQL dump of just certain tables or using pywikibot to iterate over the pages etc? Also, are there any recommendations with respect to ingesting data (not coming from another MediaWiki instance) at this scale in a reasonable amount of time? Nnaka1 (talk) 20:24, 29 October 2020 (UTC)
- If you aren't interested in the user information, then it sounds like @Vicarage thinks pywikibot would do the trick in a fast-enough way.
- Keep in mind that you will want to have your job queue running at full blast during the import and until the queue is cleared since you are using SMW. ☠MarkAHershberger☢(talk)☣ 23:43, 29 October 2020 (UTC)
- Ensure user-config.py has user_throttle = 0, else it will be 10s per page to import! You will lose history too. Vicarage (talk) 15:41, 30 October 2020 (UTC)
- Thanks again. We are specifically struggling with importing. We have tried writing a pywikibot script that takes content from a raw file and then creates a page with text of that content and saves that page. We have
throttle.setDelays(writedelay=0)
and are periodically running the jobs in the queue as @MarkAHershberger and @Vicarage suggested above. - After saving 200 pages, we have been seeing the following error (with exponential back-off):
WARNING: Http response status 400
- WARNING: Non-JSON response received from server <SERVER_NAME>; the server may be down.
- Set gtllimit = ['2500']
WARNING: Waiting 5 seconds before retrying.
- Do you have some insight into why these errors are happening and how we care prevent these? Nnaka1 (talk) 22:03, 4 November 2020 (UTC)
- To add some more context: in this trial, we had set Manual:$wgRateLimits to be a large number of pages per time period and also made sure that in Manual:User rights both "apihighlimits" and "noratelimit" were set for the pywikibot user account. Nnaka1 (talk) 22:47, 4 November 2020 (UTC)
- I don't, but try setting up a debug log that may give you more information. ☠MarkAHershberger☢(talk)☣ 23:59, 4 November 2020 (UTC)
[resolved] file permissions
RESOLVED | |
It is sometimes necessary to run maintenance scripts as the user who owns the files under images . |
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 keep running into issues with various thing not working due to file permissions. Is their a definative guide to what folders and files should be set to? The1gofer (talk) 23:22, 21 October 2020 (UTC)
- The locations pointed to by
$wpUploadDirectory
,$wgCacheDirectory
, and$wgTmpDirectory
are about the only ones that should be writable. Some extensions need a writable directory (e.g. Widgets needs$IP/extensions/Widgets/compiled_templates/
, and SemanticMediaWiki would like$smwgConfigFileDir
to be writable), but that covers most of the cases. - But it is possible I've missed some. Do you see any missing? ☠MarkAHershberger☢(talk)☣ 00:40, 22 October 2020 (UTC)
- @MarkAHershberger, Well I keep trying to run deleteArchivedFiles.php --delete and get Could not acquire lock on ffilename, skipping.
- I can't really find anything, but it seems like a permissions issue. The1gofer (talk) 22:54, 24 October 2020 (UTC)
- That sounds like you should run the script as whatever user owns the files under images. ☠MarkAHershberger☢(talk)☣ 16:49, 25 October 2020 (UTC)
- that did it. thanks The1gofer (talk) 00:17, 26 October 2020 (UTC)
How to put custom items inside the template
Hello
I created a template with an html tag and I want it to be customized so that the number of items in the box is below:
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 001}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 001|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 001}}}</h3>
</a>
</div>
Add to the desired number
How can I add the desired number of divs by creating a pattern?
Thank you for your help
Thanks
{{#tag:html|
<head>
</head>
<body>
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 001}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 001|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 001}}}</h3>
</a>
</div>
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 002}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 002|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 002}}}</h3>
</a>
</div>
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 003}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 003|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 003}}}</h3>
</a>
</div>
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 004}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 004|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 004}}}</h3>
</a>
</div>
<div class="category-item ng-star-inserted">
<a href="{{localurl:{{{link 005}}}}}">
<div class="icon-wrapper">
<i class="{{{icon 005|sh-icon-Icon-Category-Art}}}"></i>
</div>
<h3 class="ellipsis">{{{title 005}}}</h3>
</a>
</div>
</body>
}}
Sokote zaman (talk) 23:37, 21 October 2020 (UTC)
- easiest way is to use extension:Scribunto.
- Otherwise #if from extension:ParserFunctions (see help:extension:ParserFunctions) Bawolff (talk) 00:44, 22 October 2020 (UTC)
- Thank you for your accountability.
- Please sample the code for the plugin scribunto And the extension:ParserFunctions tell me to implement
- Sincerely. Sokote zaman (talk) 00:49, 22 October 2020 (UTC)
- Please read the documentation. If something is unclear, please ask specific questions. Thanks. Malyacko (talk) 08:50, 22 October 2020 (UTC)
How can I get VisualEditor gadgets running?
For example VisualEditor/Gadgets/Add a tool, I tried running the JS in the console and putting it in Mediawiki:Common.js but it's not working, and the docs are confusing. Can someone explain what to do? YousufSSyed (talk) 00:13, 22 October 2020 (UTC)
में अपने एकाउन्ट स्पेशल कवरेज न्यूज को नहीं खोल पा रहा हूँ
में अपने एकाउन्ट स्पेशल कवरेज न्यूज को नहीं खोल पा रहा हूँ ,में उसका पास वर्ड भूल गया हूँ में उसमे प्रयोग कीगई मेल आईडी भूल गया हू 106.215.57.79 (talk) 07:55, 22 October 2020 (UTC)
how to drop the "?"-Help item
Hi there, Mediawiki automatically inserts "? help" at the top right edge of each page (vector skin). As this help links to the Mediawiki wiki, it is more or less useless for other wikis. How can i get rid of this, please? I tried via common.css:
div#mw-indicator-mw-helplink { display: none;}
Works fine on any namespace artcles, but on category pages the item is stil there. 79.224.198.132 (talk) 09:13, 22 October 2020 (UTC)
- Use;
- div#mw-helplink { display: none;}
- div#mw-indicator { display: none;}
- Ok? Note: But still visible on the page Special:Preferences Arnavutsezgin (talk) 20:17, 1 November 2020 (UTC)
- Doesn't work, unfortunately. This is somewhat curious ... as far I know, CSS is the "last instance" which modifies the html before it's been displayed. So why does it work on some pages (main namespace) but not on others (category pages). 79.224.209.39 (talk) 19:13, 6 November 2020 (UTC)
- Don't you have a mistake? I implemented it on this I implemented it on this sample site and working properly. Test it, please. (mediawiki epizy detects the website as spam. mediawiki justpaste it detects the website as spam. mediawiki ghostbin co detects the website as spam. mediawiki google drive file detects the website as spam. I can not find words to say. )
- Please combine url addresses.
- http turkey. epizy . com / MediaWiki:Common.css
- http turkey . epizy . com / Kategori:Kategoriler
- Of course, it still doesn't affect user preference pages. 31.223.87.235 (talk) 20:02, 8 November 2020 (UTC)
- I do not understand the answer of 31.223.87.235. I still have the same problem. Whether I use
- div#mw-indicator-mw-helplink { display: none;}
- or
- div#mw-helplink { display: none;}
- div#mw-indicator { display: none;}
- the "? help" disappears on all articles within the main namespace but it's sstill visible on all category pages. 79.224.201.19 (talk) 10:02, 12 November 2020 (UTC)
- Hello again friend. An IP address to track here is only available to the person with a fixed IP address. But I can see that you do not have this. I couldn't understand how you could own your comment like that. I congratulate you on this. In this context; I really want to help your longstanding problem. I really want this. I am a Turk and I write these messages to you with the help of google translate. So please contact me. My e-mail address is: incelemeelemani@gmail.com. I will be happy to assist you. Respects. Arnavutsezgin (talk) 18:19, 27 November 2020 (UTC)
Issues displaying the minus sign on Fx 81 and 82
RESOLVED | |
Still an issue for me but I have no time to dig into this any further. In the end the dash or minus is stored in the database thus making this just an display issue. Perhaps it goes away as it came and if it does not, well: tough titties. |
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.
At least the two versions of Fx mentioned do not display the minus sign on pages, revision history etc. For MW 1.31 is is really bad but I also have seen this for MW 1.36-dev, e.g. for the display of file labels when using the MultimediaViewer. Just tested Chrome and there things are fluff. Is this a known issue or is it something that only I am experiencing? A quick and dirty search did not reveal clues. [[kgh]] (talk) 10:06, 22 October 2020 (UTC)
- Is there a public link where the issue can be seen? Malyacko (talk) 12:47, 22 October 2020 (UTC)
- See e.g. this link. No minus for me between "4" and "Portrait" except for the page title itself. [[kgh]] (talk) 19:04, 22 October 2020 (UTC)
- Works for me (Firefox 82 on Linux) https://snipboard.io/szD02n.jpg
- My guess is that you're using a default font that may not be rendering dashes correctly.
- Inspecting the element (Hit F12) may give you the exact font being used Ciencia Al Poder (talk) 21:39, 22 October 2020 (UTC)
- I am on Linux, too. I am really amazed and also learning something here. Admittedly I am using the standard font Fx serves, i.e. DejaVu (Serif). I find it hard to believe that this one cannot serve dashes correctly. When inspecting CSS the class only defines "sans-serif" and the computed font is also only specified with "sans-serif" as the font-family. That's what I am getting: https://snipboard.io/tqWO2y.jpg
- I guess it is time to ask the Fx community for help here? [[kgh]] (talk) 08:59, 23 October 2020 (UTC)
access to wikipedia on iPhone6
Apart from my iMac I am using an iPhone6 which I cannot update. Can you tell me what I should do in order to keep using Wikipedia on my iPhone?@Pinacoteca Pinacoteca (talk) 18:52, 22 October 2020 (UTC)
- I guess you're saying that you're saying the app doesn't support iPhone6, right? So, use the website instead of the app. ☠MarkAHershberger☢(talk)☣ 21:09, 22 October 2020 (UTC)
- Thanks for your reply. I use Safari on my iPhone, but as my iPhone dates from 2014, this Safari version is not able to connect to Wikipedia anymore. I cannot update my iPhone, so I wondered if there is another way. I also cannot install Firefox of Ecosia on my iPhone. Pinacoteca (talk) 08:04, 24 October 2020 (UTC)
- What version of iOS do you have? The hardware version is basically irrelevant. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 09:37, 24 October 2020 (UTC)
- Sorry, I forgot to thank you for your reply. Pinacoteca (talk) 15:19, 29 October 2020 (UTC)
- iOS 6.1.3 which is naturally very, very old. I do have 1 software update but I cannot update new software, I get an error, have tried it again and same story. This phone is a workphone and before me was used by a collegue of mine, so I did reset the network settings and all settings but to no avail. So I have decided to buy an iPhone for myself und use this phone only to make calls. But still I am curious what, if any, procedure i could follow to keep using wikipedia on this iPhone. Pinacoteca (talk) 15:17, 29 October 2020 (UTC)
I do not have access to the root folder: (/bin/bash)
hello
How to modify the address of the (/bin/bash) folder to the following address:
/home/example/tmp/wgTmpDirectory/
Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/home/example/:/tmp:/var/tmp:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php73/lib/php/) in /home/example/domains/example.com/public_html/mediawiki/includes/shell/Command.php on line 311
Thank you for your help
Thanks Sokote zaman (talk) 22:11, 22 October 2020 (UTC)
- Can you remove the
open_basedir
restriction? ☠MarkAHershberger☢(talk)☣ 00:47, 23 October 2020 (UTC) - Thank you for your response
- I do not want to use root for security and I have installed MediaWiki on the user.
- And I can not access open_basedir.
- Please help me to give (/ bin / bash) the address to the user from root
- Thank you for your help
- Thanks Sokote zaman (talk) 01:13, 23 October 2020 (UTC)
- /bin/bash is a file not a folder. It is insecure to put this in a directory writable by your webserver. You probably do not want to do what you are asking to do. It is significantly worse for security than not having open_basedir.
- Additionally the path to bash is not configurable in mediawiki, so you cant anyways.
- That said, that warning is just a warning, mediawiki should continue to work fine (however some security features that depend on bash will be disabled, specificly resourse limits on external commands) Bawolff (talk) 06:25, 23 October 2020 (UTC)
- Thank you very much for the useful information you provided
- Question: Can I solve this problem by customizing the MediaWiki source?
- Because I have installed two plugins that need a bash to run properly and completely Sokote zaman (talk) 19:40, 23 October 2020 (UTC)
- are they giving a different warning? (The warning you posted shouldnt really prevent executing things. If /bin/bash isnt executable, it will instead call whatever command it is directly) Bawolff (talk) 02:54, 24 October 2020 (UTC)
Classical source editing - odd behavior while inserting text
RESOLVED | |
The odd behaviour while inserting text in the editor window seems not to be a Mediawiki issue. |
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 still using the classical source editor instead of the visual editor. In doing so I encountered an odd behaviour while inserting text. At least for me.
It is about copy and paste. You copy something elsewhere and paste it in the editor window where the cursor is. The cursor is placed right after the pasted text. The line with the cursor moves right up to the top of the editor window. The just pasted text is above this line and invisible. At once.
But one could think that one rather would like to take a look at the just inserted lines. Without scrolling. It used to be different before, then it changed at some point.
Is this in my eyes odd behaviour a Mediawiki feature or bug or comes this change of behaviour with some updated toolbox round the editor?
Thanks for an answer in advance! Wgkderdicke (talk) 03:33, 23 October 2020 (UTC)
- Looks like phab:T262835, although maybe different. Can you read that task and see whether it is the same thing? – Ammarpad (talk) 05:38, 23 October 2020 (UTC)
- I read that task. I think that T262835 is another issue.
- I checked the Mediawiki editor with several browsers by using the sandbox page on de.wikipedia.org. It happens in every browser. After that I took a look at the HTML source. The editor window is created by a textarea tag. Googeling the textarea tag led me to w3schools.com. The explanation page of the textarea tag comes with an example. I tried that. And it happend there, too. Far and wide no Mediawiki in sight.
- This seems not to be a Mediawiki issue. Wgkderdicke (talk) 23:59, 23 October 2020 (UTC)
cannot access database
After moving to new server and performing upgrade on WIKI get the error after trying anything like sql.php, eval.php. etc. upgrade and db upgarded showed successful. I can run test PHP connecting to the wiki db and pulling data with the same credentials. Ideas to check
PHP 7.4.11
MediaWiki 1.35
MySQL 8.0.22
[830bccc69caaad39728f7f26] [no req] Wikimedia\Rdbms\DBConnectionError from line 1420 of E:\sites\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php: Cannot access the database: Unknown error ()
Backtrace:
#0 E:\sites\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(934): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 E:\sites\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(901): Wikimedia\Rdbms\LoadBalancer->getServerConnection()
#2 E:\sites\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1046): Wikimedia\Rdbms\LoadBalancer->getConnection()
#3 E:\sites\wiki\includes\GlobalFunctions.php(2469): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef()
#4 E:\sites\wiki\includes\cache\localisation\LCStoreDB.php(56): wfGetDB() 99.153.44.118 (talk) 06:32, 23 October 2020 (UTC)
- Hey did you every figure out what caused that problem? I am running into the same issue with my locally hosted wiki server. The server starts but I cannot access the website link. 128.249.96.11 (talk) 17:10, 7 February 2023 (UTC)
Site title visibility when using different skins
I am new to mediawiki and am wondering about the display of site title:
I have a title string set in $wgSitename. I noticed that some skins display this title in the upper left corner of the screen, for example "Timeless" does display the title whereas "Monobook" does not.
Are any other options available to control this behavior preferably without messing with the html?
Thanks
Dennis Mrwassen (talk) 07:05, 23 October 2020 (UTC)
- "when using different skins", that means you want different styles and looks. If you mean the sitename to look like it does in Timeless across skins, that's not possible. The main reason different skins exist is to give different looks, you should just choose the one you like best. Other than that, the only remaining option is the one you mentioned, that's to tinker with the html, maybe worthwhile, maybe not. – Ammarpad (talk) 11:33, 23 October 2020 (UTC)
- Thanks for your reply, and I do understand the purpose of skins :-) I am just a bit surprised that skins exist which do not display the site title (which unfortunately include those that work out of the box for me). The question was whether there exist any config options for this and based on your reply it seems the answer is "no", so on to html tweaking.
- Thanks
- Dennis Mrwassen (talk) 19:02, 23 October 2020 (UTC)
How can I delete my user account?
How can I delete my user account? Sauveer.pandey (talk) 10:11, 23 October 2020 (UTC)
MediaWiki edit.php slow at saving pages
Hello,
I found a similar issue in the forums, but that thread uses an older version of mediawiki and I am fairly certain my issue does not come from extensions, so I am making a new post.
I am using MediaWiki 1.31.1, PHP 7.2.24-0ubuntu0.18.04.6, and MySQL 5.7.31-0ubuntu0.18.04.1. I am using edit.php to generate pages but it's taking a long time to save the page, about 10 seconds. This is really slow because I have a similar server generating the same content that takes less than 1 second to save.
I compared the two servers and it looks like they have the same extensions enabled in LocalSettings.php, I also compared the two server's mysql settings using 'show variables' and couldn't find anything notable. So I'm pretty lost as to what is causing this slowdown. If anyone has any ideas as to what could potentially cause this slowdown, or have any idea on how to debug/log whatever happens during a page save, that would be greatly appreciated. 2001:56A:732B:5C00:C450:1D4F:CDFF:C94D (talk) 17:20, 23 October 2020 (UTC)
- 10 seconds sounds almost like some timeout is reached (firewall blocking something?)
- Enable Profiling to figure out where mediawiki is stuck. Bawolff (talk) 19:59, 23 October 2020 (UTC)
- Thanks for the advice, I was able to log the output and indeed it was something that timed out. The error message is as follows:
[squid] CdnCacheUpdate::purge: <some links>
[squid] SquidPurgeClientPool: timeout (5s)
- This occurs twice which explains the 10s save time. Thanks for the help 2001:56A:732B:5C00:9D38:8E8:FD05:195C (talk) 22:46, 26 October 2020 (UTC)
- you can use $wgCdnServersNoPurge if you have cache servers that you want XFF to be taken into account but dont want to send purges to. Bawolff (talk) 07:56, 27 October 2020 (UTC)
Infoboxes not populating correctly
RESOLVED | |
Summary: External data is used to populate Infoboxes, but incorrect data from the first box would display in all of the following Infoboxes, rather than displaying the correct data. Bawolff pointed me in the right direction and I was able to determine what I needed to do to get the infoboxes to display correctly: Use "{{#clear_external_data:}}" to 'clear all external data that has already been retrieved' (from the MediaWiki page on the External Data extension). |
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.
- OK, this may take some explaining. I know only a little HTML, and less about making a wiki work. We use a locally hosted MediaWiki for our Systems Support team. We use an infobox to display pertinent info about PCs or other devices, and on some pages we can have three or four boxes. The infoboxes pull the info from an inventory database. When originally set up, the database was a CSV file. Since that time, and even before I started, the inventory was moved to Snipe-IT and MySQL.
- The problem with our Wiki now is that most of the infoboxes were not updated to pull from the correct location.
- This was the old code:
- {{#get_file_data:file=inventory-computers|format=CSV with header|delimiter=,|data=title=Title,location=Location,hostname=hostname,label=Label(s),IP=Static IP address,MAC=MAC address,access=Remote Access,device=Device,servicetag=Service Tag,expressservicecode=Express Service Code,bios=BIOS Version,os=Operating System,network=Network Drop,video=Video Drop,audio=Audio Drop|filters=title=KIOSK}}
And here's the Infobox code that we use:
- Finally, here’s how I have determined that the code should be written to pull from the correct database:
- </nowiki>{{#get_db_data:db=snipeit|from=assets a JOIN locations l ON l.id=a.location_id Join models m ON m.id=a.model_id|where=a.name='KIOSK'|data=title=a.name,
- location=l.name,
- label=a._snipeit_labels_5,
- Asset_tag=a.asset_tag,
- MAC=a._snipeit_mac_address_1,
- os=a._snipeit_operating_system_2,
- hostname=a._snipeit_hostname_3,
- access=a._snipeit_remote_access_6,
- servicetag=a._snipeit_service_tag_7,
- expressservicecode=a._snipeit_express_service_code_8,
- bios=a._snipeit_bios_version_9,
- network=a._snipeit_network_drop_10,
- support=a._snipeit_support_url_17,
- IP=a._snipeit_ip_address_4,
- device=m.name}}
- </nowiki>
- On the first few pages that I updated with this code, all was well – it pulled information from the correct database, etc. But the problem occurs when we have two or more infoboxes on the page: It seems to pull info from the first box on the page to create any boxes that follow, and then duplicates the older info again in the same box.
- Unfortunately, our wiki is not publicly accessible so I can’t direct you to an example. But I’m thinking this is probably very elementary and I’m just missing a bracket or something. Thanks!
- Here are the particulars on our setup. We do have the ParserFunctions extension installed, as well.
- MediaWiki version: 1.29.1
- PHP version: 7.0.33-0ubuntu0.16.04.16 (apache2handler)
- Database type and version: MySQL, 5.7.31-0ubuntu0.16.04.1 Chinghis (talk) 17:55, 23 October 2020 (UTC)
- Just came back to say thanks, Bawolff - you pointed me in the right direction. The MediWiki page on the External Data extension suggested that when you have external data populating a template that's called more than once, you need to clear external data that's already been called. Inserting #clear_external_data after every Infobox section seems to work. Thanks very much! Chinghis (talk) 22:05, 26 October 2020 (UTC)
- the get_db_data is a fairly obscure extension. My first guess would be bug in the extension. Bawolff (talk) 19:57, 23 October 2020 (UTC)
- Thanks! I will look into that a bit. Chinghis (talk) 18:34, 26 October 2020 (UTC)
Global user page customization
Hello
How can I set a set of templates for each person's user page by default so that it automatically shows up inside the user page after creating an account?
Thanks Sokote zaman (talk) 19:45, 23 October 2020 (UTC)
restbase with cassandra on localhost
Hi, at the moment I am trying to use restbase with cassandra on localhost. The objective is to end up using Amazon Keyspaces...
The error I am getting is related to options.log not being a function. Does anybody know what I can be doing wrong?
Any help would be appreciated.
Thank you
/{domain:localhost}/{api:sys}:
x-modules:
- path: projects/proxy.yaml
options:
backend_host_template: '{{"/{domain}/sys/legacy"}}'
- spec:
paths:
/table:
x-modules:
- name: restbase-mod-table-cassandra
type: npm
options:
conf:
version: 1
hosts: [localhost]
defaultConsistency: one
domains: /./
storage_groups:
- name: default.group.local
domains: /./
This is the error stack I get:
{"name":"restbase","hostname":"myhost","pid":51052,"level":60,"err":
{"message":"options.log is not a function","name":"TypeError",
"stack":
"TypeError: options.log is not a function
at Client.client.on (/path/to/restbase/node_modules/restbase-mod-table-cassandra/lib/index.js:107:17)
at Client.emit (events.js:198:13)
at Client.log (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:97:8)
at Client._connectCb (/path/to/restbase/node_modules/cassandra-driver/lib/client.js:406:8)
at handlerWrapper (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:416:13)
at tryCatcher (/path/to/restbase/node_modules/bluebird/js/release/util.js:16:23)
at Promise.fromNode.Promise.fromCallback (/path/to/restbase/node_modules/bluebird/js/release/promise.js:209:30)
at Client.promiseWrapper (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:415:10)
at Client.connect (/path/to/restbase/node_modules/cassandra-driver/lib/client.js:384:31)
at makeClient (/path/to/restbase/node_modules/restbase-mod-table-cassandra/lib/index.js:115:19)
at RBCassandra.setup (/path/to/restbase/node_modules/restbase-mod-table-cassandra/index.js:210:16)
at makeRBCassandra (/path/to/restbase/node_modules/restbase-mod-table-cassandra/index.js:226:15)
at Router._loadModule (/path/to/restbase/node_modules/hyperswitch/lib/router.js:272:26)
at P.each (/path/to/restbase/node_modules/hyperswitch/lib/router.js:298:25)
at tryCatcher (/path/to/restbase/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/path/to/restbase/node_modules/bluebird/js/release/reduce.js:166:18)"},
"stack":
"TypeError: options.log is not a function
at Client.client.on (/path/to/restbase/node_modules/restbase-mod-table-cassandra/lib/index.js:107:17)
at Client.emit (events.js:198:13)
at Client.log (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:97:8)
at Client._connectCb (/path/to/restbase/node_modules/cassandra-driver/lib/client.js:406:8)
at handlerWrapper (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:416:13)
at tryCatcher (/path/to/restbase/node_modules/bluebird/js/release/util.js:16:23)
at Promise.fromNode.Promise.fromCallback (/path/to/restbase/node_modules/bluebird/js/release/promise.js:209:30)
at Client.promiseWrapper (/path/to/restbase/node_modules/cassandra-driver/lib/utils.js:415:10)
at Client.connect (/path/to/restbase/node_modules/cassandra-driver/lib/client.js:384:31)
at makeClient (/path/to/restbase/node_modules/restbase-mod-table-cassandra/lib/index.js:115:19)
at RBCassandra.setup (/path/to/restbase/node_modules/restbase-mod-table-cassandra/index.js:210:16)
at makeRBCassandra (/path/to/restbase/node_modules/restbase-mod-table-cassandra/index.js:226:15)
at Router._loadModule (/path/to/restbase/node_modules/hyperswitch/lib/router.js:272:26)
at P.each (/path/to/restbase/node_modules/hyperswitch/lib/router.js:298:25)
at tryCatcher (/path/to/restbase/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/path/to/restbase/node_modules/bluebird/js/release/reduce.js:166:18)",
"levelPath":"fatal/startup","msg":"Message not supplied","time":"2020-10-24T10:07:32.028Z","v":0}
Andy Kent Jr (talk) 10:42, 24 October 2020 (UTC)
- If I console.log(options), I get
{ conf:
{ version: 1,
hosts: [ 'localhost' ],
username: 'cassandra',
password: 'cassandra',
defaultConsistency: 'localOne',
storage_groups: [ [Object] ],
localDc: 'datacenter1',
datacenters: [ 'datacenter1' ] },
templates: undefined,
logger:
Logger {
_sampled_levels: {},
_logger:
Logger {
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_level: 10,
streams: [Array],
serializers: [Object],
src: false,
fields: [Object] },
_levelMatcher: /^(trace|debug|info|warn|error|fatal)(?=\/|$)/,
_componentLoggers: {},
_traceLogger:
Logger {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_level: 10,
streams: [Array],
serializers: [Object],
src: false,
fields: [Object] },
args: { name: 'restbase' } } }
- It seems like this options.log function missing could be a bug? (or maybe the documentation is incomplete) Andy Kent Jr (talk) 17:35, 24 October 2020 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 301) error
I have the error after installing 1.35 and using certbot https://certbot.eff.org/lets-encrypt/ubuntubionic-apache.html to install SSL certificate.
I chose 2 for the following cert option: 1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration.
My question is, how to set up https redirect and visual editor together? it works fine under just http but may not be the safest option. Or should I selectively redirect (i.e. redirect all users to https but parsoid stays in http?) If so how can I do that?
Thanks a lot! Timingliu (talk) 11:05, 24 October 2020 (UTC)
- You should redirect all requests to https and $wgServer should point to https. If you do that, you should not have a problem with 301. ☠MarkAHershberger☢(talk)☣ 14:01, 24 October 2020 (UTC)
- problem solved thanks! Timingliu (talk) 16:17, 25 October 2020 (UTC)
File alignment not working after upgrade to 1.35
Hi everyone. I upgraded my rather uncustomized wiki from 1.32.1 to 1.35 and I am encountering a strange issue which I don't quite know where to start fixing: Files are not aligning (images), so e.g. (ignore the spaces this is just to not throw this editor off): [ [ File : Something.jpg | right ] ] but it is not aligning this file to the right. My wiki is now full of weird layouts because all the images jumped back to their default no/left alignment. Any ideas? Much appreciated! 2001:16B8:4846:8300:5D49:CAC8:EADD:D454 (talk) 15:53, 24 October 2020 (UTC)
- Is your wiki publicly viewable so we can see the problem? ☠MarkAHershberger☢(talk)☣ 17:05, 24 October 2020 (UTC)
- yes, wiki.tarantino.info in fact. "Quentin_Tarantino_by_Ed_Gallafent" is an article there u can open as an example 2001:16B8:4846:8300:5D49:CAC8:EADD:D454 (talk) 17:36, 24 October 2020 (UTC)
- Ok, it looks like there was a change in some of the core CSS and foreground (the skin you use), didn't adapt. But I can't be sure because less files make only a smidgen of sense to me.
- In any case, you can add
div.tright, div.floatright, table.floatright { clear: right; float: right; } div.tleft, div.floatleft, table.floatleft { float: left; clear: left; }
- to your common.css and that should fix the problem.
- I couldn't find anything reported against the foreground skin about this, so you might try filing an issue there. ☠MarkAHershberger☢(talk)☣ 18:14, 24 October 2020 (UTC)
- Thanks! I will definitely report it there, they are currently looking into 1.35 compatibility anyway :) 2001:16B8:486D:DD00:5D49:CAC8:EADD:D454 (talk) 08:55, 25 October 2020 (UTC)
HTTP 500 error w/ VisualEditor
I'm running MediaWiki-1.35 (stable) on Raspbian 10 (Buster), with VisualEditor-0.1.2 and php 7.3.19. I honestly can't figure out how to get the new php-parsoid to work, and the documentation hasn't been updated yet for me to follow it. Can anybody help me out? I keep getting the HTTP 500 error whenever I attempt to use the visual editor on my wiki.
I haven't gotten debug logs to function, so I'm currently installing wireshark to see if I can capture the issue this way. 2.110.140.150 (talk) 01:32, 25 October 2020 (UTC)
- What did you do to try and produce debug logs?
- Are you upgrading or is this a fresh install? ☠MarkAHershberger☢(talk)☣ 16:52, 25 October 2020 (UTC)
How to display the Username or IP in a wiki page or template?
Preferably without installing any extension, I would like to display the username or IP address of the browser that visits the page.
Within magic words and ParserFunctions I did not find what I am looking for.
This extension Extension:UserFunctions contains some severe warnings.
The extension Extension:GetUserName displays only a name, but not an IP
Perhaps the extension Extension:MyVariables provides a solution.
The extension Extension:Variables indicates that WMF prefers not to work with it and points to Extension:Scribunto/Lua reference manual
Given that my username gets displayed at the top right corner, I would expect that a page or template could also display that name.
What are my options? Matjung (talk) 13:02, 25 October 2020 (UTC)
- The reason you can't find this sort of thing is because it isn't something that works well with the level of caching needed by Wikipedia.
- To get around that, you need something that happens at the browser level. It seems like to me that the best way to handle that would be to insert a marker like
<span class="substitute-username-here">User's name</span>
- wherever you want to have the user's name to be displayed and then use Javascript to find instances of
span.substitute-username-here
and replace the body with the user's name or ip. ☠MarkAHershberger☢(talk)☣ 17:04, 25 October 2020 (UTC) - the warnings on user functions is probably a bit extreme, i would suggest just using that.
- The warning is basically, that its possible to setup a wiki page to load different images (or something) based on who is viewing it, then the person who did that can look to see which image was viewed to figure out which person viewed the original page. If you're worried about that be careful, but its a pretty minor attack so i think most people should probably just not care. Bawolff (talk) 19:36, 25 October 2020 (UTC)
How to change Apache2 virtual hosting directory
I have installed the updated version of mediawiki on a new directory and now it can be accessed via test-update.clinicianwiki.com. The original site is clinicianwiki.com. I tried to change the directory in the /etc/apache2/sites-avaiable/*.conf files to the directory hosting test-update.clinicianwiki.com and then use a2ensite but it is not working (despite changes being brought forward to sites-enabled. Now I have to do it in a very clumsy way by changing the $wgServer in the LocalSetting.php of clinicianwiki.com so that it will be redirected to test-update.clinicianwiki.com where new features are available. What should I do so that clinicianwiki.com will be serving the same content as test-update.clinicianwiki.com? (it is not necessary that the same directory is served twice, on clinicianwiki.com alone will do but I can't figure out a way to do it...). Thanks! Timingliu (talk) 16:28, 25 October 2020 (UTC)
- I'm confused by your question. Do you want the test site and the original site to work at the same time but have different data? Are you trying to move the test site to the original site? ☠MarkAHershberger☢(talk)☣ 16:57, 25 October 2020 (UTC)
- I am trying to move the test site to the original site by changing the apache2 and mediawiki settings. Timingliu (talk) 18:36, 25 October 2020 (UTC)
- do you need to restart apache? Not working how? Bawolff (talk) 19:32, 25 October 2020 (UTC)
- thanks a lot for your prompt response!
- I restarted apache2. not working as in when you now go to clinicianwiki.com, it will first go to the old directory, where the LocalSetting.php will then redirect you to test-update.clinicianwiki.com. Timingliu (talk) 16:03, 1 November 2020 (UTC)
- How do you know its going to the old directory?
- Is $wgServer set correctly in the LocalSettings.php of the new LocalSettings.php Bawolff (talk) 18:26, 1 November 2020 (UTC)
- Thanks so much! I double checked again and it was because using SSL encryption with CertBot added a *-le-ssl.conf file and I needed to modify and a2ensite and restart apache2 for changes to take effect. Timingliu (talk) 16:55, 3 November 2020 (UTC)
Unable to Login
RESOLVED | |
I had not run update.php |
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.
[X5XR3tBhqHAAAAnpo00AAAAH] 2020-10-25 19:28:30: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Whenever I try to log in to my admin account on my wiki ErostheAmor (talk) 19:29, 25 October 2020 (UTC)
- See how to debug. ☠MarkAHershberger☢(talk)☣ 19:42, 25 October 2020 (UTC)
- Warning: Use of undefined constant fales - assumed 'fales' (this will throw an Error in a future version of PHP) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php on line 114
- Warning: session_name(): Cannot change session name when headers already sent in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/Setup.php on line 713
- Warning: session_id(): Cannot change session id when headers already sent in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/Setup.php on line 757
- Warning: session_start(): Cannot start session when headers already sent in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/Setup.php on line 758
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Warning: Cannot modify header information - headers already sent by (output started at /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/LocalSettings.php:114) in /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/WebResponse.php on line 74
- Getting this now and can't even see wiki ErostheAmor (talk) 20:12, 25 October 2020 (UTC)
- while for starters, fix the fales typo on line 114 to false, and that should take care of most of the other new issues.
- Did you include the $wgShowExceptionDetails=true; part of the debugging instructions? Bawolff (talk) 20:43, 25 October 2020 (UTC)
- yeah that's all fixed now, it's working as normal. I misspelled false lol. I enabled the debugging toolbar. ErostheAmor (talk) 21:02, 25 October 2020 (UTC)
- [X5X5EdBhqHAAAFtpRc0AAAAB] /mediawiki-1.35.0/index.php?title=Special:UserLogin&returnto=Special:WhatLinksHere/Main+Page Wikimedia\Rdbms\DBQueryError from line 1699 of /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Error 1146: Table 'inthecrescent_com_4.oathauth_users' doesn't exist (mysql.inthecrescent.com)
- Function: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser
- Query: SELECT * FROM `oathauth_users` WHERE id = 1 LIMIT 1
- Backtrace:
- #0 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
- #1 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
- #2 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #3 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
- #4 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/Database.php(2007): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
- #5 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string)
- #6 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/libs/rdbms/database/DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
- #7 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/extensions/OATHAuth/src/OATHUserRepository.php(86): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string)
- #8 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php(44): MediaWiki\Extension\OATHAuth\OATHUserRepository->findByUser(User)
- #9 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/auth/AuthManager.php(660): MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider->beginSecondaryAuthentication(User, array)
- #10 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/auth/AuthManager.php(397): MediaWiki\Auth\AuthManager->continueAuthentication(array)
- #11 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(372): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)
- #12 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep(string, array)
- #13 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/htmlform/HTMLForm.php(707): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)
- #14 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()
- #15 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/LoginSignupSpecialPage.php(319): AuthManagerSpecialPage->trySubmit()
- #16 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/SpecialPage.php(600): LoginSignupSpecialPage->execute(NULL)
- #17 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
- #18 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
- #19 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/MediaWiki.php(940): MediaWiki->performRequest()
- #20 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/includes/MediaWiki.php(543): MediaWiki->main()
- #21 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/index.php(53): MediaWiki->run()
- #22 /home/crescentconnection/inthecrescent.com/mediawiki-1.35.0/index.php(46): wfIndexMain()
- #23 {main} ErostheAmor (talk) 21:03, 25 October 2020 (UTC)
- this was the error code I just got ErostheAmor (talk) 22:20, 25 October 2020 (UTC)
Help
אני לא ממליח להוסיף תבנית Lironyz (talk) 23:27, 25 October 2020 (UTC)
- How are you trying to add a template? Where? ☠MarkAHershberger☢(talk)☣ 14:28, 26 October 2020 (UTC)
Cron on load balanced wiki
Hi,
I have a wiki load-balanced on two equal servers (could some day be more).
I was wondering what's the best way to run cron maintenance scripts (e.g. Generate Sitemap) so that it doesn't run on both servers.
Would you have any suggestions on what the best way to do this is?
Thank you John Basin (talk) 00:36, 26 October 2020 (UTC)
- Normally if you have two servers, they have separate cron daemons, so you would only run the script on one of them. Bawolff (talk) 03:01, 26 October 2020 (UTC)
- Thank you Bawolff
- The setup is such that the servers are part of an auto-scaling group. And because of that, the images that create the server would be the same and the cron daemons would be the same.
- I was thinking maybe it could be done somehow through the jobqueue or a url that triggers the maintenance job (triggered by a lambda function or similar)? John Basin (talk) 09:51, 26 October 2020 (UTC)
- I'm not familiar with lambda functions (on AWS, I assume?). How do you think it would work? ☠MarkAHershberger☢(talk)☣ 14:32, 26 October 2020 (UTC)
- Yes, on AWS.
- You can set up a cron for Lambda functions and Lambda functions can be just simple scripts. You just write a script and AWS runs that script in the cloud for you, i.e. they take care of the infrastructure to run that script and the cost is negligible.
- So I was imagining something along the lines of this:
- You set up a cron for the Lambda function, which will be a single request. Now the question become how the lambda tells a server to run the job/maintenance script.
- Maybe an http request (like a post/rest)? That would hit the load balancer, which would then only send the request to one server and that one server would execute. Here I'm unsure of the best way to do this.
- Alternatively I was thinking of adding a tiny tiny server, which is less than $0.005 per hour so not expensive, that also has an install of the site. This server would not be attached to the load balancer and therefore not serve any website views. It would only run the jobqueue and other maintenance tasks. The issue is that memory is about 0.5GB so I assume it would have to effectively run on swap only?, the difference should be in performance but I don't think that matters for a server only running jobs/maintenance tasks. Problem I have with this alternative is that conceptually adding a full server to do this annoys me, as it seems like killing a fly with a cannon. Also its another server to maintain. John Basin (talk) 15:07, 26 October 2020 (UTC)
- There is a hidden page, Special:RunJobs, that could be triggered this way. I don't know anything about it though. ☠MarkAHershberger☢(talk)☣ 01:41, 27 October 2020 (UTC)
- special:runjobs isnt really meant to be triggered externally and would probably be difficult (but not impossible) to use for this (but the code might provide a good template). You will probably have to create your own scafolding.
- Wikimedia uses https://github.com/wikimedia/operations-mediawiki-config/blob/master/rpc/RunJobs.php not sure how easily reusable it is (their usecase is more about ensuring that JIT stays warmed up, and startup times) Bawolff (talk) 06:20, 27 October 2020 (UTC)
- Mark and Brian, thank you very much for the pointers. I will explore RunJobs to see if I can adapt to my use-case. John Basin (talk) 09:43, 27 October 2020 (UTC)
How would you create a unique footer sitenotice without installing any extension?
I have an Hebrew 1.34.42 MW website which is principally all core.
I can add a site notice appearing in the header of the website but I want to also add one which appears in the footer of the website (the lesser one should have different content than that of the upper one).
How would you create a unique footer sitenotice without installing any extension?
Thanks in advance for any help with this. 182.232.131.87 (talk) 05:30, 26 October 2020 (UTC)
- you could edit the page named MediaWiki:copyright on your wiki. It will be shown on the footer of most content pages (but not special pages) Bawolff (talk) 08:43, 26 October 2020 (UTC)
- I thank Bawolff for this comment;
- I need the message in all pages;
- Any further advice about this is most welcome. 182.232.131.87 (talk) 14:27, 26 October 2020 (UTC)
- then you probably need either an extension or custom skin or custom javascript (in MediaWiki:common.js) or maybe custom css in MediaWiki:common.css (but this is kind of hard to do with css, not impossible though) Bawolff (talk) 07:58, 27 October 2020 (UTC)
phpmyadmin versions?
I am installing mediawiki on ubuntu 20 LTS. I'm trying to install phpmyadmin, but I notice it wants to install several php 7.4 components. The mediawiki compatibility page suggests that mediawiki is not compatible with 7.4. Is there a way of installing an old version of phpmyadmin? Should I try this question on an ubuntu forum around release versions and repositories, or have you people got any good suggestions?
Thanks, Mark Mgrahamnz (talk) 06:00, 26 October 2020 (UTC)
- I think its likely mediawiki will work with 7.4.2 and later, its probably that there just hasnt been a lot of testing. So i'd suggest just trying it.
- It is possible to install other versions of php in ubuntu, but you'd have to ask the ubuntu people the best way. Bawolff (talk) 08:41, 26 October 2020 (UTC)
Wiki farm
Hello. How can I create a wiki farm without shell access, but shared hosting instead. Thank you. 181.197.40.100 (talk) 07:51, 26 October 2020 (UTC)
- See Manual:Wiki family. If some specific section/sentence is unclear, please ask - thanks. Malyacko (talk) 10:24, 26 October 2020 (UTC)
Show articles first on category pages?
Category pages first show subcategories and second the articles. Is there a way to swap that, so that articles are shown first and subcategories second? Stefahn (talk) 10:23, 26 October 2020 (UTC)
- I think you might be able to use CSS. See this tutorial. You would have to swap the
#mw-subcategories
and#mw-pages
elements. ☠MarkAHershberger☢(talk)☣ 14:37, 26 October 2020 (UTC) - Yes, we could use JavaScript to swap them. But there is no setup file or setting anyone knows? Stefahn (talk) 15:43, 27 October 2020 (UTC)
- You would have to use your wiki's MediaWiki:Common.css and MediaWiki:Common.js. ☠MarkAHershberger☢(talk)☣ 16:52, 27 October 2020 (UTC)
Cirrussearch not finging new page content
RESOLVED | |
User mentioned this is fixed |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I've upgraded from an older version of mediawiki running on Ubuntu 16.04 to the latest version running on Ubuntu 20.04.
On the previews server we were using Sphinxsearch as a search engine but it seems that this extension is not longer supported and I switched to Cirrussearch. My issue now is that the new edits are not indexed.
I've followed all the steps on this documentation https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch/+/HEAD/README, but I still cannot make it work. Please can someone help me on this?
Thank you! Ctodosi (talk) 12:39, 26 October 2020 (UTC)
- How are you running your job queue? ☠MarkAHershberger☢(talk)☣ 14:38, 26 October 2020 (UTC)
- not sure if I setup something like this....Is not enabled by default? Ctodosi (talk) 15:00, 26 October 2020 (UTC)
- Fix it, sorry for the dumb question. Ctodosi (talk) 15:10, 26 October 2020 (UTC)
- yes there is a default implementation but sometimes its too slow to keep up or otherwise doesnt work properly. Using the runJobs script is more reliable. Bawolff (talk) 00:44, 27 October 2020 (UTC)
Invert every icon?
Hey there :)
I would like to give my wiki some CSS that changes to wiki's color to a dark one. The reason I'm not using an already finished skin is that I want to use Timeless and the Dark Mode Extension doesn't work correctly. I stumbled upon a question while writing the CSS: Is there an easy way to invert every icon on the wiki? You can't see the icons on a dark background, so they need to be changed.
Thanks for answering in advance! 194.114.104.121 (talk) 12:46, 26 October 2020 (UTC)
- According to this SO answer, it is possible with CSS filters. See this example at MDN. ☠MarkAHershberger☢(talk)☣ 14:27, 26 October 2020 (UTC)
- I should have been more clear. I know that there is a possibility with invert(). I wanted to know if there is a way to invert every icon at once without having to refer to every single icon. To be more precise: Is there a way to address every icon at once? 194.114.104.121 (talk) 15:07, 26 October 2020 (UTC)
- That is a better question for @Isarra, the creator of Timeless. ☠MarkAHershberger☢(talk)☣ 01:33, 27 October 2020 (UTC)
how to optimize the search results?
Hi, I would like to know where to look for if i want to optimize the search results.
Thank you! 84.46.79.99 (talk) 14:57, 26 October 2020 (UTC)
- I think you'll need to provide more details. The1gofer (talk) 15:17, 26 October 2020 (UTC)
- I am not satisfied with the search results after I enter a certain key word in the search box. Thats why I would like to know, if there is any Extension or plugin that i can make use of in order to improve the results list. 84.46.79.99 (talk) 15:21, 26 October 2020 (UTC)
- Hard to say if you don't explain how an "optimization" looks like or what exactly the problem is. Malyacko (talk) 15:41, 26 October 2020 (UTC)
- look into cirrus search and elastic search.
- I recently got it up and running, and it took some effort. You are going to need root access, and it's not going to work on a shared server. The1gofer (talk) 15:54, 26 October 2020 (UTC)
- thanks a lot! 84.46.79.99 (talk) 16:22, 26 October 2020 (UTC)
- Thanks for the answer! I will take a look at it. 84.46.79.99 (talk) 08:53, 27 October 2020 (UTC)
mediawiki/nginx config
currently, I have my domain redirecting to /wiki/. I've got some other stuff on the server, but I want the wiki to be the main landing page. I am also using the short URL's. This all works very nicely when I'm using the wiki, but it causes issues when I try to do anything outside the wiki.
For example, robots.txt located in domain.com/robots.txt end up at domain/wiki/Robots.txt.
Here is my local settings:
$wgScriptPath = "";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
Here is the relivant nginx config
resolver 1.1.1.1; server_name domain domain; root /var/www/prod/wiki; index index.php; location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?title=$1&$args; } location ^~ /maintenance/ return 403; }
I suspect this has something to do with either my mediawiki configuration, or my nginx configuration, or both, but I'm not sure what to do about it. The1gofer (talk) 15:45, 26 October 2020 (UTC)
- Have you looked at the nginx page for short urls?
- Your
location @rewrite
rule looks like the main suspect, to me. ☠MarkAHershberger☢(talk)☣ 01:48, 27 October 2020 (UTC) - This happened after I upgraded from MW1.33 to 1.35
- What I'm I missing 103.121.152.203 (talk) 07:07, 27 October 2020 (UTC)
- ok after messing around with it quite a bit, I got it up and running. For anyone who follows, I had to make sure the root was the directory above the wiki.
- Followup question, @MarkAHershberger, now the images and lua don't work. It says file missing for the images.
- I have the
- Images
location /w/images {
# Separate location for images/ so .php execution won't apply
}
location /w/images/deleted {
# Deny access to deleted images folder
deny all;
}
- is that preventing the server from finding the images? The1gofer (talk) 18:31, 13 November 2020 (UTC)
- ok I got images up. After moving to /w/ from /wiki/ I had to update the config file. The1gofer (talk) 18:51, 13 November 2020 (UTC)
- can you write out the full file path to the config file? Mediabobedit (talk) 21:27, 5 September 2023 (UTC)
Image Synonym in MW 1.35 Not Working
As described at the very top of Mediawiki Help:Images, the 'Image' synonym for 'File' doesn't seem to work.
I have two instances of Mediawiki running on my server (all else being equal), in v 1.21 this works, but in 1.35, it doesn't, and I must swap 'Image' with 'File':
[[Image:MyImage.jpg|50px|caption]]
Any direction would be appreciated, as I have an extension that relies on the use of 'Image' rather than 'File' ~z929669 Talk 18:12, 26 October 2020 (UTC)
- 'Image' alias is still supported and the Help page Help:Images does not state otherwise. Probably the error is from the extension you mention. See Manual:How to debug – Ammarpad (talk) 22:58, 26 October 2020 (UTC)
- The issue turned out to be that I had declared the NS_IMAGE namespace in response to errors I initially was getting via php immediately after upgrade. I stupidly forgot I had done that, thus rendering the alias invalid. ~z929669
Talk 19:34, 28 October 2020 (UTC)
Border on the Wiki pages
RESOLVED | |
User to apply a CSS rule. |
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 do I change the light blue border of the Wiki pages in MediaWiki:Common.css? I am using Vector style. 197.89.74.184 (talk) 18:29, 26 October 2020 (UTC)
- Normally you'd need to learn how to use your web browser's web inspector, as well as learning about how CSS works (or a reference for it). Then inspect the page where you want to change styles, then select the item you want to change the styles of to find the style name that is creating the look, then use the element class (classes start with a dot, like .stylename) or ID (ID's start with a #, like #stylename), whichever is being used to style it, to find the rule name and style rules. Be careful to only include the lines you need to override (not all lines in the style). When I use Chrome's web inspector, I see the following, which seems to be creating the blue line:(Since all you asked about overriding was the blue border, all I included was the line controlling the blue border. Including just the style lines you need to override and not extras, will help prevent issues later on.)
.mw-body { border: 1px solid #a7f9ce; }
- An overview of FireFox web inspector.
- An overview of Chrome dev tools/inspector. TiltedCerebellum (talk) 01:19, 27 October 2020 (UTC)
- Thank you 197.89.74.107 (talk) 06:45, 27 October 2020 (UTC)
- You're welcome. TiltedCerebellum (talk) 08:36, 27 October 2020 (UTC)
How do pages get updated?
https://en.wikipedia.org/wiki/Santa_Cruz_Islands_order_of_battle needs to be updated:
Destroyer Squadron 2 (Rear Admiral Raizo Tanaka in Isuzu)
BUT only 5 destroyers are listed...Umikaze is missing from the list above
Thanks 24.74.87.59 (talk) 19:48, 26 October 2020 (UTC)
- See w:Help:Editing on English Wikipedia. If something is not clear, you can then ask for help on w:Wikipedia:Teahouse still on on English Wikipedia. That's where these articles are. – Ammarpad (talk) 22:49, 26 October 2020 (UTC)
Upload error - Could not create directory "mwstore://local-backend/local-public/
The complete message is "Could not create directory "mwstore://local-backend/local-public/f/f9"." when I try to upload a file from Special:Upload.
I search solution on internet but no one is referred to my problem.
I add in LocalSettings.php these lines: Manual:Disabling file lock manager
I've already setting correctly the upload folder.
For any dubt I've temporary set 777 on mywiki/images directory.
On php (7.3) I've set the upload option on.
All software is updated.
Tell me if you need more info. I've log of 1810 lines when I click on upload buotton :(. Biggino14 (talk) 22:55, 26 October 2020 (UTC)
- did you set the file permissions on the subdirectories of mywiki/images? Bawolff (talk) 00:41, 27 October 2020 (UTC)
- yes, for any dubt I do:
- sudo chown -R user mywiki/
- sudo chgrp -R www-data mywiki/
- sudo chmod -R 777 mywiki/
- sudo chmod g+s mywiki/
- I'm in local test machine so no problem to test with these permissions. Biggino14 (talk) 17:35, 27 October 2020 (UTC)
- check if its being blocked by selinux (or similar things) if you have that enabled. Bawolff (talk) 04:28, 28 October 2020 (UTC)
- I've a raspberry without selinux, or is installed by default a similar package? Biggino14 (talk) 18:07, 30 October 2020 (UTC)
Internal Server Error after Migration when Trying to Save Changes to a Page
Hey friends, hi there. I'm new around here but I've been using MediaWiki for ages now. Well I just migrated to another host, and at first blush everything seems to be working. I can log in, load pages, it looks fine, etc etc. However, when I tried to make a change to one of my pages by clicking the Save button, I got a 500 internal server error.
I looked at the server error.log file and saw nothing related to the Wiki, so I am completely perplexed. Might y'all be able to tell me some hints as to what to check or look at in order to find the cause of the problem? Thanks so much! SpaceGameJunkie (talk) 23:23, 26 October 2020 (UTC)
- How to debug may help. Make sure check your php error log not just your webserver error logs (some setups combine them but often they are separate) Bawolff (talk) 00:40, 27 October 2020 (UTC)
Import failed: No pages to import
This happened after I upgraded from MW1.33 to 1.35
What I'm I missing? Goodman Andrew (talk) 00:44, 27 October 2020 (UTC)
- You need to provide a few more details about what you did. ☠MarkAHershberger☢(talk)☣ 01:43, 27 October 2020 (UTC)
- I exported a page from Wikipedia then tried to import it into my wiki as usual but it doesn't work. I tried with different pages with varying sizes (some 100+kb, others 200+kb), no luck Goodman Andrew (talk) 01:46, 27 October 2020 (UTC)
- If "it didn't work" then you have to elaborate why and how it didn't work. Malyacko (talk) 09:13, 27 October 2020 (UTC)
- @Malyacko: if I knew the why to this problem I won't have come here. Goodman Andrew (talk) 05:15, 28 October 2020 (UTC)
- @Goodman Andrew I asked because "it doesn't work" is so little information that usually nobody is able to help. As Mark already wrote, this still lacks details and complete steps to reproduce (click by click, step by step), error messages, etc. Malyacko (talk) 08:35, 28 October 2020 (UTC)
- @Malyacko: pay attention, the topic of this thread is: "No pages to import" that's the error message. Goodman Andrew (talk) 04:46, 29 October 2020 (UTC)
- @Goodman Andrew, it is probably not a good strategy to get angry with people trying to help you.
- What are you doing to get the error? Could you give us a step-by-step process? What page did you try to export from Wikipedia? How did you try to import it to your wiki? ☠MarkAHershberger☢(talk)☣ 13:57, 29 October 2020 (UTC)
- @MarkAHershberger: I've tried importing any page (x) or template (y) or project page (z) from Wikipedia into my own wiki at example.org/wiki/Special:Import but to no avail.
- Error message: No pages to import
- Whereas, the correct interwiki (en or Wikipedia) is provided, and "import to:" is set to default; but it doesn't matter if it were set to the relevant namespace of the page to be imported.
- PHP ERROR LOG:
[31-Oct-2020 02:52:03 America/Boise] PHP Warning: XMLReader::read(): in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 02:52:03 America/Boise] PHP Warning: XMLReader::read(): ^ in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:01:35 America/Boise] PHP Warning: XMLReader::read(): uploadsource://f47d2a62a5ed5ec9035b63aabe47c9dc:1: parser error : Extra content at the end of the document in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:01:35 America/Boise] PHP Warning: XMLReader::read(): in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:01:35 America/Boise] PHP Warning: XMLReader::read(): ^ in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:01:40 America/Boise] PHP Warning: proc_open(): fork failed - Resource temporarily unavailable in /home1/logosneg/public_html/en/w/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 153<br /> [31-Oct-2020 03:01:40 America/Boise] PHP Warning: proc_open(): fork failed - Resource temporarily unavailable in /home1/logosneg/public_html/en/w/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 153<br /> [31-Oct-2020 03:01:40 America/Boise] PHP Warning: proc_open(): fork failed - Resource temporarily unavailable in /home1/logosneg/public_html/en/w/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 153<br /> [31-Oct-2020 03:01:40 America/Boise] PHP Warning: proc_open(): fork failed - Resource temporarily unavailable in /home1/logosneg/public_html/en/w/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 153<br /> [31-Oct-2020 03:01:41 America/Boise] PHP Warning: proc_open(): fork failed - Resource temporarily unavailable in /home1/logosneg/public_html/en/w/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 153<br /> [31-Oct-2020 03:35:06 America/Boise] PHP Warning: XMLReader::read(): uploadsource://5e346dd8ec53312cc28cc3b3d5d3f17b:1: parser error : Extra content at the end of the document in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:35:06 America/Boise] PHP Warning: XMLReader::read(): in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578<br /> [31-Oct-2020 03:35:06 America/Boise] PHP Warning: XMLReader::read(): ^ in /home1/logosneg/public_html/en/w/includes/import/WikiImporter.php on line 578
- HOST:
- Bluehost share host server Goodman Andrew (talk) 08:17, 31 October 2020 (UTC)
- It looks like the problem is
Resource temporarily unavailable in ...
. This is coming from Lua/Scribunto and it looks like MediaWiki isn't able to fork off the lua interpreter. - What happens if you try to export a single page that you export with no templates? What happens if you disable Scribunto? ☠MarkAHershberger☢(talk)☣ 17:23, 1 November 2020 (UTC)
- @MarkAHershberger: It now work for pages in most other namespaces except those on Wikipedia mainspace. I tried it on pages from other wiki like MediaWiki.org and it work but still can't import a Wikipedia page. Goodman Andrew (talk) 14:42, 3 November 2020 (UTC)
- I would disable Scribunto for now until you can get it fixed. ☠MarkAHershberger☢(talk)☣ 14:59, 3 November 2020 (UTC)
- @MarkAHershberger: Amazing! It works with scribunto disabled. But I do I get both working? Can I do without scribunto, how about references: how would they work without it?
- Damn! A lot of template is broken... what can I do now? Goodman Andrew (talk) 22:42, 3 November 2020 (UTC)
- I think you would need to work with your hosting support to see why you cannot execute the lua binary from the webserver. That seems to be the issue with all of this.
- In the meantime, though, your imports should work. ☠MarkAHershberger☢(talk)☣ 18:34, 4 November 2020 (UTC)
- Thank you Goodman Andrew (talk) 10:59, 5 November 2020 (UTC)
MobileFrontend less compiler issue lazy load images
MediaWiki 1.35
MobileFrontend 2.3.0
MinervaNeue - fc8ac05
On mobile view I currently experience an issue with lazy loading images (especially in sections of articles). These are not loading due to an Less compile error:
Less_Exception_Compiler from line 49 of /var/www/wiki/vendor/wikimedia/less.php/lib/Less/Tree/Variable.php: variable @msg-mobile-frontend-tap-to-display-image is undefined in file /var/www/wiki/extensions/MobileFrontend/resources/mobile.init/mobile.less in mobile.less on line 27, column 11
25| // Tap to click pattern
26| .lazy-image-placeholder--tap:before {
27| content: '@{msg-mobile-frontend-tap-to-display-image}';
28| color: @colorGray7;
29| text-align: center;
30| font-size: 0.75em;
I have no clue what can cause this behavior. Which component is responsible for setting the variable msg-mobile-frontend-tap-to-display-image? I have a hunch it might be a composer component or so which is not installed on the server somehow. As a workaround I just disabled lazy loading on MobileFrontend, but at the end I want to get rid of this and a working lazy loading behavior for mobile devices. Any idea how to solve this issue? Captain007 (talk) 08:27, 27 October 2020 (UTC)
- check your version of mobilefrontend corresponds to your version of mediawiki. Bawolff (talk) 02:00, 28 October 2020 (UTC)
- I installed the version which should be for 1.35 (1421405) Captain007 (talk) 08:42, 28 October 2020 (UTC)
- Found the root cause. For some reason the message from the json files containing translations is not properly falling back to English. I use Dutch as main language and there is not translation in nl.json for the string mobile-frontend-tap-to-display-image present. I added it now manually and now the LESS compiler picks it up correctly. I think at least some proper translations for this string should be added for all languages that are offered! Captain007 (talk) 13:35, 9 November 2020 (UTC)
Changing the current text shown
Consider the following log entry:
14:42, October 27, 2020 Materialscientist talk contribs blocked Conorhater talk contribs with an expiration time of indefinite (account creation blocked)
Do note that above one is just a random example. I would like to know how I can change the text "with an expiration" to "with a expiration". Note that this too is just an example. I actually need to make the change in www.schoolwiki.in. Adithyak1997 (talk) 09:22, 27 October 2020 (UTC)
- Find the message in your MediaWiki installation and change it. Also see Help:System message#Finding messages and documentation Malyacko (talk) 11:46, 27 October 2020 (UTC)
users can login to mediawiki from another site
- Hi everyone
- we have an asp.net MVC site with more than 200 users. we want our users can login to MediaWiki by their user name and password without sign up for MediaWiki. how can we do that? 188.211.48.33 (talk) 13:59, 27 October 2020 (UTC)
- It depends upon the authentication method you are using for your asp.net site.
- If you have a database of usernames and passwords in the asp.net app and want to allow people to use them, you could write an extension to use those usernames and passwords for authentication or you could expose, say, an OpenID interface there that your wiki could use. ☠MarkAHershberger☢(talk)☣ 15:13, 27 October 2020 (UTC)
- if you need to make a custom sso, see SessionManager. However there are some prebuilt extensions which would be easier. Bawolff (talk) 01:59, 28 October 2020 (UTC)
- thanks for your answer. would you please guide me in more detail? what is the name of prebuilt extensions?
- our website has API. does it help at all? 188.211.48.191 (talk) 09:14, 28 October 2020 (UTC)
- See @cindy.cicalese's PluggableAuth which provides a nice framework for authentication. ☠MarkAHershberger☢(talk)☣ 14:01, 28 October 2020 (UTC)
- I'm so sorry that I ask my question again because I'm new here and I'm a little confused. this is exactly what we want:
- 1-our users go to the Media Wiki login form (they have no account in Media Wiki)
- 2- they fill the username and password input by their username and password(the username and password which they use to login to our website)
- now we want:
- 3-the username and password have to be sent to our website API link:
- ourSiteDomain.com/Api/GetPersonRow?UserName=$userName&Password=$password
- *** The $username and $password are filled in step 2
- 4-our API returns a JSON response with user info without password
- 5-if the user is really our user and API response returns true, the user can log in to Media Wiki
- these steps are what we want.
- I don't know how to do these steps
- thank you very much Mwkaryar (talk) 21:15, 28 October 2020 (UTC)
- Your use case--the steps you've given--is possible using PluggableAuth, but you will have to write some PHP code to do what you want.
- There are a number of consultants available (of which I am one) if you would like to hire someone to handle the integration for you.
- If you want to do this yourself, I suggest looking at the SimpleSAMLphp extension to see how it integrates with PluggableAuth. ☠MarkAHershberger☢(talk)☣ 14:07, 29 October 2020 (UTC)
- thanks for your answer. would you please guide me in more detail? what is the name of prebuilt extensions?
- our website has API. does it help at all? 188.211.48.191 (talk) 09:14, 28 October 2020 (UTC)
Writing my own syntax highlighting
Hi!
I'm currently working on a Wiki about the computer algebra software CoCoA and want to include code in the Wiki. The problem is that this language is not supported yet by the Extension:SyntaxHighlight.
Is there any way to create a custom syntax highlighting only using CSS, HTML and JS? Just a simple way to highlight chosen keywords would be great. Barney97 (talk) 14:27, 27 October 2020 (UTC)
- I don't know about a way to do it with CSS, HTML and JS, but you could talk to the maintainers of Pygments or read the documentation there to see how to get SyntaxHighlight working for CoCoA. ☠MarkAHershberger☢(talk)☣ 15:09, 27 October 2020 (UTC)
Mediawiki and CPanel Alias
Hi everyone, I am using Mediawiki on a hosted site that uses CPanel. We are attempting to set up an alias so that my users can go to a domain that we own as opposed to my hosted domain. We've set up the appropriate CNAME on our DNS for the url, and an alias in the cpanel. However, after going to the site, it does not retain the "normalized" url. My hosting site support says they think it's a configuration in the mediawiki settings that needs to be changed. Any thoughts on how to make this happen?
The site url we are attempting to use is https://constructionmanual.deldot.gov. It redirects to https://constructionmanual.deldot.a2hosted.com. Any help would be greatly appreciated! SweeBill (talk) 14:38, 27 October 2020 (UTC)
- What is
$wgServer
set to in your LocalSettings.php? Are you using short urls? ☠MarkAHershberger☢(talk)☣ 15:07, 27 October 2020 (UTC) - @wgServer is set to $wgServer = "https://constructionmanual.deldot.a2hosted.com"; Changing it to https://constructionmanual.deldot.gov takes me to a default a2hosting page. It's currently set like that right now, if you want to see what it's taking it to.
- I'll be honest, I know just enough to be dangerous and don't have a ton of support from our IT section on this. They'd prefer I use Sharepoint's wiki, so they are relatively hands-off. I am not currently using short urls, but would be open to it if it'll fix it. SweeBill (talk) 15:14, 27 October 2020 (UTC)
- I have to walk away from my computer for a few hours, so I am going to change it back so that the site at least works for our users. Let me know if you'd like me to change it back so you can see what it's doing. SweeBill (talk) 15:36, 27 October 2020 (UTC)
- Nice wiki!
- I don't understand why it isn't behaving correctly. Let me know when you are around to change it back. ☠MarkAHershberger☢(talk)☣ 16:45, 27 October 2020 (UTC)
- Hi Mark, I'm back. Thanks for the compliments. I've switched it back again to where it's "broken"
- @MarkAHershberger SweeBill (talk) 18:53, 27 October 2020 (UTC)
- Also, just to make sure I mention it. Mediawiki isn't installed in it's default location. I created a subdomain that I installed it under. So, it's in a constructionmanual.deldot.a2hosted.com folder on the server. I hope that's the right way to explain it... SweeBill (talk) 19:20, 27 October 2020 (UTC)
- I think @Bawolff is probably right. This sounds like a cpanel issue. It is probably related to the different directory names you mentioned. ☠MarkAHershberger☢(talk)☣ 13:58, 28 October 2020 (UTC)
- Sorry, I ran out of time again and needed to set it back.
- I may try to call A2Hosting support again just to make sure I have it all set up right and hope to get hold of someone in support that has some sort of mediawiki experience.
- They seemed to think that there was something missing in the localsettings.php that I needed to set, but I'm starting to wonder now if there is just something set up incorrectly, or if I set something up incorrectly when I set the server up. SweeBill (talk) 20:14, 27 October 2020 (UTC)
- So when changing $wgServer and you get a default hosting page, sounds a lot like something wrong with your (apache) virtual host settings. Check if cpanel has something about virtual hosts. Bawolff (talk) 01:58, 28 October 2020 (UTC)
- So, just to update everyone. I had A2Hosting wipe the account and I started over from scratch. We set up the Primary Domain as deldot.gov and I create the constructionmanual subdomain under the public_html folder. Everything is working now like we want. Feel free to go to https://constructionmanual.deldot.gov to check it out. SweeBill (talk) 21:17, 28 October 2020 (UTC)
- @SweeBill I checked out your wiki.
- Your footer links need content - "Privacy policy", "About", and "Disclaimers" all say "There is currently no text in this page."
- This is MediaWiki's way to politely say "Page not found".
- Also, consider updating to PHP 7.4. It's faster, but you'll need to consider compatibility with other applications which also run PHP on that server. Lady G2016 (talk) 23:19, 28 October 2020 (UTC)
- @Lady G2016 Thanks for the reminder. Although, I don't believe we require a Privacy Policy, but I'll double check with our group to make sure of that.
- As far as PHP goes, I'm not sure I have control over that with this hosting solution, but I'll reach out and ask if it can be upgraded. SweeBill (talk) 21:41, 29 October 2020 (UTC)
- @SweeBill: Awesome. You might be interested in joining the MediaWiki Stakeholders at our next meeting next Friday. ☠MarkAHershberger☢(talk)☣ 14:01, 29 October 2020 (UTC)
Content Grid Creation
Hi,
I have just started my first wiki and trying to get to grips with how it works.
I am trying to create what i believe are content grids? on the main page like the home page and Help:Contents page here.
I have tried to copy the source of the Help:Contents page but then i just get "Template:ContentGrid (page does not exist)"
I assume i have to create that template and maybe add some CSS but i'm at a loss as when i create a page with CSS like Template:ContentGrid/styles.css it doesn't appear as formatted CSS but plain text.
Any help would be greatly appreciated. JDobbsy1987 (talk) 16:16, 27 October 2020 (UTC)
- Where are you getting your page from? If you're using MediaWiki.org, then go to Special:Export, put "Template:ContentGrid" in the text area labeled "Add pages manually", make sure the "Include templates" box is checked and submit the form.
- Then go to your wiki and import the file. ☠MarkAHershberger☢(talk)☣ 16:50, 27 October 2020 (UTC)
Technical Problem
Message top Your admin:
I get a failure at downloading PDF from:
https://de.wikipedia.org/wiki/Brixner_Dom
The failure is:
"C:\Tmp\B6JXywCA.pdf.part konnte nicht gespeichert werden, weil die Quelldatei nicht gelesen werden konnte.
Versuchen Sie es später erneut oder kontaktieren Sie den Server-Administrator."
Please correct
greetings
Udo
info@sysbu.de 88.133.161.158 (talk) 17:39, 27 October 2020 (UTC)
- This is not the right place to report his problem. ☠MarkAHershberger☢(talk)☣ 18:37, 27 October 2020 (UTC)
Redirects not working
Hi, I've been tasked with a simultaneous migration and upgrade of a wiki and I'm having *a lot* of trouble doing it. The original wiki is 1.19.1 and I'm trying to move it to a new machine with a fresh install of 1.33.4 (latest version available in Fedora 32 package management). The only things that I have moved over from the old wiki are the images directory and the database. It mostly works, but some features are broken and it is very annoying.
The first issue I'd like to solve is that redirects are broken. Pages from the original wiki that are redirected from another page, do not get followed in the new wiki. For instance a page with URL of https://test.local/wiki/index.php?title=Safety?rd=Health_and_Safety_Information shows that URL in the URL box and the page content is "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." The page that it points to works just fine. On the old wiki, the redirect works fine. What would cause such a problem?
My new wiki build:
ProductVersion MediaWiki1.33.4
PHP7.4.11 (fpm-fcgi)
MariaDB10.4.14-MariaDB
ICU65.1 199.104.151.131 (talk) 23:50, 27 October 2020 (UTC)
- what is making the ?rd= part of the url? Mediawiki doesn't use rd as a parameter [there's an obscure case where it uses &rdfrom=, but not in default config]. It sounds like its not working because the url has ?rd= instead of &rd= in it. I have no idea where the rd is coming from, so i can't really point you in the right direction. presumably there is something custom there. It maybe worked previously if you had short urls enabled (since ? Would be correct if there were no other ? In the url) Bawolff (talk) 04:18, 28 October 2020 (UTC)
- @Bawolff And here is some debugging output (I can't post more because again I am getting blocked for link spamming):
IP: 10.0.100.6
Start request GET /wiki/index.php?title=Safety?rd=Health_and_Safety_Information
HTTP HEADERS:
SEC-GPC: 1
COOKIE: wikidb_session=0j61amhh1gv7k3jfs26dls4hs73sioo3; wikidbUserID=447; wikidbUserName=Whanlon; wikidbToken=bc4a81bbb43f62783b8d293ab41e114c
ACCEPT-LANGUAGE: en-US,en;q=0.9
ACCEPT-ENCODING: gzip, deflate, br
SEC-FETCH-DEST: document
SEC-FETCH-USER: ?1
SEC-FETCH-MODE: navigate
SEC-FETCH-SITE: same-origin
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
DNT: 1
UPGRADE-INSECURE-REQUESTS: 1
CONNECTION: keep-alive
HOST: veritas-test.vts
[caches] cluster: APCUBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCUBagOStuff, session: APCUBagOStuff
[caches] LocalisationCache: using store LCStoreDB
User::getBlockedStatus: checking...
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "10.0.100.6",
"UserAgent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/86.0.4240.111 Safari\/537.36",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": null
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openLocalConnection: connected to database 0 at 'localhost'.
[DBQuery] wikidb BEGIN /* Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get) */
[DBQuery] wikidb SELECT /* LCStoreDB::get */ lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
[DBQuery] wikidb SELECT /* LCStoreDB::get */ lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
[DBQuery] wikidb SELECT /* LCStoreDB::get */ lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
[DBQuery] wikidb SELECT /* LCStoreDB::get */ lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
[DBQuery] wikidb SELECT /* LCStoreDB::get */ lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:title-invalid-empty' LIMIT 1
[DBQuery] wikidb SELECT /* Block::newLoad */ ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_sitewide,comment_ipb_reason.comment_text AS `ipb_reason_text`,comment_ipb_reason.comment_data AS `ipb_reason_data`,comment_ipb_reason.comment_id AS `ipb_reason_cid`,actor_ipb_by.actor_user AS `ipb_by`,actor_ipb_by.actor_name AS `ipb_by_text`,ipb_by_actor FROM `ipblocks` JOIN `comment` `comment_ipb_reason` ON ((comment_ipb_reason.comment_id = ipb_reason_id)) JOIN `actor` `actor_ipb_by` ON ((actor_ipb_by.actor_id = ipb_by_actor)) WHERE ipb_address = 'Whanlon'
[DBQuery] wikidb SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Safety?rd=Health_and_Safety_Information' LIMIT 1
[ContentHandler] Created handler for wikitext: WikitextContentHandler
199.104.151.131 (talk) 17:31, 28 October 2020 (UTC)
- @Bawolff I think I have found the problem. I have the HTTP302Found extension turned on. That's causing the ?rd insertion into the URL. I also see now that the extension page says it's unmaintained. I've it off and redirects are working again. Thanks for your help. 199.104.151.131 (talk) 18:43, 28 October 2020 (UTC)
- @Bawolff And here is some debugging output (I can't post more because again I am getting blocked for link spamming):
- @Bawolff Thank you for responding. I'm not sure what is making the ?rd= part. I haven't gotten to URL shortening yet, though I plan on it.
- Note I can't post URLS because I keep getting rejected for link spamming when they are in there.
- When I hover over the link in my browser it is (my wiki url) index.php?Title=Health_And_Safety_Information (I'm obscuring the server name. The wiki I'm moving is private and the new wiki at the moment is a test machine on a private subnet.) After I click it, in the URL bar it becomes (my wiki url) index.php?title=Safety?rd=Health_and_Safety_Information.
- Here are the entries from the database in the new wiki. The first entry is for the page that "Health_and_Safety_Information" gets pointed to. The db entries from the old wiki look similar, but the table structure has changed going from 1.19 to 1.33.
- MariaDB [wikidb]> select * from page where page_title='Safety';
- +---------+----------------+------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
| page_id | page_namespace | page_title | page_restrictions | page_is_redirect | page_is_new | page_random | page_touched | page_latest | page_len | page_content_model | page_links_updated | page_lang |
- +---------+----------------+------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
| 1106 | 0 | Safety | | 0 | 0 | 0.023209814389 | 20201006191530 | 148321 | 12464 | NULL | NULL | NULL |
- +---------+----------------+------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
- 1 row in set (0.065 sec)
- MariaDB [wikidb]> select * from page where page_title='Health_And_Safety_Information';
- Empty set (0.065 sec)
- MariaDB [wikidb]> select * from page where page_title='Health_and_Safety_Information';
- +---------+----------------+-------------------------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
| page_id | page_namespace | page_title | page_restrictions | page_is_redirect | page_is_new | page_random | page_touched | page_latest | page_len | page_content_model | page_links_updated | page_lang |
- +---------+----------------+-------------------------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
| 1565 | 0 | Health_and_Safety_Information | | 1 | 0 | 0.233366053303 | 20201006182230 | 20311 | 23300 | NULL | NULL | NULL |
- +---------+----------------+-------------------------------+-------------------+------------------+-------------+----------------+----------------+-------------+----------+--------------------+--------------------+-----------+
- 1 row in set (0.064 sec) 199.104.151.131 (talk) 17:29, 28 October 2020 (UTC)
Related to MW or not?
RESOLVED | |
Setting: $wgDisableOutputCompression = true; resolved it. Turns out, this was related to https://phabricator.wikimedia.org/T235554 |
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.
MediaWiki1.35.0
PHP7.4.3 (cgi-fcgi)
MySQL5.7.28-log
ICU57.1
Okay, this is probably a silly question and may not be related to MediaWiki, but I'm having this issue on multiple different VPS (no root access) machines on different servers with MW 1.35.0. Stock install, monobook theme. I landed on the Manual:Short URL/Apache page and and saw the quick-config via https://shorturls.redwerks.org/ for .htaccess and LocalSettings.php and it tells me to use the following:
.htaccess:
# RewriteEngine On # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d # RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/dml/index.php [L]And in LocalSettings.php:
## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/"; # This must always stay, required by MediaWiki #$wgScriptExtension = ".php"; #$wgArticlePath = "/$1"; #$wgUsePathInfo = true;And yes, I know it is not a good idea to have the site in the root, the site owner (a friend) insists on this config and careful to avoid conflicting page names.
As soon as the rewrite and corresponding LocalSettings.php changes are in place, the page load time goes from instantaneous, to taking up to 1 min. The page renders right away, but the page itself eventually fails. Console shows net::ERR_HTTP2_PROTOCOL_ERROR 200. I have checked with the host, should be fine, they say it must be the MW config. Even had the site transferred to another host machine since we were also having issues with intermittent CloudFlare 520 errors on the previous one (now resolved). Works fine on our 1.33 site (same short URL config, but I started fresh with the Redwerks tool today in case something had changed). I noticed afterwards it is the same config recommended by redwerks for our 1.33 site.After several clean installs via command line on Debian 9, no extensions enabled, no config changes from the installer except for short URL. Runs perfectly fine when the .htaccess rewrite and corresponding settings in LocalSettings.php are removed. Works fine with 1.33, 1.34 but is a problem on 1.35. Is there something different needed for MediaWiki 1.35? Does this have anything to do with MediaWiki at all? Is the https://shorturls.redwerks.org/ tool no longer recommended for MW 1.35?
In the Chrome console or Firefox console I eventually get: net::ERR_HTTP2_PROTOCOL_ERROR 200. I don't have root access, so I can't install a profiler and there's no profiling tools on Dreamhost (current host). Even stranger, sometimes it is fine, but most of the time it's not, which I also don't understand. Changed on my cellular connection and the page won't even load for mobile, which is interesting. TiltedCerebellum (talk) 05:12, 28 October 2020 (UTC)
- hmm. If i were to guess i would say this is more likely an apache issue then a mediawiki issue, but it sounds really weird. It sounds a bit like the http protocol says the response is bigger than it is, and the browser times out waiting for the rest of it.
- I don't really have any good advice, but i would suggest maybe trying to access the site via command line curl with different switches for different http protocol versions to see if it happens on both http1.1 and http2 (also maybe curl would give more detailed protocol errors than chrome does, i dont know)
- Also (grasping at straws) set $wgUseGzip to false, $wgDisableOutputCompression to true and try disabling any proxy servers (including cdn's like cloudflare) to rule out possible causes Bawolff (talk) 05:51, 28 October 2020 (UTC)
- Thanks for the advice Bawolff. I already disabled Cloudflare, plus grey-clouded/turned off the proxies, and set Gzip to false because I thought maybe it was trying to double-dip. I made sure I'm not low on disk space (though I think ERR_HTTP2_PROTOCOL_ERROR 200 only happens on NGINX when that's the case). I didn't try $wgDisableOutputCompression so I'll try that too as well as the other stuff you mentioned. Very bizarre that it persists after being transferred to a new host machine with them, though I'm sure the configs are all nearly identical due to imaging used. That's 3 separate host machines in total now (my account, my friend's account, and the new host machine it was moved to). I about ready to try a different web host altogether if I can't figure it out soon. I want 1.35 because of VE now being built-in, just so much nicer for us. It doesn't make a lot of sense for use to upgrade to 1.34 when 1.35 should work fine. Dreamhost was decidedly unhelpful up until the point I had it elevated and moved. At least the 520 CF errors have stopped. I'll see if I can get some more error info. TiltedCerebellum (talk) 06:24, 28 October 2020 (UTC)
DBConnectionError
Hi,
I had a perfect working MediaWiki. This morning I got this message while trying to acces my page:
MediaWiki internal error.
Original exception: [963a131c1541d95397e6cc83] 2020-10-28 09:13:09: Fatal exception of type "Wikimedia\Rdbms\DBConnectionError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
I didn't 't change anything.. What is happening?? MartinVught (talk) 09:23, 28 October 2020 (UTC)
- So, it could well be some DB connectivity issue. As it says, if you
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
- you can provide us with more information. ☠MarkAHershberger☢(talk)☣ 14:10, 28 October 2020 (UTC)
- I added "Set $wgShowExceptionDetails = true" to Localsettings.php. Now I get first this message:
- After a refresh I get an HTTP 500 error.
- =MediaWiki 1.32 internal error=
- MediaWiki 1.32 requires at least PHP version 7.0.0 or HHVM version 3.18.5, you are using PHP 5.6.30.
- ==Supported PHP versions==
- Please consider upgrading your copy of PHP. PHP versions less than 5.6.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.
- If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.
- Strange because I use PHP 7.0.0.
- My MediaWiki and PHP etc are running on my NAS, An Asustor NAS MartinVught (talk) 21:15, 28 October 2020 (UTC)
- Evidently, your system has PHP 5.6.30 installed and that is what MediaWiki is using.
- I don't know anything about your system. You should probably ask on the ASUSTOR forum for help. ☠MarkAHershberger☢(talk)☣ 14:12, 29 October 2020 (UTC)
Change the upload destination folder
Change the upload destination folder
Hello
How can I download files to the host?
Download Host: https://dl.example.com/images
Files are now uploaded to the wiki server
Thanks Sokote zaman (talk) 09:54, 28 October 2020 (UTC)
- @Sokote zaman How is this related to MediaWiki? Where is MediaWiki involved at all? Malyacko (talk) 11:59, 28 October 2020 (UTC)
- @Malyacko I'm going to put high volume video and audio on the wiki
- But the cost of a virtual server is high
- I have downloaded a special host and I intend to upload audio and video via Special: Upload, with the difference that it is downloadable and can be accessed and linked via a wiki. Sokote zaman (talk) 12:04, 28 October 2020 (UTC)
- See Project:Support desk/Flow/2013/12#h-How_to_store_images_of_Mediawiki_on_separate_servers?-2013-12-15T01:40:00.000Z Malyacko (talk) 17:00, 28 October 2020 (UTC)
Extension:DrawioEditor loads endless after save
Hey,
I installed the extension according to GitHub instructions.
The editor works great too. Unfortunately, I cannot save the file. When I click on "Save" a loading animation appears but does not disappear.
Extension:NativeSvgHandler is installed
It looks like this: https://imgur.com/a/i9cjSm8
Errors in Console:
Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at drawioHandleMessage (<anonymous>:139:396) 2.247.240.227 (talk) 12:41, 28 October 2020 (UTC)
- Is the wiki public? Can you point us to it? ☠MarkAHershberger☢(talk)☣ 14:11, 28 October 2020 (UTC)
- Sadly it is a private wiki. 2.247.240.227 (talk) 14:52, 28 October 2020 (UTC)
- Maybe there is a problem on the firewall that means draw.io (since it is a public site) cannot be used in conjunction with your wiki? ☠MarkAHershberger☢(talk)☣ 18:35, 28 October 2020 (UTC)
- I fixed by adding below config into LocalSettings.php. Hope it will help you.
- $ wgEnableUploads = true; # Enable uploads
- $ wgFileExtensions [] = 'svg'; # Add SVG to FileExtensions Sarawang85 (talk) 01:58, 13 December 2020 (UTC)
Best up to date Diagram extension for 1.35
Hello,
which is the best and most up-to-date extension for creating diagrams or UML. I found some extensions here. https://www.mediawiki.org/wiki/Diagrams
I tried DrawIo. Unfortunately without success.
Which good alternative do I have on version 1.35 2003:CB:D701:B700:B954:C377:63EA:E5E7 (talk) 16:24, 28 October 2020 (UTC)
Migrating wiki: missing pages (because of local characters in page title)
I'm migrating mediawiki from version 1.15.1 to 1.35.0.
The versions Im using in the new server are:
- MediaWiki: 1.35.0
- PHP: 7.4.11 (apache2handler)
- MariaDB: 10.4.15-MariaDB-1:10.4.15+maria~bionic-log
DB migration worked well apparently. I copied the previous DB and imported to my new server
[IN MY OLD SERVER]
mysqldump -u wiki -pwiki wiki > wiki-20201027.sql
[IN MY NEW SERVER]
mysqladmin -u admin -p create wiki
mysql -u admin -p wiki < wiki-20201027.sql
Then, I setup the wiki from the wiki page. The DB update worked well apart from an issue with `actor` table. There was a row whose actor_user was NULL and no actor_name, so I deleted manually and continued to update.
Once I finished the setup, I regenerated LocalSettings.php (taking into account that the previous one was too old and I didn't want to use it)
Then, when I accessed to the wiki, I found that all the pages whose titles have special characters in Spanish like "ñ", "á", é", etc. were not accessible:
http://IP/wiki/index.php/P%C3%A1gina_principal: NOT WORKING
http://IP/wiki/index.php/M%C3%A1quinas: NOT WORKING
http://IP/wiki/index.php/Test: WORKING
I think that this might be related to charset and collation in the database and its tables, but I don't know exactly how to proceed. Could you please help me? Garciadeblas (talk) 17:57, 28 October 2020 (UTC)
- What error do you get when you visit the page? ☠MarkAHershberger☢(talk)☣ 18:59, 28 October 2020 (UTC)
- No error. It's like if the page doesn't exist.
- If the page title does not contain special characters (e.g. "Test"), then I can access to it.
- If the page title contains special characters (e.g. "Máquinas"), then I see the typical page of "No text in this page yet. You can create this page." Garciadeblas (talk) 20:01, 28 October 2020 (UTC)
- I have taken some snapshots of two wiki pages in the old server and the new server to illustrate the issue, but I cannot upload them here.
- In addition, this is the output of a select command over both databases (in the old server and in the new server) that can illustrate the issue.
- In the old server:
$ mysql -uwiki -pwiki wiki --execute 'select page_title from page;'|grep "quinas_virtuales"
M▒quinas_virtuales
- In the new server:
$ mysql -uwiki -pwiki wiki --execute 'select page_title from page;'|grep "quinas_virtuales"
Máquinas_virtuales
- As I mentioned, I think that this might be related to charset or collation in the database and its tables. Any suggestion? Garciadeblas (talk) 10:58, 29 October 2020 (UTC)
- I agree that this seems like it would be related to a db encoding issue.
- What does
show create table page;
return? ☠MarkAHershberger☢(talk)☣ 13:46, 29 October 2020 (UTC) - In the old server:
CREATE TABLE `page` ( `page_id` int(8) unsigned NOT NULL AUTO_INCREMENT, `page_namespace` int(11) NOT NULL DEFAULT '0', `page_title` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '', `page_restrictions` tinyblob NOT NULL, `page_counter` bigint(20) unsigned NOT NULL DEFAULT '0', `page_is_redirect` tinyint(1) unsigned NOT NULL DEFAULT '0', `page_is_new` tinyint(1) unsigned NOT NULL DEFAULT '0', `page_random` double unsigned NOT NULL DEFAULT '0', `page_touched` varchar(14) COLLATE latin1_bin NOT NULL DEFAULT '', `page_latest` int(8) unsigned NOT NULL DEFAULT '0', `page_len` int(8) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`page_id`), UNIQUE KEY `name_title` (`page_namespace`,`page_title`), KEY `page_random` (`page_random`), KEY `page_len` (`page_len`) ) ENGINE=MyISAM AUTO_INCREMENT=1748 DEFAULT CHARSET=latin1 COLLATE=latin1_bin
- In the new server:
- Garciadeblas (talk) 17:04, 29 October 2020 (UTC)
CREATE TABLE `page` ( `page_id` int(8) unsigned NOT NULL AUTO_INCREMENT, `page_namespace` int(11) NOT NULL DEFAULT 0, `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `page_restrictions` tinyblob DEFAULT NULL, `page_is_redirect` tinyint(1) unsigned NOT NULL DEFAULT 0, `page_is_new` tinyint(1) unsigned NOT NULL DEFAULT 0, `page_random` double unsigned NOT NULL DEFAULT 0, `page_touched` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `page_latest` int(8) unsigned NOT NULL DEFAULT 0, `page_len` int(8) unsigned NOT NULL DEFAULT 0, `page_content_model` varbinary(32) DEFAULT NULL, `page_links_updated` varbinary(14) DEFAULT NULL, `page_lang` varbinary(35) DEFAULT NULL, PRIMARY KEY (`page_id`), UNIQUE KEY `name_title` (`page_namespace`,`page_title`), KEY `page_random` (`page_random`), KEY `page_len` (`page_len`), KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) ) ENGINE=MyISAM AUTO_INCREMENT=1748 DEFAULT CHARSET=latin1
- I don't know if it is related but just in case...
- I have found that the "character_set_client" variable is different when using mysql client. That might explain different outputs with mysql client. Maybe the character set used by mysqlclient in php is different.
- Next the output of the following command in my old server and the new one (with the updated mediawiki)
- In the old server:
$ mysql -uwiki -pwiki wiki --execute " SHOW VARIABLES LIKE 'character_set_client'; SELECT page_id,page_title FROM page WHERE page_id=1567;" +----------------------+--------+ | Variable_name | Value | +----------------------+--------+ | character_set_client | latin1 | +----------------------+--------+ +---------+--------------------+ | page_id | page_title | +---------+--------------------+ | 1567 | M▒quinas_virtuales | +---------+--------------------+
- In the new server:
$ mysql -uwiki -pwiki wiki --execute " SHOW VARIABLES LIKE 'character_set_client'; SELECT page_id,page_title FROM page WHERE page_id=1567;" +----------------------+-------+ | Variable_name | Value | +----------------------+-------+ | character_set_client | utf8 | +----------------------+-------+ +---------+---------------------+ | page_id | page_title | +---------+---------------------+ | 1567 | Máquinas_virtuales | +---------+---------------------+
- Any suggestion? Garciadeblas (talk) 08:07, 30 October 2020 (UTC)
- I really don't know much about this. I think you are on the right track, but I would suggest a couple of SO pages that might help:
- But, if you do find a solution, please report it back here. ☠MarkAHershberger☢(talk)☣ 16:10, 30 October 2020 (UTC)
Wiki Search broken after upgrade to 1.35
RESOLVED | |
Upgraded MySQL 5.0 to 8.0.11 and it looks good now. |
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.
Can someone help me with the below error, it seems the search is broken after the upgrade.
[b2da0aa0b75271aba78dbd75] /index.php?search=jboss&title=Special%3ASearch&go=Go Wikimedia\Rdbms\DBQueryError from line 1699 of C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NATURAL LANGUAGE MODE) DESC LIMIT 21' at line 1 (127.0.0.1)
Function: SearchMySQL::searchInternal
Query: SELECT page_id,page_namespace,page_title FROM `erp_page`,`erp_searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+jboss ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_title) AGAINST('+jboss ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21
Backtrace:
#0 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\Database.php(1907): Wikimedia\Rdbms\Database->query()
#4 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 C:\wiki\websites\mediawiki\includes\libs\rdbms\database\DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 C:\wiki\websites\mediawiki\includes\search\SearchMySQL.php(193): Wikimedia\Rdbms\DBConnRef->select()
#7 C:\wiki\websites\mediawiki\includes\search\SearchMySQL.php(179): SearchMySQL->searchInternal()
#8 C:\wiki\websites\mediawiki\includes\search\SearchDatabase.php(74): SearchMySQL->doSearchTitleInDB()
#9 C:\wiki\websites\mediawiki\includes\search\SearchEngine.php(156): SearchDatabase->doSearchTitle()
#10 C:\wiki\websites\mediawiki\includes\search\SearchEngine.php(187): SearchEngine->{closure}()
#11 C:\wiki\websites\mediawiki\includes\search\SearchEngine.php(157): SearchEngine->maybePaginate()
#12 C:\wiki\websites\mediawiki\includes\specials\SpecialSearch.php(387): SearchEngine->searchTitle()
#13 C:\wiki\websites\mediawiki\includes\specials\SpecialSearch.php(179): SpecialSearch->showResults()
#14 C:\wiki\websites\mediawiki\includes\specialpage\SpecialPage.php(600): SpecialSearch->execute()
#15 C:\wiki\websites\mediawiki\includes\specialpage\SpecialPageFactory.php(635): SpecialPage->run()
#16 C:\wiki\websites\mediawiki\includes\MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#17 C:\wiki\websites\mediawiki\includes\MediaWiki.php(940): MediaWiki->performRequest()
#18 C:\wiki\websites\mediawiki\includes\MediaWiki.php(543): MediaWiki->main()
#19 C:\wiki\websites\mediawiki\index.php(53): MediaWiki->run()
#20 C:\wiki\websites\mediawiki\index.php(46): wfIndexMain()
#21 {main} Rajeshekv (talk) 19:10, 28 October 2020 (UTC)
- If I search for existing pages, it just pulling up results just just fine, but If i search with some key words in those pages, it giving the above error. Can someone please help with this. Rajeshekv (talk) 02:29, 29 October 2020 (UTC)
- It looks like the line causing you trouble was added in 2018: Enable search result ranking in MySQL full text search.
- What version of MySQL are you using? ☠MarkAHershberger☢(talk)☣ 14:33, 29 October 2020 (UTC)
- This is what it's
MySQL | 5.0.24a |
- showing in Version page in Wiki but i have upgraded the schema via webupdater (through mw-config page) Rajeshekv (talk) 15:03, 29 October 2020 (UTC)
- Can you upgrade MySQL? That version is pretty old and doesn't meet the requirements for MediaWiki. ☠MarkAHershberger☢(talk)☣ 17:50, 29 October 2020 (UTC)
- I can upgrade it, Can i install version 5.5.8 and import the data as i already upgraded the schema via web updater?
- Or is there anything else i need to do ? Rajeshekv (talk) 17:53, 29 October 2020 (UTC)
- If you can install it in place, it should be able to use your old db without any problem. Of course, most of my experience is on UNIX, so YMMV. ☠MarkAHershberger☢(talk)☣ 18:02, 29 October 2020 (UTC)
- oh, and be sure you have a backup first, of course. ☠MarkAHershberger☢(talk)☣ 18:02, 29 October 2020 (UTC)
- Thanks for the info, i have upgraded to 8.0.11 and it looks good now.
MySQL | 8.0.11 |
Has MW 1.35 changed when/how the HTTP header, Content-Length, are used?
RESOLVED | |
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 recently upgraded my wiki from MediaWiki 1.31 (PHP 7.3) to MediaWiki (PHP 7.4) on a shared hosting plan. We use the Extension:MobileFrontend. Since the upgrade a subset of my mobile device users (seems to be iPhone and iPad) are reporting that pages won't fully load and/or they get a "cannot parse response" error.
I cannot reproduce the problem on a localhost server (CentOS 8.2 with PHP 7.4).
We cannot reproduce the issue with a desktop browser (Chrome or Edge) DevTools emulating these devices, which is frustrating to say the least.
I've recreated my MediaWiki 1.31 in another directory on the shared hosting service and looked for differences in the network traffic. One difference we're noticed is that MediaWiki 1.35's initial header response includes a content-length parameter which isn't present when the same page is loaded from MediaWiki 1.31. We're using the Special:Version page for testing, so our wiki content isn't a factor (other than common interface elements such as logo and sidebar).
As a double-check, we checked the Special:Version page with The W3C Markup Validation Service and it reports "IO Error: Premature end of Content-Length delimited message body (expected: 55542; received: 11585" which we think might explain why the mobile devices are also giving an error.
I've tried changing the PHP version back to 7.3 for the MediaWiki 1.35 wiki and the problem persists.
Does MediaWiki 1.35 code include something that sets the Content-Length parameter in the HTTP headers? Is there a configuration setting involved? Peculiar Investor (talk) 20:13, 28 October 2020 (UTC)
- If it helps, the wiki is at https://www.finiki.org Peculiar Investor (talk) 22:39, 28 October 2020 (UTC)
- For the Project: support template:
MediaWiki | 1.35.0 |
PHP | 7.4.11 (cgi-fcgi) |
MySQL | 5.6.41-84.1 |
- I forced the W3C Markup Validation Service check to use mobile view. The page has no output except for this single entry:
- IO Error: Premature end of Content-Length delimited message body (expected: 51697; received: 11318
- https://www.finiki.org/w/index.php?title=Special:Version&mobileaction=toggle_view_mobile
- I can view the page in my desktop Chrome browser in both desktop and mobile views.
- (This doesn't answer your question, but it's additional information to help identify the problem.) Lady G2016 (talk) 23:39, 28 October 2020 (UTC)
- Our installation:
- MW1.35.0, PHP 7.4.3 (cgi-fcgi), MySQL 5.7.29-log
- It works fine except that Safari users get a blank screen with a "NSPOSSIXErrorDomain:100" and iPads and iPhones also get blank screens. No error with Chrome on the Macs. Is this the upstream bug the MW 1.35 system requirements warn against "MediaWiki is not compatible with PHP 7.4.0 to 7.4.2 due to an upstream bug"? Rom2cu (talk) 00:47, 29 October 2020 (UTC)
- To address the above point, I'm seeing the problem with PHP 7.4.11 so the not compatible issue mentioned in Compatibility does not apply. As mentioned, changing the PHP version back to 7.3.23 doesn't change the behaviour so I am thinking it is a MediaWiki related issue.
- I've already worked though Manual:Common errors and symptoms and in particular the 'You see a Blank Page' section and it doesn't help identify any of the mentioned issues or help resolve the problem.
- I don't know whether or not the HTTP header information for content-length appearing only with MediaWiki 1.35 and not with MediaWiki 1.31 on the same shared hosting server is a a symptom of the problem or a cause, but everything else that has been checked or investigated can explain why the Apple mobile devices are having issues with blank pages or giving "cannot parse response" errors. Peculiar Investor (talk) 01:47, 29 October 2020 (UTC)
- Try setting $wgDisableOutputCompression = true;
- MediaWiki will set a content length header if the HTTP version is 1.0 and gzipping is enabled
- There are also certain situations where if MW wants to stay executing after it does output, and is not running as fast-cgi, where it will set a content-length header (4f11b614544be). Bawolff (talk) 03:46, 29 October 2020 (UTC)
- Made the change and now Apple mobile devices seem to be loading pages correctly. The W3C validator page isn't reporting an IO error. Thanks. This seems more like a workaround as I'd question why a default MediaWiki configuration setting needs to be overridden.
- Did something in MediaWiki between 1.31 and 1.35 change MediaWiki's setting of a content length header if the HTTP version is 1.0 and gzipping is enabled? I had reviewed all the Release Notes between 1.31 and 1.35 looking for configuration changes that need to be considered and I don't recall seeing any indication of this change.
- For reference sake, I've checked our PHP configuration and it is using the default zlib.output_compression = Off and cgi-fcgi which is an alternative PHP FastCGI implementation.
- Based on what phpinfo reports, the Apple mobile devices are using HTTP/2.0. Peculiar Investor (talk) 11:56, 29 October 2020 (UTC)
- $wgDisableOutputCompression is super old, way before mw 1.31. It might just be that http/2 is incompatible and its just recently that http/2 is starting to be enabled by default. Bawolff (talk) 00:43, 30 October 2020 (UTC)
- I've done some further testing on the testing environment that I'd setup to try and isolate the issue a bit further. The testing environment is running on the same shared hosting service and uses the last database backup when the wiki was running MediaWiki 1.31.10 (PHP 7.3.23, MySQL 5.6.41-84.1).
- Running MediaWiki 1.31.10 the Special:Version and then two or three clicks of Random page
- Windows 10 desktop and using Edge Chromium ✔
- iPhone XR (iOS 14.1) Safari ✔
- iPad Pro (iPadOS 14.1) Safari✔
- Upgraded to MediaWiki 1.32.6, updated Extension:MobileFrontend and Skin:MinervaNeue (REL1_32 versions).
- Windows 10 desktop and using Edge Chromium ✔
- iPhone XR (iOS 14.1) Safari ✔
- iPad Pro (iPadOS 14.1) Safari✔
- Upgraded to MediaWiki 1.33.4, updated Extension:MobileFrontend and Skin:MinervaNeue (REL1_33 versions).
- Windows 10 desktop and using Edge Chromium ✔
- iPhone XR (iOS 14.1) Safari ✔
- iPad Pro (iPadOS 14.1) Safari✔
- Upgraded to MediaWiki 1.34.4, updated Extension:MobileFrontend and Skin:MinervaNeue (REL1_34 versions).
- Windows 10 desktop and using Edge Chromium ✔
- iPhone XR (iOS 14.1) Safari ✔
- iPad Pro (iPadOS 14.1) Safari✔
- Upgraded to MediaWiki 1.35.0, updated Extension:MobileFrontend and Skin:MinervaNeue (REL1_35 versions).
- Windows 10 desktop and using Edge Chromium ✔
- iPhone XR (iOS 14.1) Safari - spinning wheel and Special:Version never loads
- iPad Pro (iPadOS 14.1) Safari - spinning wheel and Special:Version never loads
- Running MediaWiki 1.31.10 the Special:Version and then two or three clicks of Random page
- Clearly something has changed between MediaWiki 1.34.4 and MediaWiki 1.35.0 that is causing problems for Apple devices for my wiki. Checking Release notes/1.35 there is an item:
- Fix GuzzleHttpRequest request headers.
- There is no Task link for this, so I cannot trace it any further. Perhaps someone with more knowledge could locate the changes and review them to see if they could be responsible for the issue I'm seeing.
- There is also:
- Updated guzzlehttp/guzzle from 6.3.3 to 6.5.4. Peculiar Investor (talk) 03:11, 30 October 2020 (UTC)
- I can confirm the problem after upgrading my Wiki to 1.35. Interestingly only the "frame" of the pages was missing (logo, menu, search field etc.), the content part was visible.
- The solution $wgDisableOutputCompression = true; worked. I post this because the thread is lacking the error code NSURLErrorDomain:-1017 which I had been googling, and others might do it too. FritzG (talk) 13:38, 5 November 2020 (UTC)
- After updating my iPhone and iPad to 14.2 the problem persists. I also had the opportunity to test this using iPadOS 13.3 and the wiki loads and functions properly.
- Based on the various testcases I've now run it leads me to believe there is some serious MediaWiki 1.35, Extension:MobileFrontend and Skin:MinervaNeue and iOS (iPadOS) 14.x interaction problem.
- Filed bug report, ⚓ T267619 MediaWiki 1.35 with Extension:MobileFrontEnd and Skin:MinervaNeue seem to have problems with iOS 14 devices if output_compression is enabled (wikimedia.org) Peculiar Investor (talk) 22:42, 9 November 2020 (UTC)
- The Guzzle things won't be relevant. MediaWiki uses Guzzle for making HTTP requests to other sites/services, rather than serving to users Reedy (talk) 23:21, 9 November 2020 (UTC)
- I just noticed Redirection fails in Webikit browsers with NSPOSIXErrorDomain: 100 on Project:Support desk (mediawiki.org) that seems to describe similar issues. Peculiar Investor (talk) 23:25, 9 November 2020 (UTC)
- Have your or anyone else tested MediaWiki 1.35 under either an Android device or an iPhone/iPad running 12.4.9, the latest version (i.e. newly and recently released) of iOS 12 for iPhones and iPads not compatible with iOS/iPadOS 13 or 14? George Ho (talk) 09:35, 10 November 2020 (UTC)
- Other wiki users have tested and reported, "Samsung Android, OS 8.0.0, latest patches, Chrome browser.... works just fine." and "Pixel 3A with Android 11 and Chrome. Seems to work.".
- I cannot report anything further because I had to implement the
$wgDisableOutputCompression = true;
workaround. Given that an Apple device using iPadOS 13.3 didn't have issues I'm guessing the anything pre-iOS 14 is okay and the specific problem is specific to MediaWiki 1.35 and iOS 14. Running a search for OS 14 on Wikimedia Phabricator shows lots of results. Peculiar Investor (talk) 13:21, 10 November 2020 (UTC) - A note of caution to anyone using the
$wgDisableOutputCompression = true;
workaround. I updated our wiki to MediaWiki 1.35.1 and for reasons I've been unable to figure out, there is some interaction between the setting and my shared hosts webserver configuration that results in pages being displayed as random symbols (encoding error). I works fine on my localhost testbed. - One the production site the only solution was to comment out the
$wgDisableOutputCompression = true;
so I'm back to the original problem, iPhones and iPads running iOS 14.x can never load any of our wiki pages. - Appropriate bug reports have been updated to reflect this information. Peculiar Investor (talk) 13:21, 18 December 2020 (UTC)
- as of upgrading to 1.35.1 im getting the same result as above, pages being displayed as random symbols (encoding error) in Safari, Internet explorer, Edge and Chrome. Mozilla Firefox works fine..
- Setting
$wgDisableOutputCompression = true;
gave no solution - Tested PHP 7.3 and 7.4
- Any other ideas? 85.148.240.76 (talk) 00:05, 29 December 2020 (UTC)
- The
$wgDisableOutputCompression = true;
fixed a very similar problem at my completely new MW system, which had a nasty content-length mismatch which caused white pages in chrome and safari (desktop), Firefox worked. Main problem was that the content-length mismatch troubled the reverse proxy in front of MW. 84.183.223.240 (talk) 18:01, 8 January 2021 (UTC) - I've had the same issue, and setting $wgDisableOutputCompression = true; appears to fix it. Garuda3 (talk) 20:45, 12 January 2021 (UTC)
- I am having the same issue. If I set $wgDisableOutputCompression = true; then I get a bunch of random symbols and errors. I have also tried adjusting my $wgServer and $wgCanonicalServer. I'm not sure if that is the right area to work on but that also did not work.
- This is what I did for the server:
- $wgServer = "//quik.wiki";
- $wgCanonicalServer = "https://quik.wiki";
- EDIT:
- Adding that the Chrome app on my iPhone also does not work. The load bar gets about half way, everything freezes, then I get a site cannot be reached error. I have no idea what's going on. My site works fine in Chrome on PC.
- EDIT #2
- I removed $wgCanonicalServer and kept $wgServer as //sitename and now both Safari and Chrome work, HOWEVER, they load on unsecure pages. If I add the https , the problems appear again. I'd like to have all my pages with https so this is only a temporary solution. WillC93 (talk) 04:56, 22 January 2021 (UTC)
- After upgrading to 1.35.1. in the Softaculous auto-installer in my Namecheap cPanel, all text is garbled symbols. The ONLY way to make my wiki (https://beijerpedia.com/wiki/Home) work again is the fix mentioned at:
- https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/12#h-MediaWiki_version_1.35.1_garbled_text_encoding_problem_%28MySQL_database_incorrect-2020-12-20T01%3A29%3A00.000Z
- ----Temporary fix:
- Comment out exactly this line:
- $response->header( 'Content-Encoding: identity' );
- in: includes/MediaWiki.php MichaelBeijer (talk) 12:29, 25 January 2021 (UTC)
- Nothing in this topic is working for iOS devices. Very few help topics for this I can find for such a monumental bug which prevents a huge swath of people from accessing the software via apple mobile. Can anyone shed light on a definitive answer? Longjebb (talk) 15:49, 13 February 2021 (UTC)
- @Longjebb to the best of my knowledge and experience with my wiki this remains unsolved. From my reading of the discussion, some admins have had success changing MediaWiki code as a workaround, but that a) isn't widespread and b) right or wrong, my admin policy is to ONLY use officially released software on my websites. The published workarounds might work for some but unless they get released by the MediaWiki development team as a maintenance fix or perhaps a hotfix, then I'm not using them.
- Given the severity of T235554 I had hoped this would be resolved and a maintenance release containing a fix would have come sooner. As an Apple device user I'm stuck waiting on the resolution. Peculiar Investor (talk) 17:11, 13 February 2021 (UTC)
- Thanks for the info. I am ready to roll a MW site which will get tens of thousands of visitors a week and can't launch until this is remedied for good. Not a great first experience w this software! Longjebb (talk) 17:34, 13 February 2021 (UTC)
- @Longjebb have you considered using MediaWiki 1.31.x which according to Version lifecycle is a current long-term support (LTS) version that will be supported until June 2021. My wiki was running very smoothly on 1.31 before we upgraded to 1.35. Peculiar Investor (talk) 19:48, 13 February 2021 (UTC)
- Not sure I feel comfortable with a downgrade. Also a fan of getting it officially patched. Longjebb (talk) 19:49, 14 February 2021 (UTC)
- Can anyone shed light on whether or not a fix for this issue will be released....either via patch or next release? Not getting much traction mentioning on the discord support channel to date. Thanks! Longjebb (talk) 16:12, 22 February 2021 (UTC)
- I received notice today that T235554 has been marked as "Resolved". There are two commits on the REL1_35 branch.
- I've never 'patched' my MediaWiki install so I'm trying to figure out what steps would be required to deploy the fix(es) on a MediaWiki 1.35.1 site. Peculiar Investor (talk) 15:15, 30 March 2021 (UTC)
- Depends how you install/maintain MW....
- There should be a Maintenance/Security release probably this week, but might be next week depending on schedules and progress. That will contain the fix for that resolved bug. Reedy (talk) 17:07, 30 March 2021 (UTC)
- My wiki's are always installed/maintained using Download to provide the tar.gz file of the release. Peculiar Investor (talk) 17:27, 30 March 2021 (UTC)
- Has there been any movement on this topic?
- I've noticed the problem while using HTTPS on Safari, macOS 11 (HTTP seems to work, but I'd rather use the encrypted connection.)
wgDisableOutputCompression = true;
produced a page of unreadable characters (like others have described above) and deleting$response->header( 'Content-Encoding: identity' );
in mediawiki.php had no effect. • Supāsaru 02:06, 10 June 2021 (UTC)- What version of MediaWiki are you using? This should be fixed in 1.35.2, which was released at the start of April.
- It would look like it was missed from 1.36 though :/ Reedy (talk) 14:25, 10 June 2021 (UTC)
- I skipped from 1.34.x to 1.36, so that's probably the problem. Has anybody tagged this as something that needs to be fixed for 1.36 and future versions? • Supāsaru 23:52, 10 June 2021 (UTC)
- It's been backported and merged. It will be in 1.36.1 (possibly at the end of the month). Reedy (talk) 12:51, 11 June 2021 (UTC)
Short URL when script path and article path are the same
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to setup a wiki to use short urls with the following directory structure:
Apache DocumentRoot: /var/www/html
Mediawiki stuff is in /var/www/wiki, this includes index.php, extensions, images, etc.
I can get short URLS to semi-work using the following set up:
mediawiki.conf:
Alias /wiki/skins /usr/share/mediawiki/skins
Alias /wiki /var/www/wiki
<Directory "/var/www/wiki">
LogLevel trace8
SetEnv MW_INSTALL_PATH "/var/www/wiki"
AllowOverride All
Require all granted
Options FollowSymLinks
RewriteEngine On
# This checks to make sure the connection is not already HTTPS
RewriteRule ^(.*)$ index.php?title=$1 [PT,L,QSA]
RewriteRule ^/*$ index.php [L,QSA]
</Directory>
In LocalSettings.php I added:
$wgArticlePath = "/wiki/$1";
Now all links in the wiki omit the index.php?title= part and the rewrite rules seem to work. But the wiki only shows the bare html now, if that makes sense. The skin and the wiki logo are not being used now.
I've also tried using
$wgUsePathInfo = true;
but that doesn't change the outcome.
Does anyone know how to fix this? 199.104.151.131 (talk) 23:03, 28 October 2020 (UTC)
- I should withdraw this question because I see that mediawiki doesn't recommend installing a wiki like this. Manual:Short URL#No Skins says it's a "beginner's mistake". Now I'm trying it again putting the mediawiki install into the /w directory. 199.104.151.131 (talk) 00:26, 29 October 2020 (UTC)
How to Exclude NoIndex Pages From Sitemap?
How do I exclude noindex pages from site map in MW1.35 when running generatesitemap.php
The noindex tag is applied via $wgNamespaceRobotPolicies or $wgDefaultRobotPolicies Goodman Andrew (talk) 04:55, 29 October 2020 (UTC)
- They're now excluded by the script, but this was added in 1.36. Maybe you should try cherry-picking the patch https://gerrit.wikimedia.org/r/c/620746 – Ammarpad (talk) 11:33, 29 October 2020 (UTC)
- @Ammarpad: link not working: white screen. Please tell me what to do here.
- I mean, could you tell me exactly what I need to do to skip noindex pages in sitemap generation, could you copy the solution and post here? Goodman Andrew (talk) 08:25, 31 October 2020 (UTC)
Upgrade to 1.35 - Internal error / fatal exception of type "Error" / Template:Sitename
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I updated my Mediawiki docker container from 1.33.1 to 1.35 and then ran update.php. No errors on the update but now the site doesn't work.
All pages (Main, Special, others) complain with
Internal Error
[some crazy hash] data time: Fatal exception of type "Error"
Also, I noticed that in the footer my site name is rendered as MediaWiki
I'm using the default vector theme.
Insights? 216.106.102.12 (talk) 21:42, 29 October 2020 (UTC)
- Also, added
- $wgShowExceptionDetails = true;
- to the bottom of the config but it isn't rendering any details on the site. 216.106.102.12 (talk) 21:44, 29 October 2020 (UTC)
- Turned on php logging and figured it out. Old version of Tweeki was causing issues. Once that was diasabled found extension:ParserFunctions was causing issues also. Once that was disabled site loads fine but some of the things that relied on Parser are broken. Will investigate.
- We can close this support request. 216.106.102.12 (talk) 22:04, 29 October 2020 (UTC)
Sphinx fails with Internal 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.
Hi, I am trying to get Sphinx search to work with a new wiki I am installing but I get odd behavior from it and I'm not sure how to fix it. Here is wiki info:
Product | Version |
---|---|
MediaWiki | 1.33.4 |
PHP | 7.4.11 (fpm-fcgi) |
MariaDB | 10.4.14-MariaDB |
ICU | 65.1 |
SphinxSearch 1.0.0 (1ad652e)
For some search terms I get an internal error. Here is the output from one such search:
[X5s3qoVmPu7SoR1dH4SxxgAAAE8] /w/index.php?search=gamma&title=Special%3ASearch&go=Go Error from line 14 of /usr/share/mediawiki/extensions/SphinxSearch/SphinxMWSearchResult.php: Class 'RevisionSearchResult' not found
Backtrace:
#0 /usr/share/mediawiki/includes/AutoLoader.php(109): require()
- 1 [internal function]: AutoLoader::autoload()
- 2 /usr/share/mediawiki/extensions/SphinxSearch/SphinxMWSearchResultSet.php(236): spl_autoload_call()
- 3 /usr/share/mediawiki/includes/search/SearchResultSet.php(292): SphinxMWSearchResultSet->next()
- 4 /usr/share/mediawiki/includes/search/SearchResultSet.php(110): SearchResultSet->extractResults()
- 5 /usr/share/mediawiki/includes/search/SearchResultSet.php(264): SearchResultSet->count()
- 6 /usr/share/mediawiki/includes/search/SearchEngine.php(183): SearchResultSet->shrink()
- 7 /usr/share/mediawiki/includes/search/SearchEngine.php(141): SearchEngine->maybePaginate()
- 8 /usr/share/mediawiki/includes/specials/SpecialSearch.php(347): SearchEngine->searchTitle()
- 9 /usr/share/mediawiki/includes/specials/SpecialSearch.php(173): SpecialSearch->showResults()
- 10 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(569): SpecialSearch->execute()
- 11 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run()
- 12 /usr/share/mediawiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath()
- 13 /usr/share/mediawiki/includes/MediaWiki.php(865): MediaWiki->performRequest()
- 14 /usr/share/mediawiki/includes/MediaWiki.php(515): MediaWiki->main()
- 15 /usr/share/mediawiki/index.php(42): MediaWiki->run()
16 {main}
If search for page that exists, I end up on the proper page. If I search for some garbage, like "lksjhdfkljhsdklfsd", then I get a proper page saying the page doesn't exist and I can create it.
It only seems to fail for search terms that are likely to return hits. Any ideas on how to fix this? This is the last item I need to get working on this wiki. 199.104.151.131 (talk) 21:56, 29 October 2020 (UTC)
- See the notice on the extension page Extension:SphinxSearch, it's currently incompatible with stable release 1.35 and likely unmaintained. But its incompatibility goes beyond that. The infobox claims it works for MW
1.19 to 1.33
, but you're using MW 1.33.4. So probably the better thing is to look for alternative stable and working extension. See Category:Search_extensions – Ammarpad (talk) 22:54, 29 October 2020 (UTC) - @Ammarpad Thank you. I guess I will try CirrusSearch. 199.104.151.131 (talk) 23:16, 29 October 2020 (UTC)
How long will WMF continue using Ubuntu for its servers?
I read that WMF has been using Ubuntu for its servers since mid-2000s. However, I'm very concerned about Ubuntu's stability since it's based on unstable/test builds of Debian. How long will WMF use Ubuntu until they found a more suitable alternative OS? Can the discussion continue here or at Phabricator? George Ho (talk) 22:38, 29 October 2020 (UTC)
- Probably Phabricator is better. FWIW, though, something that has served the purpose for ~15 years seems pretty stable. ☠MarkAHershberger☢(talk)☣ 23:50, 29 October 2020 (UTC)
- first off this is silly, the stability of ubuntu is fine for our purposes.
- Second, i'm pretty sure we moved off ubuntu quite a long time ago (for reasons unrelated to stability). I think we have been using debian for a while now. Bawolff (talk) 00:47, 30 October 2020 (UTC)
- Oh. Maybe I worry too much. I probably just got desktop and server editions mixed up. From what I heard, any of Linux desktop distros isn't practical nowadays but rather remain niches. But Linux servers are different stories, yet I still don't know much about them. BTW, I found one of tasks (phab:T186288) indicating migration of hosts from Ubuntu to Debian. But I guess Ubuntu is still in use concurrently, right? (phab:T142097) George Ho (talk) 01:04, 30 October 2020 (UTC)
- linux on the desktop is much more niche. Typically though its fairly stable (except when combined with low quality drivers, which os common for desktop graphics cards), there's just various features that are a bit less mature or require extra configuration (e.g. on mine, if you plugin an hdmi cable it wont autodetect the new monitor until i tell it to. A small thing but annoying), but outright crashing is very rare. Its also kind of hard to talk about generally because different desktop environments result in very different experiences.
- Linux on the server is much more mature, and the vast majority of servers on the internet run linux Bawolff (talk) 01:57, 30 October 2020 (UTC)
Deleting Users
Hi I am trying to delete some users from our wiki pages, but keep getting errors. A screenshot is attached of the error I am receiving. OK,I am unable to upload the screenshot due to the full on security settings.
The error message is a bunch of numbers and such and : Fatal exception of type "MWException" NathanMayne (talk) 10:14, 30 October 2020 (UTC)
- Please provide version information and the full exception stack trace. See Manual:How to debug Malyacko (talk) 11:33, 30 October 2020 (UTC)
Issue with extracting the tar.gz files
RESOLVED | |
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 trying to extract mediawiki-1.35.0.tar.gz and mediawiki-1.34.4.tar.gz with IZArc 4.4 on Windows 10, after about the half of extraction the extracting programme comes with messages to overwrite existing files with files of (of course) the same name, but size 0 and a slightly different timestamp (00:01 instead of 00:01:00, as far the extracting programme indicates). In the end I chose with different extractions both overwriting all and not overwriting anything.
Because this happened the first time ever since I have used IZArc (10 or 15 years?), I was unsure if there was an error either in the origin download files or with the extraction which might cause troubles when making an installation of MediaWiki, so I tried to delete the different extractions - but it did not work. I found out that there were several files just ending with a dot and without any timestamp which I just could delete using the command line on Windows (which is useful, but do it with hundreds of files in different directories ...).
I also tried to extract an older download, mediawiki-1.34.0.tar.gz (downloaded in early 2020), and it worked fine on IZArc. So I tried a new download of the same file mediawiki-1.34.0.tar.gz, and extraction also worked fine.
Which leads me to the conclusion that something could have happened between the release of 1.34.0 and that of 1.34.4 and 1.35.0 which might cause this error. (Note: I have not tried it with 1.34.1 to 1.34.3 or any else release new since January 2020 yet.)
In the end I tried my luck with the extraction manager of Linux Mint 18.2 (updated), extracting mediawiki-1.35.0.tar.gz, and there was no similar error message like on IZArc. So finally I took the extraction back to Windows for testing deleting it, and it worked, so probably there are no files just ending with a dot and without any timestamp like with the extraction with IZArc on Windows.
(Note: Additionally I also tried to delete the extractions with the strange files in it, which I made under Windows, now within Linux Mint's data manager, and this also worked fine.)
For my purposes there seems to be a workaround with Linux Mint. So this is just to let you know that there is some strange behaviour in some cases. I don't know if it's just an IZArc issue, but as it seems to work with older releases, there might also be some unknown issue in publishing the newer releases. 77.182.160.86 (talk) 14:07, 30 October 2020 (UTC)
- See this bug which is probably what you're running into. ☠MarkAHershberger☢(talk)☣ 16:29, 30 October 2020 (UTC)
template table
Hello
Good time
How can I create a template with a table that can delete or add columns and rows?
<templatestyles src="table/style.css" /> <div style="clear:both"></div> {| class="table table-hover table-primary" |-class="mw-customtoggle-BB mw-customtoggle-CC mw-customtoggle-DD" ! header ! header ! header |- id="mw-customcollapsible-BB" class="mw-collapsible mw-collapsed" | text 01 | text 01 | text 01 |- id="mw-customcollapsible-CC" class="mw-collapsible mw-collapsed" | text 02 | text 02 | text 02 |- id="mw-customcollapsible-DD" class="mw-collapsible mw-collapsed" | text 03 | text 03 | text 03 |} <div style="clear:both"></div>
Thankful Sokote zaman (talk) 05:46, 31 October 2020 (UTC)
Is it possible to share a login session across multiple servers?
RESOLVED | |
Not easily possible. |
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 one server in Asia (slave) and another in the United States (master). A user in the geographic middle is having session problems from being routed to both. Is it possible to share the login session across both servers in memcached?
Both servers have $wgSessionCacheType = CACHE_MEMCACHED; and run memcached locally. If I set up an array as documented in wgMemCachedServers would that solve the problem? Are there going to be performance issues from the US server beginning to cache/retrieve data in Asia? I tried cache_db in the past but found it very slow compared to memcached. T0lk (talk) 09:36, 31 October 2020 (UTC)
- wikimedia uses (or at least did last time i checked) redis with replication for this purpose. In addition to session cache they also set $wgMainStash to be a replicated redis store
- For best results in a geographically distributed system, you may want to look into Manual:$wgWANObjectCaches but the docs are a little lacking. See also https://wikitech.wikimedia.org/wiki/Memcached_for_MediaWiki and manual:Caching Bawolff (talk) 18:23, 31 October 2020 (UTC)
- Thank you! T0lk (talk) 01:40, 1 November 2020 (UTC)
- I setup redis on the master and slave servers, and then configured all servers like this:On the slave servers: in /etc/redis/redis.conf
$wgObjectCaches['redis'] = [ 'class' => 'RedisBagOStuff', 'servers' => [ '127.0.0.1:6379' ], // 'connectTimeout' => 1, // 'persistent' => false, // 'password' => 'secret', // 'automaticFailOver' => true, ]; $wgSessionCacheType = 'redis';
But the documentation says data (sessions?) written to the slave will be deleted on sync with the master. "Writing against a slave instance may be useful to store some ephemeral data (because data written on a slave will be easily deleted after resync with the master)". So this will not save sessions across servers (except in the case of sessions started on master server I think).slaveof 172.xx.x.xxx 6379 # this is the private IP of the master server slave-read-only no
- The other way to do this was to point 'servers' in wgObjectCashes to the master server and then redis doesn't need to be running on the slave servers. But doing this is a little slow and doesn't take advantage of replication. Was I supposed to list the all servers under 'servers' in wgObjectCaches too? T0lk (talk) 09:40, 5 December 2020 (UTC)
- I'll update this for anyone else. Since redis doesn't support master-master this idea of shared sessions isn't possible with redis alone. There are tasks tracking this idea https://phabricator.wikimedia.org/T212129 and https://phabricator.wikimedia.org/T206016
- I wonder if the easiest way to set it up would be Netflix dynomite, but Wikimedia uses WANObjectCache/mcrouter model: https://phabricator.wikimedia.org/T156938 T0lk (talk) 13:47, 7 December 2020 (UTC)
Topic namespace
Do the same namespaces have same IDs? Because it appears that the Topic namespace can have the ID 104 with the talk page (see v:WV:Namespace) or the ID 2600 with no talk page (see Project:Namespaces.) Ituafmq (talk) 20:10, 31 October 2020 (UTC)
- they dont neccesarily do. However in this particular case, flow is not installed on wikiversity, so the topic namespace there is very different from the topic namespace here. At wikiversity topic is just a normal namespace, sumilar to the portal namespace. Bawolff (talk) 20:39, 31 October 2020 (UTC)
How do you fork a skin?
Does anyone know how to do this? We would like to keep Skin:Minerva Neue and create Skin:MinervaDark to run alongside it. There seem to be many files involved, and the documentation in the skins manual is a little unclear. Flounder ceo (talk) 22:01, 31 October 2020 (UTC)
- Download the skin you want to fork.
- Update the files as needed. Especially look for "Minerva" or "minerva" and make sure you use your own name instead.
- Request a repo or set one up on github.
- Check in your code.
- Publish. ☠MarkAHershberger☢(talk)☣ 17:36, 1 November 2020 (UTC)
- That's a lot of files to go through with find and replace. I was hoping there would be an easier way. I've seen some skins like Skin:DarkVector that keep most of the original code intact and only replace "Vector" with "DarkVector" in a few places. Flounder ceo (talk) 19:10, 1 November 2020 (UTC)
- If you're using git to checkout the code, you can find all the files that refer to the old name and replace them with the new name like this:
- ☠MarkAHershberger☢(talk)☣ 00:11, 2 November 2020 (UTC)
git grep -l Minerva.Neue | xargs sed -i 's,Minerva.Neue,MinervaDark,g' git grep -l minerva.neue | xargs sed -i 's,minerva.neue,minervadark,g'
Wikipedia Night Mode
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, is there a dark/night mode for wikipedia? 2001:999:51:42AE:C4FF:199B:E38B:EAB0 (talk) 22:12, 31 October 2020 (UTC)
- See: Skin:Vector-DarkCSS. Flounder ceo (talk) 22:53, 31 October 2020 (UTC)