Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Sitemap.xml. Missing argument 1 for DBField::__construct()

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

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

Page: 1
Go to End
Author Topic: 1148 Views
  • nomen
    Avatar
    Community Member
    52 Posts

    Sitemap.xml. Missing argument 1 for DBField::__construct() Link to this post

    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.

    1148 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.