Forum Index » Technical Support »

Pages (2): 1 2
Post a reply

daman
Posted 06:40AM, Tuesday, September 15, 2009 (2 years, 4 months ago)
#0
Constantly getting these errors:

Message: Interface\AddOns\CT_MailMod\CT_MailMod_MailLog.lua:47: bad argument #7 to 'format' (string expected, got nil)
Time: 09/15/09 09:22:16
Count: 359
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: ?
[C]: in function `format'
Interface\AddOns\CT_MailMod\CT_MailMod_MailLog.lua:47: in function <Interface\AddOns\CT_MailMod\CT_MailMod_MailLog.lua:20>
Interface\AddOns\CT_MailMod\CT_MailMod_MailLog.lua:100: in function <Interface\AddOns\CT_MailMod\CT_MailMod_MailLog.lua:91>
(tail call): ?
...Ons\CT_MailMod\CT_MailMod_MailStructure_Incoming.lua:157: in function `?'
...terface\AddOns\CT_MailMod\CT_MailMod_MailActions.lua:76: in function `key'
Interface\AddOns\CT_MailMod\CT_MailMod.lua:71: in function <Interface\AddOns\CT_MailMod\CT_MailMod.lua:67>
Last updated by TS
Briala
Posted 08:17AM, Saturday, September 19, 2009 (2 years, 4 months ago)
#1
Same. I'm going to add a 'or ""' to that argument as a stopgap for now, but am curious if this really is a universal, unfixed bug in CT_Mail or perhaps represents a conflict with another addon (that presumably the devs here don't run.)

The other bug I see frequently is one or more items being skipped even though I've selected them for retrieval; or occasionally the entire retrieval process just gets stuck and will not open any further messages until I close and reopen the mailbox.
dargen
Posted 12:48PM, Saturday, September 19, 2009 (2 years, 4 months ago)
#2
I've never experienced this error myself. However, I've seen a number of people reporting the error message.

The line that is giving the error is this one in CT_MailMod_MailLog.lua on line 47:

entry = ("1#%s#%s#%s#%d#%d#%d#%s"):format(type, mail.receiver, mail.sender,
mail.money, mail:getSendTime(), numItems, mail.subject) .. items;


The bad 7th argument referred to by the error message is 'mail.subject' and it is indicating that the value is nil (in other words it has no value). In order to get a nil subject, the addon would have to read a message that has no subject, or a message that doesn't exist.

The update to CT_MailMod that I'm working on will include the following change, which you can apply to the current version of CT_MailMod if you want to try it out now. This change ensures that if the message does not have a subject, then the subject will be assigned an empty string value instead of a nil value.

You can change line 35 in CT_MailMod_MailStructure_Incoming.lua from this:

self["subject"] = subject;

to this:

self["subject"] = subject or "";

Among other things, the update will also include new logic for retrieving messages from the inbox that should fix the problem with it sometimes skipping messages, reading them out of sequence, or stopping before it finishes reading all of the selected message. This may also help resolve the nil subject issue.
Last updated by TS
daman
Posted 01:06PM, Saturday, September 19, 2009 (2 years, 4 months ago)
#3
OK . . . I've made the following change . . .

========
You can change line 35 in CT_MailMod_MailStructure_Incoming.lua from this:

self["subject"] = subject;

to this:

self["subject"] = subject or "";
========

and will be testing immediately.
I'll post back if this solves the issue or other issues develop
Last updated by TS
Briala
Posted 10:09PM, Sunday, September 20, 2009 (2 years, 4 months ago)
#4
Thanks Daman. Sounds like this'll be a nice update.
daman
Posted 08:25AM, Monday, September 21, 2009 (2 years, 4 months ago)
#5
OK . .the update seems to have fixed the previous issue. I haven't had it reoccur since I made the change.

However, I am still getting notices in red test onscreen about "Item Cannot Be Found" and indications of a database error when using CT_Mail to download large quantities of items.

This seems to occur more toward the end of the download than the beginning, if that makes sense . . . almost like CT_Mail is going too fast?

daman
Posted 08:25AM, Monday, September 21, 2009 (2 years, 4 months ago)
#6
This post has been deleted.
dargen
Posted 08:53AM, Monday, September 21, 2009 (2 years, 4 months ago)
#7
The next update to CT_Mailmod includes a change to the way items are taken from messages. This should prevent the "item cannot be found" and "database error" messages that you are getting.
daman
Posted 02:50PM, Monday, September 21, 2009 (2 years, 4 months ago)
#8
That's G R E A T !

Any general time frame on that update?
Briala
Posted 09:23AM, Sunday, October 4, 2009 (2 years, 4 months ago)
#9
One more request/thought for that next update: is there anything that could be done for the case where the player has exceeded the mailbox message limit?

The manual approach is to clear the 50 messages, close the mailbox, wait about 15 seconds, reopen the mailbox, recheck "select all", rehit the "open selected". It would be fantastic if all that could happen automatically.

If not, I'd personally be most interested in just a printed message as to when it was safe to reopen the mailbox. Do we know if this is a constant time enforced by the server? Or is it variable while waiting for some data to be retrieved? If so is there in any event that tells you when this has happened?

Pages (2): 1 2

Quick Reply

You cannot reply to this topic. Try logging in first.