Lampwrights Forum > Other Stuff > vBulletin Wordpress Bridge
Register Community Today's Posts Search

Closed Thread
 
Thread Tools
12-13-2012, 08:23 AM   #1
malcster505
Junior Member
 
Join Date: Mar 2012
Posts: 2
Rep Power: 0
malcster505 is getting browny points
Post Wordpress 3.5 + Vbul Bridge || Comment posting error

Hello, first time poster unfortunately. +1 for this plugin; have been using it for a long while.

After the WP 3.5 update there seems to be an issue with posting comments on posts using the bridge. Every other feature seems to be functioning without issue though.

The error given on posting a comment is as follows:

Fatal error: Call to undefined method stdClass::has_cap() in pathtowordpress\wp-includes\comment.php on line 691

Not sure if anyone else has come across this. I haven't as of yet tried to fix it myself, but if I do find a solution any time soon I'll update my post.

Though if anyone else has an idea of the specific cause I'm open ears as always.

Cheers


Edit: There was a change in the wp_allow_comment function in wp-includes/comments.php
After the do_action

Code:
if ( isset($user_id) && $user_id) {
		$userdata = get_userdata($user_id);
		$user = new WP_User($user_id);
		$post_author = $wpdb->get_var($wpdb->prepare("SELECT post_author FROM $wpdb->posts WHERE ID = %d LIMIT 1", $comment_post_ID));
	}
was changed to:

Code:
	if ( ! empty( $user_id ) ) {
		$user = get_userdata( $user_id );
		$post_author = $wpdb->get_var($wpdb->prepare("SELECT post_author FROM $wpdb->posts WHERE ID = %d LIMIT 1", $comment_post_ID));
	}
Which is causing the error.

Last edited by malcster505; 12-13-2012 at 08:42 AM.
malcster505 is offline  

12-13-2012, 11:54 PM   #2
Rushster
Junior Member
 
Join Date: Mar 2011
Posts: 7
Rep Power: 0
Rushster is getting browny points
I am having errors too. Got it working but it now won't recognise the vbulletin user being logged in and always shows the enter email etc box.

Not really sure what to check. I tried to find the code you mention but can't find it in the core WP files.
Rushster is offline  
12-14-2012, 06:38 AM   #3
malcster505
Junior Member
 
Join Date: Mar 2012
Posts: 2
Rep Power: 0
malcster505 is getting browny points
Quote:
Originally Posted by Rushster View Post
I am having errors too. Got it working but it now won't recognise the vbulletin user being logged in and always shows the enter email etc box.

Not really sure what to check. I tried to find the code you mention but can't find it in the core WP files.
Didn't experience the bridge not recognizing a user isn't logged in.

The line I mentioned only deals with comments, and it's in the wp-includes/comments.php file. There's only one "function wp_allow_comment", so using find you can't really miss it. There is also only one do_action inside that function too.

I haven't found the fix yet but I haven't really had time to properly look due to work. I'll be trying to get a proper look in over the weekend. Your best bet for now is to revert your wp installation.
malcster505 is offline  
12-14-2012, 08:47 AM   #4
Rushster
Junior Member
 
Join Date: Mar 2011
Posts: 7
Rep Power: 0
Rushster is getting browny points
Can't really revert it, would be way too much work. Basicaly at the stage where the site recgonises the user as logged in but the comment box at the bottom thinks they are not. Still working on it
Rushster is offline  
12-14-2012, 07:23 PM   #5
ihstiv
Junior Member
 
Join Date: Mar 2012
Posts: 2
Rep Power: 0
ihstiv is getting browny points
I'm getting a blank page with this error after the upgrade to 3.5:

Fatal error: Call to undefined method stdClass::has_prop() in /home/mysite/public_html/wordpress/wp-includes/user.php on line 245

looks like it's related to the changes around $user / $userdata

I'd be grateful for any tips to resolve at least some of this error - I'm not having much luck on my end so far.

awesome plugin, been enjoying for a while now.
ihstiv is offline  
12-15-2012, 03:28 PM   #6
Rushster
Junior Member
 
