dongshi9719 2016-12-14 07:37
浏览 192
已采纳

前端的OctoberCMS错误 - 前端无法访问触发错误“具有类类型提示的参数的默认值只能为NULL”

all I am new to OctoberCMS, i have installed already built project into my Ubuntu 16.04 system with PHP5.6 and apache2. I have successfully setup and run project backend after very hard trying. but problem is when i open any front-end URL then this error occurs:

Default value for parameters with a class type hint can only be NULL
/home/vasim/jannat/code/octoberdev2/plugins/look/casefiles/classes/ActivityLogger.php line 59

error screenshot

I have search it on Google and can not finding anything helpful and i have also find out that it is a rainlab plug-in error, I have uninstall and reinstall that plug-in but that also not worked. so, please can anyone help me with this error?

Any help will be appreciated.

  • 写回答

2条回答 默认 最新

  • dqnrk44682 2016-12-14 08:59
    关注

    It seems an error from a plugin called look/casefiles. If it's not your own plugin try to remove it and the application should works well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
  • dthtvk3666 2016-12-14 09:15
    关注

    The most likely root cause of this is that the plugin was written in PHP 7.x, using typehint bool in the method signature. PHP5.6 doesn't support booltypehint and interprets bool typehint as class and thus the error.

    You have some choices:

    • Upgrade your project to PHP 7
    • See if the plugin is available in PHP 5.x compatible version and use that instead
    • Remove the plugin altogether and find another with equivalent functionality
    • Remove the plugin and code equivalent functionality yourself
    • Fix the error in the plugin yourself (making it backward compatible) Heads up! It might break when you upgrade the plugin.
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 代码已写好,求帮我指出错误,有偿!
  • ¥15 matlab+波形匹配算法
  • ¥15 转录组分析做聚类树图时癌旁组被分到了癌组
  • ¥15 大一Python字典
  • ¥15 multisim电路设计(相关搜索:设计报告)
  • ¥15 PC-lint Plus
  • ¥15 gpl24676注释
  • ¥15 php5.3内存泄露
  • ¥15 DigSilent如何复制复合模型到自己案例?
  • ¥15 求日版华为b610s-77a 官方公版固件,有偿