mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
91 stars 158 forks source link

Certificate - output buffer error when trying to get property 'dateitem' #446

Closed DinhHien0307 closed 2 years ago

DinhHien0307 commented 3 years ago

Output buffer error when trying to get property 'dateitem' and 'dateformat' image

Step to reproduce.

  1. Admin creates a certificate with the date element.
  2. Backup that certificate.
  3. Try to restore that certificate to another place.
  4. View restored certificate for the first time and the error appear

moodle version 3.9.3

I will create a pull request to fix this

mdjnelson commented 3 years ago

Are you able to tell me what the value is for $this->get_data()?

Thanks.

DinhHien0307 commented 3 years ago

Hi @mdjnelson, Sorry for the delayed response, the value for $this->get_data() is a string. image

mdjnelson commented 3 years ago

Ah, well that is broken. There is a missing " after -1. I wonder how that happened ...

mdjnelson commented 2 years ago

Closing as I can not replicate.