我最近将我的Prestashop安装移到了一个新的主机上,网站照常运行。单击表上的一个页面/url)时,我总是得到以下错误:
Fatal error: Uncaught exception 'ReflectionException' with message 'Class AuthController_ does not exist' in /path/to/prestashop/folder/classes/Meta.php:71
我有一个名为AuthController的控制器,它执行多个操作,例如登录-注销。我决定只使用一个控制器,而不是两个不同的控制器。当我在资源管理器上访问/login时,它返回Target class [AuthController] does not exist.web.phpuse App\Http\Controllers\ContactUsFormController;
use App\Http\Controllers\AuthCont
所讨论的界面是从Prestashop来的。它用在一个模块里。问题是,为了与Prestashop的多个版本兼容,代码必须处理不存在WidgetInterface的情况。在测试接口的存在并随后导入它时,我在考虑如下:
if (interface_exists('PrestaShop\PrestaShop\Core\Module\WidgetInterface
使用以下代码在我的username中使用email而不是在AuthController中使用email: * Set the login system to use username insteadgetFailedLoginMessage(),}Undefined property: App\Http\Controllers\Auth\AuthController