12-13-2012, 08:23 AM | #1 |
Junior Member
Join Date: Mar 2012
Posts: 2
Rep Power: 0 |
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)); } 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)); } Last edited by malcster505; 12-13-2012 at 08:42 AM. |
12-13-2012, 11:54 PM | #2 |
Junior Member
Join Date: Mar 2011
Posts: 7
Rep Power: 0 |
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. |
12-14-2012, 06:38 AM | #3 | |
Junior Member
Join Date: Mar 2012
Posts: 2
Rep Power: 0 |
Quote:
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. |
|
12-14-2012, 08:47 AM | #4 |
Junior Member
Join Date: Mar 2011
Posts: 7
Rep Power: 0 |
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
|
12-14-2012, 07:23 PM | #5 |
Junior Member
Join Date: Mar 2012
Posts: 2
Rep Power: 0 |
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. |
12-15-2012, 03:28 PM | #6 |
Junior Member
Join Date: Mar 2011
Posts: 7
Rep Power: 0 |
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. |
12-15-2012, 04:38 PM | #7 | |
Junior Member
Join Date: Mar 2012
Posts: 2
Rep Power: 0 |
Quote:
|
|
12-17-2012, 07:59 PM | #8 | |
Junior Member
Join Date: Jun 2011
Posts: 2
Rep Power: 0 |
Quote:
|
|
12-19-2012, 05:45 PM | #9 | |
Junior Member
Join Date: Apr 2011
Posts: 6
Rep Power: 0 |
Quote:
|
|
12-19-2012, 06:33 PM | #10 |
Junior Member
Join Date: Jun 2011
Posts: 2
Rep Power: 0 |
I am still waiting...I had to rollback to Wordpress 3.42 in the meantime.
|
12-28-2012, 06:39 PM | #11 | |
Junior Member
Join Date: Apr 2011
Posts: 6
Rep Power: 0 |
Quote:
|
|
12-31-2012, 12:04 PM | #12 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Let me know if this fixes the issue for you. In vbbridge.php, find this line in the function get_userdata():
PHP Code:
PHP Code:
|
Closed Thread |
Tags |
vbulletin wordpress bridge
,
|
|
|
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 |