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
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
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 );
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
Hi, the error is still there and after each plugin update I have to patch the plugin manually 🙁
…another release and error still there… you can find the solution in my previous post. Please check your code.