Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the agenda module is allowed the following warnings are displayed:
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (regel 1893 van /srv/www/htdocs/includes/common.inc).
Warning: date_format() expects parameter 1 to be DateTime, boolean given in format_date() (regel 1903 van /srv/www/htdocs/includes/common.inc).
Although they're just warnings, it is not nice because the warnings are very visible for the site visitor.
Comments
Comment #1
a_webb CreditAttribution: a_webb commentedif you have admin menu i suggest you go to configuration>>development>>logging and errors and set it not to display errors--this is best for production sites
Comment #2
radoeka CreditAttribution: radoeka commented@a_webb: thanks for the suggestion. For production sites it is indeed good to decrease the log level.
On the other hand, I hope that this bug report helps to get the Agenda Module better by improving the code that results in the error messages.
Comment #3
marianicolosi CreditAttribution: marianicolosi commentedThere has to be a better solution. Similar problems are posted around the site, but I can't figure out how they translate to the problem with common.inc.
Comment #4
a_webb CreditAttribution: a_webb commentedThe agenda module has given me issues -- I use restylegc -- you can do a google search. It is easy to use within your drupal site, and it has results very similar to the agenda module -- without the error in this thread or the time setting issues on other threads.
Cheers!
Comment #5
aidanlis CreditAttribution: aidanlis commentedI don't see these errors ... can you reproduce them?
Comment #6
aidanlis CreditAttribution: aidanlis commentedI'll assume this is fixed.
Comment #8
rahulchauhan CreditAttribution: rahulchauhan commentedI am using drupal 5 and update php5.2 to php5.4 . I got this 'warning: Parameter 1 to date_timezone_site_form() expected to be a reference, value given in\includes\form.inc on line 765" and date module setting page display blank. Please suggest the solution for this.