• 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)
  • 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

    (@kenttubman)

    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.