vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   [ How - to ] Fixing this blog bugs. (https://vborg.vbsupport.ru/showthread.php?t=247660)

BlackThorn 07-30-2010 10:00 PM

[ How - to ] Fixing this blog bugs.
 
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/proje...?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,


All times are GMT. The time now is 10:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01071 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete