Premium not inserted

Results 1 to 8 of 8
  1. #1
    The Elder | Voinic mirceagab is offline
    MemberRank
    Aug 2008 Join Date
    Cluj-Napoca, RoLocation
    221Posts

    Premium not inserted

    So check this out.i have all the settings done

    The trigger is on.the reg page is tested and worked.All permissions granted.But after a centos reboot premium is not inserted anymore in db,and it creates free users only.It happend before the reboot but after a relog the premium worked...

    The problem seems to be from the REG page cus if i add an account manualy it works...


  2. #2
    Valued Member Netgear is offline
    MemberRank
    Nov 2007 Join Date
    101Posts

    Re: Premium not inserted

    what client are u using and post ur Trigger here

  3. #3
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Premium not inserted

    are you using the stored procedure ACCOUNT.cabal_tool_registerAccount?

  4. #4
    The Elder | Voinic mirceagab is offline
    MemberRank
    Aug 2008 Join Date
    Cluj-Napoca, RoLocation
    221Posts

    Re: Premium not inserted

    CREATE TRIGGER [fixlogin] ON [dbo].[cabal_auth_table]
    FOR INSERT, UPDATE, DELETE
    AS
    begin
    update cabal_auth_table set login = 0
    end


    This was the trigger that worked till now.And this is the php line in reg page to add the premium..

    $sql3 = mssql_query("INSERT INTO dbo.cabal_charge_auth (UserNum,Type,ExpireDate,PayMinutes,ServiceKind) VALUES ('$total_users','5','8/19/2009','9999','1') ");

  5. #5
    Akaruz - The Legend [hidden] is offline
    MemberRank
    Jun 2006 Join Date
    ClassifiedLocation
    1,120Posts

    Re: Premium not inserted

    yes it is your reg page. add code to include the complete stored procedure, to include entry into the premium table.

    test by simply checking the premium (cabal_charge_auth) table after registration.

    note if an entry is added for every new account or not. recode from there.

  6. #6
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Premium not inserted

    Quote Originally Posted by mirceagab View Post
    CREATE TRIGGER [fixlogin] ON [dbo].[cabal_auth_table]
    FOR INSERT, UPDATE, DELETE
    AS
    begin
    update cabal_auth_table set login = 0
    end
    That trigger is nothing to do with premium or new accounts. It was a fudge used to avoid certain problems during login before we got the fix.

    Remove that trigger immediately. If it is there then your players can duplicate items!

    I don't know why you are adding your premium that way as it is much more work than is needed. Just amend the registration stored procedure to do it for you.
    http://forum.ragezone.com/showthread.php?t=452000

  7. #7
    The Elder | Voinic mirceagab is offline
    MemberRank
    Aug 2008 Join Date
    Cluj-Napoca, RoLocation
    221Posts
    sry i ment to post this trigger

    CREATE TRIGGER [premiumforall] ON [dbo].[cabal_charge_auth]
    FOR INSERT, UPDATE, DELETE
    AS
    UPDATE [account].[dbo].[cabal_charge_auth] SET
    [Type] = 5
    ,[ExpireDate] = DATEADD(year, 10, getdate())
    ,[PayMinutes] = 999999
    ,[ServiceKind] = 1

    And btw chumpy i use that way also...and still doesnt work.

    Hidden i did check and its not inserting nothing in acabal_charge_auth..not even the account with authtype 1...and it worked before...

    sorry for double posting but still didn't solved this.Any ideeas?
    Last edited by cypher; 03-09-08 at 11:23 AM. Reason: fixed double post.

  8. #8
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Premium not inserted

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.



Advertisement