我的主机将在几周后停止支持 PHP 5.2,这就是我必须切换到 PHP 5.3 的原因。我正在使用 Joomla 2.5 来管理网站的内容。在托管程序的后端,我通过单击按钮切换到新的 PHP 版本,但这导致网站崩溃并出现以下错误。
显然,我的代码还没有为 PHP 5.3 做好准备。如何将 joomla 代码更新为新的 PHP?或者 joomla 是否应该毫无问题地处理新的 PHP 版本,而我添加的内容实际上会导致错误?来自我的唯一代码是加载自定义设计的模板。
我有点卡在这里,并没有真正看到 joomla、PHP 之间的联系,以及我使用旧 PHP 的新主机后端如何。任何建议将不胜感激......
错误。注意:这是从另一个站点复制的,我加载了备份以修复站点上的错误,但除了路径之外它完全相同:
jos-Error: Application Instantiation Error
JFactory :: getApplication() @ /home/parolevo/public_html/tiptopart/index.php:28
JApplication :: getInstance() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:102
JSite -> __construct() @ /home/parolevo/public_html/tiptopart/libraries/joomla/application/application.php:208
JApplication -> __construct() @ /home/parolevo/public_html/tiptopart/includes/application.php:48
JApplication -> _createSession() @ /home/parolevo/public_html/tiptopart/libraries/joomla/application/application.php:173
JFactory :: getSession() @ /home/parolevo/public_html/tiptopart/libraries/joomla/application/application.php:1046
JFactory :: createSession() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:152
JSession :: getInstance() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:661
JSession -> __construct() @ /home/parolevo/public_html/tiptopart/libraries/joomla/session/session.php:155
JSession -> _start() @ /home/parolevo/public_html/tiptopart/libraries/joomla/session/session.php:118
session_start() @ /home/parolevo/public_html/tiptopart/libraries/joomla/session/session.php:492
JSessionStorageDatabase -> read()
JFactory :: getDbo() @ /home/parolevo/public_html/tiptopart/libraries/joomla/session/storage/database.php:67
JFactory :: createDbo() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:308
JError :: raiseError() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:723
JError :: raise() @ /home/parolevo/public_html/tiptopart/libraries/joomla/error/error.php:251
JError :: throwError() @ /home/parolevo/public_html/tiptopart/libraries/joomla/error/error.php:176
call_user_func_array() @ /home/parolevo/public_html/tiptopart/libraries/joomla/error/error.php:214
JError :: handleMessage()
JFactory :: getApplication() @ /home/parolevo/public_html/tiptopart/libraries/joomla/error/error.php:705
JError :: raiseError() @ /home/parolevo/public_html/tiptopart/libraries/joomla/factory.php:99
JError :: raise() @ /home/parolevo/public_html/tiptopart/libraries/joomla/error/error.php:251