Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Sitemap.xml. Missing argument 1 for DBField::__construct()


Go to End


1494 Views

Avatar
nomen

Community Member, 52 Posts

5 February 2008 at 4:31am

Hi all:

My PHP version is 5.1.6
When i try to see my www.mysite.com/sitemap.xml i receive one error.

The error is in sapphire/misc/GoogleSitemap.php
The first time it calls to Datetime

        $created = new Datetime($properties['Created']);
      

there is no problem.
But, the second one
       $now = new Datetime();
      

gives the error.
I think that DateTime needs one argument, but i don´t know what.
¿Someone knows how to solve the problem?

Thanks in advance.