Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    28

    Default API change password dont work

    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:

    XML error: no element found at line 2
    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 ??
    Last edited by Infopro; 07-22-2008 at 05:41 AM.
    Marcus
    VCServer Network GbR
    ------------------------------------
    Nützliche Tips, Anleitungen und Hilfe in deutscher Sprache gibts auch in unerer deutschen cPanel Community:
    http://www.cPanel-Forum.de

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    In your paste, I noticed the module is "Emai l" - is the space there in your original code/URL?

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    28

    Default

    Hello David,

    no this space is not in my code. This space was paste from this forum.
    Last edited by VCServer; 07-15-2008 at 04:42 AM.
    Marcus
    VCServer Network GbR
    ------------------------------------
    Nützliche Tips, Anleitungen und Hilfe in deutscher Sprache gibts auch in unerer deutschen cPanel Community:
    http://www.cPanel-Forum.de

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Try changing Email to email.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Default

    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. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Improve performance of password change via XML-API
    By larwilliams in forum cPanel Developers
    Replies: 1
    Last Post: 01-25-2010, 10:22 AM
  2. Request XML-API function: change password
    By XenomediaBV in forum cPanel Developers
    Replies: 2
    Last Post: 09-14-2009, 01:41 PM
  3. Change Password API from remote server?
    By jhyland87 in forum cPanel Developers
    Replies: 4
    Last Post: 06-07-2009, 07:10 AM
  4. API call to change cpanel password?
    By electric in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 07-27-2007, 08:58 AM
  5. cron jobs dont work after username change
    By NNNils in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-25-2003, 10:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube