Archived topic
Elements posts are gone upon update
10 replies · Started by _blank on April 29, 2019
Hi,
I updated to the latest GP plugin and I noticed that all my Elements are not listed and are gone from the website, although the number of published Elements are shown. Please see the screen:
https://piotreba-my.sharepoint.com/:i:/g/personal/piotreba_piotreba_onmicrosoft_com/EZH78CysJS5LnMjaFYwe54YBkPRu_OaIifNGF04-GRxOLg?e=FhIkhb
I put there a side menu, and now it's gone from the website (but the admin shows the number of published elements).
Best, Peter
Ok, I needed to act quickly, so I created new elements. This might probably have something with WPML update as now I had to assign an element to a language. Nevertheless, I have no access to old elements, although the admin shows a number of previous elements.
Upon digging further, I noticed that even though I created a new layout element with No Sidebars for 404, I still see a sidebar there.
And another update, I noticed that Elements post type had translation status set to Translatable - use translation if available or fallback to default language. I changed that to Not translatable and the problem was resolved. This change was applied after update of WPML or GeneratePress, I'm not sure. But I have an older copy of a website prior these plugins update and the translation setting of Elements post is set to Not translatable.
Hi there,
Perhaps this topic will be helpful?: https://generatepress.com/forums/topic/update-to-1-8-breaks-gp-elements-in-wpml-sites/
You shouldn't need to re-create anything.
Partly, the issue is resolved.
However, I still cannot fix everything on one page upon update.
1. I have a Layout element set up on two websites to show up only on 404 Template. The layout should have no sidebars. Please compare these two pages (the urls contain mistake intentionally to trigger 404):
https://ptber.org.pl/default/en/confernces/ (this page still shows a sidebar)
https://ispan.waw.pl/default/en/about-the-insitute/ (here it is ok, no sidebar)
2. Another example, a simple hook to show search box which has Entire website location, but on one website it is not showing on a blog page (while it shows on a single posts or pages). Please compare:
https://ptber.org.pl/default/en/news/ (no search box, but see a single post, e.g., https://ptber.org.pl/default/en/9th-conference-of-psepb-registration-is-now-open/ or page: https://ptber.org.pl/default/en/contact/)
https://ispan.waw.pl/default/en/news/ (search box present)
Both websites use the same, latest version of GeneratePress and the GP Premium plugin.
Are the WPML settings the same on each site? Especially the one I took a screenshot of in that other topic?
I checked again and I think these settings are similar. I made screens of both sites (page 1 concerns the "faulty" website):
https://documentcloud.adobe.com/link/track?uri=urn%3Aaaid%3Ascds%3AUS%3Af6faf94f-62ef-4e20-8124-bb1ee63dc48e
should you need a view of other settings let me know.
What happens if you select "Translatable - use translation if available or fallback to default language" instead of "Not translatable"?
I checked that, the same results.
I've reported this to WPML, but you may want to as well. Things should be configured properly on our end (they helped configure it), so it may be a bug in WPML itself.
Great, thank you!