klandestino / bp-relate-groups-to-blogs

BuddyPress plugin that makes it possible to relate groups to blogs
GNU General Public License v2.0
1 stars 1 forks source link

Errors adding Blogs #1

Open Venutius opened 10 years ago

Venutius commented 10 years ago

I've tried a few times to use this plugin with the latest versions of buddypress and wordpress etc and everytime I try to add a blog I get a wall of errors and a hung page.Examples below: IT might be me not using it correctly, in which case maybe there should be instructions as to how to do it?

Warning: mysql_real_escape_string(): No such file or directory in /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-content/plugins/bp-relate-groups-to-blogs/includes/group.php on line 209

Warning: mysql_real_escape_string(): A link to the server could not be established in /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-content/plugins/bp-relate-groups-to-blogs/includes/group.php on line 209

Warning: mysql_real_escape_string(): No such file or directory in /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-content/plugins/bp-relate-groups-to-blogs/includes/group.php on line 210

Warning: mysql_real_escape_string(): A link to the server could not be established in /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-content/plugins/bp-relate-groups-to-blogs/includes/group.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-content/plugins/bp-relate-groups-to-blogs/includes/group.php:209) in /homepages/14/d69811276/htdocs/clickandbuilds/SacredVale/wp-includes/pluggable.php on line 1121

spurge commented 10 years ago

That function (mysql_real_escape_string) shouldn't be used. It escapes strings so they won't damage your mysql-connection. But using Wordpress own database abstraction whould be much better. But that won't solve your problem at the moment :)

Perhaps you're not using mysql or that you connections are setup in a way that requires something else than an ordinary mysql_real_escape_string-call.

If you've got the time, it's pretty easy to change these lines to something that will work without the mysql_real_escape_string.

Reference: http://codex.wordpress.org/Class_Reference/wpdb#SELECT_Generic_Results

I've got no time to fix this thought :(

Venutius commented 10 years ago

I've just tried to get this working again. I now get different errors, when I try to view the blog is the Manage Blog area I get: Your browser sent a request that this server could not understand.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I enter the name of the blog and press save, it tells me it is saved successfully but when I look into the blog area for the group the area is empty.

My friend has a wordpress site will over 1000 blogs he would like to relate to groups and as far as we can see this is the only plugin that will do that for him, neither of us can get it to work. :(