Back to vBulletin Tips & Tricks

[ How - to ] Fixing this blog bugs.
by BlackThorn 31 Jul 2010

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;

PHP 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,

Similar Mods

vBulletin Blog Blog Portal Link in vBulletin Blog 2.0 Blog Links Menu vBulletin 3.7 Template Modifications
New Posting Features [HTL] & [TXT] Request/Bugs Tracker (formally vB-Bugs) Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024