简体   繁体   English

Joomla 2.5严格标准

[英]Joomla 2.5 Strict Standards

I have this website i am building with Joomla! 我有我正在与Joomla建立的网站! 2.5. 2.5。 It is a shopping cart and i was building it on my Xampp bu the minute i uploaded it to my server, it doesn't show anything on the front page. 这是一个购物车,当我将其上传到我的服务器的那一刻,我就在Xampp上构建了它,但是它没有在首页上显示任何内容。 The admin section is okay but the front page doesn't show anything. 管理部分可以,但是首页没有显示任何内容。 When i turn on error reporting for development, i get the below error. 当我打开开发错误报告时,出现以下错误。

Strict Standards: Only variables should be assigned by reference in /home/sites/mydomain/public_html/beta/plugins/system/jblibrary/jblibrary.php on line 26

Strict Standards: Only variables should be assigned by reference in /home/sites/mydomain/public_html/beta/plugins/system/jblibrary/jblibrary.php on line 55

Strict Standards: Only variables should be assigned by reference in /home/sites/mydomain/public_html/beta/plugins/system/jatypo/jatypo.php on line 55

Fatal error: t3import not found object: core.libs.browser in /home/sites/mydomain/public_html/beta/plugins/system/jat3/jat3/core/common.php on line 33

I took a look at one of the files throwing the error and the line below seemed like the problem. 我查看了引发错误的文件之一,下面的行似乎是问题所在。

$document =& JFactory::getDocument();

I have tried to modify it to; 我试图将其修改为;

$document = JFactory::getDocument();

But the error is still thrown. 但是错误仍然被抛出。 I have also tried switching the PHP versions but the error persists. 我也尝试过切换PHP版本,但错误仍然存​​在。 I just can't seem to figure out why the site is working on my localhost and not on my server. 我只是似乎无法弄清楚为什么该站点在我的本地主机而不是服务器上运行。 Any ideas? 有任何想法吗? Thanks 谢谢

The last line of your errors tells you why Joomla is white-screening. 错误的最后一行告诉您Joomla为什么要进行白屏检查。 The Strict standards warnings are just warnings, they don't stop execution. Strict standards警告只是警告,它们不会停止执行。

Fatal error: t3import not found object: core.libs.browser in /home/sites/mydomain/public_html/beta/plugins/system/jat3/jat3/core/common.php on line 33

A Fatal error is just that, it can't be recovered from. 一个Fatal error就是,它无法恢复。

In this case, your website is crashing because the front-end Joomla is trying to load a T3 based template that in turn tries to load the T3 framework which needs /jat3/jat3/core/common.php and it can't find it on the live server. 在这种情况下,您的网站崩溃是因为前端Joomla试图加载基于T3的模板,而该模板又试图加载需要/jat3/jat3/core/common.php的T3框架,但找不到它在实时服务器上。

If it's working on your Xampp setup then it probably means you didn't move it correctly/move all the files or set the paths up correctly in the configuration.php . 如果它在Xampp设置上正常运行,则可能意味着您没有正确移动它/移动所有文件或在configuration.php正确设置路径。

The easiest and safest way to move a site from development to live is to use Akeeba Backup in conjunction with Akeeba Kickstart which will package your development site into a single file and include an installer in it. 将站点从开发迁移到正式运行的最简单,最安全的方法是将Akeeba BackupAkeeba Kickstart结合使用,这会将您的开发站点打包为一个文件,并在其中包含安装程序。 Then you can upload the backup file and the kickstart file to your server and follow the kickstart documentation to "restore" your development version to the live server. 然后,您可以将备份文件和kickstart文件上载到服务器,并按照kickstart文档将开发版本“还原”到实时服务器。

i had just encountered this error when i deployed my joomla instance from windows to a linux server. 当我将joomla实例从Windows部署到Linux服务器时,我刚遇到此错误。 t3import is looking for /core/libs/browser.php but the actual filename is Browser.php. t3import正在查找/core/libs/browser.php,但实际文件名是Browser.php。 Linux is case-sensitive so it didn't find the correct file. Linux区分大小写,因此找不到正确的文件。 i just renamed Browser.php to browser.php and it worked fine. 我只是将Browser.php重命名为browser.php,并且运行良好。

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

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