Describe the issue / Steps to reproduce:
full xml export of a confluence space
installed bluespice via zip on my host, and added following things in my Localesettings.php
$wgShowExceptionDetails = true;
$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp','svg', 'unknown', ];
// Define constants for my additional namespaces.
//
//
// Define constants for my additional namespaces.
define("NS_DS", 2185756678); // This MUST be even.
define("NS_DS_TALK", 2185756679); // This MUST be the following odd integer.
// Add namespaces.
$wgExtraNamespaces[NS_DS] = "Demospace";
$wgExtraNamespaces[NS_DS_TALK] = "Demospace_talk"; // Note underscores in the namespace name.
I unzipped my xml dump, used the confluence migration tool and got this output:
Box Requirements Checker
========================
> Using PHP 8.2.27
> PHP is using the following php.ini file:
/etc/php/8.2/cli/php.ini
> Checking Box requirements:
✔ The package "psr/log" requires a version matching ">=5.3.0".
✔ The package "symfony/console" requires a version matching "^5.5.9|>=7.0.8".
✔ The package "symfony/debug" requires a version matching ">=7.1.3".
✔ The package "symfony/polyfill-ctype" requires a version matching ">=7.2".
✔ The package "symfony/polyfill-mbstring" requires a version matching ">=7.2".
✔ The package "symfony/yaml" requires a version matching ">=7.1.3".
✔ The application requires the extension "dom".
[OK] Your system is ready to run the application.
Source: /tmp/confluence/input
Destination: /tmp/confluence/workspace
Fetching file list ...done.
Finding users
- 'Max...
Finding namespaces
- DS (ID:2185756677)
Finding space details
- DS
Finding SpaceDescription body id's
- 2185756678
Finding pages
- 'DS:Seite_2' (ID:2445934598)
- 'DS:Seite_1' (ID:2445312012)
- 'DS:Main_Page' (ID:2185756750)
Finding attachments
- 'DS_netmgr.png'
- 'DS_WhatsApp_Image_2024-12-18_at_10.23.37.jpeg'
- 'DS_DS.unknown'
Done.
-
when looking for a example page in my demo namespace, I cant find it, even after I created it a few seconds ago.
-
thumbnail of png wont render
-
Do I need to change the ID of the demo namespace to a even number, like I did in the first code block, or is that not necessary?
-
What manual steps are required to do first, before importing works?
-
Do i just have to define the namespace in the Localsettings.php and then import or do I have to manually create the namespace via the Namespacemanager?
im literally clueless
<?php
return array (
2185756677 =>
array (
'id' => 2185756677,
'key' => 'DS',
'name' => 'Demo Space',
'creationDate' => '2024-07-10 11:27:00.301',
'lastModificationDate' => '2024-07-10 11:27:00.301',
'spaceType' => 'global',
'spaceStatus' => 'CURRENT',
'description' => 2185756676,
'homePage' => 2185756750,
'creator' => '8a7f808a7e787e81017e7bb91c47019e',
'lastModifier' => '8a7f808a7e787e81017e7bb91c47019e',
),
);
-
also the namespaces dont show in the sidebar, how can I change that?
-
also all pages on the bottom of the wiki live data privarcy, impressium, about etc. are also empty, what could be the issue?
What was the error message/error log?
PHP Deprecated: ParserOutput::mCategories public read access deprecated [Called from MediaWiki\Extension\DynamicPageList3\Hooks::endReset in /var/www/bluespice/w/extensions/DynamicPageList3/includes/Hooks.php at line 559] in /var/www/bluespice/w/includes/debug/MWDebug.php on line 381
PHP Deprecated: MediaWiki\Extension\NotifyMe\MediaWiki\Content\MailTemplate overrides fillParserOutput which was deprecated in MediaWiki 1.38. [Called from MediaWiki\Content\Renderer\ContentRenderer::getParserOutput in /var/www/bluespice/w/includes/content/Renderer/ContentRenderer.php at line 47] in /var/www/bluespice/w/includes/debug/MWDebug.php on line 381
PHP Deprecated: Use of AbstractContent::getParserOutput was deprecated in MediaWiki 1.38. [Called from ContentHandler::callDeprecatedContentGPO in /var/www/bluespice/w/includes/content/ContentHandler.php at line 1878] in /var/www/bluespice/w/includes/debug/MWDebug.php on line 381
[2025-02-09T23:22:34.161418+01:00] error.ERROR: [115ef0e0bf7b031cf32af728] [no req] PHP Warning: Array to string conversion {"exception":"[object] (ErrorException(code: 0): PHP Warning: Array to string conversion at /var/www/bluespice/w/includes/TemplateParser.php(171) : eval()'d code:32)","exception_url":"[no req]","reqId":"115ef0e0bf7b031cf32af728","caught_by":"mwe_handler"} {"host":"mri-05.test.aspicon.lan","wiki":"bluespice","mwversion":"1.39.11","reqId":"115ef0e0bf7b031cf32af728","cli_argv":"maintenance/rebuildall.php"}
[2025-02-09T23:22:34.162950+01:00] error-json.ERROR: {"id":"115ef0e0bf7b031cf32af728","type":"ErrorException","file":"/var/www/bluespice/w/includes/TemplateParser.php(171) : eval()'d code","line":32,"message":"PHP Warning: Array to string conversion","code":0,"url":null,"caught_by":"mwe_handler","backtrace":[{"file":"/var/www/bluespice/w/includes/TemplateParser.php(171) : eval()'d code","line":32,"function":"handleError","class":"MWExceptionHandler","type":"::"},{"file":"/var/www/bluespice/w/includes/TemplateParser.php","line":291,"function":"{closure}","class":"TemplateParser","type":"->"},{"file":"/var/www/bluespice/w/extensions/NotifyMe/src/Channel/Email/MailContentProvider.php","line":109,"function":"processTemplate","class":"TemplateParser","type":"->"},{"file":"/var/www/bluespice/w/extensions/NotifyMe/src/MediaWiki/Content/MailTemplate.php","line":79,"function":"getHtmlFromData","class":"MediaWiki\\Extension\\NotifyMe\\Channel\\Email\\MailContentProvider","type":"->"},{"file":"/var/www/bluespice/w/includes/content/AbstractContent.php","line":590,"function":"fillParserOutput","class":"MediaWiki\\Extension\\NotifyMe\\MediaWiki\\Content\\MailTemplate","type":"->"},{"file":"/var/www/bluespice/w/includes/content/ContentHandler.php","line":1878,"function":"getParserOutput","class":"AbstractContent","type":"->"},{"file":"/var/www/bluespice/w/includes/content/ContentHandler.php","line":1698,"function":"callDeprecatedContentGPO","class":"ContentHandler","type":"->"},{"file":"/var/www/bluespice/w/includes/content/Renderer/ContentRenderer.php","line":47,"function":"getParserOutput","class":"ContentHandler","type":"->"},{"file":"/var/www/bluespice/w/includes/Revision/RenderedRevision.php","line":265,"function":"getParserOutput","class":"MediaWiki\\Content\\Renderer\\ContentRenderer","type":"->"},{"file":"/var/www/bluespice/w/includes/Revision/RenderedRevision.php","line":237,"function":"getSlotParserOutputUncached","class":"MediaWiki\\Revision\\RenderedRevision","type":"->"},{"file":"/var/www/bluespice/w/includes/Revision/RevisionRenderer.php","line":236,"function":"getSlotParserOutput","class":"MediaWiki\\Revision\\RenderedRevision","type":"->"},{"file":"/var/www/bluespice/w/includes/Revision/RevisionRenderer.php","line":158,"function":"combineSlotOutput","class":"MediaWiki\\Revision\\RevisionRenderer","type":"->"},{"function":"MediaWiki\\Revision\\{closure}","class":"MediaWiki\\Revision\\RevisionRenderer","type":"->"},{"file":"/var/www/bluespice/w/includes/Revision/RenderedRevision.php","line":199,"function":"call_user_func"},{"file":"/var/www/bluespice/w/includes/Storage/DerivedPageDataUpdater.php","line":1438,"function":"getRevisionParserOutput","class":"MediaWiki\\Revision\\RenderedRevision","type":"->"},{"file":"/var/www/bluespice/w/includes/Storage/DerivedPageDataUpdater.php","line":1470,"function":"getCanonicalParserOutput","class":"MediaWiki\\Storage\\DerivedPageDataUpdater","type":"->"},{"file":"/var/www/bluespice/w/includes/deferred/RefreshSecondaryDataUpdate.php","line":85,"function":"getSecondaryDataUpdates","class":"MediaWiki\\Storage\\DerivedPageDataUpdater","type":"->"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":474,"function":"doUpdate","class":"RefreshSecondaryDataUpdate","type":"->"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":399,"function":"attemptUpdate","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":214,"function":"run","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdatesScope.php","line":264,"function":"{closure}","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdatesScope.php","line":196,"function":"processStageQueue","class":"DeferredUpdatesScope","type":"->"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":206,"function":"processUpdates","class":"DeferredUpdatesScope","type":"->"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":281,"function":"doUpdates","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/deferred/DeferredUpdates.php","line":134,"function":"tryOpportunisticExecute","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/Storage/DerivedPageDataUpdater.php","line":1803,"function":"addUpdate","class":"DeferredUpdates","type":"::"},{"file":"/var/www/bluespice/w/includes/page/WikiPage.php","line":2136,"function":"doSecondaryDataUpdates","class":"MediaWiki\\Storage\\DerivedPageDataUpdater","type":"->"},{"file":"/var/www/bluespice/w/maintenance/refreshLinks.php","line":280,"function":"doSecondaryDataUpdates","class":"WikiPage","type":"->"},{"file":"/var/www/bluespice/w/maintenance/refreshLinks.php","line":203,"function":"fixLinksFromArticle","class":"RefreshLinks","type":"::"},{"file":"/var/www/bluespice/w/maintenance/refreshLinks.php","line":87,"function":"doRefreshLinks","class":"RefreshLinks","type":"->"},{"file":"/var/www/bluespice/w/maintenance/rebuildall.php","line":60,"function":"execute","class":"RefreshLinks","type":"->"},{"file":"/var/www/bluespice/w/maintenance/includes/MaintenanceRunner.php","line":309,"function":"execute","class":"RebuildAll","type":"->"},{"file":"/var/www/bluespice/w/maintenance/doMaintenance.php","line":85,"function":"run","class":"MediaWiki\\Maintenance\\MaintenanceRunner","type":"->"},{"file":"/var/www/bluespice/w/maintenance/rebuildall.php","line":67,"args":["string"],"function":"require_once"}]} {"private":true} []
PHP Warning: Array to string conversion in /var/www/bluespice/w/includes/TemplateParser.php(171) : eval()'d code on line 32
Deleting illegal entries from the links tables...
Screenshots
- Expected behavior:
that the namespace is imported right, and the pages are visible in the namespace mainpage, and im able to find the Namespace via the search bar
System info:
- OS: [ubuntu 20.04]
- Server: [e.g. Apache 2.4.41]
- PHP: [8.2.27]
- Database:[10.3.39-MariaDB-0ubuntu0.20.04.2]
- BlueSpice version: [free 4.5.4 deployed via zip]
- Browser version: [chromium 133.0.6943.53 ]
edit: I would also add more pictures to this question, for better understanding, can you unlock this function for me?