• 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)
  • Thread Starter WP CMS Ninja

    (@billiardgreg)

    So what I thought was a resolution really wasnt. Sorry I jumped the gun.

    • This reply was modified 6 years, 6 months ago by WP CMS Ninja. Reason: mistake in replacement code, needed to be unset not set
    • This reply was modified 6 years, 6 months ago by WP CMS Ninja.
    Plugin Contributor sarkparanjothi

    (@sarkparanjothi)

    Please update latest version of woocmomerce.

    Thread Starter WP CMS Ninja

    (@billiardgreg)

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

    Thread Starter WP CMS Ninja

    (@billiardgreg)

    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 6 years, 6 months ago by WP CMS Ninja.
    Plugin Contributor sarkparanjothi

    (@sarkparanjothi)

    hi @billiardgreg,
    Please change the line into

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

    Thread Starter WP CMS Ninja

    (@billiardgreg)

    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.