Widget issue

Floosi
Posts: 2
Joined: Sun Jun 12, 2016 10:29 am

Widget issue

Post by Floosi »

Seem to get this show up whenever i'm logged in on the widget,
this is the same for every user and not sure how to fix it.

Image

Code: Select all

19.		   $instance['title'] = $instance['title_logout'];


Also at the top of the screen there is
Notice: Undefined property: stdClass::$pf_phpbb_website in /home/sites/magnitudewow.com/public_html/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 206

Code: Select all

206.   	         if( $phpbb_user_session[0]->user_password != $current_user->user_pass OR $phpbb_user_session[0]->user_email != $current_user->user_email OR $phpbb_user_session[0]->pf_phpbb_website != $current_user->user_url ){
any help would be appreciated
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Widget issue

Post by axew3 »

to solve, until 1.4.5:

OPEN:
class.wp.w3all.widgets-phpbb.php
search for (line 18 on 1.4.4):

Code: Select all

	if ( is_user_logged_in() ) {
		   $instance['title'] = $instance['title_logout'];
		  } 
remove or comment out, save file, replace.

OPEN:
class.wp.w3all-phpbb.php
just before line 206
add the follow:

Code: Select all

$phpbb_user_session[0]->pf_phpbb_website = (isset($phpbb_user_session[0]->pf_phpbb_website)) ? $phpbb_user_session[0]->pf_phpbb_website : '';
Save file. Replace.
strange this second, but ok we will see... i do not get this error, even on local test where php is configured to report any notice or warning ... let know if all working ok after this cleanup edits on 1.4.4. On 1.4.5 as above explaine, will be so removed/applied.
Floosi
Posts: 2
Joined: Sun Jun 12, 2016 10:29 am

Re: Widget issue

Post by Floosi »

Seems to be all fixed, thanks very much! :D
Post Reply