Xstore core plugin causing error - by DvApps

This topic has 10 replies, 4 voices, and was last updated 4 years, 8 months ago ago by Olga Barlow

  • Avatar: DvApps
    DvApps
    Participant
    August 25, 2019 at 09:34

    Hey,
    The new update of XStore Core has caused my website to display the following error “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

    I have confirmed it is the plugin by disabling it, by renaming it in the file manager, I was then able to log in to the website and try and activate the plugin, which again caused the same error.

    Thanks

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 25, 2019 at 10:11

    Hello,

    Thanks for contacting us.
    This error means you updated the XStore core plugin but did not update the theme.
    As I can see, your site has the latest version of the theme (5.6) now. Do you have the problem with Core still?
    Enable WP debug mode https://codex.wordpress.org/WP_DEBUG to find out what error appears on your site, it will point you in the right direction what needs to be fixed.

    Regards

    Avatar: DvApps
    DvApps
    Participant
    August 25, 2019 at 11:28

    The theme is already up to date to version 5.6. Right now I have the plugin disabled, but when I try to activate it, I still get errors.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 25, 2019 at 13:39

    Did you make changes in the theme files?
    Try to disable all the third-party plugins that do not come bundled with our theme https://xstore.helpscoutdocs.com/article/36-included-plugins and check how it works then.
    Let us know and provide temporary FTP access (host, username, password, port).

    Regards

    Avatar: DvApps
    DvApps
    Participant
    August 26, 2019 at 00:45

    I disabled all plugins except for that one, and then one by one tried enabling the other plugins, when I got to WooCommerce, I got the same error. I haven’t made any code changes to the theme, apart from creating a child theme as part of the set up.

    Please contact administrator
    for this information.
    Avatar: Alexnader
    Alexander
    Participant
    August 26, 2019 at 01:35

    Thats happing to me 2 days ago.
    When you enable “Debug mode” you wiil see WP complaining that the same function is defined in 2 pages. When you edit files you wiil see tha one has a “if function does not exists” in code and the other one doesnt have this peace of code. Just copy this missing peace code and the problem will be solved

    Avatar: DvApps
    DvApps
    Participant
    August 26, 2019 at 09:47

    Do you know which file I need to copy it from and which file I need to paste it to?

    Avatar: Alexnader
    Alexander
    Participant
    August 26, 2019 at 23:58

    In my case, im was getting the error above

    ] PHP Fatal error: Cannot redeclare etheme_product_meta_boxes() (previously declared in /home/u468996019/domains/brincandodeadoleta.com.br/public_html/wp-content/plugins/et-core-plugin/inc/functions.php:57) in /home/u468996019/domains/brincandodeadoleta.com.br/public_html/wp-content/themes/xstore/framework/woo/video.php on line 9
    [2

    As you can see, the function “etheme_product_meta_boxes()” was declared in two files. In one of then, the function has a additional peace of code to test if the function was declared in another place, i just copied this peace of code to the other file.

    Here is was the code looks like after the adjustment…

    if ( !function_exists('etheme_product_meta_boxes') ) {
        add_action('admin_init', 'etheme_product_meta_boxes');
        function etheme_product_meta_boxes() {
            add_meta_box( 'woocommerce-product-videos', esc_html__( 'Product Video', 'xstore' ), 'etheme_woocommerce_product_video_box', 'product', 'side' );
        }
    }
    
    Avatar: DvApps
    DvApps
    Participant
    August 27, 2019 at 02:52

    Thanks that fixed it, I had the same error.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 27, 2019 at 13:13

    Hello, @DvApps and @Alexnader

    Problem appeared because you updated plugin and did not update theme. Never update plugin without theme update. We moved some options from theme to plugin files in the last theme/plugin update, so both should be updated. If you faced that error it means you just updated plugin to version 1.2.7 but did not update theme to version 5.6. To fix the error you need to update theme to version 5.6.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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