Fatal error

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #94134
    Ian Dempsey
    Participant

    I just installed the plugin and when I try to view a product in the in dashboard I get the following error

    Fatal error: Uncaught Error: Using $this when not in object context in /home/jkcompet/staging/1/wp-content/plugins/variations-radio-buttons-for-woocommerce-pro/includes/settings/class-alg-wc-vrb-product-metabox.php:45 Stack trace: #0 /home/jkcompet/staging/1/wp-includes/class-wp-hook.php(290): Alg_WCVRB_Product_Metabox::add_product_metabox(‘product’) #1 /home/jkcompet/staging/1/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /home/jkcompet/staging/1/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/jkcompet/staging/1/wp-admin/includes/meta-boxes.php(1549): do_action(‘add_meta_boxes’, ‘product’, Object(WP_Post)) #4 /home/jkcompet/staging/1/wp-admin/edit-form-advanced.php(269): register_and_do_post_meta_boxes(Object(WP_Post)) #5 /home/jkcompet/staging/1/wp-admin/post.php(198): include(‘/home/jkcompet/…’) #6 {main} thrown in /home/jkcompet/staging/1/wp-content/plugins/variations-radio-buttons-for-woocommerce-pro/includes/settings/class-alg-wc-vrb-product-metabox.php on line 45

    #94135
    tychesoftwares
    Participant

    Hi Ian,

    Can you tell me at what point do you receive this error? Is this on the “Edit Product” page or on the new WooCommerce dashboard?

    :Vishal

    #94136
    Ian Dempsey
    Participant

    Hi,

    It is in the ‘Edit Product’ page.

    I have commented out line 24 in class-alg-wc-vrb-product-metabox.php to get it to work

    //add_action( ‘add_meta_boxes’, array( $this, ‘add_product_metabox’ ) );

    As I currently don’t require the option at product level.

    But I would appreciate if it could be fixed.

    Thanks

    #94137
    tychesoftwares
    Participant

    Thanks for the details, Ian. Sure, we’ll fix this one & release an update.

    #94138
    tychesoftwares
    Participant

    Hi Ian,

    We’ve just released an update to the plugin, v 2.3.3. We have fixed the error in that one. Can you please update do that one & check? You should not receive the error.

    :Vishal

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.