-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoJson expected value of type array or object, null given #768
Comments
Try get latest version, has GeoJSON fix https://github.com/ProfessionalWiki/Maps/blob/master/RELEASE-NOTES.md |
Oh. I just checked recently & thought I was on the latest version. I should’ve checked again I guess. Thanks.
… On Feb 19, 2024, at 6:13 PM, Jeroen De Dauw ***@***.***> wrote:
Try get latest version, has GeoJSON fix https://github.com/ProfessionalWiki/Maps/blob/master/RELEASE-NOTES.md
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Please reopen if present on master |
Upgraded to 10.1.1 and got new error on 1.39.5. So I upgraded to 1.39.6 and got the same error. MediaWiki 1.39.6 [32fd9786046ed34a7f1a4122] /mediawiki-1.39.6/index.php/GeoJson:ArdclachParish ParseError: syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) Backtrace: from C:\xampp\htdocs\mediawiki-1.39.6\extensions\Maps\src\GeoJsonPages\Semantic\SubObjectBuilder.php(25) |
That is a different error, but one that indicates why you are running into problems. Seems like we broke PHP 7.4 compatibility in some small part of the extension. |
This was fixed by #764 |
This is part of the newly released Maps 10.1.2 |
Thanks Jeroen. Appreciate it. This is what I'm getting now.... https://www.rosssurnameproject.net/wiki/index.php/GeoJson:ApplecrossParish MediaWiki 1.39.6 Not sure what to make of this. Don't know if this is something I'm not doing right or if this is the extension. Although, I know these files have actually rendered as maps previously. Same thing is happening on my local xampp install. Also, sorry. Apparently, I don't know how to 'reopen' something. |
Only maintainers can reopen issues It's also bad practice to reuse an issue for different things You are now seemingly running into what this PR is attempting to fix: #767 (so the issue is already tracked) |
I'm getting the error '/mediawiki-1.39.5/index.php?title=GeoJson:ApplecrossMonastery&action=submit GeoJson\Exception\UnserializationException: GeoJson expected value of type array or object, null given'
I'm running:
MediaWiki 1.39.5
PHP 7.4.33 (apache2handler)
MariaDB 10.4.27-MariaDB
Lua 5.1.5
Maps 10.1.0
on xampp on Windows 10.
I know there was a previous issue that required changing a 'if ( $this->parserOutput !== null )' statement, so I tried that. It didn't help.
This is the full error...
Thanks.
[600b8651a67905feb5ffab68] /mediawiki-1.39.5/index.php?title=GeoJson:ApplecrossMonastery&action=submit GeoJson\Exception\UnserializationException: GeoJson expected value of type array or object, null given
Backtrace:
from C:\xampp\htdocs\mediawiki-1.39.5\vendor\jmikola\geojson\src\Exception\UnserializationException.php(24)
#0 C:\xampp\htdocs\mediawiki-1.39.5\vendor\jmikola\geojson\src\GeoJson.php(77): GeoJson\Exception\UnserializationException::invalidValue(string, NULL, string)
#1 C:\xampp\htdocs\mediawiki-1.39.5\extensions\Maps\src\GeoJsonPages\Semantic\SubObjectBuilder.php(21): GeoJson\GeoJson::jsonUnserialize(NULL)
#2 C:\xampp\htdocs\mediawiki-1.39.5\extensions\Maps\src\GeoJsonPages\Semantic\SemanticGeoJsonStore.php(29): Maps\GeoJsonPages\Semantic\SubObjectBuilder->getSubObjectsFromGeoJson(string)
#3 C:\xampp\htdocs\mediawiki-1.39.5\extensions\Maps\src\GeoJsonPages\GeoJsonContentHandler.php(49): Maps\GeoJsonPages\Semantic\SemanticGeoJsonStore->storeGeoJson(string)
#4 C:\xampp\htdocs\mediawiki-1.39.5\includes\content\ContentHandler.php(1721): Maps\GeoJsonPages\GeoJsonContentHandler->fillParserOutput(Maps\GeoJsonPages\GeoJsonContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
#5 C:\xampp\htdocs\mediawiki-1.39.5\includes\content\Renderer\ContentRenderer.php(47): ContentHandler->getParserOutput(Maps\GeoJsonPages\GeoJsonContent, MediaWiki\Content\Renderer\ContentParseParams)
#6 C:\xampp\htdocs\mediawiki-1.39.5\includes\Revision\RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(Maps\GeoJsonPages\GeoJsonContent, Title, integer, ParserOptions, boolean)
#7 C:\xampp\htdocs\mediawiki-1.39.5\includes\Revision\RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(Maps\GeoJsonPages\GeoJsonContent, boolean)
#8 C:\xampp\htdocs\mediawiki-1.39.5\includes\Revision\RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#9 C:\xampp\htdocs\mediawiki-1.39.5\includes\Revision\RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#10 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision{closure}(MediaWiki\Revision\RenderedRevision, array)
#11 C:\xampp\htdocs\mediawiki-1.39.5\includes\Revision\RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#12 C:\xampp\htdocs\mediawiki-1.39.5\includes\Storage\DerivedPageDataUpdater.php(1438): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#13 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#14 C:\xampp\htdocs\mediawiki-1.39.5\includes\edit\PreparedEdit.php(97): call_user_func(array)
#15 C:\xampp\htdocs\mediawiki-1.39.5\extensions\SemanticMediaWiki\src\MediaWiki\EditInfo.php(102): MediaWiki\Edit\PreparedEdit->getOutput()
#16 C:\xampp\htdocs\mediawiki-1.39.5\extensions\SemanticMediaWiki\src\MediaWiki\Hooks\RevisionFromEditComplete.php(84): SMW\MediaWiki\EditInfo->fetchEditInfo()
#17 C:\xampp\htdocs\mediawiki-1.39.5\extensions\SemanticMediaWiki\src\MediaWiki\Hooks.php(620): SMW\MediaWiki\Hooks\RevisionFromEditComplete->process(Title)
#18 C:\xampp\htdocs\mediawiki-1.39.5\includes\HookContainer\HookContainer.php(338): SMW\MediaWiki\Hooks->onRevisionFromEditComplete(WikiPage, MediaWiki\Revision\RevisionStoreRecord, boolean, User, array)
#19 C:\xampp\htdocs\mediawiki-1.39.5\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#20 C:\xampp\htdocs\mediawiki-1.39.5\includes\HookContainer\HookRunner.php(3227): MediaWiki\HookContainer\HookContainer->run(string, array)
#21 C:\xampp\htdocs\mediawiki-1.39.5\includes\Storage\PageUpdater.php(1538): MediaWiki\HookContainer\HookRunner->onRevisionFromEditComplete(WikiPage, MediaWiki\Revision\RevisionStoreRecord, boolean, User, array)
#22 C:\xampp\htdocs\mediawiki-1.39.5\includes\Storage\PageUpdater.php(942): MediaWiki\Storage\PageUpdater->doCreate(CommentStoreComment)
#23 C:\xampp\htdocs\mediawiki-1.39.5\includes\EditPage.php(2597): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
#24 C:\xampp\htdocs\mediawiki-1.39.5\includes\EditPage.php(1905): EditPage->internalAttemptSave(array, boolean, boolean)
#25 C:\xampp\htdocs\mediawiki-1.39.5\includes\EditPage.php(722): EditPage->attemptSave(array)
#26 C:\xampp\htdocs\mediawiki-1.39.5\includes\actions\EditAction.php(73): EditPage->edit()
#27 C:\xampp\htdocs\mediawiki-1.39.5\includes\actions\SubmitAction.php(38): EditAction->show()
#28 C:\xampp\htdocs\mediawiki-1.39.5\includes\MediaWiki.php(542): SubmitAction->show()
#29 C:\xampp\htdocs\mediawiki-1.39.5\includes\MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#30 C:\xampp\htdocs\mediawiki-1.39.5\includes\MediaWiki.php(904): MediaWiki->performRequest()
#31 C:\xampp\htdocs\mediawiki-1.39.5\includes\MediaWiki.php(562): MediaWiki->main()
#32 C:\xampp\htdocs\mediawiki-1.39.5\index.php(50): MediaWiki->run()
#33 C:\xampp\htdocs\mediawiki-1.39.5\index.php(46): wfIndexMain()
#34 {main}Product Version
MediaWiki 1.39.5
PHP 7.4.33 (apache2handler)
MariaDB 10.4.27-MariaDB
ICU 66.1
Lua 5.1.5Maps 10.1.0
The text was updated successfully, but these errors were encountered: