Extension talk:Maps/Flow archive/2015
Add topic| 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. |
Archive
[edit]
googlemaps and layers in openlayers work only on update, grey box issue
[edit]I had the following problems:
- Your browser does not support Google Maps V3, when using
service = googlemaps - Map would load as a grey box, when using
service = openlayers | layers = bing-hybrid
In both the cases the preview would display the map correctly. However on commit, the grey box will be shown (in case of googlemaps, with a message, in case of openlayers with bing-hybrid, just as a grey box.)
Working only when you run the /maintenance/update.php script.
The only solution I found so far is not to use any of these features. Adding the https for googlemaps as mentioned in on other solution didn't work either.
- Using
- MediaWiki 1.22.3
- PHP 5.4.35 (cgi-fcgi)
- MySQL 5.5.40-36.1
- Lua 5.1.5 Aviationwikinet (talk) 09:16, 5 January 2015 (UTC)
googlemaps error message: Your browser is not compatible with Google Maps v3.
[edit]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 version: 1.22.1 (1.23.8, 1.24.1 I tried these versions)
- PHP 5.3.3
- CentOS 6.6
- Maps: 3.2.2
- This is an internal wiki, for our company uses. We want to use google maps. I followed the instruction, but I always get error message. If I set openlayers as the default services. Everything works well.
- Browser: IE9, Chrome, Firefox, I tried three kinds of broesers, all of them can not display google maps. It really drives my crazy 216.74.247.230 06:50, 4 February 2015 (UTC)
- Same problem.
-
- MediaWiki 1.25.1
- Semantic MediaWiki 2.2
- Maps 3.2.3
- Semantic Maps 3.1.3
- It started to give me this error after some days that it worked fine.
- It's about the need of a API key?
- Thanx in advance. 188.94.193.134 16:45, 28 May 2015 (UTC)
- Seems to be an arbitrary problem. I have seen a wiki with 10 pages. 9 pages were ok and 1 was not ok. The message from Google is definitively nonsense since it is not browser related. I am not sure if this is a problem with the extension either. Perhaps one has just exceeded the usage limit Google enforces. Hmm.... [[kgh]] (talk) 09:42, 7 July 2015 (UTC)
- I had a same issue.
- But after add "require_once "$IP/extensions/Maps/Maps.php";" to the LocalSettings.php, the problem solved. :) Pchero21 (talk) 01:40, 20 March 2016 (UTC)
- When viewing (Windows 7 + Chrome 55.0 / Firefox 50.1.0) this page: https://www.semantic-mediawiki.org/wiki/Semantic_Maps_examples/Using_templates_(queries) I get the same error. Waanders (talk) 20:03, 19 December 2016 (UTC)
- Also with our own wiki (MW 1.27.1, Semantic Maps 3.3 and Maps 3.8.0). Okay when omitting the template-param. Waanders (talk) 20:07, 19 December 2016 (UTC)
- Indeed. I have forgotten about this thread. Tracked with issue 248 [[kgh]] (talk) 21:08, 19 December 2016 (UTC)
Maps 3.2.2 - Custom Markers Not Displayed
[edit]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.
- Using:
- MediaWiki 1.24.1
- PHP 5.4.16
- SemanticMaps 3.1.3
- Maps 3.2.2
- Custom icons are not displayed here using the following:-
{{ #display_points: {{coords}} |height=768 |service=openlayers |layers=osm-mapnik,osm-cyclemap,bing,google |controls=panzoombar,scaleline,overviewmap,keyboarddefaults,navigation,layerswitcher,mouseposition }}- Where template:coords contain coodinates in the form:
51.760546, -3.572933 ~'''[[Dinas Main Crag]]''' ~51.760546, -3.572933 ~File:Blue.png; 51.760034, -3.574529 ~'''[[Kennelgarth Wall]]''' ~51.760034, -3.574529 ~File:Bouldering.png; 51.759673, -3.577498 ~'''[[Dinas - Main Slab]]''' ~51.759673, -3.577498 ~File:Orange.png;
- etc....
- This works fine on Maps 2.01
- Is there a way around this? Have I forgotten something?
- Thanks for any help. Tim Hoddy (talk) 15:17, 22 February 2015 (UTC)
- This is a known issue. https://github.com/JeroenDeDauw/Maps/issues/51
- Unfortunately I do not currently have the time to dig into this. Jeroen De Dauw (talk) 05:21, 26 February 2015 (UTC)
- Thanks for responding. Tim Hoddy (talk) 11:37, 10 March 2015 (UTC)
- Hi, after reading this thread, it seems it had been fixed around 2018, but presently I still have this issue. Am I alone in this case ? As soon as I put a "Green marker.png" the markers won't show up. Even if I do upload a file with this name on the wiki (cause I don't know where the default avaialable icons are stored). Varlin (talk) 14:29, 28 December 2019 (UTC)
- Working fine in recent versions of Maps. Example: https://www.semantic-mediawiki.org/wiki/Extension:Maps/Displaying_maps#Markers
- If you are using an older version you might need to put "File:Green marker.png". An insane amount of issues have been fixed since 3.x, so upgrading is highly recommended. Jeroen De Dauw (talk) 12:40, 3 January 2020 (UTC)
- I'm using Mediawiki 1.34, Maps 7.15.5, and I tried every different syntax possible (Green marker, Green marker.png, File:Green marker, File:Green marker.png...). Still, no marker is displayed. Varlin (talk) 00:11, 5 January 2020 (UTC)
- It was because the extension only looks for images stored locally and ignores settings defining shared repository for images (which is my case). See here for a fix. Varlin (talk) 11:25, 18 February 2020 (UTC)
SOLVED - Maps loaded but not active ?
[edit]I've installed Maps 3.2.3 through composer on a MW 1.23.9 setup
Issues :
- #display_map is not parsed
- Maps is not listed in Special:Version page, as well as Validator -> not loaded ?
Maps code is actually loaded (I've added an echo line into Maps.php to check it) and the contained user function is also executed (also tested with inserting echo in the function)
I've stripped down my LocalSettings.php to a minimum, especially disabling any other extension, thereby excluding interference from any other extension.
If I comment out the loading of Maps.php in vendor/composer/autoload_files.php and add a require_once(extensions/Maps/Maps.php) to my LocalSettings.php, Maps is visible in Special:Version and the parser function works fine.
as the extension registration code is executed, what can happen that causes the extension not being displayed on Special:Version. I assume that one I solve this issue the parser function may also work fine !
Thanks. Jhf2442 (talk) Jhf2442 (talk) 16:14, 13 June 2015 (UTC)
- Found the issue - inclusion of DefaultSettings.php was still in LocalSettings.php -> is no longer required and even conflicts with composer ! Jhf2442 (talk) 16:12, 14 June 2015 (UTC)
[Maps 3.2.3] "NetworkError: 404 Not Found - http://localhost:8080/wiki01/index.php/Theme/default/style.css"
[edit]- MW 1.25.1
- Maps 3.2.3
installed via Composer.
{{#display_map: Berlin, Germany
|service=openlayers
}}
raises
"NetworkError: 404 Not Found - http://localhost:8080/wiki01/index.php/Theme/default/style.css"
in Firebug. Any ideas? Planetenxin (talk) 11:58, 16 June 2015 (UTC)
- I guess this should go here. Afaik Jeroen does no longer watch this page. Cheers [[kgh]] (talk) 12:04, 17 June 2015 (UTC)
Runtime Exception after updating Composer.json
[edit]Executing >php composer.phar require mediawiki/maps "*"
gives
./composer.json has been updated
> ComposerHookHandler::onPreUpdate
[RuntimeException] The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [packages1] ... [packagesN]
can anyone tell me what to do?
Ruud Habets 2001:982:A21F:1:9CE1:3613:D2B8:CE40 (talk) 18:31, 28 July 2015 (UTC)
- You'll need to update first:
- php composer.phar update
- Takes a minute, be patient Eze123p (talk) 04:11, 2 August 2015 (UTC)
Using OSM instead of Google on MapEditor
[edit]Is it possible to use OSM instead of Google when using MapEditor as when using Google the lines of roads are completely different than that of OSM
It would be good to use OSM as a choice when drawing lines if using OSM maps and Google when using Google Maps. 86.28.140.107 (talk) 01:38, 1 October 2015 (UTC)
- Special:MapEditor 86.28.140.107 (talk) 01:41, 1 October 2015 (UTC)
- As you can see here the red line is what google maps draws, but in reality the osm is no where the same as line is completely different when shown on osm map
- http://i.imgur.com/GMDLIWr.jpg 86.28.140.107 (talk) 01:52, 1 October 2015 (UTC)
- Yeah, I get your point. That's not nice. When looking at the code for "Special:MapEdior" I come to believe that currently only GoogleMaps is supported. Thus this is a feature request which should go there. Cheers [[kgh]] (talk) 08:00, 1 October 2015 (UTC)
"Your browser is not compatible with Google Maps v3." with certain Mediawiki variables on page
[edit]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.
On many pages of my Mediawiki-based site I use bylines like the following:
<p id="byline">By Some Name, 2013-10-03. Revised by {{#realname:{{REVISIONUSER}}}}, {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}.</p>
When any of the variables {{REVISIONUSER}}, {{REVISIONYEAR}}, {{REVISIONMONTH}} or {{REVISIONDAY2}} is present, maps on the page do not load and I instead get the error message "Your browser is not compatible with Google Maps v3." Maps do show during preview, but not after the page has been saved.
I am running MediaWiki 1.25.2, PHP 5.6.12-1, MySQL 5.5.44, on Ubuntu/apache.
The problem started after I upgraded to MediaWiki 1.25.2, but I also started using the above byline about the same time, so his may be a coincidence. I get the error message in Internet Explorer, Chome, and Firefox. Henryfunk (talk) 15:46, 3 October 2015 (UTC)
- Hmm, try to replicate this on this sandbox instance. This is something for the issue tracker I believe. [[kgh]] (talk) 20:53, 22 October 2015 (UTC)
- Thanks, well, the problem seems to have disappeared. Strange Henryfunk (talk) 17:50, 3 July 2016 (UTC)
- There seem to have been a general issue which apparently solved itself in the meantime. However I also found a case were I was able to replicate it. It is connected to the SemanticMaps extension. [[kgh]] (talk) 08:31, 4 July 2016 (UTC)
- Perhaps it was due to chanegs Google made to the way Google Maps works. They like to do that every now and then :-) (see next thread). 194.192.151.254 (talk) 14:09, 4 July 2016 (UTC)
OpenSeaMap
[edit]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.
It would be great if we could show OpenSeaMap by Extension:Maps in each MediaWiki :-)
Bests, --~ Markus Bärlocher (talk) 20:28, 22 October 2015 (UTC)
- This is indeed a feature request that was already added to the issue tracker at GitHub. Cheers [[kgh]] (talk) 20:49, 22 October 2015 (UTC)
Problem with maps after upgrade to 1.26
[edit]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
Fatal error: Class 'DataValues\Geo\Parsers\GeoCoordinateParser' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/Geocoders.php on line 131
on maps that used to work properly.
Any idea? Thanks in advance.
Product Version
MediaWiki 1.26.0
PHP 5.3.29 (apache2handler)
MySQL 5.0.95
Semantic Bundle 1.9.2
Semantic Forms 2.8
Semantic Forms Inputs 0.9.0 alpha
Semantic Maps 3.2
Semantic MediaWiki 2.3
EFFemeer (talk) 11:21, 3 December 2015 (UTC)
- Perhaps this has something to do with missing dependencies. You seem to use SemanticBundle. Perhaps this is no longer compatible with MW 1.26. However it is always better to post the versions used not just for MW but also for Maps, PHP etc. [[kgh]] (talk) 14:11, 3 December 2015 (UTC)
- Thanks for the reaction. I've added the version numbers.
- A pity that my Maps are running in trouble. It worked so well before. EFFemeer (talk) 11:32, 4 December 2015 (UTC)
- I have the impression that you used Semantic Bundle before and now you are trying to use a recent tarball release of SMW together with recent versions of related semantic extensions on top what is still there provided by the Semantic Bundle. This to my regret must fail. If these extensions are composer only like SM you are looking at a lost cause since the tarball release of SMW only works on itself and with non composer software like SF. [[kgh]] (talk) 09:57, 7 December 2015 (UTC)
- Thank you again. I've now removed the Semantic bundle and was able to get Maps 2.0.1 working again.
- Version 3.4 throws Fatal error: Class 'MapsMappingServices' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/services/GoogleMaps3/GoogleMaps3.php on line 100 FrancisFranck (talk) 13:55, 8 December 2015 (UTC)
- You are not using the file release of SMW (without using Composer) in conjunction with Maps 3.4? Just to make sure. [[kgh]] (talk) 23:13, 8 December 2015 (UTC)
- Unfortunately, I have no command line access to my server. Hence no means to use Composer (nor Parsoid, nor ...) Due to all the trial and error I had to apply to get things working again, my versions have changed.
- ----
- Present Version
- -----
- MediaWiki 1.26.0
- PHP 5.3.29 (apache2handler)
- MySQL 5.0.95
- Semantic Bundle removed
- Semantic Forms 3.4
- Semantic Forms Inputs 0.9.0 alpha
- Semantic Maps removed
- Semantic MediaWiki 1.8.0.5
- Maps 2.0.1
- ------ FrancisFranck (talk) 12:42, 9 December 2015 (UTC)
- > Due to all the trial and error I had to apply to get things working again, my versions have changed.
- Semantic MediaWiki 1.8.0.5 + MediaWiki 1.26.0 will eventually fail [0].
- [0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1201 MWJames (talk) 13:09, 11 December 2015 (UTC)
- So yes, you were trying to use the file release with other semantic extensions. This was destined to fail. Have you tried using individual file release? [[kgh]] (talk) 18:17, 9 December 2015 (UTC)
- I will take a look at the individual file release tomorrow. EFFemeer (talk) 21:10, 9 December 2015 (UTC)
- Great, some laptop running Linux + composer and an internet connection should work out allrighty for this. Then just move over the files to the webspace. [[kgh]] (talk) 16:52, 10 December 2015 (UTC)
- I'm now trying to run composer under Windows 10. Will that work? EFFemeer (talk) 11:01, 11 December 2015 (UTC)
- Applied
- {
- "require": {
- "mediawiki/semantic-media-wiki": "~2.2"
- }
- }
- on composer in Windows 10.
- Now Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 45
- Gosh !!! EFFemeer (talk) 12:09, 11 December 2015 (UTC)
- > Gosh !!!
- All I can say is that if you follow [0], non of the reported issue appear.
- [0] https://vimeo.com/82255034
- Cheers MWJames (talk) 13:04, 11 December 2015 (UTC)
- I'd love to believe you MWJames, but the error comes up even before I mw-config starts. EFFemeer (talk) 13:35, 11 December 2015 (UTC)
- Could it be that this composerstuff doesn't work because I ran it under PHP7 and then copied to a 5.3.29 server?
- Otherwise I'll give up my upgrade attempts. It's a waste of time. EFFemeer (talk) 15:30, 11 December 2015 (UTC)
- > I'd love to believe you MWJames, but the error comes up even before I mw-config starts.
- If you install MW 1.26 and run `Composer update` you should get the `'Psr\Log` package which is required by MW and not by Maps or SMW.
- After you run `Composer update` you should be able to add `composer require ...` or since MW screwed with that native Composer setup since MW 1.25 something like composer.local.json [0] can contain non-MW related packages (never used it).
- > Could it be that this composerstuff doesn't work because I ran it under PHP7 and then copied to a 5.3.29 server?
- No.
- Just to clarify this "composerstuff" doesn't have an influence on how SMW or for that matter Maps works. Composer is just a tool that helps us package dependencies you would otherwise have to collect and install yourself in order for classes that depend on each other can work with together as in case of "DataValues" (which is maintained and used by Wikidata and provides functionality to Maps as well).
- [0] Composer/For extensions#Specify the extensions to be installed MWJames (talk) 16:28, 11 December 2015 (UTC)
- Question: ready to run Composer update, but which composer.json should I use?
- (I have to run Composer on my Windows PC)
- Is
- {
- "require": {
- "mediawiki/maps":"*"
- }
- }
- enough?
- Or should I use the composer.json file in the root of my wiki? EFFemeer (talk) 10:46, 12 December 2015 (UTC)
- I've now tried everything: installed Mediawiki 1.26, succeeded mw-config, Composer install, Composer update, but still:
- Maps 3.4 issues in
- Fatal error: Class 'MapsMappingServices' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/services/GoogleMaps3/GoogleMaps3.php on line 100
- ---
- Maps 2.0.1 says (perhaps understandably because not compatible with SMW > 1.9 - see below)
- Fatal error: Class 'ItemParameterManipulation' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/manipulations/Maps_ParamGeoService.php on line 16
- ---
- My present version list:
- == Installed software ==
- !Product
- !Version
- |-
- |MediaWiki
- | dir="ltr" |1.26.0
- |-
- |PHP
- | dir="ltr" |5.3.29 (apache2handler)
- |-
- |MySQL
- | dir="ltr" |5.0.95
- |}
- == Entry point URLs ==
- ! dir="ltr" lang="en" |Entry point
- ! dir="ltr" lang="en" |URL
- |-
- |Article path
- |
/wiki/$1 - |-
- |Script path
- |
/wiki - |-
- |index.php
- |
/wiki/index.php - |-
- |api.php
- |
/wiki/api.php - |-
- |load.php
- |
/wiki/load.php - |}
- == Installed skins ==
- ! class="mw-version-ext-col-label" |Skin
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |BootStrapSkin
- |1.0.43
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Cologne Blue
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Modern
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |MonoBook
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Vector
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |}
- == Installed extensions ==
- ! colspan="5" id="sv-credits-semantic" |Semantic extensions
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |Semantic Forms Inputs
- |0.9.0 alpha
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Semantic MediaWiki
- |2.3
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="sv-space"
- | colspan="5" |
- |-
- ! colspan="5" id="sv-credits-specialpage" |Special pages
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |BlockandNuke
- |–
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |CategoryTree
- |–
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Collection
- |1.7.0
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |ContactPage
- |2.2
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Renameuser
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Replace Text
- |0.9.7
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Semantic Forms
- |3.4
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="sv-space"
- | colspan="5" |
- |-
- ! colspan="5" id="sv-credits-parserhook" |Parser hooks
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |BrowserHistoryLink
- |1.1
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |CategoryGallery
- |1.0.1
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |CategoryTree
- |–
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Cite
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext" id="mw-version-ext-DynamicPageList_.28third_party.29"
- |DynamicPageList (third party)
- |2.3.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |EImage
- |2.0.0
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |EmailForm
- |0.8.1
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Embed Document
- |0.13
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |GoogleDocs4MW
- |1.1
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |InteractiveTimeline
- |0.1.0
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Javascript Slideshow
- |1.2.3
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Maps
- |2.0.1
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |NoTitle
- |0.2.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |PDF Include
- |1.3
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |TimelineTable
- |2.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |VideoPlayer
- |1
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Widgets
- |1.2
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |YouTube
- |1.9.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="sv-space"
- | colspan="5" |
- |-
- ! colspan="5" id="sv-credits-antispam" |Spam prevention
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |Anti-spam by CleanTalk
- |1.1
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |ConfirmEdit
- |1.4.0
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="sv-space"
- | colspan="5" |
- |-
- ! colspan="5" id="sv-credits-datavalues" |DataValues
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |DataValues
- |1.0
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |DataValues Common
- |0.2.3
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |DataValues Interfaces
- |0.1.5
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |DataValues Validators
- |0.1.2
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="sv-space"
- | colspan="5" |
- |-
- ! colspan="5" id="sv-credits-other" |Other
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- ! class="mw-version-ext-col-label" |License
- ! class="mw-version-ext-col-label" |
- ! class="mw-version-ext-col-label" |
- |- class="mw-version-ext"
- |BetaFeatures
- |0.1
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |CollapsibleVector
- |0.1.10
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Gadgets
- |–
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |GeoData
- |–
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |MultimediaViewer
- |0.3.0
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |ParserHooks
- |1.4.0
- |License
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |PCR GUI Inserts
- |1.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |PHPExcel
- |1.8.0
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |QuestyCaptcha
- |–
- |
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |- class="mw-version-ext"
- |Validator
- |2.0.4
- |GPL-2.0+
- | class="mw-version-ext-description" |
- | class="mw-version-ext-authors" |
- |}
- == Installed libraries ==
- !Library
- !Version
- !License
- !
- !
- |-
- |composer/semver
- | dir="auto" |1.0.0
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |cssjanus/cssjanus
- | dir="auto" |1.1.1
- | dir="auto" |Apache-2.0
- | lang="en" dir="ltr" |
- |
- |-
- |liuggio/statsd-php-client
- | dir="auto" |1.0.16
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |mediawiki/at-ease
- | dir="auto" |1.1.0
- | dir="auto" |GPL-2.0+
- | lang="en" dir="ltr" |
- |
- |-
- |oojs/oojs-ui
- | dir="auto" |0.12.12
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |oyejorge/less.php
- | dir="auto" |1.7.0.9
- | dir="auto" |Apache-2.0
- | lang="en" dir="ltr" |
- |
- |-
- |psr/log
- | dir="auto" |1.0.0
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/assert
- | dir="auto" |0.2.2
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/cdb
- | dir="auto" |1.3.0
- | dir="auto" |GPL-2.0+
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/composer-merge-plugin
- | dir="auto" |1.3.0
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/ip-set
- | dir="auto" |1.0.1
- | dir="auto" |GPL-2.0+
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/utfnormal
- | dir="auto" |1.0.3
- | dir="auto" |GPL-2.0+
- | lang="en" dir="ltr" |
- |
- |-
- |wikimedia/wrappedstring
- | dir="auto" |2.0.0
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |-
- |zordius/lightncandy
- | dir="auto" |0.21
- | dir="auto" |MIT
- | lang="en" dir="ltr" |
- |
- |} EFFemeer (talk) 14:08, 12 December 2015 (UTC)
- >atal error: Class 'MapsMappingServices' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/services/GoogleMaps3/GoogleMaps3.php on line 100
- Maps 2.0.1 says
- Fatal error: Class 'ItemParameterManipulation' not found in /www/htdocs/drebbel/wiki/extensions/Maps/includes/manipulations/Maps_ParamGeoService.php on line 16
- Could it be that your LocalSetting.php file still has a "require_once" reference to the old Maps installation? The message above is an indication that the autloader (the part that registers the classes) can not find the expected file which does exist in [0].
- [0] https://github.com/JeroenDeDauw/Maps/blob/6842093fc2d3cd26a41c0ba6ecb62a00f2101696/includes/Maps_MappingServices.php MWJames (talk) 15:10, 12 December 2015 (UTC)
- Thanks for quick reaction! Adapted LocalSettings.php
- Now
- Fatal error: Uncaught exception 'Exception' with message '/www/htdocs/drebbel/wiki/extensions/Maps/extension.json does not exist!' in /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /www/htdocs/drebbel/wiki/includes/GlobalFunctions.php(181): ExtensionRegistry->queue('/www/htdocs/dre...') #1 /www/htdocs/drebbel/wiki/LocalSettings.php(170): wfLoadExtension('Maps') #2 /www/htdocs/drebbel/wiki/includes/WebStart.php(123): require_once('/www/htdocs/dre...') #3 /www/htdocs/drebbel/wiki/index.php(38): require('/www/htdocs/dre...') #4 {main} thrown in /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php on line 106 EFFemeer (talk) 15:41, 12 December 2015 (UTC)
- > wfLoadExtension('Maps')
- Maps as well as SMW doesn't use stuff like "wfLoadExtension". Doing something like wfLoadExtension('Maps') will fail because we use the standard composer.json and not some homebrew MW only `extension.json` which cause all sort of issues (including getting extensions to update properly). MWJames (talk) 16:10, 12 December 2015 (UTC)
- If not wfLoadExtension('Maps'), what should I enter in LocalSettings.php ??? EFFemeer (talk) 16:39, 12 December 2015 (UTC)
- > f not wfLoadExtension('Maps'), what should I enter in LocalSettings.php ???
- If you added Maps via Composer then Composer has registered all necessary classes and it should work out of the box without having to touch LocalSettings.php or make it explicit (as with those "require_once" or wfLoadExtension stuff). MWJames (talk) 16:46, 12 December 2015 (UTC)
- And this brings me back to Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /www/htdocs/drebbel/wiki/includes/profiler/TransactionProfiler.php on line 36
- Could my problem be the same as the one described in https://phabricator.wikimedia.org/T104037? And if so, what next? EFFemeer (talk) 17:04, 12 December 2015 (UTC)
- @EFFemeer wrote:
Could my problem be the same as the one described in https://phabricator.wikimedia.org/T104037? And if so, what next?
- MediaWiki 1.26.0 requires composer-merge-plugin 1.3.0 which includes the bug fix for https://github.com/wikimedia/composer-merge-plugin/issues/41 and T104037. One way to test if there is some sort of regression in generation of the Composer managed classmap autoloader would be to run
composer dump-autoload --optimizeand see if your class loading problems go away. You could attempt to manually verify that Psr classes are present in the classmap autoloader viagrep Psr vendor/composer/autoload_classmap.php. BDavis (WMF) (talk) 21:58, 13 December 2015 (UTC) - Thank you for your reaction, Bryan
- autoload_classmap.php contains...
- ... 'Psr\\Log\\LoggerAwareInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerAwareInterface.php',
- 'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php',
- 'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php',
- 'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
- 'Psr\\Log\\ ...
- and the plugin is definitely loaded.
- |wikimedia/composer-merge-plugin
- | dir="auto" |1.3.0
- | dir="auto" |MIT
- | lang="en" dir="ltr" |Composer plugin to merge multiple composer.json files
- |Bryan Davis
- |-
- |wikimedia/ip-set
- | dir="auto" |1.0.1
- | dir="auto" |GPL-2.0+
- | lang="en" dir="ltr" |Efficiently match IP addresses against a set of CIDR specifications.
- |Brandon Black
- |}
- I tried composer dump-autoload --optimize and the outcome is:
- Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 45 EFFemeer (talk) 09:14, 14 December 2015 (UTC)
- @EFFemeer It sounds like we can rule out composer-merge-plugin generating a corrupt classmap autoloader based on the grep results given above. The problem does sound like it is somehow autoloader related however.
- It would be very useful to get a full stack trace that leads to the crash you are seeing. Doing so will probably require hacking your local files a bit since most PHP runtimes won't reliably give stacktraces for fatal errors. You might try sticking a line like
throw new Exception('First call to BagOStuff');at the top of your includes/libs/objectcache/BagOStuff.php file. BDavis (WMF) (talk) 16:51, 14 December 2015 (UTC) - I did stick
throw new Exception('First call to BagOStuff');at the top of yourincludes/libs/objectcache/BagOStuff.php file and got Fatal error: Uncaught exception 'Exception' with message 'First call to BagOStuff' in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php:28 Stack trace: - #0 /www/htdocs/drebbel/wiki/includes/AutoLoader.php(90): require()
- #1 [internal function]: AutoLoader::autoload('BagOStuff')
- #2 /www/htdocs/drebbel/wiki/includes/libs/objectcache/EmptyBagOStuff.php(29): spl_autoload_call('BagOStuff')
- #3 /www/htdocs/drebbel/wiki/includes/AutoLoader.php(90): require('/www/htdocs/dre...')
- #4 [internal function]: AutoLoader::autoload('EmptyBagOStuff')
- #5 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(91): spl_autoload_call('EmptyBagOStuff')
- #6 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(78): ExtensionRegistry->__construct()
- #7 /www/htdocs/drebbel/wiki/includes/GlobalFunctions.php(218): ExtensionRegistry::getInstance()
- #8 /www/htdocs/drebbel/wiki/skins/CologneBlue/CologneBlue.php(4): wfLoadSkin('CologneBlue')
- #9 /www/htdocs/drebbel/wiki/LocalSettings.php(121): require_once('/www/htdo in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 28 EFFemeer (talk) 17:47, 14 December 2015 (UTC)
- @EFFemeer your stack trace cuts off just when it was getting interesting. I'd like to see the stack frame just below LocalSettings.php. I would expect it to be something like
#10 /www/htdocs/drebbel/wiki/includes/WebStart.php(123): include()but it would be good for you to confirm that. - Having seen this much of the trace, my next question is a sanity check of where your Composer generated autoloader is located. Is it at /www/htdocs/drebbel/wiki/vendor/autoload.php? WebStart.php should be loading
$IP/vendor/autoload.phpjust before$IP/LocalSettings.phpwhich should be how Psr\Log\LoggerAwareInterface is loaded based on our earlier investigations. BDavis (WMF) (talk) 01:54, 15 December 2015 (UTC) - Yes, Bryan. Here is another trace, made after some reshuffling in LocalSetting.php:
- Fatal error: Uncaught exception 'Exception' with message 'First call to BagOStuff' in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php:28 Stack trace:
- #0 /www/htdocs/drebbel/wiki/includes/AutoLoader.php(90): require()
- #1 [internal function]: AutoLoader::autoload('BagOStuff')
- #2 /www/htdocs/drebbel/wiki/includes/libs/objectcache/EmptyBagOStuff.php(29): spl_autoload_call('BagOStuff')
- #3 /www/htdocs/drebbel/wiki/includes/AutoLoader.php(90): require('/www/htdocs/dre...')
- #4 [internal function]: AutoLoader::autoload('EmptyBagOStuff')
- #5 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(91): spl_autoload_call('EmptyBagOStuff')
- #6 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(78): ExtensionRegistry->__construct()
- #7 /www/htdocs/drebbel/wiki/includes/GlobalFunctions.php(181): ExtensionRegistry::getInstance()
- #8 /www/htdocs/drebbel/wiki/LocalSettings.php(375): wfLoadExtension('ConfirmEdit')
- #9 /www/htdocs/drebbel/wiki/includes/WebStart.php(123): require_once('/www/htdocs/dr in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 28
- autoload.php is indeed located at /www/htdocs/drebbel/wiki/vendor/autoload.php
- One other remark: My first Exception was on wfLoadSkin('CologneBlue'). I then remarked this item out in LocalSettings. Next Exception was another skin, etc.
- The final list of Exception-generating items is
- ---
- require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
- require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";
- $wgCaptchaClass = 'QuestyCaptcha';
- wfLoadExtension( 'BetaFeatures' );
- #FF wfLoadSkin('CologneBlue');
- #FF wfLoadSkin('Modern');
- #FF wfLoadSkin('MonoBook');
- #FF wfLoadSkin('Vector');
- require_once( "$IP/skins/bootstrap/bootstrapskin.php" );
- require_once( "$IP/skins/CologneBlue/CologneBlue.php" );
- require_once( "$IP/skins/Modern/Modern.php" );
- require_once( "$IP/skins/MonoBook/MonoBook.php" );
- require_once( "$IP/skins/Vector/Vector.php" );
- wfLoadExtension( 'CollapsibleVector' );
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
- $wgDefaultSkin = "vector";
- wfLoadExtension( 'Gadgets' );
- --- EFFemeer (talk) 08:30, 15 December 2015 (UTC)
- Troubleshooting so far:
- If these 3 statements are indeed accurate with respect to your server and not just the local development area I'm out of ideas about why the PHP runtime would be unable to find the PSR-3 logging library classes when you load any skins or extensions. BDavis (WMF) (talk) 20:56, 15 December 2015 (UTC)
- Let me resummarize, cause I've been a little bit confused with the different setups.
- My problem shows up at the level of the vendor/autoload.php file and and the vendor/composer directory.
- ____________
- With the files from the Mediawiki 1.26 tarball and
- - throw new Exception('First call to BagOStuff'); not included,
- wiki starts up well (with well functioning Cologneblue, etc !!!.)
- ____________
- With the files generated by Composer and
- - throw new Exception('First call to BagOStuff'); not included,
- Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 45
- ____________
- With the files from the Mediawiki 1.26 tarball or the files generated by Composer and
- - throw new Exception('First call to BagOStuff'); included,
- I always get
- Fatal error: Uncaught exception 'Exception' with message 'First call to BagOStuff' in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php:28 Stack trace:
- #0 /www/htdocs/drebbel/wiki/includes/AutoLoader.php(90): require()
- ...
- #8 /www/htdocs/drebbel/wiki/skins/CologneBlue/CologneBlue.php(4): wfLoadSkin('CologneBlue')
- #9 /www/htdocs/drebbel/wiki/LocalSettings.php(121): require_once('/www/htdo in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 28
- ____________
- When taking out the Exception-generating items from LocalSeettings.php
- I'm seeing
- #4 [internal function]: AutoLoader::autoload('EmptyBagOStuff')
- #5 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(91): spl_autoload_call('EmptyBagOStuff')
- #6 /www/htdocs/drebbel/wiki/includes/registration/ExtensionRegistry.php(78): ExtensionRegistry->__construct()
- #7 /www/htdocs/drebbel/wiki/includes/Setup.php(39): ExtensionRegistry::getInstance()
- #8 /www/htdocs/drebbel/wiki/includes/WebStart.php(137):
- So I've got the impression that there is something wrong with the ExtensionProcessor.
- Does this shed any light?
- PS I've created a log file. Too large to post here. Has several lines like:
- [GlobalTitleFail] RequestContext::getTitle called by ContextSource::msg/call_user_func_array/RequestContext::msg/Message::setContext/RequestContext::getTitle with no title set.
- EFFemeer (talk) 22:06, 15 December 2015 (UTC)
- With the files generated by Composer:
- Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /www/htdocs/drebbel/wiki/includes/libs/objectcache/BagOStuff.php on line 45
- So just to make sure I'm clear, you are only seeing an unexpected error when you replace the $IP/vendor files that come with the 1.26 tarball with a new collection of files that you have generated yourself using Composer? When you do that, are you using the suggested $IP/composer.local.json to augment the default $IP/composer.json or are you modifying $IP/composer.json directly? You checked previously that the generated autoloader scripts had the needed classes but I'm still stuck on the autoloader being the most likely cause of your failure scenario. BDavis (WMF) (talk) 18:37, 16 December 2015 (UTC)
- Thank you for keeping up with me, Bryan.
- Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found
- does no longer occur if I do a Composer install with the following composer.json file
- __________________
- {
- "name": "mediawiki/core",
- "description": "Free software wiki application developed by the Wikimedia Foundation and others",
- "keywords": ["mediawiki", "wiki"],
- "homepage": "https://www.mediawiki.org/",
- "authors": [
- {
- "name": "MediaWiki Community",
- "homepage": "https://www.mediawiki.org/wiki/Special:Version/Credits"
- }
- ],
- "license": "GPL-2.0+",
- "support": {
- "issues": "https://bugs.mediawiki.org/",
- "irc": "irc://irc.freenode.net/mediawiki",
- "wiki": "https://www.mediawiki.org/"
- },
- "require": {
- "composer/semver": "1.0.0",
- "cssjanus/cssjanus": "1.1.1",
- "ext-iconv": "*",
- "liuggio/statsd-php-client": "1.0.16",
- "oyejorge/less.php": "1.7.0.9",
- "mediawiki/at-ease": "1.1.0",
- "oojs/oojs-ui": "0.12.12",
- "php": ">=5.3.3",
- "psr/log": "1.0.0",
- "wikimedia/assert": "0.2.2",
- "wikimedia/cdb": "1.3.0",
- "wikimedia/composer-merge-plugin": "1.3.0",
- "wikimedia/ip-set": "1.0.1",
- "wikimedia/utfnormal": "1.0.3",
- "wikimedia/wrappedstring": "2.0.0",
- "zordius/lightncandy": "0.21"
- },
- "require-dev": {
- "jakub-onderka/php-parallel-lint": "0.9",
- "justinrainbow/json-schema": "~1.3",
- "phpunit/phpunit": "3.7.37",
- "mediawiki/mediawiki-codesniffer": "0.3.0",
- "wikimedia/avro": "1.7.7",
- "nmred/kafka-php": "0.1.4",
- "monolog/monolog": "1.14.0"
- },
- "suggest": {
- "ext-fileinfo": "Improved mime magic detection",
- "ext-intl": "ICU integration",
- "ext-mbstring": "Multibyte string support",
- "ext-wikidiff2": "Diff accelerator",
- "ext-apc": "Local data and opcode cache",
- "monolog/monolog": "Flexible debug logging system",
- "nmred/kafka-php": "Send debug log events to kafka",
- "pear/mail": "Mail sending support",
- "pear/mail_mime": "Mail sending support",
- "pear/mail_mime-decode": "Mail sending support",
- "wikimedia/avro": "Binary serialization format used with kafka"
- },
- "autoload": {
- "psr-0": {
- "ComposerHookHandler": "includes/composer"
- }
- },
- "scripts": {
- "lint": "parallel-lint --exclude vendor",
- "phpcs": "phpcs -p $PHPCS_ARGS",
- "test": [
- "composer lint",
- "composer phpcs"
- ],
- "pre-update-cmd": "ComposerHookHandler::onPreUpdate",
- "pre-install-cmd": "ComposerHookHandler::onPreInstall"
- },
- "config": {
- "prepend-autoloader": false,
- "optimize-autoloader": true
- },
- "extra": {
- "merge-plugin": {
- "include": [
- "composer.local.json"
- ],
- "merge-dev": false
- }
- }
- }________________
- But as soon as I try to run Composer for the Maps extension,
- the Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found reappears.
- The autoload.php then reads:
- <?php
- // autoload.php @generated by Composer
- require_once __DIR__ . '/composer' . '/autoload_real.php';
- return ComposerAutoloaderInit7ff06b2bb7eddeb261f2acf9f06a570c::getLoader();
- EFFemeer (talk) 20:50, 16 December 2015 (UTC)
- Excellent. That's looks to be the default composer.json and would be expected to work.
- When you are adding additional Composer packages, there are two possible ways to do it.
- The recommended way is to create a composer.local.json file with a "require" section describing your additional packages. After you have created the appropriate composer.local.json file, run
composer updateto download and install your new packages. This method is recommended because it does not involve modifying the composer.json file shipped with MediaWiki which may be overwritten by a future software update. - The other possible method is to modify composer.json manually or using
composer require package_name_here. The drawback of this method is mentioned above, namely that applying a future MediaWiki update will be very likely to overwrite this file and clobber your changes. BDavis (WMF) (talk) 23:53, 16 December 2015 (UTC)
- The recommended way is to create a composer.local.json file with a "require" section describing your additional packages. After you have created the appropriate composer.local.json file, run
- I did exactly what you recommend, and there we go again: Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found. I then tried a skin Chameleon and Fatal error again.
- Hence I think we must conclude that something is wrong with my own system. Which means that I'll never be able to install extensions requiring Composer. Grrr...
- The only thing I still can say, is that I have seen that wiki seems to look after Maps.php under the root i.e. /wiki/Maps.php and not under /wiki/extensions/Maps.php.
- And now ...? Trying to restart from scratch? Or leaving things as they are and be happy with what we have? EFFemeer (talk) 11:35, 17 December 2015 (UTC)
- > And now ...? Trying to restart from scratch? Or leaving things as they are and be happy with what we have?
- I'm surely sorry for the trouble you are having and given the possibility that some tool has created an unsustainable installation environment with the new 1.26 release, I made an attempt myself to install MW 1.26 from scratch using Composer exclusively.
- The following "new" video [0] shows the whole process (~13 min including the installation of MW, Vector, Maps, and creating an example page to display a Map using annotated properties). Composer is to install:
- - Vector skin (~4 min)
- - Semantic MediaWiki ~2.3 (~6 min)
- - Maps ~3.2 (separate could have been installed by SM) (~9 min)
- - Semantic Maps ~2.3 (~10 min)
- - Create some sample pages with annotations and display a map (~11 min)
- From the video, I was unable to encounter your particular issue. Whether the video is helpful or not, I cannot say.
- [0] https://www.youtube.com/watch?v=zY5ugnyq7ig MWJames (talk) 16:59, 17 December 2015 (UTC)
- Very kind of you, MWJames. Unfortunately it doesn't solve my problem. One of the many extensions I have installed somehow seems to undermine the composer install process. My hope is that one of the experts might be able to tell me at which level this happens, so that we can try and repair. EFFemeer (talk) 18:44, 17 December 2015 (UTC)
- Version 1.26 hasn't changed anything! What next? Try with a skinny LocalSettings file? EFFemeer (talk) 10:39, 18 December 2015 (UTC)
- Finally arrived at a working configuration. But it was hard to get there! Thanks to all those who helped me out.
- == Installed software ==
- !Product
- !Version
- |-
- |MediaWiki
- | dir="ltr" |1.26.2
- |-
- |PHP
- | dir="ltr" |5.3.29 (apache2handler)
- |-
- |MySQL
- | dir="ltr" |5.0.95
- |}
- == Entry point URLs ==
- ! dir="ltr" lang="en" |Entry point
- ! dir="ltr" lang="en" |URL
- |-
- |Article path
- |
/wiki/$1 - |-
- |Script path
- |
/wiki - |-
- |index.php
- |
/wiki/index.php - |-
- |api.php
- |
/wiki/api.php - |-
- |load.php
- |
/wiki/load.php - |}
- == Installed skins ==
- ! class="mw-version-ext-col-label" |Skin
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |BootStrapSkin
- |1.0.43
- |- class="mw-version-ext"
- |Cologne Blue
- |–
- |- class="mw-version-ext"
- |Modern
- |–
- |- class="mw-version-ext"
- |MonoBook
- |–
- |- class="mw-version-ext"
- |Vector
- |–
- |}
- == Installed extensions ==
- ! colspan="2" id="sv-credits-semantic" |Semantic extensions
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |Semantic Forms Inputs
- |0.9.0 alpha
- |- class="mw-version-ext"
- |Semantic MediaWiki
- |2.2
- |- class="sv-space"
- | colspan="2" |
- |-
- ! colspan="2" id="sv-credits-specialpage" |Special pages
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |BlockandNuke
- |–
- |- class="mw-version-ext"
- |CategoryTree
- |–
- |- class="mw-version-ext"
- |Collection
- |1.7.0
- |- class="mw-version-ext"
- |ContactPage
- |2.2
- |- class="mw-version-ext"
- |Renameuser
- |–
- |- class="mw-version-ext"
- |Replace Text
- |0.9.7
- |- class="mw-version-ext"
- |Semantic Forms
- |3.4
- |- class="sv-space"
- | colspan="2" |
- |-
- ! colspan="2" id="sv-credits-parserhook" |Parser hooks
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |BrowserHistoryLink
- |1.1
- |- class="mw-version-ext"
- |CategoryGallery
- |1.0.1
- |- class="mw-version-ext"
- |CategoryTree
- |–
- |- class="mw-version-ext"
- |Cite
- |–
- |- class="mw-version-ext" id="mw-version-ext-DynamicPageList_.28third_party.29"
- |DynamicPageList (third party)
- |2.3.0
- |- class="mw-version-ext"
- |EImage
- |2.0.0
- |- class="mw-version-ext"
- |EmailForm
- |0.8.1
- |- class="mw-version-ext"
- |Embed Document
- |0.13
- |- class="mw-version-ext"
- |GoogleDocs4MW
- |1.1
- |- class="mw-version-ext"
- |InteractiveTimeline
- |0.1.0
- |- class="mw-version-ext"
- |Javascript Slideshow
- |1.2.3
- |- class="mw-version-ext"
- |Maps
- |3.1
- |- class="mw-version-ext"
- |NamespaceHTML
- |0.2
- |- class="mw-version-ext"
- |NoTitle
- |0.2.0
- |- class="mw-version-ext"
- |PDF Include
- |1.3
- |- class="mw-version-ext"
- |TimelineTable
- |2.0
- |- class="mw-version-ext"
- |VideoPlayer
- |1
- |- class="mw-version-ext"
- |Widgets
- |1.2
- |- class="mw-version-ext"
- |YouTube
- |1.9.0
- |- class="sv-space"
- | colspan="2" |
- |-
- ! colspan="2" id="sv-credits-antispam" |Spam prevention
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |Anti-spam by CleanTalk
- |1.1
- |- class="mw-version-ext"
- |ConfirmEdit
- |1.4.0
- |- class="sv-space"
- | colspan="2" |
- |-
- ! colspan="2" id="sv-credits-datavalues" |DataValues
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |DataValues
- |0.1.1
- |- class="mw-version-ext"
- |DataValues Common
- |0.2.3
- |- class="mw-version-ext"
- |DataValues Geo
- |0.2
- |- class="mw-version-ext"
- |DataValues Interfaces
- |0.1.5
- |- class="mw-version-ext"
- |DataValues Validators
- |0.1.2
- |- class="sv-space"
- | colspan="2" |
- |-
- ! colspan="2" id="sv-credits-other" |Other
- |-
- ! class="mw-version-ext-col-label" |Extension
- ! class="mw-version-ext-col-label" |Version
- |- class="mw-version-ext"
- |BetaFeatures
- |0.1
- |- class="mw-version-ext"
- |CollapsibleVector
- |0.1.10
- |- class="mw-version-ext"
- |Gadgets
- |–
- |- class="mw-version-ext"
- |GeoData
- |–
- |- class="mw-version-ext"
- |MultimediaViewer
- |0.3.0
- |- class="mw-version-ext"
- |ParserHooks
- |1.4.0
- |- class="mw-version-ext"
- |PCR GUI Inserts
- |1.0
- |- class="mw-version-ext"
- |PHPExcel
- |1.8.0
- |- class="mw-version-ext"
- |QuestyCaptcha
- |–
- |- class="mw-version-ext"
- |Validator
- |2.0.4
- |}
- == Installed libraries ==
- !Library
- !Version
- |-
- |composer/semver
- | dir="auto" |1.0.0
- |-
- |cssjanus/cssjanus
- | dir="auto" |1.1.1
- |-
- |liuggio/statsd-php-client
- | dir="auto" |1.0.16
- |-
- |mediawiki/at-ease
- | dir="auto" |1.1.0
- |-
- |oojs/oojs-ui
- | dir="auto" |0.12.12
- |-
- |oyejorge/less.php
- | dir="auto" |1.7.0.9
- |-
- |psr/log
- | dir="auto" |1.0.0
- |-
- |wikimedia/assert
- | dir="auto" |0.2.2
- |-
- |wikimedia/cdb
- | dir="auto" |1.3.0
- |-
- |wikimedia/composer-merge-plugin
- | dir="auto" |1.3.0
- |-
- |wikimedia/ip-set
- | dir="auto" |1.0.1
- |-
- |wikimedia/utfnormal
- | dir="auto" |1.0.3
- |-
- |wikimedia/wrappedstring
- | dir="auto" |2.0.0
- |-
- |zordius/lightncandy
- | dir="auto" |0.21
- |}
- == Parser extension tags ==
EFFemeer (talk) 21:59, 23 December 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.