Fatal error: Only variables can be passed by reference in /netapp/whnas-silo1-node2/s1/s1/00205/www.equalaccess.org/webdocs/webyep-system/program/lib/WYDocument.php on line 131
Line 131 of WYDocument.php as referenced in the error is the following:
Code: Select all
$oF =& new WYFile($this->oDocumentsFilePath());
And here is the code in content:
Code: Select all
function iAddPageIDForDocumentPath($oP, $iNewID)
{
global $goApp;
$oF =& new WYFile($this->oDocumentsFilePath());
$sFileContent = "\r\n" . $oP->sPath . "\t" . $iNewID;
if (!$oF->bAppend($sFileContent)) {
$sFileContent = $oF->sContent() . $sFileContent;
$oF->setContent($sFileContent);
if (!$oF->bWrite()) {
$goApp->log("could not store new page iD " . $iNewID);
$iNewID = 0;
}
}
@$oF->chmod(0644);
return $iNewID;
}
My process for new site pages of a specific layout template is to duplicate an existing template page locally and manually edit the WY elements to give them different names/labels and upload the file. I upload, provide the links to the client to go to the page directly and then they log-in (which is on all the pages) and click on the edit icons to enter content. We have never encountered a problem with this and everything has displayed correctly before.
All existing pages that already have WY content filled in display correctly and no errors are reported. Any thoughts on this?