Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Mailperm error Can't locate object method

Discussion in 'E-mail Discussions' started by Bruno Mendes, Dec 21, 2016.

  1. Bruno Mendes

    Bruno Mendes Registered

    Joined:
    Dec 21, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Hi,

    I tried use /scripts/mailperm but received this error:


    Can't locate object method "to_string" via package "Can't locate Cpanel/Exception/CORE.pm: /home/userloginxxx/perl5/lib/perl5/Cpanel/Exception/CORE.pm: Permission denied at /home/userloginxxx/perl5/lib/perl5/Cpanel/Exception.pm line 27.
    " (perhaps you forgot to load "Can't locate Cpanel/Exception/CORE.pm: /home/userloginxxx/perl5/lib/perl5/Cpanel/Exception/CORE.pm: Permission denied at /home/userloginxxx/perl5/lib/perl5/Cpanel/Exception.pm line 27.
    "?) at /home/userloginxxx/perl5/lib/perl5/Cpanel/Email/Perms/User.pm line 274.



    Can someone help?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you logged in as "root" when running this command?

    Thank you.
     
  3. Bruno Mendes

    Bruno Mendes Registered

    Joined:
    Dec 21, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    I used first other login to connect SSH and after use the command "su" and execute the command /scripts/mailperm, but now I used "su -" and mailperm works!!!! Thanks!!!
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page