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.

my own cpanel module

Discussion in 'cPanel Developers' started by rems, Mar 21, 2005.

  1. rems

    rems Registered

    Joined:
    Mar 21, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello.
    I`m trying to write my own Cpanel module, using as example Addons.pm .
    I `m receiving some strange errors, when i`m calling its functions from my html code:

    (internal) Tue Mar 22 01:57:43 2005 [3656] error: Can't locate auto/main/Templates_i.al in @INC (@INC contains:/usr/local/cpanel/perl /usr/local/cpanel /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at (eval 37) line 1
    Carp::croak('Can\'t locate auto/main/Templates_i.al in @INC (@INC contains: /...') called at /usr/lib/perl5/5.6.2/AutoLoader.pm line 104
    AutoLoader::AUTOLOAD() called at (eval 37) line 1
    eval 'Templates_init();' called at cpanel.pl line 602
    main::exectag('<cpanel Templates="listtemplates()">') called at cpanel.pl line 291
    main::dotag(undef) called at cpanel.pl line 3419
    main::parsehtml('GLOB(0x88ba8b8)') called at cpanel.pl line 285
    (internal) Tue Mar 22 01:57:43 2005 [3656] error: Can't locate auto/main/Templates_l.al in @INC (@INC contains:/usr/local/cpanel/perl /usr/local/cpanel /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at (eval 38) line 1
    Carp::croak('Can\'t locate auto/main/Templates_l.al in @INC (@INC contains: /...') called at /usr/lib/perl5/5.6.2/AutoLoader.pm line 104
    AutoLoader::AUTOLOAD() called at (eval 38) line 1
    eval 'Templates_listtemplates(@RARGS);' called at cpanel.pl line 606
    main::exectag('<cpanel Templates="listtemplates()">') called at cpanel.pl line 291
    main::dotag(undef) called at cpanel.pl line 3419
    main::parsehtml('GLOB(0x88ba8b8)') called at cpanel.pl line 285
    Child [3710]: exited with signal 13


    Any ideas ?

    Thank you.
     
  2. rems

    rems Registered

    Joined:
    Mar 21, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    System is running Fedora Core 2, WHM 10.0.0 cPanel 10.0.0-R149 , perl v5.8.3 .
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    You are missing some perl modules, hence the error "Can't locate auto/main/Templates_l.al "
     
  4. rems

    rems Registered

    Joined:
    Mar 21, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Templates.pm it is my module .

    I placed it here - /usr/local/cpanel/Cpanel , like another Cpanel modules.

    Why it is looking for auto/main/Templates_i.al ?

    Thanks.
     
  5. PowerProWeb

    PowerProWeb Member

    Joined:
    Mar 21, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Because it was called at /usr/lib/perl5/5.6.2/AutoLoader.pm
     
Loading...

Share This Page