Can you please explain more about what you are trying to do?
If you are using the wordpoints_alter_points() function, the blog_id should be inserted as the value of $wpdb->blogid. If it isn’t being inserted, that probably means that the value of $wpdb->blogid is not set properly. This is probably being caused by another plugin that is modifying the $wpdb->blogid value.
If you aren’t using a function provided by WordPoints to insert the data, that is not really supported.
Thread Starter
shivks
(@shivks)
I am publishing new post, commenting on a post, but still blog id column is 0 in database. No other plugin is conflicting I have deactivated all other. Kindly help on this.
I’m sorry you’re still having trouble with this. If you could answer a few questions for me, it will help me to try and figure out what is going on.
- Which version of WordPoints and WordPress are you using?
- Are you using multisite?
- Have you tried also switching to one of the default themes?
- Can you check what the value of
$wpdb->blogid is?
WordPoints uses on the value of $wpdb->blogid. It will insert whatever the value of $wpdb->blogid is. So if $wpdb->blogid is 0, then WordPoints will insert 0. Usually, when multisite is not enabled, the value of $wpdb->blogid will just always be 1. For some reason, it is 0 on your site. I do not think that this will affect the operation of WordPoints, unless the value of $wpdb->blogid is changed on your site later for some reason.
Are you having a particular problem that this is causing you?