Use of undefined constant position - assumed 'position' (this will throw an Erro

Only蜡笔小新 2019-09-05 05:03:34
从同事电脑上拷过来的项目,刚开始学习PHP
报错信息为:
Use of undefined constant position - assumed 'position' (this will throw an Error in a future version of PHP)
以及
Call Stack
in c9cf4481a90b0133a8a1967e4c523434.php line 95
at Error::appError(2, 'Use of undefined con...', 'E:\shequ\runtime\tem...', 95, ['cacheFile' => 'E:\shequ\runtime\tem...', 'vars' => ['action' => 'index', 'template_now_time' => 1567673347, 'wx_qr' => '/public/upload/weixi...', ...], 'action' => 'index', ...]) in c9cf4481a90b0133a8a1967e4c523434.php line 95
at include('E:\shequ\runtime\tem...') in File.php line 50
at File->read('E:\shequ\runtime\tem...', ['action' => 'index', 'template_now_time' => 1567673347, 'wx_qr' => '/public/upload/weixi...', ...]) in Template.php line 196
at Template->fetch('./template/mobile/ne...', ['action' => 'index', 'template_now_time' => 1567673347, 'wx_qr' => '/public/upload/weixi...', ...], []) in Think.php line 89
at Think->fetch('./template/mobile/ne...', ['action' => 'index', 'template_now_time' => 1567673347, 'wx_qr' => '/public/upload/weixi...', ...], []) in View.php line 159
at View->fetch('', ['action' => 'index', 'template_now_time' => 1567673347, 'wx_qr' => '/public/upload/weixi...', ...], [], []) in Controller.php line 129
at Controller->fetch() in Index.php line 115
at Index->index()
at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 227
at App::invokeMethod([object(Index), 'index'], []) in App.php line 405
at App::module(['Mobile', 'Index', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 133
at App::run() in start.php line 18
at require('E:\shequ\ThinkPHP\st...') in index.php line 55


报错类为:Cx.php
又说修改php.ini文件的 修改了不好用,求指教啊
...全文
1241 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Only蜡笔小新 2019-09-06
  • 打赏
  • 举报
回复
PHP的版本问题,项目用的是PHP5.4.45 我使用的是PHP7.3.4运行的,修改项目的运行环境正常运行。

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