过去几年中,我们使用一款本地应用程序将文章上传到我们的Joomla主页(使用PHP脚本)。在最新的Joomla 3.6更新后(之前是3.5),该应用程序不再起作用。出现以下错误:
Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/var/www/DOMAIN/htdocs/FOLDER/execute.php" at line 1.
以前在./htdocs/FOLDER/administrator/includes/目录下有一个名为"application.php"的文件,在更新后该文件消失了。看起来脚本无法创建应用程序实例。我已经尝试使用后端选项修复数据库,但这并没有解决问题。
更新:上述错误发生在:
$mainframe = JFactory::getApplication('administrator');
非常感谢您的帮助!