• There is a typo in class.cf7pe.admin.action.php that leads to a fatal error:

    add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’, 10, 2) );

    should be:

    add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’), 10, 2 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ZealousWeb

    (@zealopensource)

    Hello stekky81,

    Thank you so much for reaching out to me. We are currently checking the issue and will update you shortly.

    If you have any questions, feel free to ask. I’m here to help.

    Thank you,
    ZealousWeb

    Plugin Author ZealousWeb

    (@zealopensource)

    Hello @stekky81,

    I’ve checked my demo server, and everything is working fine. Could you please provide a list of the active plugins?

    Thank you,
    ZealousWeb

    Thread Starter stekky81

    (@stekky81)

    The error occurs only in the backend when installing/updating a plugin that is when the hook upgrader_process_complete is triggered. Look at the closed parentheses the the end of your add_action; the first one is in the wrong place:

    add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’, 10, 2) );

    from WP documentation add_action is like:

    add_action( string?$hook_name, callable?$callback, int?$priority?=?10, int?$accepted_args?=?1?): true

    as you can see in your code the priority and accepted args are inside the callback array (in bold):

    add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’, 10, 2) );

    when they should be outside:

    add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’), 10, 2 );

    Plugin Author ZealousWeb

    (@zealopensource)

    Hello @stekky81,

    Thank you so much for informing me. We will check and update you shortly.

    If you have any further questions, feel free to reach out. I’m here to help.

    Thank you,
    ZealousWeb

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