Hi,

I created a webform and every time I go to the webform node and then I click a link (whatever link: submit button, create content, home, login, ....) it gives me this error msg:

Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (linea 1909 di /Applications/MAMP/htdocs/matteo_ok/includes/common.inc).
Warning: date_format() expects parameter 1 to be DateTime, boolean given in format_date() (linea 1919 di /Applications/MAMP/htdocs/matteo_ok/includes/common.inc).

What I noticed is that if I try as anonymous user it does it always, but if I'm as admin it's not always doing it.

Thanks for your help.

Comments

subigor’s picture

Some more info:

I'm using Drupal 7.8

Non core active modules:

Chaos tools7.x-1.0-rc1

Wysiwyg7.x-2.1

Frequently Asked Questions7.x-1.x-dev

Mollom7.x-1.1

SexyBookmarks7.x-2.0

Token7.x-1.0-beta5

Page Title7.x-2.5

Views7.x-3.0-rc1

Views UI7.x-3.0-rc1

XML sitemap7.x-2.0-beta3

XML sitemap engines7.x-2.0-beta3

quicksketch’s picture

I think you may just need to set the site wide default timezone at admin/config/regional/settings. The problem probably doesn't happen for authenticated users because they each have a timezone set in their profile, while anonymous users don't have a timezone at all unless the site wide timezone is set.

I can't reproduce this issue on a clean install of Drupal, can you provide steps to reproduce it?

VM’s picture

Category: bug » support
Status: Active » Fixed

No reply from OP.

Confirmed the error when no sitewide timezone set in administration UI.

quicksketch’s picture

Thanks @VM.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

.

GeorgeWL’s picture

I've tried exactly what was suggested to no avail.

Still getting the same error on certain pages.