Navigating to a virtual page on the website I get the following error:
[Notice] Trying to get property of non-object
GET /about-us-v/?stage=Stage
Line 151 in xxx/www/sapphire/core/model/VirtualPage.php
Possible solution:
In core/model/VirtualPage.php - method init():
if($this->record->ID){ ...
$this->record is as far as I see not a property of class VirtualPage. Possible replacement (I'm not sure, but this seems to do the job):
if($this->dataRecord->ID){ ...
Also in the init() method:
$this->VersionID = $this->failover->CopyContentFrom()->VersionID;
It looks like VersionID is not part of the properties returned by $this->failover->CopyContentFrom(). Possible replacement (seems to be working as well):
$this->VersionID = $this->failover->CopyContentFrom()->Version;
(question: it looks like $this->failover in this case refers to $this->dataRecord as well. Or am I mistaken - still trying to figure out the stucture of the code here)