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

Domain reminders may encounter an error and fail to send

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.12.0-b1
    • Fix Version/s: 5.12.0-b2
    • Component/s: None
    • Labels:
      None

      Description

      This likely occurs in version 5.11.x as well.

      To reproduce:

      1. Add some domains that use the Generic Domains module (other modules not ruled out at this time)
      2. Update the expiration date of the domains so that they coincide with one of the notices (Packages > Domain Options: Configuration: Notices)
      3. Run the cron, and note the following error when processing the task:

      Attempting plugin cron for domains domain_renewal_reminders.
      Call to a member function getData() on null
      #0 /home/blestau/public_html/5110/plugins/domains/domains_plugin.php(1716): GenericDomains->getExpirationDate()
      #1 /home/blestau/public_html/5110/plugins/domains/domains_plugin.php(1377): DomainsPlugin->cronDomainRenewalReminders()
      #2 /home/blestau/public_html/5110/core/Automation/Tasks/Task/Plugin.php(74): DomainsPlugin->cron()
      #3 /home/blestau/public_html/5110/core/Automation/Tasks/Task/Plugin.php(49): Blesta\Core\Automation\Tasks\Task\Plugin->process()
      #4 /home/blestau/public_html/5110/app/controllers/cron.php(702): Blesta\Core\Automation\Tasks\Task\Plugin->run()
      #5 /home/blestau/public_html/5110/app/controllers/cron.php(203): Cron->pluginTasks()
      #6 /home/blestau/public_html/5110/app/controllers/cron.php(151): Cron->all()
      #7 /home/blestau/public_html/5110/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): Cron->index()
      #8 /home/blestau/public_html/5110/index.php(21): Dispatcher::dispatch()
      #9 {main}
      Finished plugin cron for domains domain_renewal_reminders.
      

      Additionally an error is logged to the general-alert-cron log, which can be searched:

      grep -R cronDomainRenewalReminders *
      general-alert-cron-2025-07-23.log:[2025-07-23T19:47:16.446291+00:00] general.ALERT: Error: Call to a member function getData() on null in /home/blestau/public_html/5110/components/modules/generic_domains/generic_domains.php:354 Stack trace: #0 /home/blestau/public_html/5110/plugins/domains/domains_plugin.php(1716): GenericDomains->getExpirationDate() #1 /home/blestau/public_html/5110/plugins/domains/domains_plugin.php(1377): DomainsPlugin->cronDomainRenewalReminders() #2 /home/blestau/public_html/5110/core/Automation/Tasks/Task/Plugin.php(74): DomainsPlugin->cron() #3 /home/blestau/public_html/5110/core/Automation/Tasks/Task/Plugin.php(49): Blesta\Core\Automation\Tasks\Task\Plugin->process() #4 /home/blestau/public_html/5110/app/controllers/cron.php(702): Blesta\Core\Automation\Tasks\Task\Plugin->run() #5 /home/blestau/public_html/5110/app/controllers/cron.php(203): Cron->pluginTasks() #6 /home/blestau/public_html/5110/app/controllers/cron.php(151): Cron->all() #7 /home/blestau/public_html/5110/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): Cron->index() #8 /home/blestau/public_html/5110/index.php(21): Dispatcher::dispatch() #9 {main} 
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              4/Aug/25

              Time Tracking

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