简体   繁体   English

TYPO3登录错误:不应静态调用非静态方法

[英]TYPO3 login error: non-static method should not be called statically

I have an error occuring when trying to login to my TYPO3 backend. 尝试登录到我的TYPO3后端时发生错误。 Unfortunately I dont know much php and dont know how to fix it... 不幸的是,我不太了解php,也不知道如何解决它。

This is the error: 这是错误:

PHP Runtime Notice: call_user_func() expects parameter 1 to be a valid callback, non-static method Tx_Extbase_Utility_Extension::configureModule() should not be called statically in /www/htdocs/w00754c9/t3lib/class.t3lib_loadmodules.php line 228 PHP运行时声明:call_user_func()希望参数1是有效的回调,非静态方法Tx_Extbase_Utility_Extension :: configureModule()不应在/www/htdocs/w00754c9/t3lib/class.t3lib_loadmodules.php第228行中静态调用

And this is the code of class.t3lib_loadmodules.php, from line 219 on: 这是class.t3lib_loadmodules.php的代码,从第219行开始:

function checkMod($name, $fullpath) {
    if ($name == 'user_ws' && !t3lib_extMgm::isLoaded('version')) {
        return FALSE;
    }

        // Check for own way of configuring module
    if (is_array($GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'])) {
        $obj = $GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'];
        if (is_callable($obj)) {
            $MCONF = call_user_func($obj, $name, $fullpath);
            if ($this->checkModAccess($name, $MCONF) !== TRUE) {
                return FALSE;
            }
            return $MCONF;
        }
    }

Line 228 is this one : $MCONF = call_user_func($obj, $name, $fullpath); 第228行是这样的: $MCONF = call_user_func($obj, $name, $fullpath);

Can anyone help please? 有人可以帮忙吗?

Thank you so much! 非常感谢!

It seems you use an newer PHP Version than TYPO3 needed. 似乎您使用的PHP版本比所需的TYPO3更新。 So it comes to errors. 因此涉及到错误。

You have two options: you can update your TYPO3 instance or supress the strict error message. 您有两个选择:您可以更新TYPO3实例,也可以禁止显示严格的错误消息。

The second can be reached by adding ^ E_STRICT to your php error reporting var in your webserver or in the TYPO3 install tool. 通过将^ E_STRICT添加到Web服务器或TYPO3安装工具中的php错误报告^ E_STRICT ,可以达到第二个目标。

I personaly recommend option one ;-) 我个人推荐选项一;-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM