Recent Topics

1 Jun 01, 2010 04:34    

I didn't realize how old the release I'm using is, I couldn't even find 1.6 in the release list. This is an old version then and has probably been upgraded.

My b2evolution Version: 1.6 (and it took a while to find that)

I run my blog on B2Evolution at, and my hosting provider offers several options on PHP versions. I was running on 5.2 and wanted to see if there was a difference. And wow! Yes there is.

The most prevalent error is "Deprecated: Assigning the return value of new by reference is deprecated in /public/inc/ on line 123" which occurs many times, on lines 129, 136, 170, 200,206,231, 242,254, 293, 352, 353, 354,355,356, and 563.

other files having this error

/public/inc/_misc/_misc.funcs.php on line 194, 199
/public/inc/ on line 27
/public/inc/MODEL/generic/_genericelement.class.php on line 112
/public/inc/MODEL/dataobjects/_dataobject.class.php on line 428
/public/inc/MODEL/dataobjects/_dataobject.class.php on line 437
/public/inc/MODEL/collections/_category.funcs.php on line 390
/public/inc/_misc/_resultsel.class.php on line 549
/public/inc/_misc/_resultsel.class.php on line 563
/public/inc/MODEL/items/_itemlist.class.php on line 596
/public/inc/MODEL/items/_item.class.php on line 2937
/public/inc/_misc/_plugins.class.php(2973) : eval()'d code on line 1
(that one appears 3 times)
/public/inc/ on line 306
/public/inc/MODEL/items/_itemlist2.class.php on line 120, 796
/public/plugins/_calendar.plugin.php on line 135,152,329,865
/public/skins/_feedback.php on line 102,223
/public/skins/_linkblog.php on line 46

other errors:
Warning: Cannot modify header information - headers already sent by (output started at /public/inc/ in /public/inc/MODEL/sessions/_session.class.php on line 201

Deprecated: Function ereg() is deprecated in /f2/paulrobinson/public/inc/ on line 408

Warning: Cannot modify header information - headers already sent by (output started at /public/inc/ in /public/inc/MODEL/skins/_skin.funcs.php on line 71

I have reverted my hosting back to 5.2 to shut up the errors but it looks like some things need to be fixed for 5.3.

2 Jun 01, 2010 05:00

Welcome to the forum!

It's time to update your blog, this error is fixed in the current stable version 3.3.3

3 Jun 05, 2010 13:15

You can fix your old blog to run just fine in PHP 5.3.2 by searching in each offending file for:

& new

replace it with


You will also run into an error when you attempt to save a post and you will need to modify this file:

inc/_misc/_misc.functions.php file

search for this:

make_clickable_callback( & $text

remove the ampersand, so it looks like this:

function make_clickable_callback( $text, $moredelim = '&' )

Fix the other deprecated function like this:

In your file, /inc/ on line 408




It all can be done quite easily using a professional editor like Ultraedit, but you could do it all in Notepad if you don't have a professional editor.

4 Jul 26, 2010 03:56

Many thanks for the details, samredman, that saved my evening.

I do plan to do a proper update and backup, but in the meantime this prevented a flurry of PHP errors I just discovered. :)

Form is loading...