Hi, I've obtained an error in a calendar view. The error is the following;

warning: __clone method called on non-object in /opt/drupal-5.1/includes/common.inc on line 1375.

I hope this helps

Comments

KarenS’s picture

Status: Active » Fixed

There have been updates so I don't know that this still applies. If you run into it again, you can reopen the issue, but I need to know exactly what you were doing and where you were when you saw it.

cglusky’s picture

Status: Fixed » Active

Karen,
I am still seeing this error...

d5.7
php 5.1.2
have latest dev modules for cal and date

seems to come up when using a views based cal

and the location listed in watchdog is /events/9/1/W2

which does not seem to be a proper uri to begin with ...

the only other clue i can give you is the first two weeks of any month are always numbered the same.

R,
Coby

cglusky’s picture

Karen,
Just some more info:

I upgraded to php5.2 and am testing on a fresh install of d5.7 with the latest date and cal dev snapshots.

If I use the built in calendar view I now get a te same error as above but now it's a fatal error and a blank screen.

If I create a custom view I get the cal but now get the

warning: date_format() expects parameter 1 to be DateTime, null given in....

But I do not get the clone error.

r,
c

cglusky’s picture

Karen,
OK. it seems the clone error only occurs when trying to use the default calendar view. i managed to get a custom cal view set up and working but we are still dealing with strange display of date time in the cal.

http://v5.metanomy.com/?q=cal

if you want to see what it is doing on my test site. And I would be more than happy to make you an admin so you can play around in another system.

R,
Coby

KarenS’s picture

Status: Active » Closed (duplicate)

This is probably the same as http://drupal.org/node/247215, since it only occurs with the default view.