dongli8466 2012-10-17 12:39
浏览 93
已采纳

strpos()期望参数1为字符串,数组给定CORE / Cake / I18n / I18n.php,第140行

I'm using Cakephp 2.2.2 on this project and I'm getting this error:

Warning (2): strpos() expects parameter 1 to be string, array given [CORE/Cake/I18n/I18n.php, line 140]

I'm not sure what is causing this. I'm not using I18n that I know of and I'm not sure what I did do get this install of Cake to do this.

In addition I'm also getting this error, however, I believed this one is caused by the first.

Warning (2): Illegal offset type in isset or empty [CORE/Cake/I18n/I18n.php, line 196]
  • 写回答

1条回答 默认 最新

  • dotws86260 2012-10-17 13:31
    关注

    You are probably passing an integer, array, or some other type to __(). Have a look at the docs for proper usage.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥15 小红薯封设备能解决的来
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答
  • ¥20 在本地部署CHATRWKV时遇到了AttributeError: 'str' object has no attribute 'requires_grad'
  • ¥15 vue+element项目中多tag时,切换Tab时iframe套第三方html页面需要实现不刷新
  • ¥50 深度强化学习解决能源调度问题
  • ¥15 一道计算机组成原理问题