I have been working on a project that I commit to SVN and just checked that project out to the server. It has been working on the dev server for quite some time until the latest update to the code which had nothing to do with the file being referred to. I can't seem to understand this error as it seems to be coming from outside of SilverStripe:
Fatal error: Call to undefined method stdClass::write() in /......../code/WebPageRequestMultiForm.php on line 38
The line of code being referred to (and preceding lines):
$webReq = new WebPageRequest();
//now save the resources and their web request (the one we just saved)
$records = array();
foreach ($ResID as $ID)
$record = DataObject::get_one('ProjectResource', "`ProjectResource`.`ID`='$ID'");
$record->WebPageRequestID = $webReq->ID;
This is a very simple write statement on an object of type DataObject.
And yes, all the directories are owned (therefore r/w) by apache so permissions don't appear to be a problem, as per some other posts.
Any direction with regards to this?