Skip to content
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

In a multilanguage site "Cache Control" menu item shows only in English version. #3

Open
aagd opened this issue Oct 27, 2021 · 1 comment
Assignees

Comments

@aagd
Copy link

aagd commented Oct 27, 2021

ProcessWire 3.0.184, ProcessCacheControl v1.1.0, PHP 7.3.29

When I switch the language in the user profile to languages other than English, then logout, login, the menu entry is gone.

@aagd aagd changed the title In a multilanguage site "Cache Control" menu item shows only in Englisch In a multilanguage site "Cache Control" menu item shows only in English version. Oct 27, 2021
@MoritzLost
Copy link
Owner

@aagd Thanks for raising this issue! I've encountered this before, I think it occurs whenever you install the module using an account set to use a language that isn't the default language. This is a sort of bug in ProcessWire: During installation, ProcessWire creates a page for the process module and sets the title as specified in the module – but only in the current language of the user installing the module. If this language isn't the default one, the page doesn't have a title to fall back on in other languages, so the title is empty.

I've opened an issue for this behavior now: processwire/processwire-issues#1462
Hopefully it gets fixed in the core.

In the meantime, you can fix this manually: In the page tree, open Admin -> Setup, find the Cache Control page (the title may appear empty, it's the page with the floppy disk icon) and click on Edit. Then enter the title for the default language (you can also translate the title for different languages if you want to) and save the page. You may have to log out and log back in again before you see the changed title in the navigation.

@MoritzLost MoritzLost self-assigned this Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants