• After creating the rules on where to display the product field, plugin returns an error and the rule is not being saved. So basically fields are not displayed.
    The error to the mail came like:

    =================
    `E_ERROR tipa kļūda tika izraisīta /home/*****/public_html/wp-content/plugins/wc-fields-factory/includes/wcff_builder.php datnes 145. rindiņā. Kļūdas paziņojums: Uncaught Error: Call to a member function get_parent_id() on bool in /home/*****/public_html/wp-content/plugins/wc-fields-factory/includes/wcff_builder.php:145
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/wc-fields-factory/views/meta_box_target_products.php(68): wcff_builder->build_product_variations_selector(‘wcff_condition_…’, ‘-1’)
    #1 /home/*****/public_html/wp-content/plugins/wc-fields-factory/includes/wcff_post_handler.php(259): include(‘/home/******/…’)
    #2 /home/******/public_html/wp-admin/includes/template.php(1401): wcff_post_handler->inject_target_products_meta_box(Object(WP_Post), Array)
    #3 /home/*******/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #4 /home/*****/public_html/wp-admin/post.php(206): require(‘/home/*******/…’)
    #5 {main}
    thrown

    WordPress 6.0
    WC Fields Factory (versija 4.0.4)
    PHP 7.4

Viewing 1 replies (of 1 total)
  • Thread Starter jamajamajaaama

    (@tipone)

    More information. Interestingly the message requiring the client to chose something from the field is being displayed, but the field is not shown because of the error.

Viewing 1 replies (of 1 total)

The topic ‘Error on product rules’ is closed to new replies.