This topic has 26 replies, 3 voices, and was last updated 2 years, 4 months ago ago by Rose Tyler
Hi,
When I activate WPML this option https://snipboard.io/T8ox4q.jpg
then getting this error https://snipboard.io/m4AW2B.jpg
To verify it is xStore theme error I have already followed the followings steps
1 – Disabled all other modules installed, but not solved
2 – Changed theme or disabled xStore module and the issue is solved
Hello,
Thank you. I have passed the issue to our developers. I’ll inform you once they fix the problem.
Regards
Hello,
Your staging site is not available. Did you remove that?
Regards
Oo, yes I have moved my site from sitegroud to hostinger, please check new details
Hello,
Thank you.
Regards
Here the steps to replicate the issue
https://snipboard.io/BzXSft.jpg
I don’t know why but that staging site stop working hence please check this new details in private content
Hello,
Thank you. I passed access to our developers.
Regards
Hello,
Did you change access to FTP? Now we can’t connect to your FTP.
Regards
pl check
Hello,
Ok, thank you.
Regards
Hello,
We found that a fatal error appears if the WPML plugin is enabled. But if you want to use the WPML plugin for an eCommerce site you also need WooCommerce WPML and you need to translate products. Could you, please, translate at least one of your products into another language?
Regards
We don’t wish to use WPMl for WooCommerce because we don’t translate our products, we just translate our posts.
Hello,
I see. Ok. We’ll check if it’s possible to avoid issues without product translation. I’ll keep you in touch.
Regards
Any update?
Hello,
Nope, unfortunately. We need more time. Sorry for this delay and inconveniece.
Regards
hi,
any update on this? you are taking too much time for it
it is important for me hence please take it on priority
Pl check site details
Hello,
We have contacted WPML support about this issue because we need their help. It looks like they use some hooks or filters if that option is enabled to replace the content and causes the issue. We are waiting for their reply.
Regards
Hello,
WPML support team wants to make a local copy of your site to test the issue in more detail but they can’t https://prnt.sc/P_2pJWe1AFQ9
Could you, please, provide correct FTP access to your staging site and also take a look at why does it so huge?
Regards
Please check the details given in the private contents
Hello,
Thank you. I passed your reply to WPML developers.
Regards
Hello,
We got an answer from WPML company and found the solution for your case
We added few lines code in Dashboard -> Snippets -> WPML fix content-product fatal error (snippet)
Code below:
add_action('woocommerce_before_template_part', function ($template_name) {
if ( $template_name == 'loop/loop-start.php') {
remove_all_filters('the_content');
}
}, 10, 1);
Now if that snippet is enabled no fatal errors are shown on frontend
https://prnt.sc/DPjQ-R8NcnxR
Regards
Thanks for your help, yes it is fixed on the homepage now. But my other pages are not loading correctly. like URL given in the private contents area.
I think all pages not loading properly where WooCommerce products are shown using shortcode.
Yes, you are right
We improved our code on your staging site
add_action('woocommerce_before_template_part', function ($template_name) {
if ( $template_name == 'loop/loop-start.php' || $template_name == 'loop/sale-flash.php') {
remove_all_filters('the_content');
}
}, 10, 1);
Regards
seems like it is fixed, can you please tell me what this code doing exactly so that I will note it.
Hello,
1/ after we contacted WPML plugin they answered that they add some filters to the_content function
2/ Our products show the_content in some cases
3/ This code will remove all filters from ‘the_content’ (included the WPML one) just before content of product was loaded (or woocommerce products loop started )
Regards
Tagged: fatal error, template, troubleshooting, woocommerce, wordpress, wpml
The issue related to '‘Getting Fatal error with WPML one feture’' has been successfully resolved, and the topic is now closed for further responses