CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#3582] (CMS 1.6) Fatal Error in contentoperations.inc.php

avatar
Created By: Eduardo Martinez (hexdj)
Date Submitted: Mon Jun 22 18:36:11 -0400 2009

Assigned To:
Version: 1.6
CMSMS Version: None
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
(CMS 1.6) Fatal Error in contentoperations.inc.php
Detailed Description:
Using PHP Version 5.0.5

line 658 of lib/classes/class.contentoperations.inc.php
generates the following error (with Debug mode on) when viewing content pages in
backend:

<b>Fatal error</b>:  Only variables can be passed by reference in
<b>/lib/classes/class.contentoperations.inc.php</b> on line <b>658</b>

Line 658: $contentobj->LoadFromData($dbresult->FetchRow(), false);

As suggested by _SjG_ in IRC:
<_SjG_> $foo = $dbresult->FetchRow();
<_SjG_>  $contentobj->LoadFromData($foo, false);

It appears this version of PHP requires the extra step.


History

Comments
avatar
Date: 2009-06-30 05:38
Posted By: Alberto Benati (alby)

Fixed in SVN
      
avatar
Date: 2009-07-31 16:19
Posted By: Ronny Krijt (ronnyk)

Released with 1.6.1
      
Updates

Updated: 2009-07-31 16:19
state: Open => Closed

Updated: 2009-06-30 05:38
resolution_id: 5 => 7

Updated: 2009-06-23 00:05
description: Using PHP Version 5.0.5 line 658 of lib/classes/class.contentoperations.inc.php generates the following error (with Debug mode on) when viewing content pages in backend: Fatal error: Only variables can be passed by reference in /lib/clas => Using PHP Version 5.0.5 line 658 of lib/classes/class.contentoperations.inc.php generates the following error (with Debug mode on) when viewing content pages in backend: Fatal error: Only variables can be passed by reference in /lib/clas
resolution_id: => 5