• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue scheduled task ERROR | /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/wp-toolkit/scripts/instances-auto-update.php'

Wolfgang Reidlinger

Basic Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
18.0.57.2
Just a brief question regarding the scheduled task /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/wp-toolkit/scripts/instances-auto-update.php'.
Looks like the instances-auto-update.php do not like the coding practice of the all-in-one-event-calendar wordpress plugin.

Bash:
[2023-12-03 01:13:28.691] 204764:656bc80dc10fa ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'ws-piqiat' 'exec' '/var/www/vhosts/topdomain.org/wordpress' 'timeout' '60' '/opt/plesk/php/8.2/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=on' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=0' '-d' 'max_execution_time=60' '-c' '/var/www/vhosts/system/topdomain.org/etc/php.ini' '/opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php' '--path=/var/www/vhosts/topdomain.org/wordpress' '--no-color' 'plugin' 'auto-updates' 'enable' 'health-check-troubleshooting-mode' '--skip-plugins=false' '--skip-themes=false'] with exit code [1]

[2023-12-03 01:13:28.694] 204764:656bc80dc10fa ERR [extension/wp-toolkit] An error occurred while executing WP-CLI command for instance: WordPress installation #9 ('https://topdomain.org'). All-in-One Event Calendar: Creation of dynamic property Ai1ec_Scheduling_Utility::$_updated is deprecated @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/lib/scheduling/utility.php:45 #8192
All-in-One Event Calendar: Using ${var} in strings is deprecated, use {$var} instead @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1215 #8192
All-in-One Event Calendar: Using ${var} in strings is deprecated, use {$var} instead @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1560 #8192
All-in-One Event Calendar: Using ${var} in strings is deprecated, use {$var} instead @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1560 #8192
All-in-One Event Calendar: Creation of dynamic property lessc::$formatterName is deprecated @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1952 #8192
All-in-One Event Calendar: Creation of dynamic property Ai1ec_Http_Request::$_registry is deprecated @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/lib/http/request.php:22 #8192
All-in-One Event Calendar: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated @ /var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/lib/query/helper.php:156 #8192
Warning: The 'health-check-troubleshooting-mode' plugin could not be found.
Error: No plugins provided to enable auto-updates for.

[2023-12-03 01:13:29.706] 204764:656bc80dc10fa ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'ws-piqiat' 'exec' '/var/www/vhosts/topdomain.org/wordpress' 'timeout' '60' '/opt/plesk/php/8.2/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=on' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=0' '-d' 'max_execution_time=60' '-c' '/var/www/vhosts/system/topdomain.org/etc/php.ini' '/opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php' '--path=/var/www/vhosts/topdomain.org/wordpress' '--no-color' 'plugin' 'auto-updates' 'enable' 'health-check-troubleshooting-mode' '--skip-plugins=all-in-one-event-calendar,contact-form-7,cookie-notice,elementor,envira-gallery-lite,facebook-for-woocommerce,google-analytics-for-wordpress,health-check,mailchimp-for-woocommerce,mailchimp-for-wp,seo-by-rank-math,resmushit-image-optimizer,royal-elementor-addons,smart-slider-3,instagram-feed,woocustomizer,updraftplus,use-any-font,woocommerce-menu-bar-cart,health-check-troubleshooting-mode'] with exit code [1]

[2023-12-03 01:13:29.707] 204764:656bc80dc10fa ERR [extension/wp-toolkit] An error occurred while executing WP-CLI command for instance: WordPress installation #9 ('https://topdomain.org'). Warning: The 'health-check-troubleshooting-mode' plugin could not be found.
Error: No plugins provided to enable auto-updates for.

[2023-12-03 01:13:29.709] 204764:656bc80dc10fa ERR [extension/wp-toolkit] Failed to enable auto-updates for WordPress installation #9 ('https://topdomain.org') plugins: health-check-troubleshooting-mode. Warning: The 'health-check-troubleshooting-mode' plugin could not be found.
Error: No plugins provided to enable auto-updates for.

Here you can find some code lines mentioned in the ERROR log.

/var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1215

1701620734111.png


/var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1560

1701620866658.png


/var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1952

1701620935940.png

/var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/lib/http/request.php

1701621049356.png


/var/www/vhosts/topdomain.org/wordpress/wp-content/plugins/all-in-one-event-calendar/lib/query/helper.php

1701621113869.png




Is there anything I can do about it except ignoring this ERROR?
 

Attachments

  • 1701620818130.png
    1701620818130.png
    11.9 KB · Views: 1
This error looks like it is caused by a plugin that is incompatible with the (new) PHP version your website is using. When you downgrade PHP it will probably disappear. The better option is to upgrade the plugin to cater for new PHP versions.
 
This error looks like it is caused by a plugin that is incompatible with the (new) PHP version your website is using. When you downgrade PHP it will probably disappear. The better option is to upgrade the plugin to cater for new PHP versions.
Thanks @Peter Debik for the explanation. For sure, I will stick to the newer PHP version!
I'm going to reach out to the Support of this Wordpress Plugin. Maybe they fix this issue.
This Plugin is used Timely All-in-One Events Calendar -> Timely All-in-One Events Calendar
 
Thanks @Peter Debik for the explanation. For sure, I will stick to the newer PHP version!
I'm going to reach out to the Support of this Wordpress Plugin. Maybe they fix this issue.
This Plugin is used Timely All-in-One Events Calendar -> Timely All-in-One Events Calendar
Here is the bug report: https://wordpress.org/support/topic/php-errors-since-switching-to-php-8-2/- lets see if they do something about!

Regarding there Wordpress Plugin page they support PHP Version:7.2 or higher.
But also found reports on errors with PHP v8.1

PHP Errors since switching to PHP 8.1
Errors in PHP 8.1
 
Back
Top