Some fucked up issue with long deleted items keeps happening that just breaks shit anywhere.
Been in touch with Elementor support for 3 weeks, 80 emails, 5 people took a look at it and nobody could solve it. Ultimately, they said when the turn off WPML, the issue is gone. Elementor ha a functionality called Global Widgets that cuases the issue, despite all of them having been deleted. Elementor support had access to each and every last file, FTP, PHPMyAdmin and said maybe the WPML databases are the issue, but they could not fix it, because they do apparently not even know their own plugin well enough.
Our second-tier supporter has identified the root of the problem and provided the following workaround.
1. Edit this file with a code editor:
/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/class-wpml-elementor-translate-ids.php
2. Look for this code, which should be around line number 194.
if ($element_type == false){
return $element_id;
}
3. Save the file.
4. Check the page, and it should be fixed.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
I already applied this to your site. See the change in the file in the screenshot fix-in-file.png. And if you check this page, for example, hidden link, you will see that the problem is fixed. Please see the attached screenshot problem-fixed.png.
The issue has been escalated to our developers, and they will fix it in future versions of WPML. We will update you here when it is released. Meanwhile, you might need to reapply this fix when there is an update to WPML that does not include it.
thanks seems to have solved it, do I hae to move this into the child theme so it does not get overvwritten in the next update or will it be included in the next update anyway?