Getting error in cpanel - Undefined subroutine &Cpanel::Version::getversionnumber

jomyjk7

Registered
Sep 9, 2010
1
0
51
Hi,

I am getting error in cpanel after logged in. The error is showing in the Stats panel in the left side. Following is the error that I see :
Code:
Undefined subroutine &Cpanel::Version::getversionnumber called at /usr/local/cpanel/Cpanel/StatsBar.pm line 61.
	Cpanel::StatsBar::api2_stat('rowcounter', 'mainstats', 'display', 'hostingpackage|shorthostname|cpanelversion|cpanelrevision|theme|...') called at (eval 85) line 1
	eval '$dataref = [Cpanel::StatsBar::api2_stat(%{$rCFG})];' called at cpanel line 4218
	main::api2_exec('StatsBar', 'stat', 'HASH(0xa25a53c)', 'HASH(0xa2336b0)') called at cpanel line 553
	main::real_cpexectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4021
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3867
	main::cpanel_parseblock('<table width="100%" id="stats_extended" class="truncate-table" c...') called at cpanel line 3842
	main::cpanel_parse('GLOB(0xa265c58)') called at cpanel line 2157
	main::doinclude('/usr/local/cpanel/base/frontend/x3/branding/extended_statsbar.ht...', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 48
	Cpanel::Branding::Branding_include('extended_statsbar.html') called at (eval 80) line 1
	eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel line 949
	main::real_exectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4015
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3867
	main::cpanel_parseblock('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "...') called at cpanel line 3842
	main::cpanel_parse('GLOB(0x94f9928)') called at cpanel line 2157
	main::doinclude('/usr/local/cpanel/base/frontend/x3/branding/index.html', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 48
	Cpanel::Branding::Branding_include('index.html') called at (eval 5) line 1
	eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel line 949
	main::real_exectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4015
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3898
	main::cpanel_parseblock('<cpanel Branding="include(index.html)">^J') called at cpanel line 3842
	main::cpanel_parse('GLOB(0x926b698)') called at cpanel line 5331
	main::run_standard_mo
I have also attached a screen shot.

Can anybody help to resolve this issue ?? :(
 

Attachments

Last edited by a moderator:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Hi,

I am getting error in cpanel after logged in. The error is showing in the Stats panel in the left side. Following is the error that I see :
Code:
Undefined subroutine &Cpanel::Version::getversionnumber called at /usr/local/cpanel/Cpanel/StatsBar.pm line 61.
	Cpanel::StatsBar::api2_stat('rowcounter', 'mainstats', 'display', 'hostingpackage|shorthostname|cpanelversion|cpanelrevision|theme|...') called at (eval 85) line 1
	eval '$dataref = [Cpanel::StatsBar::api2_stat(%{$rCFG})];' called at cpanel line 4218
	main::api2_exec('StatsBar', 'stat', 'HASH(0xa25a53c)', 'HASH(0xa2336b0)') called at cpanel line 553
	main::real_cpexectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4021
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3867
	main::cpanel_parseblock('<table width="100%" id="stats_extended" class="truncate-table" c...') called at cpanel line 3842
	main::cpanel_parse('GLOB(0xa265c58)') called at cpanel line 2157
	main::doinclude('/usr/local/cpanel/base/frontend/x3/branding/extended_statsbar.ht...', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 48
	Cpanel::Branding::Branding_include('extended_statsbar.html') called at (eval 80) line 1
	eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel line 949
	main::real_exectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4015
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3867
	main::cpanel_parseblock('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "...') called at cpanel line 3842
	main::cpanel_parse('GLOB(0x94f9928)') called at cpanel line 2157
	main::doinclude('/usr/local/cpanel/base/frontend/x3/branding/index.html', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 48
	Cpanel::Branding::Branding_include('index.html') called at (eval 5) line 1
	eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel line 949
	main::real_exectag('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...') called at cpanel line 4015
	main::dotag_finished_headers('<?cp StatsBar::stat(^J[tr class="row-%"]^J    [td class="stats_lef...', 0) called at cpanel line 3898
	main::cpanel_parseblock('<cpanel Branding="include(index.html)">^J') called at cpanel line 3842
	main::cpanel_parse('GLOB(0x926b698)') called at cpanel line 5331
	main::run_standard_mo
I have also attached a screen shot.

Can anybody help to resolve this issue ?? :(
What is the cPanel version number on your server? In cPanel, the version is normally shown in the stats sidebar, but if the stats sidebar is not displaying as expected the version number can also be seen by viewing the HTML source code of the page while logged-into cPanel, WHM, or Webmail; the version should be on or near the very last line in the HTML source code. In WebHost Manager (WHM) the version number is displayed in the upper-right corner.

Via root SSH access, the version number can be obtained using either of the following commands:
Code:
# /usr/local/cpanel/version && echo
# /usr/local/cpanel/cpanel -V
Have any corrective measures been attempted? To ensure proper integrity and consistency of the cPanel installation I would consider running a forced cPanel update (re-install) using the following command via root SSH access:
Code:
# /scripts/upcp --force
To monitor for new errors when testing cPanel (before logging-in), I recommend the following command (via root SSH access):
Code:
# tail -fvn0 /usr/local/cpanel/logs/error_log
To look for previous messages in the cPanel log, you may use any command-line text viewer such as "less":
Code:
# less /usr/local/cpanel/logs/error_log