将2.5升级到joomla 3.5自定义插件后无效

时间:2017-09-12 09:23:08

标签: joomla upgrade

我的调试堆栈说: 找不到JHtml图片。

  

调用堆栈

     

功能位置

     

1 JApplicationCms-> execute()C:\ xampp \ htdocs \ test \ index.php:49   2 JApplicationSite-> doExecute()C:\ xampp \ htdocs \ test \ libraries \ cms \ application \ cms.php:257   3 JApplicationSite-> dispatch()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 \ _dan.php:728   9 JControllerLegacy-> display()C:\ xampp \ htdocs \ test \ components \ com_incidentmap \ controller.php:31   10 IncidentViewFlorida-> 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-> loadTemplate()C:\ xampp \ htdocs \ test \ libraries \ _ legacy \ view \ _ legacy.php:209   13 include()C:\ xampp \ htdocs \ test \ libraries \ _ legacy \ view \ _ legacy.php:670   14 JHtml :: _()C:\ xampp \ htdocs \ test \ components \ com_incidentmap \ views \ florida \ tmpl \ default.php:8

请帮我解决这个问题

1 个答案:

答案 0 :(得分:0)

用以下代码替换有问题的代码:

JHtml::image($file, $alt, $attribs = null, $relative = false, $returnPath = 0)

当然,您需要将上述参数替换为您的值。

我认为你正在使用Joomla 3中不再存在的JHtml::_('image.site',...