Sterc / seosuite

This repository contains the SEOSuite 2.x MODX extra.
GNU General Public License v2.0
13 stars 18 forks source link

SeoSuite's dashboard widget shows error #80

Closed bYemma closed 1 year ago

bYemma commented 1 year ago

Problem: $this->modx->seosuite is null in SeoSuite's dashboard widget in manager.

The following error message is shown:

Error: Call to a member function getLangs() on null
    /[...]/core/components/seosuite/elements/widgets/seosuite.widget.php:19
    MODX\Revolution\modDashboardWidgetInterface->process() in /[...]/core/src/Revolution/modDashboardWidget.php:134
    MODX\Revolution\modDashboardWidget->getContent() in /[...]/core/src/Revolution/modDashboard.php:122
    MODX\Revolution\modDashboard->render() in /[...]/mgr/controllers/default/welcome.class.php:109
    WelcomeManagerController->process() in /[...]/core/src/Revolution/modManagerController.php:178
    MODX\Revolution\modManagerController->render() in /[...]/core/src/Revolution/modManagerResponse.php:114
    MODX\Revolution\modManagerResponse->outputContent() in /[...]/core/src/Revolution/modManagerRequest.php:173
    MODX\Revolution\modManagerRequest->prepareResponse() in /[...]/core/src/Revolution/modManagerRequest.php:143
    MODX\Revolution\modManagerRequest->handleRequest() in /[...]/mgr/index.php:60

PHP 7.4.33 MODX 3.0.2-pl SeoSuite v3.1.1-rc3

joeke commented 1 year ago

@bYemma You're right, but should be fixed now. I've pushed new package version 3.1.1-rc4 which fixes this issue. https://modx.com/extras/package/seosuite

bYemma commented 1 year ago

When I install the new package there's now an error: Installation fehlgeschlagen mit Pimple\Exception\FrozenServiceException in /core/vendor/pimple/pimple/src/Pimple/Container.php:85: Cannot override frozen service "seosuite".

Is this related to the changes?