Details
Description
Under Packages > Domain Options: Configuration, if "Renew Days Before Expiration" is set to "Same Day", the sync fails with this error:
DateTime::modify(): Failed to parse time string (- days) at position 0 (-): Unexpected character #0 /home/blestau/public_html/5110b1/vendors/minphp/date/src/Date.php(140): DateTime->modify() #1 /home/blestau/public_html/5110b1/plugins/domains/domains_plugin.php(1330): Minphp\Date\Date->modify() #2 /home/blestau/public_html/5110b1/plugins/domains/domains_plugin.php(1235): DomainsPlugin->synchronizeDomains() #3 /home/blestau/public_html/5110b1/core/Automation/Tasks/Task/Plugin.php(74): DomainsPlugin->cron() #4 /home/blestau/public_html/5110b1/core/Automation/Tasks/Task/Plugin.php(49): Blesta\Core\Automation\Tasks\Task\Plugin->process() #5 /home/blestau/public_html/5110b1/app/controllers/cron.php(702): Blesta\Core\Automation\Tasks\Task\Plugin->run() #6 /home/blestau/public_html/5110b1/app/controllers/cron.php(203): Cron->pluginTasks() #7 /home/blestau/public_html/5110b1/app/controllers/cron.php(151): Cron->all() #8 /home/blestau/public_html/5110b1/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): Cron->index() #9 /home/blestau/public_html/5110b1/index.php(21): Dispatcher::dispatch() #10 {main}
The value for company_settings.key='domains_renewal_days_before_expiration' is saved as blank rather than 0. Updating the value to 0 instead of nothing seems to avoid the error.