Hi guys,
Here we go again.
I have updated the xtheme and wpml to latest and i cant translate anything i keep getting the following error:
E_ERROR: Uncaught Error: Call to a member function get_element_id() on null in /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-enpoints-support.php:174
Stack trace:
#0 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-includes/class-wp-hook.php(288): WPML_Endpoints_Support->endpoint_permalink_filter('https://lightfl...', 19820)
#1 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-includes/plugin.php(203): WP_Hook->apply_filters('https://lightfl...', Array)
#2 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-includes/link-template.php(331): apply_filters('page_link', 'https://lightfl...', 19820, false)
#3 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-includes/link-template.php(144): get_page_link(Object(WP_Post), false, false)
#4 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-includes/post.php(3536): get_permalink(Object(WP_Post))
#5 /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-content/plugins/si in /customers/5/e/3/waxandgold.com/httpd.www/lightflow/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-enpoints-support.php on line 174.