Softaculous


Topic : Cpanel::API::Styles in cPanel v110


Posted By: cPJasonB on December 15, 2022, 2:18 pm
cPanel removed paper_lantern's legacy code in version 110 which includes Cpanel::API::Styles. This leads to a perl error in the /usr/local/cpanel/logs/error_log log every page load in :2083

Code
[2022-12-15 14:02:08 +0000] warn [cpanel] Failed to load module “Styles”: Cpanel::Exception::ModuleLoadError/(XID kv9gb7) The system failed to load the module “Cpanel::API::Styles” because of an error: Can't locate Cpanel/API/Styles.pm in @INC (you may need to install the Cpanel::API::Styles module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/cpanel-lib /usr/local/cpanel/3rdparty/perl/536/lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/lib /opt/cpanel/perl5/536/site_lib/x86_64-linux /opt/cpanel/perl5/536/site_lib) at (eval 11) line 1, <$inputfd> line 6.
BEGIN failed--compilation aborted at (eval 11) line 1, <$inputfd> line 6.

at /usr/local/cpanel/Cpanel/LoadModule.pm line 77, <$inputfd> line 6.
    Cpanel::LoadModule::load_perl_module("Cpanel::API::Styles") called at /usr/local/cpanel/Cpanel/API.pm line 327
    eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 327
    Cpanel::API::_init_execute("Styles", "list") called at /usr/local/cpanel/Cpanel/API.pm line 170
    Cpanel::API::execute("Styles", "list", undef) called at cpanel.pl line 1341
    cpanel::cpanel::docpanelaction("<cpanelaction>\x{a}{\"module\":\"Styles\",\"reqtype\":\"exec\",\"func\":\"li"...) called at /usr/local/cpanel/Cpanel/Parser/Legacy.pm line 240
    Cpanel::Parser::Legacy::_dotag_finished_headers(0) called at /usr/local/cpanel/Cpanel/Parser/Legacy.pm line 79
    Cpanel::Parser::Legacy::cpanel_parseblock("<cpanelaction>\x{a}{\"module\":\"Styles\",\"reqtype\":\"exec\",\"func\":\"li"...) called at /usr/local/cpanel/Cpanel/Parser/Legacy.pm line 368
    Cpanel::Parser::Legacy::parse(GLOB(0x3c49980), 1) called at cpanel.pl line 4634
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 928
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/jupiter/softaculous/index.live.php") called at cpanel.pl line 324

Testing can be done via a next.cpanel.net build.

Posted By: softacmani on December 19, 2022, 2:50 pm | Post: 1
Hi,
Apologies for the delay in response.
Thank you for informing us about the bug.
We've fixed the issue on our end and can provide you with the patch file.

Also, can you please let me know if you're from Cpanel Team.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.