My application throws Zend_Locale_Exceptionwhen calling from googlebot, where ZF sends the following error message:
Locale auto-detection failed!
The problem is probably that the locale is not set by default, but how can I debug it?
Since the google bot is not real-time, I need to actually fake the HTTP request that the bot makes, but how can I find out how this request is executed?
Attempting to send an Accept-Language header with curl will not produce an error:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.mysite.com.br/');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language'));
echo $data = curl_exec($ch);
curl_close($ch);
EDIT:
to clarify more:
- I know that the problem is due to the lack of a default locale, but I need to debug this
- , UA, - .