When client tries to enable or disable "Optimize Website" in cPanel, this error is shown:
I ran easyapache, didn't fix the issue.
Any fix?
Update:
I tried to fix /usr/local/cpanel/Cpanel/OptimizeWS.pm with Check/Repair a Perl Script
Didn't worked
Here is output:
Code:
OptimizeWS::optimizews(,) failed: Modification of non-creatable array value attempted, subscript -1 at /usr/local/cpanel/Cpanel/OptimizeWS.pm line 104, <HC> line 52.
Any fix?
Update:
I tried to fix /usr/local/cpanel/Cpanel/OptimizeWS.pm with Check/Repair a Perl Script
Didn't worked
Here is output:
Code:
-- Missing Cpanel::Serverinfo. Starting installation --
Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Thu Apr 3 00:52:09 2014)
Tuned C compiler not available because it is not enabled....Done
Method: Using Perl Expect, Installer: cpanm
cpanm (App::cpanminus) 1.6916 on perl 5.010001 built for x86_64-linux-thread-multi
Work directory is /home/.cpanm/work/1396561300.819720
You have make /usr/bin/make
Falling back to HTTP::Tiny 0.029
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
You have Cpanel::HttpRequest 2.1
Removing corrupted/broken cpan file /home/.cpan/sources/modules/03modlist.data.gz
Testing connection speed...(using fast method)....Done
Ping:0 (ticks) Testing connection speed to cpan.makeperl.org using pureperl...(cached .. 61800.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.hexten.net using pureperl...(cached .. 56600.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to www.planet-elektronik.de using pureperl...(cached .. 35100.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.netcologne.de using pureperl...(cached .. 28200.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to cpan.panu.it using pureperl...(cached .. 11500.00 bytes/s)...Done
Five usable mirrors located
Ping:9 (ticks) Testing connection speed to 208.43.108.66 using pureperl...(5790.00 bytes/s)...Done
Ping:10 (ticks) Testing connection speed to 216.38.56.98 using pureperl...(using cached speed)...Done
Ping:11 (ticks) Testing connection speed to 67.205.110.4 using pureperl...(using cached speed)...Done
Three usable fallback mirrors located
Fetching http://cpan.makeperl.org/index.html (connected:0).......(request attempt 1/12)...Resolving cpan.makeperl.org...(resolve attempt 1/65)......connecting to [email protected]%......request success......Done
Mirror Check passed for cpan.makeperl.org (/index.html)
Searching on cpanmetadb ...
Fetching http://cpanmetadb.cpanel.net/v1.0/package/Cpanel::Serverinfo (connected:0).......(request attempt 1/12)...Resolving cpanmetadb.cpanel.net...(resolve attempt 1/65)......connecting to [email protected].Error 404 while fetching URL http://cpanmetadb.cpanel.net//v1.0/package/Cpanel::Serverinfo
...skipping 208.74.124.130......server closed connection...Searching Cpanel::Serverinfo on cpanmetadb (http://cpanmetadb.cpanel.net/v1.0/package/Cpanel::Serverinfo) ...
Fetching http://cpanmetadb.cpanel.net/v1.0/package/Cpanel::Serverinfo (connected:0).......(request attempt 1/12)......connecting to [email protected].Error 404 while fetching URL http://cpanmetadb.cpanel.net//v1.0/package/Cpanel::Serverinfo
...skipping 208.74.124.130......server closed connection...Source: fastest CPAN mirror ... ! Couldn't find module or a distribution Cpanel::Serverinfo ()
Perl Expect failed with non-zero exit status: 256
CPAN fallback mode is active!
Method: Using Perl Expect, Installer: cpan
Testing connection speed...(using fast method).....Done
Ping:0 (ticks) Testing connection speed to cpan.makeperl.org using pureperl...(cached .. 61800.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.hexten.net using pureperl...(cached .. 56600.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to www.planet-elektronik.de using pureperl...(cached .. 35100.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.netcologne.de using pureperl...(cached .. 28200.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to cpan.panu.it using pureperl...(cached .. 11500.00 bytes/s)...Done
Five usable mirrors located
Ping:10 (ticks) Testing connection speed to 216.38.56.98 using pureperl...(using cached speed)...Done
Ping:11 (ticks) Testing connection speed to 67.205.110.4 using pureperl...(using cached speed)...Done
Ping:9 (ticks) Testing connection speed to 208.74.125.42 using pureperl...(using cached speed)...Done
Three usable fallback mirrors located
Mirror Check passed for cpan.makeperl.org (/index.html)
Disabling /bin/wget since LWP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 76.
Disabling /bin/ftp since Net::FTP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 81.
Unknown config variable 'gmake'
commit: wrote '/usr/share/perl5/CPAN/Config.pm'
Reading '/home/.cpan/Metadata'
Database was generated on Thu, 03 Apr 2014 18:06:23 GMT
Warning: Cannot install Cpanel::Serverinfo, don't know what it is.
Try the command
i /Cpanel::Serverinfo/
to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9721)
perlmod--Install done
The following modules were installed for /usr/local/cpanel/Cpanel/OptimizeWS.pm:
Cpanel::Serverinfo
!! We have already tried to install Cpanel::Serverinfo. Please manually troubleshoot the installation of Cpanel::Serverinfo !!
Check Complete
Last edited: