Reviewed & tested by the community
Project:
Blog Add-ons
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jun 2008 at 12:34 UTC
Updated:
30 May 2009 at 05:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
Chajecki commentedHi,
thanks for reporting it. This bug shows up in mysql-5.x and I am still using 4.x series so I didn't notice it before. I will prepare new release soon but the immediate solution is to replace lines 320-321
$query = "SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 AND n.uid = " . $account->uid . $limit . " ORDER By n.created DESC ";
$postpermonth = mysql_num_rows(db_query($query));
with the following lines
$query = "SELECT COUNT(n.nid) FROM {node} n WHERE n.type = 'blog' AND n.status = 1 AND n.uid = " . $account->uid . $limit . " ORDER By n.created DESC ";
$postpermonth = db_result(db_query($query));
I tested this solution and can confirm it works fine but let me know if you have any problems.
Cheers
Comment #2
Chajecki commentedPatch attached. Please, test it and let me know if you have any problems.
If there is no objections I will commit it in the next release.
Cheers.
Comment #3
shadyman@erroraccessdenied.com commentedPatch works, fixes the problem.
Comment #4
Babalu commentedthx for the patch
Comment #5
caelico commentedHow can I implement the patch?
I have the same problem
Comment #6
caelico commentedThanks for the patch I fixed the problem
and I aplyed the patch following this instructions:
http://drupal.org/patch/apply
Comment #7
MagicalViper commentedI wasnt able to use the patch :(. Is there any other way I could fix this problem/bug?
Comment #8
HS commentedI couldn't grasp the whole patch thing either :(
Comment #9
khawaja commentedChange listed in #1 fixed the problem in 6.x-1.1.
Comment #10
Arshad Vayani commentedI am getting same error in 6.x-1.1.
Comment #11
David Naian commented--> FYI:
The solution provided in #1 for Blog_AddOns ver 6.x.11
works also for the Blog_AddOns ver. 5.x-1.0.
Note:
Tested in LAN environment with MySQL database 5.1.30 Drupal ver. 5.12.
Error evidence come on using the Blog_AddOns-Block inside a BlockBar-Module's Block.
Comment #12
reikiman commentedI got this same error with 6.x-1.1 and applied the above fix and the problem went away.
Comment #13
Mr.W.A.C. commentedCode from REPLY #1 worked successfully on Drupal 6.10 using latest MySql v 5.x with Blog Add-Ons 6.x-1.1.
Thank you so much. Just confirming for those who need an infinity of confirmations. ;)
Comment #14
Macronomicus commentedYes the patch worked perfectly thanks!!