WarcraftReamls.com
  FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups   RegisterRegister 
  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in 
Swatter Reported this Error

 
Post new topic   Reply to topic    WarcraftRealms.com Forum Index -> CensusPlus UI Mod Bugs
View previous topic :: View next topic  
Author Message
esiemiat



Joined: 03 Dec 2011
Posts: 16
Location: Connecticut
WR Updates: 276,713
esiemiat WR Profile

PostPosted: Tue Dec 09, 2014 1:16 pm    Post subject: Swatter Reported this Error Reply with quote

I am not sure what I changed in the Census+ options panel to trigger this but the error prevented any census scans from running.

Quote:
["message"] = "Interface\\AddOns\\CensusPlus\\CensusPlus.lua:4686: Who(query, [opts]): 'opts.flags' - nil or number expected got string",
["count"] = 12,
["locals"] = "(*temporary) = \"Who(query, [opts]): 'opts.flags' - nil or number expected got string\"",
["timestamp"] = "2014-12-09 13:55:09",
["context"] = "Global",
["stack"] = "[C]: in function `error'
...ace\\AddOns\\CensusPlus\\libs\\LibWho-2.0\\LibWho-2.0.lua:652: in function `CheckArgument'
...ace\\AddOns\\CensusPlus\\libs\\LibWho-2.0\\LibWho-2.0.lua:153: in function `Who'
Interface\\AddOns\\CensusPlus\\CensusPlus.lua:4686: in function `CensusPlus_SendWho'
Interface\\AddOns\\CensusPlus\\CensusPlus.lua:2410: in function <Interface>",


To fix this I had to modify line 153 in LibWho-2.0.lua.

From:
args.flags = self:CheckArgument(usage, 'opts.flags', 'number', flags, 0)

To:
args.flags = self:CheckArgument(usage, 'opts.flags', 'number', opts.flags, 0)

I have been running with this fix in place for a few days with no further errors. Hope this helps.
Back to top
View user's profile Send private message
bringoutyourdead
Forums Admin & general flunky


Joined: 07 Nov 2008
Posts: 1243
Location: Silicon Valley, CA, USA
WR Updates: 9,186,395
bringoutyourdead WR Profile

PostPosted: Tue Dec 09, 2014 2:26 pm    Post subject: Reply with quote

This is a very interesting error.

Are you using another addon that makes use of wholib? I expect it might be Wim...
That addon had a recent change and has generated a number of error comments since the last update.

the reason I ask is that opts.flag is never passed by CensusPlus since we only use Who:Who
so line 153 in LibWho should have returned on the nil hit.

In fact it is only used in the who:UserInfo call. Which is used by Prat and Wim.

Please open a ticket with Sylvanaar at
http://www.wowace.com/addons/wholib/tickets/
with your findings.
I know past fixes of yours have been incorporated.
Back to top
View user's profile Send private message
esiemiat



Joined: 03 Dec 2011
Posts: 16
Location: Connecticut
WR Updates: 276,713
esiemiat WR Profile

PostPosted: Wed Dec 10, 2014 10:32 am    Post subject: Reply with quote

Sorry, I reported to Sylvanaar on the addon's website.

I don't have any other addons that use the WhoLib API. I think the problem was caused by another addon that created a global variable by that name.
Back to top
View user's profile Send private message
bringoutyourdead
Forums Admin & general flunky


Joined: 07 Nov 2008
Posts: 1243
Location: Silicon Valley, CA, USA
WR Updates: 9,186,395
bringoutyourdead WR Profile

PostPosted: Wed Dec 10, 2014 1:36 pm    Post subject: Reply with quote

Thanks, I am hoping for an update in the wholib:who area...

Blizzard generated who calls should be passed through the hooked process without modification.
Addon generated who calls (with specific arguments) should be handled as per library specifications.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WarcraftRealms.com Forum Index -> CensusPlus UI Mod Bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
WarcraftRealms.com  


Powered by phpBB © 2001, 2005 phpBB Group