Getting Fatal error with WPML one feture

This topic has 26 replies, 3 voices, and was last updated 2 years, 5 months ago ago by Rose Tyler

  • Avatar: DS
    DS
    Participant
    May 26, 2022 at 12:07

    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

    Please, contact administrator
    for this information.
    25 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 26, 2022 at 16:44

    Hello,

    Thank you. I have passed the issue to our developers. I’ll inform you once they fix the problem.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 31, 2022 at 12:28

    Hello,

    Your staging site is not available. Did you remove that?

    Regards

    Avatar: DS
    DS
    Participant
    May 31, 2022 at 13:21

    Oo, yes I have moved my site from sitegroud to hostinger, please check new details

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 31, 2022 at 18:53

    Hello,

    Thank you.

    Regards

    Avatar: DS
    DS
    Participant
    June 1, 2022 at 05:33

    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

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 1, 2022 at 17:10

    Hello,

    Thank you. I passed access to our developers.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 2, 2022 at 15:42

    Hello,

    Did you change access to FTP? Now we can’t connect to your FTP.

    Regards

    Avatar: DS
    DS
    Participant
    June 2, 2022 at 16:12

    pl check

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 2, 2022 at 18:09

    Hello,

    Ok, thank you.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 3, 2022 at 12:32

    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

    Avatar: DS
    DS
    Participant
    June 3, 2022 at 13:06

    We don’t wish to use WPMl for WooCommerce because we don’t translate our products, we just translate our posts.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 3, 2022 at 15:08

    Hello,

    I see. Ok. We’ll check if it’s possible to avoid issues without product translation. I’ll keep you in touch.

    Regards

    Avatar: DS
    DS
    Participant
    June 8, 2022 at 07:30

    Any update?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 8, 2022 at 15:05

    Hello,

    Nope, unfortunately. We need more time. Sorry for this delay and inconveniece.

    Regards

    Avatar: DS
    DS
    Participant
    June 29, 2022 at 07:19

    hi,

    any update on this? you are taking too much time for it
    it is important for me hence please take it on priority

    Avatar: DS
    DS
    Participant
    June 29, 2022 at 13:18

    Pl check site details

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 30, 2022 at 16:47

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 7, 2022 at 16:09

    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

    Avatar: DS
    DS
    Participant
    July 8, 2022 at 07:03

    Please check the details given in the private contents

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 8, 2022 at 21:35

    Hello,

    Thank you. I passed your reply to WPML developers.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 15, 2022 at 09:56

    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

    Avatar: DS
    DS
    Participant
    July 15, 2022 at 11:00

    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.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 15, 2022 at 11:36

    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

    Avatar: DS
    DS
    Participant
    July 15, 2022 at 11:41

    seems like it is fixed, can you please tell me what this code doing exactly so that I will note it.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 15, 2022 at 13:00

    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

  • Viewing 26 results - 1 through 26 (of 26 total)

The issue related to '‘Getting Fatal error with WPML one feture’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.