• Resolved anaahatconsultancy

    (@anaahatconsultancy)


    Hi, I’m facing an issue while trying to update my woocommerce plugin.

    When I tried to update it, I got the message that update failed and then I couldn’t log back into the wordpress admin page.

    After this when I tried to log back into WordPress admin it gave me ‘This site is facing a critical error’ message and I got an email from WordPress to go into recovery mode, after going into recovery mode and deactivating the plugin, the site is loading fine but how do I update the plugin now? Do I need to delete it and re-install again?

    It is currently giving me the following message
    E_COMPILE_ERROR was caused in line 87 of the file /var/www/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php. Error message: require(): Failed opening required ‘/var/www/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Composer/Package.php’ (include_path=’.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php’)

    I am using elementor pro and hello elementor theme right now

    WordPress version 5.7
    Current theme: Hello Elementor (version 2.3.1)
    Current plugin: WooCommerce (version 5.2.2)
    PHP version 7.3.12

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter anaahatconsultancy

    (@anaahatconsultancy)

    While I was waiting to resolve this issue, I received another email with an issue with the woocommerce currency switcher plugin.

    WordPress version 5.7
    Current theme: Hello Elementor (version 2.3.1)
    Current plugin: WOOCS - WooCommerce Currency Switcher (version 1.3.4.2)
    PHP version 7.3.12
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 5336 of the file /var/www/wp-content/plugins/woocommerce-currency-switcher/classes/woocs_after_33.php. Error message: Uncaught Error: Call to undefined function wc_get_order_types() in /var/www/wp-content/plugins/woocommerce-currency-switcher/classes/woocs_after_33.php:5336
    Stack trace:
    #0 /var/www/wp-includes/class-wp-hook.php(292): WOOCS->manage_posts_extra_tablenav('top')
    #1 /var/www/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
    #2 /var/www/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /var/www/wp-admin/includes/class-wp-posts-list-table.php(582): do_action('manage_posts_ex...', 'top')
    #4 /var/www/wp-admin/includes/class-wp-list-table.php(1334): WP_Posts_List_Table->extra_tablenav('top')
    #5 /var/www/wp-admin/includes/class-wp-list-table.php(1268): WP_List_Table->display_tablenav('top')
    #6 /var/www/wp-admin/edit.php(474): WP_List_Table->display()
    #7 {main}
      thrown
    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    It seems that the WooCommerce Currency Switcher plugin might be causing the conflict here.

    Can you please deactivate it and check if that fixes the issue?

    Let me know how it goes!

    Plugin Support abwaita a11n

    (@abwaita)

    Hi,
    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

    Thread Starter anaahatconsultancy

    (@anaahatconsultancy)

    Hi I’ve deleted the currency switcher plugin and the problem was resolved. Is there any other plugin you would recommend to switch currencies with woocommerce that wouldn’t cause issues like this one? I’d appreciate any recommendations you have. Thanks for the help.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @anaahatconsultancy,

    We have some great suggestions here: https://docs.woocommerce.com/document/shop-currency/#section-4

    I hope this helps.

    Not sure how to fix this im new to wordpress……………..An error of type E_COMPILE_ERROR was caused in line 87 of the file /var/www/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php. Error message: require(): Failed opening required ‘/var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Package.php’ (include_path=’.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php’)

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @palermopizzasrq ??

    Please open a new topic so that we can help you there.

    Cheers.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘woocommerce plugin fatal error – E compile error was caused’ is closed to new replies.