Welcome Guest, Not a member yet? Register   Sign In
i18n library and google bot
#1

[eluser]Unknown[/eluser]
I am currently using internationalization i18n library but...
Their is a error when google bot fetches your page it will give a php error
Code:
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Warning</p>
<p>Message:  array_key_exists(): The first argument should be either a string or an integer</p>
<p>Filename: core/MY_Lang.php</p>
<p>Line Number: 153</p>

</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Warning</p>
<p>Message:  array_key_exists(): The first argument should be either a string or an integer</p>
<p>Filename: core/MY_Lang.php</p>
<p>Line Number: 153</p>

</div>
maybe because google bot is not a browser : )
How to config lang for bots? Please help me :S
#2

[eluser]urbankid[/eluser]
How does these changes affect the search engine friendliness? If I curl my site without the changes I get an PHP error (really ugly) if I add the changes I get nothing back. It doesn't seem very google friendly to me :-(

Do you guys know if any modification to load the home page with it's links with all the links, metatags, html tags ;-)
#3

[eluser]canado[/eluser]
I had the same php error issue

now with the modification (on webmaster tools google)
I do a fetch as google bot I have

HTTP/1.1 302 Moved Temporarily
Set-Cookie: 90plan=R3938748381; path=/; expires=Sun, 25-Mar-2012 02:05:58 GMT
Date: Thu, 22 Mar 2012 13:45:53 GMT
Server: Apache/2.2.X (OVH)
X-Powered-By: PHP/5.2.17
Location: http://www.mysite.com/en/home
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html


I don't think a 302 is correct for the home page right?




Theme © iAndrew 2016 - Forum software by © MyBB