Function phpbb_register_url not found or invalid function name

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Function phpbb_register_url not found or invalid function name

Re: Function phpbb_register_url not found or invalid function name

by axew3 » Sat Mar 20, 2021 4:21 pm

mh ... there is some option that interfere then.
Ok, thank for the report, it will be fixed/checked on next to be sure that it do not happen anymore.

In the while, it is coming the new phpBB extension, which move the integration to the next step.
The plugin with the ext in phpBB installed, is "a perfect world".

The extension will be released improved of "magic things" in next few days, with new 2.4.5, in the while there is this:
viewtopic.php?p=5194#p5194

Re: Function phpbb_register_url not found or invalid function name

by DesmoGiec » Sat Mar 20, 2021 3:51 pm

Well...
Moving the function just after the call.....
Apparently solved the problem :shock:
I'm not sure how that worked, but it worked. :lol:

Re: Function phpbb_register_url not found or invalid function name

by axew3 » Sat Mar 20, 2021 12:51 am

Sorry my previous assertion, partially wrong, i should read better before to answer, sorry.
The fact that there is no valid callback, mean that the called function is not found.
function phpbb_register_url( $register_url ) {
on wp_w3all.php file.
As said, i tested with any plugin configuration and it is working fine, the function is not wrapped inside something that do not let it to be executed.

Did you changed something into wp_w3all.php file?
If not, it is obscure at moment the reason that it do not work in your case.

You could do this to check, or to resolve:

cut the entire function code:

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;
    }

 }
and paste it immediately after the line

Code: Select all

add_filter( 'register_url', 'phpbb_register_url', 10, 1);


I assume it is not a problem that can come out from server, but on how the code is executed.
Very strange.

Re: Function phpbb_register_url not found or invalid function name

by DesmoGiec » Fri Mar 19, 2021 2:24 pm

Yes, I've enabled the option which redirects registering and lost password to phpbb functions, and I've correctly written the board url in the configuration.

Code: Select all

call_user_func_array() expects parameter 1 to be a valid callback, function 'phpbb_register_url' not found or invalid function name in /home/xxx/public_html/wp-includes/class-wp-hook.php on line 292
I'm using alt-php74, hosted on netsons running on cpanel 92.0.12

Re: Function phpbb_register_url not found or invalid function name

by axew3 » Fri Mar 19, 2021 9:27 am

So strange, no never reported nor experienced, nor i can reproduce at moment setting any plugin option in any flavor

It is just the function/filter/hook that rewrite wp registration and Lost pass links to point to phpBB instead then wordpress.
I will try to understand how it is possible that it could come out, that seem impossible (to me) at moment...

You want registration and lost pass to point to phpBB and activated this option?

The plugin's URL setting that need to point to phpBB into the plugin admin, i assume is correctly setup? Because the unique reason that it could return a result like this, is that the URL setting is empty.

Top