Tuesday, February 1, 2011

Re: Locale files No such file or directory error apparently causing speed issues.

Hi Thanks for your response AD7six

When you say its not an error, do you mean cake is meant to do this,
as part of looking for files in a set order till finds a default?

I didn't have a locale set (i hadn't really thought to as im not
trying to be international) so i put
Configure::write('Config.language', 'eng'); into my boot strap. Guess
i need to do this for all my cake projects.

I ran the console i18n thing, and it developed various po files and i
have put them into my eng dir.

Its now looking for core.po and core.mo and can't find them - Should
i be making those? If so, how do i make the core.po and core.mo
files?

What could be wrong with cache set up? Ive just uncommented the file
cache set up & set disable cache to false in core.php and that seems
to be generating lots of cache files as expected. Is it more
complicated than this? I don't think it is right?

This all seems like a lot of set up for a feature im not using. Which
makes me think its either a non issue or im doing something
fundamentally wrong.


On Jan 28, 8:56 pm, AD7six <andydawso...@gmail.com> wrote:
> On Jan 28, 5:57 am, "#2Will" <willjbar...@gmail.com> wrote:
>
>
>
> > Hi Everyone,
>
> > Im getting quite slow speeds off a small site hosted onMediaTemples
> > Grid service.  The Tech guys there say that my app (a basic cms) is
> > giving this error:
>
> > "There seem to be many failed stats for /app/locale/LC_MESSAGES. An
> > strace of the index.php shows ~216 failed calls for this directory and
> > files within it"
>
> > eg:
>
> > access("/nfs/c03/h01/mnt/45558/domains/soulstarvision.com/html/app/
> > locale//LC_MESSAGES/default.po", F_OK) = -1 ENOENT (No such file or
> > directory)
>
> > Why would cake throw this error?
>
> it's not an error
>
> >  Im not sure where the guy is seeing this as its not in cake's logs or the server error_log.
>
> He's looking at a strace log (as he states in the messagehttp://en.wikipedia.org/wiki/Strace) showing what files your php app
> is looking for.
>
>
>
> > I notice the double // bit.  Im wondering if there shouls be something
> > like "eng" in there.  Am i barking at the wrong tree?
>
> right tree :)
>
> > If not, why is "eng" missing.
>
> > There isn't anything in my /eng/LC_Messages dir anyway.
>
> Repeatedly looking for the same file is a symptom of not having your
> cache setup correctly. looking for locale//LC_MESSAGES is a symptom of
> something else not being configured correctly - which if you do a bit
> of investigating in the i18n code should either yeild:
>
> * a config issue
> * a bug
>
> in either case - you should be able to figure out what to do about it.
>
> hth,
>
> AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: