Support » Plugin: WP w3all phpBB » Plugin fails with Cherry Framework 4
Plugin fails with Cherry Framework 4
-
Hi, when i use this plugin to embed the phpbb forum into the page-community.php in combination with Cherry framework it fails. I’m getting undefined variable errors. And have no idea how to fix it.
The plugin does work with theme Twenty Fifteen/Seventeen etc. but not with a Cherry Framewokr theme.
-
Hi: have you setup the page name into wp_w3all config?
the name of the page you have into template folder, need to be setup (in this case) as
community
build the page. But assuming you have do this, and setup all properly about path and url,
Vars seem to be lost somewhere.
So, i think to resolve you can try to open your page-community.php into WP template folder and maybe just after the line on top
// MAY DO NOT MODIFY
add the follow:$phpbb_on_template_iframe = get_option( 'w3all_iframe_phpbb_link_yn' ); $wp_w3all_forum_folder_wp = get_option( 'w3all_forum_template_wppage' ); $w3all_url_to_cms = get_option( 'w3all_url_to_cms' );
solved?
Hi,
Yeah i did set that all up correctly.
Your fix however solved the problem and it is working now! Awesome.
Thanks alot for your quick help. Great plugin!
ok nice! But i’ve not test nothing so, maybe some vars more you’ll maybe experience that fail to be recognized: in case these vars need to be added in the same way into page-community.php.
Since i’ve not test it, just post if some var more need to be added to work properly because missed on code parsing.In case, please list the error lines with names of the lacking vars.
Hey,
It’s almost fixed, now i received this error.
Notice: Undefined index: scheme in /var/www/html/staging/wp-content/themes/AOM/page-community.php on line 45
Greetings, Mark
on same page-forum(or community as you have name it).php
search for code:$w3urlscheme = parse_url($w3all_url_to_cms); $w3urlscheme = $w3urlscheme['scheme'];
remove and replace with:
$w3urlscheme = is_ssl() ? 'https' : 'http';
Hi,
The error is gone, but the iframe is empty now <iframe id=”w3all_phpbb_iframe” style=”width:1px;min-width:100%;*width:100%;border:0 !important;” scrolling=”no” src=””>
^ No src=””
Any idea how to solve that?
hi, as above, you need this (and the url value need to be set on wp_w3all config page)
$w3all_url_to_cms = get_option( 'w3all_url_to_cms' );
Hi, that works thanks again. and again a new error … sigh.
Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/html/staging/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 1124
Any idea how to fix this? not sure why all these errors popups after each other
-
This reply was modified 6 years, 4 months ago by
revoxis.
maybe is line 1134 of file class.wp.w3all-phpbb.php?
change:
if(is_wp_error( $user_id )){ echo __( '<h3>Error: username or email result associated to another user in this system.</h3>', 'wp-w3all-phpbb-integration' ) . '<h4><a href="'.get_edit_user_link().'">' . __( 'Return back', 'wp_w3all_phpbb' ) . '</a><h4>'; exit; }
INTO
if( intval($user_id ) < 2 ){ echo __( '<h3>Error: username or email result associated to another user in this system.</h3>', 'wp-w3all-phpbb-integration' ) . '<h4><a href="'.get_edit_user_link().'">' . __( 'Return back', 'wp_w3all_phpbb' ) . '</a><h4>'; exit; }
about the first one, you seem you have forget or remove the instruction indicated on previous post.
While this one, is a temp fix valid for next version … let knowHi, still the same error. here’s what i did:
ive set the correct paths in wp_w3all config>
in page-community ive replaced the lines you told me (hopefully i did it correct):
$w3logout = $w3mode; $w3urlscheme = is_ssl() ? 'https' : 'http'; $w3all_url_to_cms = get_option( 'w3all_url_to_cms' ); $w3all_target_server = preg_replace('/^[^\.]*\.([^\.]*)\.(.*)$/', '\1.\2',$w3all_url_to_cms);
In class.wp.w3all-phpbb.php ive replaced the entire line from 1134 to 1137 like so:
if( intval($user_id ) < 2 ){ echo __( '<h3>Error: username or email result associated to another user in this system.</h3>', 'wp-w3all-phpbb-integration' ) . '<h4><a href="'.get_edit_user_link().'">' . __( 'Return back', 'wp_w3all_phpbb' ) . '</a><h4>'; exit; }
Any ideas? ive still got the error:
Catchable fatal error: Object of class WP_Error could not be converted to etc.
-
This reply was modified 6 years, 4 months ago by
revoxis.
edited:
replace the code
if(is_wp_error( $user_id )){ echo __( '<h3>Error: username or email result associated to another user in this system.</h3>', 'wp-w3all-phpbb-integration' ) . '<h4><a href="'.get_edit_user_link().'">' . __( 'Return back', 'wp_w3all_phpbb' ) . '</a><h4>'; exit; }
with:if(is_wp_error( $user_id )){ echo '<h3>Error: '.$user_id->get_error_message().'</h3>' . '<h4><a href="'.get_edit_user_link().'">Return back</a><h4>'; exit; }
-
This reply was modified 6 years, 4 months ago by
axew3.
p.s
remove or:
the correct code that should replace the old,
should be this:if(is_wp_error( $user_id )){ echo '<h3>Error: '.$user_id->get_error_message().'</h3>' . '<h4><a href="'.get_edit_user_link().'">Return back</a><h4>'; exit; }
let know if this resolve, and the exact error if you still get it
check that the above has just been edited, the correct code to substitute is this:
if(is_wp_error( $user_id )){ echo '<h3>Error: '.$user_id->get_error_message().'</h3>' . '<h4><a href="'.get_edit_user_link().'">Return back</a><h4>'; exit; }
p.s all the code above has been updated with this latest correct one
-
This reply was modified 6 years, 4 months ago by
axew3.
Hey,
Sorry but no matter what code snipped i use you sent me, nothing works. the error i still get is:
Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/html/staging/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 1124
on http://preview.privatedomain.com/wp-login.php
Removing the code = same error
Replacing the code = same errorIf i remove this code: `if ( !is_multisite() ) { // check that this user is correctly activated in wp at this point and add options about roles
$wpu_db_utab = $wpdb->prefix . ‘usermeta’;
$subscriber = ‘a:1:{s:10:”subscriber”;b:1;}’;
$wpdb->query(“UPDATE $wpu_db_utab SET meta_value = ‘$subscriber’ WHERE user_id = ‘$user_id’ AND meta_key = ‘wp_capabilities'”);
}`
The error is gone, but obvious i received a new error.-
This reply was modified 6 years, 4 months ago by
revoxis.
-
This reply was modified 6 years, 4 months ago by
- The topic ‘Plugin fails with Cherry Framework 4’ is closed to new replies.