简体   繁体   English

将Joomla从子目录移到根目录,突然出现“严格标准”错误…?

[英]Moved Joomla from subdirectory to root and suddenly get “Strict Standards” error…?

I upgraded from Joomla 1.5 to 2.3 and after moving it from a sub-directory to root, I could not access the administrator page (which previously worked fine). 我从Joomla 1.5升级到2.3,并将其从子目录移动到根目录后,无法访问管理员页面(以前运行正常)。 After logging in, I was presented with a blank page. 登录后,出现空白页面。 I modified configuration.php, changing $error_reporting to maximum to try and track down the problem. 我修改了configuration.php,将$ error_reporting更改为最大值以尝试查找问题。 Now, after logging in, I am presented with: 现在,登录后,向我显示:

Strict Standards: Non-static method LoginController::login() should not be called statically in /home/diamonde/public_html/administrator/components/com_login/admin.login.php on line 21 Fatal error: Call to a member function login() on a non-object in /home/diamonde/public_html/administrator/components/com_login/admin.login.php on line 64 严格标准:非静态方法LoginController :: login()不应在第21行的/home/diamonde/public_html/administrator/components/com_login/admin.login.php中静态调用致命错误:调用成员函数login( )在第64行的/home/diamonde/public_html/administrator/components/com_login/admin.login.php中的非对象上

I am baffled. 我感到困惑。 Where do I even begin to resolve this problem? 我什至哪里开始解决这个问题?

Thank you in advance for any assistance! 预先感谢您的协助!

SOLUTION!!!!!! 解!!!!!!

I had simply copied over my old Joomla 1.5 with my new 2.5 thinking it would over-write all files (and, well, it did). 我只是简单地复制了旧的Joomla 1.5,而新的2.5认为它会覆盖所有文件(而且确实如此)。 HOWEVER, there were also old 1.5 files still hanging around which were causing problems. 但是,仍然有旧的1.5文件挂在身边,这引起了问题。 I have no idea how or why—it doesn't make sense that the mere presence of unused files could cause issue—but nonetheless, that is the case. 我不知道如何或为什么-仅仅存在未使用的文件可能会引起问题-这是没有道理的,但是事实是这样。 Deleting the ENTIRE public_html directory FIRST, THEN copying in the new 2.5 fixed all my problems. 首先删除ENTIRE public_html目录,然后在新的2.5版本中进行复制修复了我的所有问题。

Hope this is helpful to someone who makes the same mistake! 希望这对犯同样错误的人有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM