My Acl admin is corrupt and I have no idea why, since I haven't changed anything from when it used to work.

我的Acl管理员已经腐败,我不知道为什么,因为我从未改变过以后的工作。

When I go to /acl, I get the following error:

当我去/ acl时,我收到以下错误:

Error: Class 'String' not found File: /app/Plugin/Acl/Controller/Component/AclReflectorComponent.php
Line: 17

错误:找不到类'String'文件:/app/Plugin/Acl/Controller/Component/AclReflectorComponent.php行:17

public function getPluginName($ctrlName = null)
{
    $arr = String::tokenize($ctrlName, '/');   <-----  Line: 17
    if (count($arr) == 2) {
        return $arr[0];
    } else {
        return false;
    }
}

I checked what's in $ctrlName and the value is Acl/Acl.

我检查了$ ctrlName中的内容,值是Acl / Acl。

I'm completely lost here, what should I do?

我完全迷失在这里,我该怎么办?

1 个解决方案

#1


15

In order to make CakePHP compatible with PHP7, the String class has been deprecated as of CakePHP 2.7 in favour of the CakeText class.

为了使CakePHP与PHP7兼容,从CakePHP 2.7开始,不推荐使用String类,而是使用CakeText类。

You have to download an up to date version of your Acl Plugin.

您必须下载Acl插件的最新版本。

If you can't find one, changing all occurrences of String with CakeText should fix the problem.

如果找不到,使用CakeText更改所有出现的String应该可以解决问题。

更多相关文章

  1. fgetcsv()错误地将双引号添加到第一行的第一个元素
  2. 错误1452:无法添加或更新子行:外键约束失败
  3. Oracle相当于MySQL代码“插入虚拟”以返回错误消息
  4. MySQL添加外键错误1215
  5. 在SQL中声明@变量返回错误
  6. Linux第二篇----使用rpm方法安装MySQL(含各种出现的错误和排错)
  7. MySQL查询中的变量会导致错误
  8. mysql编译安装后各种常见错误集锦
  9. org.json Android系统错误。JSONException:在字符0处输入结束

随机推荐

  1. android:layout_marginLeft与android:pad
  2. Android 判断是否打开移动网络开关
  3. Android SDK手动升级到Android 5.0(API L
  4. linux下通过命令行更新android sdk
  5. android中listview中去除背景色选中色
  6. Android7.0中文文档(API)-- SimpleExpandab
  7. 对view设置透明度
  8. [置顶] Android Studio编译
  9. android listview的高度
  10. Android Fundamentals: Working With Con