17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1042 Views |
-
Sitemap.xml. Missing argument 1 for DBField::__construct()

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.
-
Re: Sitemap.xml. Missing argument 1 for DBField::__construct()

5 February 2008 at 10:23pm
Hi all:
I solve my problem.
I put:
$now = new Datetime(date("Y-m-d G:i:s"));
Instead of:
$now = new Datetime();
Now it works.
bye...
| 1042 Views | ||
|
Page:
1
|
Go to Top |

