Cake 3 RC1 aura intl problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Cake 3 RC1 aura intl problem

HVan
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

HVan
I should also mention it only appears sometimes - such as when an error occurs or when I"m saving something to database. It doesn't appear when rendering a view. Here's the track:

Call Stack
#TimeMemoryFunctionLocation
10.0011239416{main}( )../index.php:0
20.0758943384Cake\Routing\Dispatcher->dispatch( )../index.php:37
30.14881274448Cake\Routing\Dispatcher->_invoke( )../Dispatcher.php:87
40.18461381984Cake\Controller\Controller->invokeAction( )../Dispatcher.php:114
50.18501382520call_user_func_array:{/vendor/cakephp/cakephp/src/Controller/Controller.php:405} ( )../Controller.php:405
60.18511382824App\Controller\UsersController->signup( )../Controller.php:405
70.19151474344Cake\ORM\Table->newEntity( )../UsersController.php:21
80.19231483840Cake\ORM\Marshaller->one( )../Table.php:1829
90.23341664664Cake\ORM\Marshaller->_validate( )../Marshaller.php:122
100.23681692784Cake\Validation\Validator->errors( )../Marshaller.php:185
110.23691693112__d( )../Validator.php:94
120.23701693296Cake\I18n\I18n::translator( )../functions.php:81
130.23721693392Cake\I18n\TranslatorRegistry->get( )../I18n.php:145
140.23861708304Cake\I18n\TranslatorRegistry->_getTranslator( )../TranslatorRegistry.php:96
150.23861708304Aura\Intl\TranslatorLocator->get( )../TranslatorRegistry.php:114
160.23861708304Aura\Intl\PackageLocator->get( )../TranslatorLocator.php:180

On Wednesday, January 14, 2015 at 2:59:35 PM UTC-8, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

HVan
In reply to this post by HVan
More info: it's very intermittent. Sometimes it shows, sometimes it doesn't. When it shows, if I refresh page, it will go away. It's a series of 3 messages:

Aura\Intl\Exception: Package 'debug_kit' with locale 'en_US_POSIX' is not registered. in /var/www/providerlock/trunk/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96
 Aura\Intl\Exception: Package 'default' with locale 'en_US_POSIX' is not registered. in /var/www/providerlock/trunk/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96
  Aura\Intl\Exception: Package 'cake' with locale 'en_US_POSIX' is not registered. in /var/www/providerlock/trunk/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96





On Wednesday, January 14, 2015 at 2:59:35 PM UTC-8, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
In reply to this post by HVan
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

HVan
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

HVan
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

HVan
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
http://book.cakephp.org/3.0/en/core-libraries/caching.html#globally-enable-or-disable-cache

Add that early in your bootstrap. You can also set 'engine' => 'Null' to the '_cake_core_' cache config in your app.php

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
In reply to this post by HVan
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

Paul Vaughan
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

Bogdan P.
Hi. I got the same issue, but it appears only when when I have xdebug enabled.. strange

vineri, 6 noiembrie 2015, 10:55:28 UTC+2, vaughany a scris:
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
In reply to this post by Paul Vaughan
Try deleting the cache in the tmp/cache folder and see if the problem persists

On Friday, November 6, 2015 at 9:55:28 AM UTC+1, vaughany wrote:
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

Paul Vaughan
Hi José, thanks for the heads up, but unfortunately it didn't work. The files in there were definitely deleted and I restarted apache just in case, but to no avail. 

Thanks tho,

Paul.


On Saturday, 7 November 2015 18:12:28 UTC, José Lorenzo wrote:
Try deleting the cache in the tmp/cache folder and see if the problem persists

On Friday, November 6, 2015 at 9:55:28 AM UTC+1, vaughany wrote:
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

José Lorenzo
Can you open a ticket in github about this problem?

On Monday, November 9, 2015 at 9:40:22 AM UTC+1, vaughany wrote:
Hi José, thanks for the heads up, but unfortunately it didn't work. The files in there were definitely deleted and I restarted apache just in case, but to no avail. 

Thanks tho,

Paul.


On Saturday, 7 November 2015 18:12:28 UTC, José Lorenzo wrote:
Try deleting the cache in the tmp/cache folder and see if the problem persists

On Friday, November 6, 2015 at 9:55:28 AM UTC+1, vaughany wrote:
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cake 3 RC1 aura intl problem

Bogdan P.
In reply to this post by Paul Vaughan
Hello,

I think I got it working by disabling xdebug stack, xdebug.default_enable=0

luni, 9 noiembrie 2015, 10:40:22 UTC+2, vaughany a scris:
Hi José, thanks for the heads up, but unfortunately it didn't work. The files in there were definitely deleted and I restarted apache just in case, but to no avail. 

