Revision 353961396662 () - Diff

Link to this snippet: https://friendpaste.com/6AuEOQE4dAt7wCxlkBAmTY
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$m = $article->metadata;
var_dump($m);
var_dump($article->metadata->published);
var_dump($article->metadata->published);
$article->metadata->published->setTimestamp(time());
var_dump($article->metadata);
die();

object(midgard_datetime)#65 (5) {
["object":"midgard_datetime":private]=>
string(0) ""
["property":"midgard_datetime":private]=>
string(0) ""
["date"]=>
string(19) "0001-01-01 00:00:00"
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}
object(midgard_datetime)#242 (5) {
["object":"midgard_datetime":private]=>
string(0) ""
["property":"midgard_datetime":private]=>
string(0) ""
["date"]=>
string(19) "0001-01-01 00:00:00"
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}
object(midgard_datetime)#216 (5) {
["object":"midgard_datetime":private]=>
string(0) ""
["property":"midgard_datetime":private]=>
string(0) ""
["date"]=>
string(19) "0001-01-01 00:00:00"
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}

Notice: Trying to get property of non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72

Fatal error: Call to a member function setTimestamp() on a non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72