PDA

View Full Version : [ How - to ] Fixing this blog bugs.


BlackThorn
31 Jul 2010, 17:26
An article for vBulletin 3.8.x version.

Hello vBulletin people. This article is about a vBulletin blog bug(s).
I was get this error about a month ago and it was driving me crazy:

Warning: trim() expects parameter 1 to be string, array given in [path]/includes/functions.php on line 295
Warning: number_format() expects parameter 1 to be double, array given in [path]/includes/functions.php on line 349
Warning: trim() expects parameter 1 to be string, array given in [path]/includes/functions.php on line 295
Warning: number_format() expects parameter 1 to be double, array given in [path]/includes/functions.php on line 34

This bug has been fixed in vBulletin 3.8.5.

A customer here in the last post also mentioned a fix for older versions: http://www.vbulletin.com/forum/project.php?issueid=37851

Well, that issue blog bugs hasn't been fixed. If you never run 3.8.5, then there is big bug be right, sure. Because I didn't run my site to 3.8.5 but it isn't fixed that issue.

So how to - can fix that blog bugs? I find a solution and I just want puplished it. If you get that bug, then follow this:

Then and now open your /includes/blog_functions.php folder and find this code;

{
if ($key != "lastentry") {
$blogstats["$key"] = vb_number_format($value);
}DELETE, save and exit, and now it's okay. That blog bugs has been fixed if you following good a reason that codes and delete. Sure, this is never get an another error to you and you can use your blogs very useful.

Best Regards,