Title: Plugin causes error
Last modified: October 5, 2021

---

# Plugin causes error

 *  [kenttubman](https://wordpress.org/support/users/kenttubman/)
 * (@kenttubman)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/plugin-causes-error-2/)
 * When I enable the plugin the following error appears on the website: “Warning:
   call_user_func_array() expects parameter 1 to be a valid callback, function ‘
   ssl_redirect_pb’ not found or invalid function name in /home/ni2xqcez/public_html/
   wp-includes/class-wp-hook.php on line 303”
    I am running WP 5.8.1, PHP 7.4 What
   could cause this error to appear? Thanks, Kent

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Dominique Liard](https://wordpress.org/support/users/dliard/)
 * (@dliard)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-causes-error-2/#post-15009290)
 * Hey Kent,
 * while I am not affiliated with Paybright in any way, I stumbled upon the same
   problem, it seems there is a small bug in the source code.
 * If you are ok with coding or have a ressource for that, you simply need to edit
   2 lines in the file WCGatewayPaybright.php Ln: 52-53
 *     ```
       add_filter('template_redirect', array($this, 'ssl_redirect_pb'), 1);
               add_action('template_redirect', array($this, 'ssl_redirect_pb'), 1);
       ```
   
 * Please note that as soon as you will update your extension, the bug will reappear.
   I’ll contact them about this problem but I have not ETA about when it’ll be done.
 *  Thread Starter [kenttubman](https://wordpress.org/support/users/kenttubman/)
 * (@kenttubman)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-causes-error-2/#post-15012201)
 * Dominique,
    Thank you so much for your suggestion. I am currently working with
   PayBright Tech Support and have shared your suggestion with them to get their
   feedback. I will let you know the outcome. Thanks again, Kent

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin causes error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paybright_c5cec5.svg)
 * [PayBright Payment Gateway](https://wordpress.org/plugins/paybright/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paybright/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paybright/)
 * [Active Topics](https://wordpress.org/support/plugin/paybright/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paybright/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paybright/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kenttubman](https://wordpress.org/support/users/kenttubman/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-causes-error-2/#post-15012201)
 * Status: not resolved