Fatal error: Call to undefined method JUser::authorize()
Fatal error: Call to undefined method JUser::authorize()
我将我的joomla 1.5 网站升级到3,当我安装旧的原始模板时出现问题,索引页面显示:
Fatal error: Call to undefined method JUser::authorize() in /volume1/web/2016-rhim-new/templates/ja_purity/html/com_content/article/default.php on line 6
第 6 行的代码是:
<?php if (($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) && !$this->print) : ?>
<div class="contentpaneopen_edit<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>" >
<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</div>
请帮帮我,非常感谢!
我修好了。删除了 templates/TEMPLATE/html/com_content/default.php 文件,现在一切正常。
但在此您可能会丢失 html 结构。因为在那个模板文件中是为 joomla 1.5 而现在新的 joomla 有很多变化。
谢谢,
Juser::authorize() has been removed. Use JUser::authorise() instead.
在此页面上,您可以找到 Joomla 3 的所有 potential backward compatibility。
也可以考虑在 joomla.stackexchange.com 上询问 Joomla 相关问题 以获得更好的答案!
我将我的joomla 1.5 网站升级到3,当我安装旧的原始模板时出现问题,索引页面显示:
Fatal error: Call to undefined method JUser::authorize() in /volume1/web/2016-rhim-new/templates/ja_purity/html/com_content/article/default.php on line 6
第 6 行的代码是:
<?php if (($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) && !$this->print) : ?>
<div class="contentpaneopen_edit<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>" >
<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</div>
请帮帮我,非常感谢!
我修好了。删除了 templates/TEMPLATE/html/com_content/default.php 文件,现在一切正常。
但在此您可能会丢失 html 结构。因为在那个模板文件中是为 joomla 1.5 而现在新的 joomla 有很多变化。
谢谢,
Juser::authorize() has been removed. Use JUser::authorise() instead.
在此页面上,您可以找到 Joomla 3 的所有 potential backward compatibility。
也可以考虑在 joomla.stackexchange.com 上询问 Joomla 相关问题 以获得更好的答案!