Still having issues with this :/ Thanks for the help so far.
If I var dump $dataO I get the object but if I vardump $dataO->AbsoluteLink() I receive a Server Error Page.I receive the same error with ->RelativeLink()
This is the vardump from $dataO
{
[
"dataClass":protected
] => string(4) "Page" [
"dataQuery":protected
] => object(DataQuery)#422 (8) {
[
"dataClass":protected
] => string(4) "Page" [
"query":protected
] => object(SQLQuery)#93 (12) {
[
"isDelete":protected
] => bool(false) [
"select":protected
] => array(0) {
} [
"groupby":protected
] => array(0) {
} [
"having":protected
] => array(0) {
} [
"distinct":protected
] => bool(true) [
"orderby":protected
] => array(1) {
[
"" Sort""
] => string(3) "ASC"
} [
"limit":protected
] => array(0) {
} [
"where":protected
] => array(1) {
[
0
] => array(1) {
[
"`ID` = '15'"
] => array(0) {
}
}
} [
"connective":protected
] => string(3) "AND" [
"from":protected
] => array(1) {
[
"SiteTree"
] => string(10) ""SiteTree""
} [
"replacementsOld":protected
] => array(0) {
} [
"replacementsNew":protected
] => array(0) {
}
} [
"collidingFields":protected
] => array(0) {
} [
"queriedColumns": "DataQuery":private
] => NULL [
"queryFinalised": "DataQuery":private
] => bool(false) [
"querySubclasses":protected
] => bool(true) [
"filterByClassName":protected
] => bool(true) [
"queryParams": "DataQuery":private
] => array(2) {
[
"Versioned.mode"
] => string(5) "stage" [
"Versioned.stage"
] => string(4) "Live"
}
} [
"model":protected
] => object(DataModel)#3 (1) {
[
"customDataLists":protected
] => array(0) {
}
} [
"inAlterDataQueryCall":protected
] => bool(false) [
"failover":protected
] => NULL [
"customisedObject":protected
] => NULL [
"objCache": "ViewableData":private
] => array(0) {
} [
"class"
] => string(8) "DataList" [
"extension_instances":protected
] => array(0) {
} [
"beforeExtendCallbacks":protected
] => array(0) {
} [
"afterExtendCallbacks":protected
] => array(0) {
}
}object(DataList)#427 (11){
[
"dataClass":protected
] => string(4) "Page" [
"dataQuery":protected
] => object(DataQuery)#424 (8) {
[
"dataClass":protected
] => string(4) "Page" [
"query":protected
] => object(SQLQuery)#432 (12) {
[
"isDelete":protected
] => bool(false) [
"select":protected
] => array(0) {
} [
"groupby":protected
] => array(0) {
} [
"having":protected
] => array(0) {
} [
"distinct":protected
] => bool(true) [
"orderby":protected
] => array(1) {
[
"" Sort""
] => string(3) "ASC"
} [
"limit":protected
] => array(0) {
} [
"where":protected
] => array(1) {
[
0
] => array(1) {
[
"`ID` = '15'"
] => array(0) {
}
}
} [
"connective":protected
] => string(3) "AND" [
"from":protected
] => array(1) {
[
"SiteTree"
] => string(10) ""SiteTree""
} [
"replacementsOld":protected
] => array(0) {
} [
"replacementsNew":protected
] => array(0) {
}
} [
"collidingFields":protected
] => array(0) {
} [
"queriedColumns": "DataQuery":private
] => NULL [
"queryFinalised": "DataQuery":private
] => bool(false) [
"querySubclasses":protected
] => bool(true) [
"filterByClassName":protected
] => bool(true) [
"queryParams": "DataQuery":private
] => array(2) {
[
"Versioned.mode"
] => string(5) "stage" [
"Versioned.stage"
] => string(4) "Live"
}
} [
"model":protected
] => object(DataModel)#3 (1) {
[
"customDataLists":protected
] => array(0) {
}
} [
"inAlterDataQueryCall":protected
] => bool(false) [
"failover":protected
] => NULL [
"customisedObject":protected
] => NULL [
"objCache": "ViewableData":private
] => array(0) {
} [
"class"
] => string(8) "DataList" [
"extension_instances":protected
] => array(0) {
} [
"beforeExtendCallbacks":protected
] => array(0) {
} [
"afterExtendCallbacks":protected
] => array(0) {
}
}