Support » Plugin: PPOM for WooCommerce » Upgrade problems from 3.6 to 10.7

  • Hello,

    We have been having problems when migrating form 3.6 of this plugin to the latest version.

    DATABASE:

    Editing any existing product meta forms seems to crash to missing database fields with errors pointing to fields like:

    
    Unknown column 'send_file_attachment' in 'field list'
    Unknown column 'productmeta_categories' in 'field list'
    

    It seems that the database fields weren’t updated properly in plugin update for table “wp_nm_personalized”. To fix this issue the plugin has to be turned off and back on again and it seems to migrate the database.

    After the database issues are worked out saving and creating new product meta sets works again.

    REQUIREMENT VALIDATION:

    The next problem is that if user tries to add a product with required fields to cart it shows error list for fields required BUT STILL adds the product to cart with missing fields.

    In version 3.6 user just couldn’t add product to cart with unfilled required fields.

    Data names are set for each required field.

    OTHER INFO:

    After enabling 10.7 the plugin outputs following errors to httpd log:

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'NM_PersonalizedProduct' does not have a method 'ppom_files_removed_unused_images' in /XXXXXXXX/wp-includes/class-wp-hook.php on line 286

    Using WordPress 4.9.4 and Woocommerce 3.3.2.

    • This topic was modified 1 year, 7 months ago by  mbwaccount.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    can you please share your product page URL?

    Yeah, this issue has happened to me too.

    `PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘NM_PersonalizedProduct’ does not have a method ‘ppom_files_removed_unused_images’ in /home/…/public_html/staging/wp-includes/class-wp-hook.php on line 286

    Plugin Author N-Media

    (@nmedia)

    Hi,

    Well make sure you have deactivate and re-activate plugin once you update to latest version. It will fix database update related issues. And bout required field please set each field’s data name again (Normally it does not need be to set again after update but may be it’s not updated).

    And for last issue generating PHP Warning mentioned by @divern, we have fixed this and we will release in version 11.2. For quick fix please go to classes/plugin.class.php file and near line number 200 replace

    add_action('do_action_remove_images', array($this, 'ppom_files_removed_unused_images'));

    with

    add_action('do_action_remove_images', 'ppom_files_removed_unused_images');

    • This reply was modified 1 year, 6 months ago by  N-Media.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrade problems from 3.6 to 10.7’ is closed to new replies.