Problem with luya-module-account

I have installed this luya-module-account module
But i got this problem

Call to a member function getUserIdentity() on null

hello, show your config file with key modules

(if you have included this module https://github.com/luyadev/luya-module-account, its not finished, its more abandoned then the active developed :slight_smile: you might fork it for your own use cases)

1 Like
        // See all frontend CMS options: https://luya.io/api/luya-cms-frontend-Module
        'cms' => [
            'class' => 'luya\cms\frontend\Module',
            'contentCompression' => true, // compressing the cms output (removing white spaces and newlines)
        ],
        // See all admin CMS options: https://luya.io/api/luya-cms-admin-Module
        'cmsadmin' => [
            'class' => 'luya\cms\admin\Module',
        ],

        // ...
        'accountfrontend' => [
            'class' => 'luya\account\frontend\Module',
            'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
        ],
        'accountadmin' => 'luya\account\admin\Module',
        // ...

        'news' => [
        'class' => 'luya\news\frontend\Module',
        'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
        ],
        'newsadmin' => 'luya\news\admin\Module',

        'forms' => [
            'class' => 'luya\forms\Module',
        ],

u dont have ‘account’ module u got ‘accountadmin’ module

like nadar said, better to fork it and expand. I use it in my e-commerce module, but its not done yet to publish

No, this ‘accountadmin’ is for adminpanel, it is account module

you use $app->getModule(‘account’) and its null. I dont see in ur modules this key

Oh, you are correct! @tomekat
Now I got this
Do you have another solution?

As already mentioned @mrtrinhvn. This module is abandoned. This function url has been removed about 4 years ago :slight_smile: So you either fork it or send us pull requests to fix this errors. I assume you can see the stack trace, the function does not exist (anymore).

1 Like
1 Like