1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Problem setting expiration date

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by EduardoV, Feb 11, 2010.

  1. EduardoV

    EduardoV Guest

    0
     
    Hi

    I'm using Plesk's RPC API to create client accounts. The limits of these accounts are set by using a client template and the only limit that varies is the expiration date.

    I'm having a problem setting the expiration date. I'm sending the following packet:

    <?xml version="1.0" encoding="UTF-8"?>
    <packet version="1.4.2.0">
    <client>
    <add>
    <gen_info>
    <pname>11_2611</pname>
    <login>11_2611</login>
    <passwd>11@887</passwd>
    </gen_info>
    <limits>
    <expiration>1297407356</expiration>
    </limits>
    <template-name>PlanBasico</template-name>
    </add>
    </client>
    </packet>


    And I'm getting the following response:

    <?xml version="1.0" encoding="UTF-8"?>
    <packet version="1.4.2.0">
    <client>
    <add>
    <result>
    <status>error</status>
    <errcode>1024</errcode>
    <errtext>expiration value is incorrect</errtext>
    </result>
    </add>
    </client>
    </packet>


    I don't understand what is going on. Initially we were sending the number of years in unix time stamp format, but what it did was set up the expiration date as 1970 plus the number of years sent. Still, it didn't throw this error.
    Now we're sending the current date plus the number of years of validity in the same format, and we're getting this error. What could be happening???
     
Loading...