第一个错误
在:\thinkphp\library\think\Loader
.php 614行
判断$type前增加:if($name==NULL){$name='';}
修改后
第二个错误
在:\thinkphp\library\think\App
.php 403行
改为:getType();
修改后
第三个错误
在:\thinkphp\library\think\db\
Query.php 400行
将{}改为[]
修改后
第四个错误
位置1
使用搜索进行修改下面这些地方
-
在
\thinkphp\library\think\Paginator.php
增加:use Iterator;
offsetExists($offset)改为 offsetExists($offset):bool
offsetSet($offset, $value)改为 offsetSet($offset, $value):void
offsetGet($offset) 改为 offsetGet($offset):mixed
offsetUnset($offset)改为 offsetUnset($offset):void
getIterator()改为 getIterator(): Iterator|Traversable
count()改为 count():int
jsonSerialize()改为jsonSerialize(): mixed
位置2
- 在
\thinkphp\library\think\Collection.php
offsetExists($offset)改为 offsetExists($offset):bool
offsetSet($offset, $value)改为 offsetSet($offset, $value):void
offsetGet($offset) 改为 offsetGet($offset):mixed
offsetUnset($offset)改为 offsetUnset($offset):void
getIterator()改为 getIterator():IteratorAggregate
count()改为 count():int
jsonSerialize()改为jsonSerialize(): mixed
第五个错误
在\thinkphp\library\think\Paginator.php 132行
去掉第二参数null即可
修改后
附:apache伪静态
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>