• Resolved slaneous

    (@slaneous)


    Hi,
    I look after the above linked website and this morning I received this error message from Woocommerce.

    `Hi!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, WooCommerce Payments.

    First, visit your website (https://london-gothic.co.uk/) and check for any visible issues. Next, visit the page where the error was caught (https://london-gothic.co.uk/wp-admin/admin-post.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://london-gothic.co.uk/totheemir8tes/?action=enter_recovery_mode&rm_token=UfeuEWQiIHJlmMHgt7GiuZ&rm_key=8kJnQu4Rwo42K1LO0dHHPg

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.1
    Active theme: Divi (version 4.19.0)
    Current plugin: WooCommerce Payments (version 5.0.0)
    PHP version 7.4.32

    Error Details
    =============
    An error of type E_ERROR was caused in line 572 of the file /home/londongo/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php. Error message: Uncaught Error: Class ‘WC_Payments_Admin_Settings’ not found in /home/londongo/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php:572
    Stack trace:
    #0 /home/londongo/public_html/wp-includes/class-wp-hook.php(308): WC_Payments_Account->maybe_redirect_to_onboarding(”)
    #1 /home/londongo/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/londongo/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/londongo/public_html/wp-admin/admin-post.php(30): do_action(‘admin_init’)
    #4 {main}
    thrown`

    I’m not sure what I can do to fix this.

    Any help would be gratefully appreciated.

    Sean

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @slaneous ,
     
    We appreciate you sharing the details of the error. There was a hotfix released for WooCommerce Payments since version 5.0.0 which addresses errors like yours, could you please try to update WooCommerce Payments to version 5.0.1 and let us know if you still encounter the error? 

    I’m hopeful the update will address the error, but if it doesn’t please open a new thread on the WooCommerce Payments support forum.

    If you have another question pertaining to core WooCommerce, please feel free to open a new topic with here as well. Thanks!

    Thread Starter slaneous

    (@slaneous)

    Hi Lionel,
    many thanks for your response and suggestions. I have up woocommerce so hopefully that will sort it.

    One more question. Is there a way of removing the product description tab only on one product do you know. Ideally I do not want to edit any php files please. Is this possible with some css at all?

    Cheers
    Sean

    Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there Sean!

    You can hide the product description tab for a specific product using CSS in the following way:

    
    .postid-123 #tab-title-description,.postid-123  #tab-description{
    	display:none;
    }
    

    Note that you’ll need to replace 123 with the product’s ID.

    The ideal way of doing this, though, is by adding a PHP snippet as described here: https://woocommerce.com/document/editing-product-data-tabs/

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
    function woo_remove_product_tabs( $tabs ) {
    	global $product;
    	if($product->get_id() == 31){
    		unset( $tabs['description'] ); 
    	}
    
        return $tabs;
    }

    If you do not wish to edit PHP files, you can use a plugin like Code Snippets to add the custom code.

    I hope this helps! 🙂

    Thread Starter slaneous

    (@slaneous)

    Thank you so much👍🏻

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error message from woo’ is closed to new replies.