Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5307

Domain Manager: Setting Renew Days Before Expiration to Same Day breaks sync

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.10.3
    • Fix Version/s: 5.11.0-b3
    • Component/s: Plugins
    • Labels:
      None

      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.

        Activity

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              21/Jan/25

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 14 minutes
              14m