Support » Plugin: WC Fields Factory » Can’t Edit Page

  • Resolved WP CMS Ninja

    (@billiardgreg)


    When I try to edit a page I get the following error message:

    Fatal error: Call to a member function __unset() on null in /home/xxxxxx/public_html/wp-content/plugins/wc-fields-factory/includes/wcff-injector.php on line 90

Viewing 6 replies - 1 through 6 (of 6 total)
  • So what I thought was a resolution really wasnt. Sorry I jumped the gun.

    • This reply was modified 9 months, 3 weeks ago by  WP CMS Ninja. Reason: mistake in replacement code, needed to be unset not set
    • This reply was modified 9 months, 3 weeks ago by  WP CMS Ninja.
    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    Please update latest version of woocmomerce.

    All WooCommerce plugins are already updated, woocommerce to version 3.4.5.

    Still able to confirm the error is showing:

    Fatal error: Call to a member function __unset() on null in /home/xxxx/public_html/wp-content/plugins/wc-fields-factory/includes/wcff-injector.php on line 90

    • This reply was modified 9 months, 3 weeks ago by  WP CMS Ninja.
    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    hi @billiardgreg,
    Please change the line into

    `if( method_exists(WC()->session, “__unset”) ){
    WC()->session->__unset(“wcff_validation_failed”);
    } `

    I have confirmed that your code suggest has worked.

    if( method_exists(WC()->session, “__unset”) ){
    WC()->session->__unset(“wcff_validation_failed”);
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t Edit Page’ is closed to new replies.