Skip to content

Unable to connect to Craft ID from CP #10019

@ryssbowh

Description

@ryssbowh

Description

Hi,

I'm unable to connect to my Craft ID account from within the CP, after I login again I get the following :

    "error":"Argument 1 passed to craft\\helpers\\DateTimeHelper::secondsToInterval() must be of the type int, null given, called in /home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/services/PluginStore.php on line 76",
    "exception":"TypeError",
    "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/helpers/DateTimeHelper.php",
    "line":494,
    "trace":[
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/services/PluginStore.php",
            "line":76,
            "function":"secondsToInterval",
            "class":"craft\\helpers\\DateTimeHelper",
            "type":"::"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/controllers/PluginStoreController.php",
            "line":203,
            "function":"saveToken",
            "class":"craft\\services\\PluginStore",
            "type":"->"
        },
        {
            "function":"actionSaveToken",
            "class":"craft\\controllers\\PluginStoreController",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/yiisoft/yii2/base/InlineAction.php",
            "line":57,
            "function":"call_user_func_array"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/yiisoft/yii2/base/Controller.php",
            "line":181,
            "function":"runWithParams",
            "class":"yii\\base\\InlineAction",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/yiisoft/yii2/base/Module.php",
            "line":534,
            "function":"runAction",
            "class":"yii\\base\\Controller",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/web/Application.php",
            "line":287,
            "function":"runAction",
            "class":"yii\\base\\Module",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/web/Application.php",
            "line":596,
            "function":"runAction",
            "class":"craft\\web\\Application",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/craftcms/cms/src/web/Application.php",
            "line":266,
            "function":"_processActionRequest",
            "class":"craft\\web\\Application",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/vendor/yiisoft/yii2/base/Application.php",
            "line":392,
            "function":"handleRequest",
            "class":"craft\\web\\Application",
            "type":"->"
        },
        {
            "file":"/home/pmscomriedevelop/public_html/web/index.php",
            "line":22,
            "function":"run",
            "class":"yii\\base\\Application",
            "type":"->"
        }
    ]

I have seen this several times before but forgot to report.

Steps to reproduce

  • Click on Sign into Craft ID
  • Approve authorisation
  • Login again

Additional info

  • Craft version: 3.7.18
  • PHP version: 7.4
  • Database driver & version: mysql 5.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions