New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error caching lexicon topic #14309

Open
sebastian-marinescu opened this Issue Jan 25, 2019 · 8 comments

Comments

Projects
None yet
6 participants
@sebastian-marinescu
Copy link
Contributor

sebastian-marinescu commented Jan 25, 2019

Bug report

Summary

Occasionally, seldom and still regularly, I get the error Error caching lexicon topic in the logs.

I'd really like to know what is causing this. Why is this happening?

Step to reproduce

Use MODX, best with some Extras active.

Observed behavior

Sometimes nothing, but the log-message. Sometimes really no translated lexicon-tags in the front-end, which go away by itself, or after clearing cache. Sometimes blank page?

Expected behavior

Working lexicon system.

Environment

All versions I've been using so far, in all environments.

Related

https://forums.modx.com/thread/82511/error-caching-lexicon-topic
#7324
#9667

@Jako

This comment has been minimized.

Copy link
Collaborator

Jako commented Jan 26, 2019

One source of this issue would be a lexicon file that does not create a $_lang array.

Put return false; in one lexicon file or create a lexicon file without any content. After clearing the cache, that error message should be triggered. Maybe you have a file like this somewhere in the tree. But the name of the file should be logged.

Sorry this creates a different error message:
[2019-02-13 11:15:49] (DEBUG @ /somepath/core/model/modx/modlexicon.class.php : 259) An error occurred while trying to cache lexicon/de/core/trash (lexicon/language/namespace/topic)

@sebastian-marinescu

This comment has been minimized.

Copy link
Contributor Author

sebastian-marinescu commented Jan 26, 2019

Thank you very much @Jako for this information.
I'll test/check this soon and will report back.

@sebastian-marinescu

This comment has been minimized.

Copy link
Contributor Author

sebastian-marinescu commented Jan 29, 2019

So in the last 3 days these logs accumulated:

[2019-01-27 18:14:31] (ERROR @ /somepath/www/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/en/babel/default
[2019-01-28 20:00:04] (ERROR @ /somepath/www/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/de/mxcalendars/default
[2019-01-28 20:00:04] (ERROR @ /somepath/www/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/en/batcher/default
[2019-01-28 20:00:05] (ERROR @ /somepath/www/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/de/core/trash
[2019-01-29 07:40:20] (ERROR @ /somepath/www/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/en/bigbrother/mgr

I've pasted and linked the contents of these files so you can check with me.
The title of the paste-bins are the paths to the files.

To me, these files all seem fine.
Also interestingly in some cases it tries to cache the "en" version,
although the manager and website are set up to "de".

Why is it still logging this error?
What other causes can this error have?

@jonleverrier

This comment has been minimized.

Copy link
Contributor

jonleverrier commented Jan 29, 2019

Not saying it's related, but out of interest, what server stack are you using @sebastian-marinescu ?

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

JoshuaLuckers commented Feb 2, 2019

Sometimes I experience the same issue. It's totally random..

@digitalpenguin

This comment has been minimized.

Copy link

digitalpenguin commented Feb 12, 2019

I get these all the time too and yes it's seemingly random. I'd also love to find out what's causing it.

@Jako

This comment has been minimized.

Copy link
Collaborator

Jako commented Feb 12, 2019

Could that be caused by file locking?

@meshkov

This comment has been minimized.

Copy link

meshkov commented Feb 13, 2019

I have this problem too:
[2019-02-13 14:12:48] (ERROR @ /somepath/core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/ru/core/default [2019-02-13 14:12:48] (ERROR @ /somepath/public_html/core/model/modx/modcachemanager.class.php : 399) Error caching action map mgr/actions
But I also have Error caching action map mgr/actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment