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

a_webb’s picture

if 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

radoeka’s picture

@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.

marianicolosi’s picture

There 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.

a_webb’s picture

The 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!

aidanlis’s picture

Status: Active » Postponed (maintainer needs more info)

I don't see these errors ... can you reproduce them?

aidanlis’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'll assume this is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rahulchauhan’s picture

Issue summary: View changes

I 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.