Function phpbb_register_url not found or invalid function name
Posted: Fri Mar 19, 2021 9:05 am
Hello,
I have logfiles in cpanel full with this error:
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'phpbb_register_url' not found or invalid function name
I've searched through the code and found this:
in wp-w3all-phpbb-integration, line 722
from line 614
Does this happen to me only or is a known issue?
I have logfiles in cpanel full with this error:
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'phpbb_register_url' not found or invalid function name
I've searched through the code and found this:
in wp-w3all-phpbb-integration, line 722
Code: Select all
add_filter( 'register_url', 'phpbb_register_url', 10, 1);
Code: Select all
function phpbb_register_url( $register_url ) {
global $w3all_url_to_cms, $w3all_iframe_phpbb_link_yn, $wp_w3all_forum_folder_wp;
if( $w3all_iframe_phpbb_link_yn == 1 ){
$wp_w3all_forum_folder_wp = "index.php/" . $wp_w3all_forum_folder_wp;
$redirect = $wp_w3all_forum_folder_wp . '/?mode=register';
return $redirect;
} else { // register no iframe, direct link to phpBB
$redirect = $w3all_url_to_cms . '/ucp.php?mode=register';
return $redirect;
}
}