提问人:RCI 提问时间:11/13/2023 最后编辑:RiggsFollyRCI 更新时间:11/13/2023 访问量:28
未捕获的错误:调用未定义的方法 ControllerProductProduct::redirect() [已关闭]
Uncaught Error: Call to undefined method ControllerProductProduct::redirect() [closed]
问:
我有这个代码,任何人都知道我能做什么?Opencart v. 3.0.3.6 版
谢谢!
//$this->model_account_download->updateRemaining($this->request->get['download_id']);
exit;
} else {
exit('Error: Could not find file ' . $file . '!');
}
} else {
exit('Error: Headers already sent out!');
}
} else {
$this->redirect(HTTP_SERVER . 'index.php?route=account/download');
}
}
日志:
堆栈跟踪:
#0 /home/artbuild/public_html/storage/modification/system/engine/action.php(87): ControllerProductProduct->download() #1 /home/artbuild/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #2 /home/artbuild/public_html/storage/modification/system/engine/action.php(87): ControllerStartupRouter->index()
#3 /home/artbuild/public_html/storage/modification/system/engine/router.php(72): Action->execute(Object(注册表)) #4 /home/artbuild/public_html/storage/modification/system/engine/router.php(61): Router->execute(Object(Action)) #5 /home/artbuild/public_html/system/framework.php(165): Router->dispatch(Object(Action), Object(Action))
#6 /home/artbuild/public_html/system/startup.php(104): require_once('/home/artbuild/...') #7 /home/artbuild/public_html/index.php(19): start('catalog')
#8 {main} 在/home/artbuild/public_html/storage/modification/catalog/controller/product/product.php上883行
答: 暂无答案
下一个:从价格TWIG中提取降低
评论