Bolt CMS-Identifier”;根路径”;未定义


Bolt CMS - Identifier "rootpath" is not defined

将工作螺栓安装从本地机器转移到另一台服务器后,无论我做什么,我都会不断出错。

移动是通过复制filesvendorapp/cache文件夹中除内容外的所有内容来完成的,然后运行成功完成的composer update

当我运行任何东西时,例如php app/nut,我会得到这个异常:

PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 
   'Identifier "rootpath" is not defined.' 
   in xxxxxx/vendor/pimple/pimple/lib/Pimple.php:78

这是一个螺栓1.6安装。最初是从他们网站上的完整zip文件安装的,然后"转换"为作曲家安装的版本。我的系统仍然运行良好。

出现错误的新服务器正在运行带有apache 2.4和PHP 5.4.34的linux。

只是为遇到同样问题的人掩盖IRC上的讨论。

Bolt文档目前需要更新,因为master分支即将发布为版本2,所以复制1.x文件将使保修无效。

解决方法是先使用git pull --all,然后使用git checkout release/1.6来获得1.x分支。