Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error caused by incorrect date format on events #595

Closed
thetwopct opened this issue Oct 26, 2020 · 0 comments · Fixed by #596
Closed

Fatal error caused by incorrect date format on events #595

thetwopct opened this issue Oct 26, 2020 · 0 comments · Fixed by #596
Labels

Comments

@thetwopct
Copy link
Collaborator

thetwopct commented Oct 26, 2020

If entering a non-date in an event (i.e. TBD) then the following fatal errors are thrown:

Uncaught Exception: DateTime::__construct(): Failed to parse time string (TBD) at position 0 (T): The timezone could not be
found in the database in /code/web/wp-content/themes/lfevents/library/lfe-functions.php:477 
Stack trace: #0 /code/web/wp-content/themes/lfevents/library/lfe-functions.php(477): DateTime->__construct('TBD') 
#1 /code/web/wp-content/themes/lfevents/header.php(27): lfe_insert_structured_data() 
#2 /code/web/wp/wp-includes/template.php(723): require_once('/code/web/wp-co...') 
#3 /code/web/wp/wp-includes/template.php(672): load_template('/code/web/wp-co...', true) 
#4 /code/web/wp/wp-includes/general-template.php(41): locate_template(Array, true) 
#5 /code/web/wp-content/themes/lfevents/singular.php(20): get_header() 
#6 /code/web/wp/wp-includes/template-loader.php(106): include('/code/web/wp-co...') 
#7 /code/web/wp/wp-blog-header.php(19): require_once('/code/web/wp/wp...') 
#8 /code/web/index.php(6): require('/code/web/wp/wp...') 
#9 {main} thrown

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (TBD) at position 0 (T): The timezone could not be found in the database
in /app/web/wp-content/themes/lfevents/search-filter/4480.php on line 39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant