# Template Function causes Database Errors

**URL:** <https://community.podlove.org/t/template-function-causes-database-errors/2765>\
**Category:** Podlove Templates\
**Created:** [May 8, 2021, 3:13pm UTC](https://community.podlove.org/t/template-function-causes-database-errors/2765 "2021-05-08T15:13:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diana](https://community.podlove.org/letter_avatar_proxy/v4/letter/d/bc8723/32.png) [@Diana](https://community.podlove.org/u/Diana)\
**Post date:** [May 8, 2021, 3:13pm UTC](https://community.podlove.org/t/template-function-causes-database-errors/2765/1 "2021-05-08T15:13:41Z")

</div>

Hi there,

After I disvored the templatate function, was very happy to adjust the shownotes.  
But then my system somehow chrased an I got 502 Bad Gateway.  
I asked my host about whats happend and he told me that there is a huge buch of database errors caused by podlove. I have no idea what this means and why there are these errors.

Just to give an little excerpt of how it looks like in the error log. Does anyone knows what that means?  
Thank you !

[Sat May 08 04:37:01 2021] [notice] WordPress-Datenbank-Fehler Incorrect DATE value: ‘’ f\xc3\xbcr Abfrage SELECT \* FROM gowp\_podlove\_modules\_seasons\_season WHERE start\_date \< ‘’ OR start\_date IS NULL AND id != 6 von require(‘wp-blog-header.php’), require\_once(‘wp-includes/template-loader.php’), do\_feed, do\_action(‘do\_feed\_podcast’), WP\_Hook-\>do\_action, WP\_Hook-\>apply\_filters, Podlove\Feeds\generate\_podcast\_feed, Podlove\Feeds\RSS::render, load\_template, require\_once(’/plugins/podlove-podcasting-plugin-for-wordpress/templates/feed-rss2.php’), do\_action(‘rss2\_item’), WP\_Hook-\>do\_action, WP\_Hook-\>apply\_filters, Podlove\Feeds\{closure}, Podlove\Cache\TemplateCache-\>cache\_for, call\_user\_func, Podlove\Feeds\{closure}, do\_action(‘podlove\_append\_to\_feed\_entry’), WP\_Hook-\>do\_action, WP\_Hook-\>apply\_filters, Podlove\Modules\Seasons\Seasons-\>add\_season\_number\_to\_feed, Podlove\Modules\Seasons\Model\Season-\>number, Podlove\Model\Base::find\_all\_by\_where, Podlove\Model\Base::find\_all\_by\_sql
