我的调试堆栈说:没有找到JHtml映像。
调用堆栈 函数定位 1 JApplicationCms->execute() C:\xampp\htdocs\test\index.php:49 2 JApplicationSite->doExecute() C:\xampp\htdocs\test\libraries\cms\application\site.php:230 3 JApplicationSite->C:\xampp\htdocs\test\libraries\cms\application\site.php:230 4 JComponentHelper::renderComponent() C:\xampp\htdocs\test\libraries\cms\application\site.php:191 5 JComponentHelper::executeComponent() C:\xampp\htdocs\test\libraries\cms\component\helper.php:380 6 require_once() C:\xampp\htdocs\test\libraries\cms\component\helper.php:405 7 JControllerLegacy->execute() C:\xampp\htdocs\test\components\com_incidentmap\incidentmap.php:131 8 IncidentController->display() C:\xampp\htdocs\test\libraries\legacy\controller\legacy.php:728 9 JControllerLegacy->display() C:\xampp\htdocs\test\components>display() C:\xampp\htdocs\test\libraries\legacy\controller\legacy.php:690 11 JViewLegacy->display() C:\xampp\htdocs\test\components\com_incidentmap\views\florida\view.html.php:31 12 JViewLegacy-> C:\xampp\htdocs\test\libraries\legacy\view\legacy.php:209模板()C:\xampp\htdocs\test\libraries\legacy\view\legacy.php:209 13包含()C:\xampp\htdocs\test\库\C:\xampp\htdocs\test\components\com_incidentmap\views\florida\tmpl\default.php:8 legacy\view\legacy.php:670 14 JHtml::_()
请帮我把这个修好
发布于 2017-09-13 08:52:55
将有问题的代码替换为:
JHtml::image($file, $alt, $attribs = null, $relative = false, $returnPath = 0)当然,您需要将上面的参数替换为您的值。
我认为您使用的是JHtml::_('image.site',...,它在Joomla 3中已经不存在了。
https://stackoverflow.com/questions/46172659
复制相似问题