postcd

Well-Known Member
Oct 22, 2010
721
21
68
This error appears when i try to open one particular cPanel account (rest are ok). cPanel interface is OK, except icons which disappeared. Above area where should be icons (like Addon domains, File Manager, Backup etc.) i see text "Light Graphics | Hide Icons | Reset All Interface Settings | Reveal All Boxes | Reset Box Order ", tried to click it but do not helps.

Code:
[2016-11-08 08:55:59 +0000] warn [cpanel] Unable to run [Cpanel::Branding::api2_applist(nvarglist )]:  (Can't use an undefined value as an ARRAY reference at /usr/local/cpanel/Cpanel/DynamicUI/App.pm line 221.
) at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 142.
    Cpanel::Api2::Exec::api2_exec("Branding", "applist", HASH(0x5e7bc98), HASH(0x60a5750)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
    eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
    Cpanel::Template::Plugin::Api2::_api2_exec("Branding", "applist", HASH(0x60a5750)) called at /usr/local/cpanel/base/frontend/x3/branding/applist.tmpl line 2
    eval {...} called at /usr/local/cpanel/base/frontend/x3/branding/applist.tmpl line 2
    eval {...} called at /usr/local/cpanel/base/frontend/x3/branding/applist.tmpl line 16
    Template::Provider::__ANON__(Template::Context=HASH(0x60a3d00)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x60e1888), Template::Context=HASH(0x60a3d00)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x60a3d00), Template::Document=HASH(0x60e1888)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
    Template::Service::process(Template::Service=HASH(0x60a1738), "branding/applist.tmpl", HASH(0x60a11c8)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
    Template::process(Template=HASH(0x60a5498), "branding/applist.tmpl", HASH(0x60a11c8), SCALAR(0x5f2e7d0)) called at /usr/local/cpanel/Cpanel/Template.pm line 427
    Cpanel::Template::process_template("cpanel", HASH(0x60a11c8), HASH(0x5f9e3d8)) called at cpanel.pl line 1221
    cpanel::cpanel::cptt_exectag("<?cptt branding/applist.tmpl ?>") called at cpanel.pl line 4124
    cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3954
    cpanel::cpanel::cpanel_parseblock("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"...) called at cpanel.pl line 3906
    cpanel::cpanel::y(GLOB(0x5dafcf8)) called at cpanel.pl line 3033
    cpanel::cpanel::doinclude("/usr/local/cpanel/base/frontend/x3/branding/index.html", 0, 1) called at /usr/local/cpanel/Cpanel/cpanel.pm line 154
    eval {...} called at /usr/local/cpanel/Cpanel/cpanel.pm line 154
    Cpanel::cpanel::_wrap_include("/usr/local/cpanel/base/frontend/x3/branding/index.html", 0, 1) called at /usr/local/cpanel/Cpanel/API/Branding.pm line 61
    Cpanel::API::Branding::include(Cpanel::Args=HASH(0x5e34f60), Cpanel::Result=HASH(0x5e46ad0)) called at /usr/local/cpanel/Cpanel/API.pm line 287
    Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 359
    eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 359
    Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x5e46ad0), CODE(0x5e6b790)) called at /usr/local/cpanel/Cpanel/API.pm line 287
    Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x5e34f60), Cpanel::Result=HASH(0x5e46ad0), "Branding", "include") called at /usr/local/cpanel/Cpanel/API.pm line 81
    Cpanel::API::_execute("Branding", "include", HASH(0x5e34810)) called at /usr/local/cpanel/Cpanel/Branding.pm line 59
    Cpanel::Branding::Branding_include("index.html") called at cpanel.pl line 1829
    eval {...} called at cpanel.pl line 1829
    cpanel::cpanel::_api1("Branding", "branding", "include(index.html)", "include", ARRAY(0x5c84800), "safe_xml_encode", undef, undef) called at cpanel.pl line 1759
    cpanel::cpanel::real_exectag("<?cptt branding/applist.tmpl ?>") called at cpanel.pl line 4117
    cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3954
    cpanel::cpanel::cpanel_parseblock("<cpanel Branding=\"include(index.html)\">") called at cpanel.pl line 5207
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 847
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/x3/softaculous/index.live.php") called at cpanel.pl line 306
[2016-11-08 08:55:59 +0000] warn [Branding::applist] Encountered error in Branding::applist: Can't use an undefined value as an ARRAY reference at /usr/local/cpanel/Cpanel/DynamicUI/App.pm line 221.
Switching language helped
I switched cpanel language from within WHM to Greek and then icons appeared, i switched back to english and icons are still there. Not sure if its permanent fix, but i assume this issue will happen again while it happend already, so that is why im asking how to fix, prevent.

x3 theme was the problem probably
I see i canot switch theme in the cpanel account, it shows only paper_lantern, but in WHM accounts list i se x3 theme set for the cPanel. Many cpanels had this theme set. Last working cpanel (with paper_lantern theme) was one created: 2016-10-17
Not sure what happend around this date?

In WHMCS billing system which is provisioning cpanels is set x3 as a theme, i see when i leave cPanelt heme field blank in WHCMS provisioning module, it create paper_lantern cpanel and paper_lantern is default in the cPanel package.

I think x3 support was dropped somehow and as a result i faced this issue, i think cPanel should inform me like one week before this for example in new features page after WHM is updated.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

I see i canot switch theme in the cpanel account, it shows only paper_lantern, but in WHM accounts list i se x3 theme set for the cPanel. Many cpanels had this theme set. Last working cpanel (with paper_lantern theme) was one created: 2016-10-17
Internal case CPANEL-9674 is open to address an issue where if an account is using the x3 theme in cPanel version 60, the "Switch Theme" tool within cPanel will report that the account is using paper_lantern. I'll update this thread with the outcome of this case, however in the meantime you can switch the accounts on your system to the Paper Lantern theme via the "/scripts/pl_update_users" command as a workaround.

cpanel::cpanel::script("cpanel::cpanel", "./frontend/x3/softaculous/index.live.php") called at cpanel.pl line 306
This looks like an issue with the Softaculous plugin on the X3 theme in cPanel version 60. I recommend converting the account to the Paper Lantern theme when using cPanel version 60 as the X3 theme is no longer supported:

It’s time to say goodbye to X3 | cPanel Blog

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, since X3 is no longer supported in cPanel version 60, the resolution for occurrences of this problem is to run the following command:

Code:
/scripts/pl_update_users
This will convert the accounts on the system to the Paper Lantern theme.

Thank you.