Jump to content

Presta 8.0.4 and module Edition Basic


Recommended Posts

Hello,

I have fresh install of Presta 8.0.4 and problem with module PsEditionBasic.
When trying to go to home page of admin panel / dashboard I see error:

Attempted to call an undefined method named "getConfiguration" of class "PrestaShop\Module\PsEditionBasic\Controller\HOME".

Error comes from :

 private function buildAdminUrl(string $routeName): string
    {
   
        $router = $this->get('router');
          
       	$scheme = $this->getConfiguration()->get('PS_SSL_ENABLED') ? 'https://' : 'http://';

        return $scheme . $_SERVER['HTTP_HOST'] . $router->generate($routeName);
    }

and in HOME class of module there is:

namespace PrestaShop\Module\PsEditionBasic\Controller;

class HOME extends AdminPsEditionBasicController
{
    // TODO: remove in v9 https://github.com/PrestaShop/PrestaShop/milestone/85
    // Hack to redirect HOME controller to AdminPsEditionBasicHomepageController
}

Module is in v1.0.20 (not possible to update).

PHP: 8.1.33
PrestaShop: 8.0.4
MySQL: 10.3.39-MariaDB

It looks like default module has a problem with accessing "getConfiguration". ?

Am I missing something?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...