The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API change password dont work

Discussion in 'General Discussion' started by VCServer, Jul 14, 2008.

  1. VCServer

    VCServer Active Member

    Joined:
    Nov 19, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have the following problem:

    I want to change the email account passwort with the api. Here my code:

    Code:
    http://root:PASSWORD@myserver.de:2086/xml-api/cpanel?user=admin&xmlin=<cpanelaction><module>Email</module><func>passwdpop</func><apiversion>1</apiversion><args>teee@admin.de</args><args>123456789</args><args>unlimited</args><args>admin.de</args></cpanelaction>
    But the API give me the follow and dont change the password:

    In the cPanel error log i found this:

    Code:
    Can't find unicode character property definition via Cpanel::StringFunc::Match->ToLower or To/Lower.pl at /usr/local/cpanel/Cpanel/StringFunc/Match.pm line 28
    (internal death while parsing [fd 0]) Mon Jul 14 23:23:23 2008 [27355] error: Can't locate object method "ToLower" via package "Cpanel::StringFunc::Match" (perhaps you forgot to load "Cpanel::StringFunc::Match"?) at /usr/lib/perl5/5.6.
            eval {...} called at /usr/lib/perl5/5.6.2/utf8_heavy.pl line 30
            utf8::SWASHNEW('utf8', 'ToLower', undef, 4, 0) called at /usr/local/cpanel/Cpanel/StringFunc/Match.pm line 28
            Cpanel::StringFunc::Match::ibeginmatch('trr:x:32007:32009::/home/admin/mail/admin.de/trr:/usr/local/cpan...', 'teee:') called at /usr/local/cpanel/Cpanel/Email.pm line 2098
            Cpanel::Email::delpop('teee@admin.de', 'passwd', 'admin.de', 1, 1) called at /usr/local/cpanel/Cpanel/Email.pm line 2211
            Cpanel::Email::passwdpop('teee@admin.de', 123456789, 'unlimited', 'admin.de') called at cpanel.pl line 361
            main::__ANON__('teee@admin.de', 123456789, 'unlimited', 'admin.de') called at cpanel.pl line 1779
            main::exectag('<cpanel Email="passwdpop(teee@admin.de,123456789,unlimited,admin...') called at cpanel.pl line 1545
            main::docpanelaction('<cpanelaction><module>Email</module><func>passwdpop</func><apive...') called at cpanel.pl line 4817
            main::dotag(undef) called at cpanel.pl line 4676
            main::cpanel_parseblock('SCALAR(0x1f32b30)') called at cpanel.pl line 1297
    
    
    (internal death while parsing [fd 0]) Mon Jul 14 23:23:23 2008 [27355] error: Can't find unicode character property definition via Cpanel::StringFunc::Match->ToLower or To/Lower.pl at /usr/local/cpanel/Cpanel/StringFunc/Match.pm line 2
            Carp::croak('Can\'t find unicode character property definition via Cpanel::St...') called at /usr/lib/perl5/5.6.2/utf8_heavy.pl line 8
            utf8::croak('Can\'t find unicode character property definition via Cpanel::St...') called at /usr/lib/perl5/5.6.2/utf8_heavy.pl line 30
            utf8::SWASHNEW('utf8', 'ToLower', undef, 4, 0) called at /usr/local/cpanel/Cpanel/StringFunc/Match.pm line 28
            Cpanel::StringFunc::Match::ibeginmatch('trr:x:32007:32009::/home/admin/mail/admin.de/trr:/usr/local/cpan...', 'teee:') called at /usr/local/cpanel/Cpanel/Email.pm line 2098
            Cpanel::Email::delpop('teee@admin.de', 'passwd', 'admin.de', 1, 1) called at /usr/local/cpanel/Cpanel/Email.pm line 2211
            Cpanel::Email::passwdpop('teee@admin.de', 123456789, 'unlimited', 'admin.de') called at cpanel.pl line 361
            main::__ANON__('teee@admin.de', 123456789, 'unlimited', 'admin.de') called at cpanel.pl line 1779
            main::exectag('<cpanel Email="passwdpop(teee@admin.de,123456789,unlimited,admin...') called at cpanel.pl line 1545
            main::docpanelaction('<cpanelaction><module>Email</module><func>passwdpop</func><apive...') called at cpanel.pl line 4817
            main::dotag(undef) called at cpanel.pl line 4676
            main::cpanel_parseblock('SCALAR(0x1f32b30)') called at cpanel.pl line 1297
    
    
    Can't find unicode character property definition via Cpanel::StringFunc::Match->ToLower or To/Lower.pl at /usr/local/cpanel/Cpanel/StringFunc/Match.pm line 28
    
    Can anyone help me please :confused: ??
     
    #1 VCServer, Jul 14, 2008
    Last edited by a moderator: Jul 22, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In your paste, I noticed the module is "Emai l" - is the space there in your original code/URL?
     
  3. VCServer

    VCServer Active Member

    Joined:
    Nov 19, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hello David,

    no this space is not in my code. This space was paste from this forum.
     
    #3 VCServer, Jul 14, 2008
    Last edited: Jul 15, 2008
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Try changing Email to email.
     
  5. andre_merlo

    andre_merlo Registered

    Joined:
    Nov 26, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Same problem with addpop:

    (internal death while parsing [fd 0]) Mon Jul 21 16:06:18 2008 [22417] error: Can't find unicode character property definition via Cpanel::Email->ToLower or To/Lower.pl at /usr/local/cpanel/Cpanel/Email.pm line 1631
    Carp::croak('Can\'t find unicode character property definition via Cpanel::Em...') called at /usr/lib/perl5/5.6.2/utf8_heavy.pl line 8
    utf8::croak('Can\'t find unicode character property definition via Cpanel::Em...') called at /usr/lib/perl5/5.6.2/utf8_heavy.pl line 30
    utf8::SWASHNEW('utf8', 'ToLower', undef, 4, 0) called at /usr/local/cpanel/Cpanel/Email.pm line 1631
    Cpanel::Email::addpop('andre', 0220, 10, 'cftp.meuimovel.com') called at cpanel.pl line 374
    main::__ANON__('andre', 0220, 10, 'cftp.meuimovel.com') called at cpanel.pl line 1779
    main::exectag('<cpanel Email="addpop(andre,0220,10,cftp.meuimovel.com)">') called at cpanel.pl line 1545
    main::docpanelaction('<cpanelaction><module>Email</module><func>addpop</func><apiversi...') called at cpanel.pl line 4817
    main::dotag(undef) called at cpanel.pl line 4676
    main::cpanel_parseblock('SCALAR(0x91f938c)') called at cpanel.pl line 1297


    Can't find unicode character property definition via Cpanel::Email->ToLower or To/Lower.pl at /usr/local/cpanel/Cpanel/Email.pm line 1631
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I believe it would be best if you submitted a support ticket about this so we can pursue this issue more swiftly than it can be handled via forums.
     
Loading...

Share This Page