sg-cookie-optin 扩展抛出没有名为 SGalinski\SgCookieOptin\Hook\LicenceCheckHook

问题描述

已下载此 https://packagist.org/packages/sgalinski/sg-cookie-optin

已将文件复制到服务器,在 ext 管理器中激活扩展。 突然前端和后端不再工作了。

根据PackageStates.php手动删除扩展 https://docs.typo3.org/m/typo3/guide-installation/master/en-us/ExtensionInstallation/Index.html

前端工作正常,后端依旧报错

No class named SGalinski\SgCookieOptin\Hook\LicenceCheckHook

    in /home/sc/wwn/typo3_src-10.4.10/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 3340
                        throw new \InvalidArgumentException($errorMsg,1294585865);
                    }
                } else {
                    $errorMsg = 'No class named ' . $parts[0];
                    throw new \InvalidArgumentException($errorMsg,1294585866);
                }
            } elseif (function_exists($funcName) && is_callable($funcName)) {
                // It's a function
                $content = call_user_func_array($funcName,[&$params,&$ref]);

我确实在配置文件中设置了密钥和输出文件夹 后端不再工作后我没有做的事情:

3.使用“模板”后端模块将名为“Cookie Optin”的静态 TypoScript 添加到您的实例中。 打开TYPO3后端的“模板”模块。 转到页面树中的根站点页面。 在顶部的选择中选择“信息/修改”。 单击“编辑整个模板记录”按钮。 选择选项卡“包括”。 在名称为“Include static (from extensions)”的多选框中选择模板“Cookie Optin (sg_cookie_optin)” 节省 4. 进入“Cookie Opt In”后端模块,配置并保存一次。

知道如何解决这个问题吗?相当卡住 atm。

解决方法

您安装的安装工具应该仍然有效。尝试打开 yourdomain.tld/typo3/install.php

要启用安装工具,必须在目录 ENABLE_INSTALL_TOOL 中创建文件 typo3conf/。确保文件没有像 .txt 这样的文件扩展名。

然后登录安装工具并转到维护 => 刷新 TYPO3 和 PHP 缓存并刷新所有缓存。

那么后端应该可以工作了。

如果无法访问安装工具,请尝试查找文件夹 var/Cache。它很可能位于typo3temp。从缓存文件夹中删除所有文件和子文件夹。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...