Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > General Articles
[How-To] Quick Troubleshooting
HMBeaty's Avatar
HMBeaty
Join Date: Sep 2005
Posts: 4,141

I have no details

Show Printable Version Email this Page Subscription
HMBeaty HMBeaty is offline 10-13-2011, 10:00 PM

As you upgrade / modify vBulletin, you may come across several different errors such as:
  • Blank / white page(s)
  • PHP errors
  • Database errors
And several more, but those that I've listed above seem to be the most common

Blank / White Page(s)

If you are receiving a blank / white page on your vBulletin installation, go through each of the steps listed here as that will fix your issue 99% of the time.

PHP Errors

If you are receiving a php error, which should usually look something like this:
Code:
Some error text in somefile.php(251) : eval()'d code (line 125)
Then you should be able to easily translate it using the information below...

somefile.php(251) => line 251 of somefile.php
eval()'d code (line 125) => there is an error in line 125 of a plugin or a template

Now, to start tracking the error down, go to line 251 of somefile.php. There will probably be a fetch_hook() or fetch_template() call in this line. This identifier tells you the hook or template name that is causing the error.

If it's a hook, there may be multiple plugins attached to it so you'll have to find out which one is causing the problem by disabling all of the plugins using this hook and then re-enabling them one by one until the error appears again. Now you have the exact line for the plugin code that's causing the error.

If it's a template, open it and go directly to the line indicated by the error. Most likely you'll find an invalid template conditional there.

Database Errors

You NEED to know the exact error! Again, you NEED to know the exact error!!

To view the exact error you are receiving:
  • Edit your includes/config.php file and add your email to
    PHP Code:
    $config['Database']['technicalemail'] = 'email@domain.com'
  • Go to your AdminCP => Settings => Options => Error Handling & Logging and set a path for Log Database Errors to a File. Something like this:
    Code:
    ./logs/dberrors
    (Make sure to restrict access to this directory using .htaccess and CHMOD to 777)
  • If you still can't view it via the above options, go to the page where you are getting the database error, and right click => View Source and you should see your database error somewhere around the middle of the page.
As an example, it could look something like this:
Code:
Database error in vBulletin :

{FULL ERROR HERE}

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Monday, January 1st 2011 @ 12:00:00 AM
Error Date : Monday, v 1st 2011 @ 12:00:00 PM
Script : /forum.php
Referrer : JaneDoe
IP Address : xxx.xxx.xxx.xxx
Username : JohnDoe
Classname : vB_Database
MySQL Version : 5.1.56
Now, almost 100% of the time, you can find out how to fix the error, or what is causing the error, by searching for MySQL Error : MySQL server has gone away in Google (omg, don't hurt yourself trying to actually use the search feature )

In this case MySQL Error : MySQL server has gone away is an issue with your host, and you would need to contact them about it. Make sure to include the error(s) you're receiving when contacting them :up:

######################################

To see what's causing your problems a little faster than using the above options, a majority of the time, you can narrow it down by disabling your modifications and / or testing your problem on a completely default vBulletin style.

To disable your plugins, you will need to edit your includes/config.php file and add this line right below <?php
PHP Code:
define('DISABLE_HOOKS'true); 
To create a completely default vBulletin style, just create a new style with no parent. Voila!
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Bookmark this page as I guarantee you will probably need it at some point
Reply With Quote
  #2  
Old 10-14-2011, 11:37 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks..just what i was looking for....
Reply With Quote
  #3  
Old 11-08-2011, 08:03 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great coding....
Reply With Quote
  #4  
Old 03-24-2013, 05:33 PM
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its very easy way to know Errors
but the hard thing is how to fix
thanks for your explanation
i think it will help many
Reply With Quote
  #5  
Old 08-22-2013, 09:39 PM
vBarsiv vBarsiv is offline
 
Join Date: Jul 2010
Location: Turkey / Manisa
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excuseme. I need help for themes error. I was upgrade vbulletin 3.8.2 to 4.2.0 patch level 3 but i have errors down. Why?

Code:
Parse error: syntax error, unexpected '<' in /home/username/domains/domainname.com/public_html/includes/class_core.php(4633) : eval()'d code on line 5
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04229 seconds
  • Memory Usage 2,242KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (6)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete