|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
autodetectioni have seen a few posts about this, and it looks like magento has the issue as well:
Fatal error: Uncaught exception 'Zend_Locale_Exception' with message 'Autodetection of Locale has been failed!' fortunately i found a friend who is on a restricted network and is able to reproduce the error that google got. i saw a few bugs posted about this, but they said this issue was fixed in 1.0.3 i just downloaded the most recent version of 1.0.3 (from the site, not subversion). the problem still exists. this is happening in a controller plugin that logs the page hit when it tries to get the date/time. here is the complete error: Fatal error: Uncaught exception 'Zend_Locale_Exception' with message 'Autodetection of Locale has been failed!' in {path to account on server}/mna/library/Zend/Locale.php:122 Stack trace: #0 {path to account on server}/mna/library/Zend/Locale.php(906): Zend_Locale->__construct() #1 {path to account on server}/mna/library/Zend/Date.php(4444): Zend_Locale::isLocale(NULL, true) #2 {path to account on server}/mna/library/Zend/Date.php(172): Zend_Date->setLocale(NULL) #3 {path to account on server}/mna/application/models/TrafficLog.php(39): Zend_Date->__construct() #4 {path to account on server}/mna/library/DSF/Controller/Plugin/LogTraffic.php(32): TrafficLog->logHit() #5 {path to account on server}/mna/library/Zend/Controller/Plugin/Broker.php(307): DSF_Controller_Plugin_LogTraffic->preDispatch(Object(Zend_Controller_Request_Http)) #6 {path to account on server}/mna/library/Zend/Controller/Front.php(916): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) #7 {path to account on server}/mna/index.php(73): Zend_Controller_Fr in {path to account on server}/mna/library/Zend/Locale.php on line 122 i did set the locale in the bootstrap: //set locale setlocale(LC_ALL, 'en_US'); |
|
|
Re: autodetectionNo, the issue is not fixed with the existing 1.0.3... it was not reviewed
and therefor not integrated in this version. It's fixed with the trunk version or the upcoming 1.5 release Depends on you which version you want to use. Or you can manually set a locale BEFORE you create an instance of Zend_Locale. setlocale(LC_ALL, 'en'); $locale = new Zend_Locale(); Or you can catch the exception and then do with it whatever you want. Also to mention... I've seen that LC_ALL does not work on all systems. On such systems you would have to define the category manually. Greetings Thomas Weidner, I18N Team Leader http://www.thomasweidner.com ----- Original Message ----- From: "digitalus_media" <me@...> To: <fw-i18n@...> Sent: Tuesday, January 22, 2008 2:44 AM Subject: [fw-i18n] autodetection > > i have seen a few posts about this, and it looks like magento has the > issue > as well: > > Fatal error: Uncaught exception 'Zend_Locale_Exception' with message > 'Autodetection of Locale has been failed!' > > fortunately i found a friend who is on a restricted network and is able to > reproduce the error that google got. i saw a few bugs posted about this, > but they said this issue was fixed in 1.0.3 > > i just downloaded the most recent version of 1.0.3 (from the site, not > subversion). the problem still exists. > > this is happening in a controller plugin that logs the page hit when it > tries to get the date/time. > > here is the complete error: > > Fatal error: Uncaught exception 'Zend_Locale_Exception' with message > 'Autodetection of Locale has been failed!' in {path to account on > server}/mna/library/Zend/Locale.php:122 Stack trace: #0 {path to account > on > server}/mna/library/Zend/Locale.php(906): Zend_Locale->__construct() #1 > {path to account on server}/mna/library/Zend/Date.php(4444): > Zend_Locale::isLocale(NULL, true) #2 {path to account on > server}/mna/library/Zend/Date.php(172): Zend_Date->setLocale(NULL) #3 > {path > to account on server}/mna/application/models/TrafficLog.php(39): > Zend_Date->__construct() #4 {path to account on > server}/mna/library/DSF/Controller/Plugin/LogTraffic.php(32): > TrafficLog->logHit() #5 {path to account on > server}/mna/library/Zend/Controller/Plugin/Broker.php(307): > DSF_Controller_Plugin_LogTraffic->preDispatch(Object(Zend_Controller_Request_Http)) > #6 {path to account on server}/mna/library/Zend/Controller/Front.php(916): > Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) > #7 {path to account on server}/mna/index.php(73): Zend_Controller_Fr in > {path to account on server}/mna/library/Zend/Locale.php on line 122 > > i did set the locale in the bootstrap: > //set locale > setlocale(LC_ALL, 'en_US'); > > > > ----- > http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site > Manager | http://forrestlyman.com Forrest Lyman > -- > View this message in context: > http://www.nabble.com/autodetection-tp15010937s16154p15010937.html > Sent from the Zend I18N/Locale mailing list archive at Nabble.com. |
|
|
Re: autodetectionwhen i set the locale using that method my page would no longer validate as XHTML. the w3c service could not read the source.
|
|
|
Re: autodetectionI gave you 5 possible solutions... which one is best or applicable for you
is a decision which you will have to do. To mention: when your XHTML is no longer valid when you set a locale you have not coded right. The set locale has nothing to do with XML validation. Greetings Thomas Weidner, I18N Team Leader http://www.thomasweidner.com ----- Original Message ----- From: "digitalus_media" <me@...> To: <fw-i18n@...> Sent: Tuesday, January 22, 2008 5:30 PM Subject: Re: [fw-i18n] autodetection > > when i set the locale using that method my page would no longer validate > as > XHTML. the w3c service could not read the source. > > > Thomas Weidner-2 wrote: >> >> No, the issue is not fixed with the existing 1.0.3... it was not reviewed >> and therefor not integrated in this version. >> It's fixed with the trunk version or the upcoming 1.5 release >> >> Depends on you which version you want to use. >> Or you can manually set a locale BEFORE you create an instance of >> Zend_Locale. >> >> setlocale(LC_ALL, 'en'); >> $locale = new Zend_Locale(); >> >> Or you can catch the exception and then do with it whatever you want. >> >> Also to mention... I've seen that LC_ALL does not work on all systems. On >> such systems you would have to define the category manually. >> >> Greetings >> Thomas Weidner, I18N Team Leader >> http://www.thomasweidner.com >> >> >> ----- Original Message ----- >> From: "digitalus_media" <me@...> >> To: <fw-i18n@...> >> Sent: Tuesday, January 22, 2008 2:44 AM >> Subject: [fw-i18n] autodetection >> >> >>> >>> i have seen a few posts about this, and it looks like magento has the >>> issue >>> as well: >>> >>> Fatal error: Uncaught exception 'Zend_Locale_Exception' with message >>> 'Autodetection of Locale has been failed!' >>> >>> fortunately i found a friend who is on a restricted network and is able >>> to >>> reproduce the error that google got. i saw a few bugs posted about >>> this, >>> but they said this issue was fixed in 1.0.3 >>> >>> i just downloaded the most recent version of 1.0.3 (from the site, not >>> subversion). the problem still exists. >>> >>> this is happening in a controller plugin that logs the page hit when it >>> tries to get the date/time. >>> >>> here is the complete error: >>> >>> Fatal error: Uncaught exception 'Zend_Locale_Exception' with message >>> 'Autodetection of Locale has been failed!' in {path to account on >>> server}/mna/library/Zend/Locale.php:122 Stack trace: #0 {path to account >>> on >>> server}/mna/library/Zend/Locale.php(906): Zend_Locale->__construct() #1 >>> {path to account on server}/mna/library/Zend/Date.php(4444): >>> Zend_Locale::isLocale(NULL, true) #2 {path to account on >>> server}/mna/library/Zend/Date.php(172): Zend_Date->setLocale(NULL) #3 >>> {path >>> to account on server}/mna/application/models/TrafficLog.php(39): >>> Zend_Date->__construct() #4 {path to account on >>> server}/mna/library/DSF/Controller/Plugin/LogTraffic.php(32): >>> TrafficLog->logHit() #5 {path to account on >>> server}/mna/library/Zend/Controller/Plugin/Broker.php(307): >>> DSF_Controller_Plugin_LogTraffic->preDispatch(Object(Zend_Controller_Request_Http)) >>> #6 {path to account on >>> server}/mna/library/Zend/Controller/Front.php(916): >>> Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) >>> #7 {path to account on server}/mna/index.php(73): Zend_Controller_Fr in >>> {path to account on server}/mna/library/Zend/Locale.php on line 122 >>> >>> i did set the locale in the bootstrap: >>> //set locale >>> setlocale(LC_ALL, 'en_US'); >>> >>> >>> >>> ----- >>> http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site >>> Manager | http://forrestlyman.com Forrest Lyman >>> -- >>> View this message in context: >>> http://www.nabble.com/autodetection-tp15010937s16154p15010937.html >>> Sent from the Zend I18N/Locale mailing list archive at Nabble.com. >> >> >> > > > ----- > http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site > Manager | http://forrestlyman.com Forrest Lyman > -- > View this message in context: > http://www.nabble.com/autodetection-tp15010937s16154p15022325.html > Sent from the Zend I18N/Locale mailing list archive at Nabble.com. |
|
|
Re: autodetectionthe issue i was running into (I think) is that services like the x3c validator and se bots do not pass the locale in the request. when i checked what the bot simulator and the w3c validator saw they both returned blank screens. when i removed references to zend date both services were able to read my site.
|
|
|
Re: autodetectionSo non of the five mentioned solutions work for you ???
And you are getting no response from the view eighter ? Sorry, but I am missing informations. There MUST somewhat happen. Maybe you should fill in an issue (framework.zend.com/issues) with all available informations so we can look into this. Because if it does also not work with the trunk version in your environment we have a new case which is not covered nor has happend actually. Greetings Thomas Weidner, I18N Team Leader http://www.thomasweidner.com ----- Original Message ----- From: "digitalus_media" <me@...> To: <fw-i18n@...> Sent: Tuesday, January 22, 2008 10:47 PM Subject: Re: [fw-i18n] autodetection > > the issue i was running into (I think) is that services like the x3c > validator and se bots do not pass the locale in the request. when i > checked > what the bot simulator and the w3c validator saw they both returned blank > screens. when i removed references to zend date both services were able > to > read my site. > > > Thomas Weidner-2 wrote: >> >> I gave you 5 possible solutions... which one is best or applicable for >> you >> is a decision which you will have to do. >> To mention: when your XHTML is no longer valid when you set a locale you >> have not coded right. The set locale has nothing to do with XML >> validation. >> >> Greetings >> Thomas Weidner, I18N Team Leader >> http://www.thomasweidner.com >> >> ----- Original Message ----- >> From: "digitalus_media" <me@...> >> To: <fw-i18n@...> >> Sent: Tuesday, January 22, 2008 5:30 PM >> Subject: Re: [fw-i18n] autodetection >> >> >>> >>> when i set the locale using that method my page would no longer validate >>> as >>> XHTML. the w3c service could not read the source. >>> >>> >>> Thomas Weidner-2 wrote: >>>> >>>> No, the issue is not fixed with the existing 1.0.3... it was not >>>> reviewed >>>> and therefor not integrated in this version. >>>> It's fixed with the trunk version or the upcoming 1.5 release >>>> >>>> Depends on you which version you want to use. >>>> Or you can manually set a locale BEFORE you create an instance of >>>> Zend_Locale. >>>> >>>> setlocale(LC_ALL, 'en'); >>>> $locale = new Zend_Locale(); >>>> >>>> Or you can catch the exception and then do with it whatever you want. >>>> >>>> Also to mention... I've seen that LC_ALL does not work on all systems. >>>> On >>>> such systems you would have to define the category manually. >>>> >>>> Greetings >>>> Thomas Weidner, I18N Team Leader >>>> http://www.thomasweidner.com >>>> >>>> >>>> ----- Original Message ----- >>>> From: "digitalus_media" <me@...> >>>> To: <fw-i18n@...> >>>> Sent: Tuesday, January 22, 2008 2:44 AM >>>> Subject: [fw-i18n] autodetection >>>> >>>> >>>>> >>>>> i have seen a few posts about this, and it looks like magento has the >>>>> issue >>>>> as well: >>>>> >>>>> Fatal error: Uncaught exception 'Zend_Locale_Exception' with message >>>>> 'Autodetection of Locale has been failed!' >>>>> >>>>> fortunately i found a friend who is on a restricted network and is >>>>> able >>>>> to >>>>> reproduce the error that google got. i saw a few bugs posted about >>>>> this, >>>>> but they said this issue was fixed in 1.0.3 >>>>> >>>>> i just downloaded the most recent version of 1.0.3 (from the site, not >>>>> subversion). the problem still exists. >>>>> >>>>> this is happening in a controller plugin that logs the page hit when >>>>> it >>>>> tries to get the date/time. >>>>> >>>>> here is the complete error: >>>>> >>>>> Fatal error: Uncaught exception 'Zend_Locale_Exception' with message >>>>> 'Autodetection of Locale has been failed!' in {path to account on >>>>> server}/mna/library/Zend/Locale.php:122 Stack trace: #0 {path to >>>>> account >>>>> on >>>>> server}/mna/library/Zend/Locale.php(906): Zend_Locale->__construct() >>>>> #1 >>>>> {path to account on server}/mna/library/Zend/Date.php(4444): >>>>> Zend_Locale::isLocale(NULL, true) #2 {path to account on >>>>> server}/mna/library/Zend/Date.php(172): Zend_Date->setLocale(NULL) #3 >>>>> {path >>>>> to account on server}/mna/application/models/TrafficLog.php(39): >>>>> Zend_Date->__construct() #4 {path to account on >>>>> server}/mna/library/DSF/Controller/Plugin/LogTraffic.php(32): >>>>> TrafficLog->logHit() #5 {path to account on >>>>> server}/mna/library/Zend/Controller/Plugin/Broker.php(307): >>>>> DSF_Controller_Plugin_LogTraffic->preDispatch(Object(Zend_Controller_Request_Http)) >>>>> #6 {path to account on >>>>> server}/mna/library/Zend/Controller/Front.php(916): >>>>> Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) >>>>> #7 {path to account on server}/mna/index.php(73): Zend_Controller_Fr >>>>> in >>>>> {path to account on server}/mna/library/Zend/Locale.php on line 122 >>>>> >>>>> i did set the locale in the bootstrap: >>>>> //set locale >>>>> setlocale(LC_ALL, 'en_US'); >>>>> >>>>> >>>>> >>>>> ----- >>>>> http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site >>>>> Manager | http://forrestlyman.com Forrest Lyman >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/autodetection-tp15010937s16154p15010937.html >>>>> Sent from the Zend I18N/Locale mailing list archive at Nabble.com. >>>> >>>> >>>> >>> >>> >>> ----- >>> http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site >>> Manager | http://forrestlyman.com Forrest Lyman >>> -- >>> View this message in context: >>> http://www.nabble.com/autodetection-tp15010937s16154p15022325.html >>> Sent from the Zend I18N/Locale mailing list archive at Nabble.com. >> >> >> > > > ----- > http://http://code.google.com/p/digitalus-site-manager/ Digitalus Site > Manager | http://forrestlyman.com Forrest Lyman > -- > View this message in context: > http://www.nabble.com/autodetection-tp15010937s16154p15029219.html > Sent from the Zend I18N/Locale mailing list archive at Nabble.com. |
| Free Forum Powered by Nabble | Forum Help |