Thanks tho,

Paul.


On Saturday, 7 November 2015 18:12:28 UTC, José Lorenzo wrote:
Try deleting the cache in the tmp/cache folder and see if the problem persists

On Friday, November 6, 2015 at 9:55:28 AM UTC+1, vaughany wrote:
I know this is a long time after this post was originally posted, but I have started receiving this error. I'm using CakePHP 3.1.13 though.

I've been slowly building a project for about three months, and I started receiving the following problem just this morning (I've also had intl.default_locale set to en_GB for all that time):

Warning: Uncaught exception 'Aura\Intl\Exception' with message 'Package 'debug_kit' with locale 'en_GB' is not registered.' in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php:96 

Stack trace: 
#0 /var/www/vendor/aura/intl/src/Aura/Intl/TranslatorLocator.php(180): Aura\Intl\PackageLocator->get('debug_kit', 'en_GB') 
#1 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(122): Aura\Intl\TranslatorLocator->get('debug_kit', 'en_GB') 
#2 /var/www/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(104): Cake\I18n\TranslatorRegistry->_getTranslator('debug_kit', 'en_GB') 
#3 /var/www/vendor/cakephp/cakephp/src/I18n/I18n.php(144): Cake\I18n\TranslatorRegistry->get('debug_kit') 
#4 /var/www/vendor/cakephp/cakephp/src/I18n/functions.php(81): Cake\I18n\I18n::translator('debug_kit') 
#5 /var/www/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(54): __d('debug_kit', in /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

What I did do yesterday which is almost guaranteed to be the cause is to upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I have to do to sort this out?

Regards,

Paul.



On Saturday, 17 January 2015 10:07:10 UTC, José Lorenzo wrote:
Sorry to see you go, I have never seen that problem, and considering that the i18n system has been there for almost 4 moths without any similar bug report I'm confident to say that this must be a configuration error.

Is it possible you put your code somewhere so it can be reviewed?

On Saturday, January 17, 2015 at 12:42:11 AM UTC+1, HVan wrote:
Just a guess. I'm trying to figure out how to disable that cache (so it doesn't re-generate each time) and see if the error goes away. But it seems like that cache file is generated eveyr single time. If I could disable the cache of the intl file generation, then I can eliminate the possibility that's the problem.

Also, each error corresponds to each of those cache files. So if there's 3 intl files being generated (cake, default, debug_kit) then there will be 3 errors.

Unfortunately after 2 days on this I might have to leave cakephp 3 until it's more mature and maybe try another framework. Though it's a bit of a bummer because I'm kind of liking what I'm seeing! I definitely don't want to start a new project on cake 2, though.

On Friday, January 16, 2015 at 3:28:58 AM UTC-8, José Lorenzo wrote:
Why do you believe the problem is there?

On Friday, January 16, 2015 at 6:50:31 AM UTC+1, HVan wrote:
Nope - sorry the locale changed because I tried changing it to see if it will fix anything. But it didn't. It sounds like the problem is during generation of the translations cache.

On Thursday, January 15, 2015 at 7:27:49 AM UTC-8, José Lorenzo wrote:
But I guess the problem is not the cache, just that a random locale is being selected, no?

On Thursday, January 15, 2015 at 3:36:48 PM UTC+1, HVan wrote:
Yeah I've tried keeping it at en_US, and putting it blank. Neither worked. Putting it blank would give me the en_US_POSIX  locale (which is by default).

I've checked /tmp/cache/persistent and these files are generated and exist when the error comes up.

myapp_cake_core_translations_cake_en__u_us
myapp_cake_core_translations_debug_kit_en__u_us
myapp_cake_core_translations_default_en__u_us

Though, at debug=true, those files are generated everytime.

I went to bootstrap and set the default cache (Configure::write(Cache._cake_model_.duration) and Configure::write(Cache._cake_core_.duration) to +99 years even when in debug mode but can't get those core translation files to cache; they are still regenerated each time. I'm trying ot narrow down whether it's an error when those 3 files are beign generated. Anyone know how to turn off the cache for them?

On Thursday, January 15, 2015 at 4:38:53 AM UTC-8, José Lorenzo wrote:
Are you changing the default locale anywhere?

If not I'd suggest setting ini_set('intl.default_locale', 'en_US'); in your bootstrap.php file

On Wednesday, January 14, 2015 at 11:59:35 PM UTC+1, HVan wrote:
Can't figure why I'm having this problem: 

Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96

I'm having that problem with debug_kit as well. I've just literally created a project from scratch with composer. I also couldn't get plugin routes working but that's a different story.

Any clue what this could be? I've looked at everything and couldn't figure it out.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.