It seems that in the getApplication($id = null, array $config = array(), $prefix = 'J')
function (libraries/src/Factory.php) the site id ($id in this case) is valid only once. If the check for !self::$application
is false, the $id check causs theError: Failed to start application: Failed to start the session
. On my colleague's system, there is no error, even though the siteid is only valid the first time getApplication() is called. What would be causing this?
似乎在getApplication($id=空,数组$CONFIG=ARRAY(),$PREFIX=‘J’)函数(库/src/Factory.php)中,站点ID(在本例中为$id)只有效一次。如果对!self::$应用程序的检查为假,则$id检查导致错误:无法启动应用程序:无法启动会话。在我同事的系统上,没有错误,即使站点ID仅在第一次调用getApplication()时有效。这是什么原因造成的呢?
更多回答
优秀答案推荐
It appears there were several things that needed to be corrected in the config file, such as passwords and paths to get the site working. After I got it loading, I still had to deal with path issues which ended up being cpanel stuff at the end of the .htaccess file. Stripping those out worked.
似乎在配置文件中有几项需要更正,例如密码和路径,以使网站正常运行。在我加载它之后,我仍然必须处理路径问题,这最终是.htaccess文件末尾的cPanel内容。把这些去掉就奏效了。
更多回答
我是一名优秀的程序员,十分优秀!