Recently started getting error notices from user-created cron jobs, which are generated by Softaculous for software installed by Softaculous.
The errors started on 8/24/2017 and are most likely brought on by automatic updates. I'm posting about this here in case anyone else comes searching for the same errors. Softaculous might be jumping the gun for some people who don't have access to Perl 5.10+ just yet (our server is currently locked to 5.8, no updates available.) However, I assume sometime in the near future cPanel will require version 5.10+ and we'll be allowed the updates that will fix this error.
The errors I get are as follows:
The problem file contains an operator that is not available in Perl until version 5.10, which is a new take the OR operator, I think..
To fix the errors and get Softaculous cron jobs working again, I have changed the following line from:
To:
I'm not a guru of Perl, so this could be wrong. Use at your own risk. Also feel free to educate me if this "fix" is not as straight forward as it would appear to be to me.
The errors started on 8/24/2017 and are most likely brought on by automatic updates. I'm posting about this here in case anyone else comes searching for the same errors. Softaculous might be jumping the gun for some people who don't have access to Perl 5.10+ just yet (our server is currently locked to 5.8, no updates available.) However, I assume sometime in the near future cPanel will require version 5.10+ and we'll be allowed the updates that will fix this error.
The errors I get are as follows:
The file is loaded by the Softaculous cron job file, on my server the cron job is usually like this:Search pattern not terminated at /usr/local/cpanel/Cpanel/Config/Httpd/EA4.pm line 46.
Compilation failed in require at /usr/local/cpanel/Cpanel/Config/Httpd.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/Httpd.pm line 11.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --backup --auto=1 --insid=XX_YYYYY
The problem file contains an operator that is not available in Perl until version 5.10, which is a new take the OR operator, I think..
To fix the errors and get Softaculous cron jobs working again, I have changed the following line from:
Code:
return $is_ea4_cached //= _is_ea4();
Code:
return $is_ea4_cached ||= _is_ea4();