1 kskhater Jan 11, 2007 03:39
3 kskhater Jan 11, 2007 05:20
Thanks Afwas. I don't get the error any more.
4 blueyed Feb 18, 2007 23:18
It would be great if you could try the patch at http://forums.b2evolution.net/viewtopic.php?p=51398#51398 instead (after reverting the one mentioned above).
I think the fix is "more correct" and would like to get some feedback before committing it.
5 kskhater Feb 19, 2007 04:27
I tried the patch but it gives so many errors. Using "&" solves the problems. The last one I encounter was in:
Notice: Only variable references should be returned by reference in /home/alkha4/public_html/blog/inc/MODEL/generic/_genericcache.class.php on line 67
When I try to access the post statuses.
I replaced:
$obj = new $objtype( $this->dbtablename, $this->dbprefix, $this->dbIDname, $row ); // Copy
With this:
$obj = & new $objtype( $this->dbtablename, $this->dbprefix, $this->dbIDname, $row ); // Copy
And I don't get the error.
6 blueyed Feb 19, 2007 23:10
Just for the record, kskhater is using PHP 4.4.4 with Zend Optimizer v2.5.10, which may be the cause of the problem (according to the phpinfo file in the install folder!).
7 blueyed Feb 19, 2007 23:13
I'm closing threads about the same topic. See http://forums.b2evolution.net/viewtopic.php?t=10133
See http://forums.b2evolution.net/viewtopic.php?t=10133&highlight=121 for more on this topic.
Summary:
Find blogs/inc/MODEL/dataobjects/_dataobjectcache.class.php around line 121 where it sais:
an change $obj = new $objtype( $row ); in $obj = & new $objtype( $row );
This should help for the problem on the blog. There are a few simular errors, but they occur only in the backoffice and -to my knowledge- do not affect the functioning. The error occurs *after* it encounters a last topic in a list.
The problem occurs if you are using PHP version 4.4.0 or an early 5 version.