为什么我在Google网站站长工具中收到500台服务器响应? [英] Why I'm getting a 500 server response in Google Webmaster Tools?
问题描述
我试图弄清楚为什么我的网站没有被Google Spider抓取,当我对网站的响应进行测试时,我发现我得到了500台服务器的响应,但我的网站却是实际工作.
I'm trying to figure out why my web isn't getting crawled by the Google Spider, and when I do a test about the response of the site I see that I'm getting a 500 server response BUT my website is actually working.
我的网站是 http://lacasadelilihostal.com/,它是在Laravel建立的.
My site is http://lacasadelilihostal.com/ and was made in Laravel.
当我说这个问题可能是由JavaScript错误引起的时,我看到了另一个问题,但是我在网络上看不到任何人.并且我将公用文件夹的权限更改为775,但也无法正常工作.
I see another question when said that the problem could be by a JavaScript error but I don't see anyone in my web; and also I changed the permissions of the public folder to 775 but didn't work either.
推荐答案
我检查我的日志,发现在此行出现错误'未初始化的字符串偏移量:".
I check my logs and found that i'm getting the error "'Uninitialized string offset: " in this line:
`$langcode = (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
$langcode = (!empty($langcode)) ? explode(";", $langcode) : $langcode;
$langcode = (!empty($langcode['0'])) ? explode(",", $langcode['0']) : $langcode;
$langcode = (!empty($langcode['0'])) ? explode("-", $langcode['0']) : $langcode;
$langcode = strtolower($langcode[0]);` `
这只发生在抓取工具上...我删除了最后一行.
This only happened with crawlers... I remove the last line.
这篇关于为什么我在Google网站站长工具中收到500台服务器响应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!