Join Date: Mar 2011
Posts: 7
Rep Power: 0
Rushster is getting browny points
Well I got it working eventually. Disabled the WP admin integration functionality (which I don't use anyway and as far as I know was experimental anyway) and had to mess about with it quite a bit.

If you want to try out my file drop me a PM and I will send you a link to it.
Rushster is offline  
12-15-2012, 04:38 PM   #7
ihstiv
Junior Member
 
Join Date: Mar 2012
Posts: 2
Rep Power: 0
ihstiv is getting browny points
Quote:
Originally Posted by Rushster View Post
Well I got it working eventually. Disabled the WP admin integration functionality (which I don't use anyway and as far as I know was experimental anyway) and had to mess about with it quite a bit.

If you want to try out my file drop me a PM and I will send you a link to it.
Thanks Rushster. I'm taking a look at a new WP plugin called vbsso that looks like it might be more well supported. no disrespect to lampwrights.
ihstiv is offline  
12-17-2012, 07:59 PM   #8
scottelkin
Junior Member
 
Join Date: Jun 2011
Posts: 2
Rep Power: 0
scottelkin is getting browny points
Quote:
Originally Posted by Rushster View Post
Well I got it working eventually. Disabled the WP admin integration functionality (which I don't use anyway and as far as I know was experimental anyway) and had to mess about with it quite a bit.

If you want to try out my file drop me a PM and I will send you a link to it.
Can you send me the link? I can't send a PM until I get three posts.
scottelkin is offline  
12-19-2012, 05:45 PM   #9
Salva Portillo
Junior Member
 
Join Date: Apr 2011
Posts: 6
Rep Power: 0
Salva Portillo is getting browny points
Quote:
Originally Posted by Rushster View Post
Well I got it working eventually. Disabled the WP admin integration functionality (which I don't use anyway and as far as I know was experimental anyway) and had to mess about with it quite a bit.

If you want to try out my file drop me a PM and I will send you a link to it.
Hi Rushster. Same for me, could you please PM me? Thanks!
Salva Portillo is offline  
12-19-2012, 06:33 PM   #10
scottelkin
Junior Member
 
Join Date: Jun 2011
Posts: 2
Rep Power: 0
scottelkin is getting browny points
I am still waiting...I had to rollback to Wordpress 3.42 in the meantime.
scottelkin is offline  
12-28-2012, 06:39 PM   #11
Salva Portillo
Junior Member
 
Join Date: Apr 2011
Posts: 6
Rep Power: 0
Salva Portillo is getting browny points
Quote:
Originally Posted by Rushster View Post
Well I got it working eventually. Disabled the WP admin integration functionality (which I don't use anyway and as far as I know was experimental anyway) and had to mess about with it quite a bit.

If you want to try out my file drop me a PM and I will send you a link to it.
Hi Rushster, could you please give us a hand?
Salva Portillo is offline  
12-31-2012, 12:04 PM   #12
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Let me know if this fixes the issue for you. In vbbridge.php, find this line in the function get_userdata():

PHP Code:
    if ( !$user_a $vb->db->query_first("SELECT * FROM " TABLE_PREFIX "user WHERE userid = '" intval($user_id) . "'") )
        return 
false
Add this right AFTER that:

PHP Code:
$user = new WP_User
Jeff is offline  
Closed Thread

Tags

vbulletin wordpress bridge

,

vbulletin integration



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Bridge with Wordpress and XMLRPC Twigg vBulletin Wordpress Bridge 1 11-07-2011 03:23 PM
Bridge and search error kkj vBulletin Wordpress Bridge 9 10-24-2011 03:55 AM
Vbbridge 500 Error on Wordpress Posts with Comments mrps2man vBulletin Wordpress Bridge 2 09-29-2011 06:46 PM
Question of new Wordpress Bridge vs Old one woox vBulletin Wordpress Bridge 21 02-20-2011 12:20 AM
Vbbridge comment avatar overlap phsycical vBulletin Wordpress Bridge 1 02-15-2011 08:07 AM


All times are GMT -4. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.