DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • December 10, 2018, 04:00:56 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Call Stack Error When You Die  (Read 2310 times)
0 Members and 1 Guest are viewing this topic.
A Cool Guy
Militia
**
Offline Offline

Posts: 82



View Profile
« on: October 24, 2008, 12:58:45 AM »

Everytime someone dies we get this error

Code:
PHP Warning: "sprintf() [function.sprintf]: Too few arguments"
in /home/megant/public_html/lib/translator.php at 107.
Call Stack:
2: sprintf("Well, %s, that %A did not...", "`QFake `qTan", "`qE`Qe`qw`Qs`qo`Qm`qe `TS...") called from on line
3: call_user_func_array("sprintf", Array(

    0=>"Well, %s, that %A did not...", 1=>"`QFake `qTan", 2=>"`qE`Qe`qw`Qs`qo`Qm`qe `TS..."

)) called from /home/megant/public_html/lib/translator.php on line 107
4: sprintf_translate(true, "taunts", "Well, %s, that %A did not...", "`QFake `qTan", "`qE`Qe`qw`Qs`qo`Qm`qe `TS...") called from on line
5: call_user_func_array("sprintf_translate", Array(

    0=>true, 1=>"taunts", 2=>"Well, %s, that %A did not...", 3=>"`QFake `qTan", 4=>"`qE`Qe`qw`Qs`qo`Qm`qe `TS..."

)) called from /home/megant/public_html/lib/translator.php on line 103
6: sprintf_translate("`)%s`) has been defeated ...", "`VLady`7-`Rat`7-`VArms `3...", "`QFake `qTan", Array(

    0=>true, 1=>"taunts", 2=>"Well, %s, that %A did not...", 3=>"`QFake `qTan", 4=>"`qE`Qe`qw`Qs`qo`Qm`qe `TS..."

)) called from on line
7: call_user_func_array("sprintf_translate", Array(

    0=>"`)%s`) has been defeated ...", 1=>"`VLady`7-`Rat`7-`VArms `3...", 2=>"`QFake `qTan", 3=>Array(

        0=>true, 1=>"taunts", 2=>"Well, %s, that %A did not...", 3=>"`QFake `qTan", 4=>"`qE`Qe`qw`Qs`qo`Qm`qe `TS..."

    )

)) called from /home/megant/public_html/news.php on line 76

It is every time you die and not on certain creatures or stuff as it happens on masters too.
Can anyone help please ?
« Last Edit: October 24, 2008, 01:00:19 AM by A Cool Guy » Logged

If i can i will
If i cant i wont Smiley
Boris735
Mod God
*****
Offline Offline

Posts: 570


View Profile
« Reply #1 on: October 24, 2008, 02:12:20 AM »

There's not enough arguments being provided to a sprintf() call.  Looking at the call stack and what of the strings is shown, it looks like this is coming from an invalid taunt string.  I can't find a taunt matching that shown in the default database, so seems like someone has edited the taunt database at your site, so thig should be easily fixable.

I believe that the problem is the use of %A, which is not a valid substitution in taunts.  This is confusing sprintf() into expecting a substitution that is not present.  It is probable that %a was intended instead.

So: I suggest using the taunt editor, finding any taunt using %A and changing it to %a instead.  Hopefully this will fix your problem for the future, but the invalid entries are probably still in the news database so you may need to do something about them, too.
Logged
A Cool Guy
Militia
**
Offline Offline

Posts: 82



View Profile
« Reply #2 on: October 24, 2008, 02:56:57 AM »

Bois735 you are a star it was the %A i changed it to %a and it seems fine now thanks a million Smiley
Logged

If i can i will
If i cant i wont Smiley
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
38 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search