-
Notifications
You must be signed in to change notification settings - Fork 0
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 when loading entry from CP #9
Comments
I suspect this issue may be related to caching. Today, I conducted some tests on a new database, which unfortunately led to encountering additional problems. While configuring my sites, which support seven different languages, I encountered an issue with the depreciation of the Portuguese language code, 'pt'. Despite setting the language to 'pt-PT,' I continued to encounter the deprecation error. In an attempt to resolve this, I considered deleting the Portuguese site and adding it again. However, this approach resulted in encountering the aforementioned 'Impossible to access an attribute ("groupId") on a null variable' error once again. |
Hey @williamhibberd, could you give us a bit more context regarding the setup of the sites and sitegroups in your install? Regarding the renaming & removing of sites, were there any propagation jobs still running in the queue at the time you get the error? (and are you still seeing the error once all these jobs have finished running?) |
Sure I have recorded this screen cast to show you what is going on: |
Thanks for that, I can reproduce the issue on our end. The problem lies in |
Ok brilliant so if I run |
Garbage collection worked for the first issue, but I am still having problems with translating to pt-PT. |
Yes, that should do the trick. |
We're currently passing the full locale to DeepL as it is set in Craft, in your case that is I'll report back when we have a fix! |
The error indicates that the situation might be reversed. It appears that 'pt' is not supported, but the locale 'pt-PT' is. Despite configuring the locale to 'pt-PT,' the error persists.
|
Using verson 1.1 of the plugin, I am getting an error when visiting an entry in the CMS.
Impossible to access an attribute ("groupId") on a null variable.
The line in the error message that references
groudId
{% set otherSites = entry.section.siteSettings|filter(v => v.siteId != selectedSite.id and craft.app.sites.getSiteById(v.siteId).groupId == selectedSite.groupId) %}
The plugin seemed to be working fine before I renamed my default site from
DEFAULT
toen
Full error message:
The text was updated successfully, but these errors were encountered: