vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to solve database error? (https://vborg.vbsupport.ru/showthread.php?t=315399)

MyLibary 11-13-2014 03:58 PM

How to solve database error?
 
Hi!
I installed wamp server and tried to run my forum in my pc to try some mods before it goes online.
I restored the database and all of the files, set new user in the database with all previligue but still i got this error:

https://vborg.vbsupport.ru/external/2014/11/13.jpg

Should i edit something else except to config.php?

nerbert 11-13-2014 04:25 PM

I haven't verified this myself but it's my understanding that admins get a Database Error page with the actual error text in it for troubleshooting, but regular members don't see the error text; however you can still read the actual error message in the source code for the Database Error page, it's just in a style="display:none" div. Have a look and see if it's in there.

If you aren't seeing the actual error message I would guess the code doesn't know you're an admin.

Lynne 11-13-2014 04:49 PM

Edit your config.php file and make sure you have a valid email in this line:

PHP Code:

$config['Database']['technicalemail'] = 'dbmaster@example.com'

Then, go back to your site and produce the database error and let us know what it says in the email you get. We need to know the exact error that is emailed to you in order to help out. (Most likely, on a fresh install, you have some wrong information in the config.php file and vbulletin is unable to connect to your database.)

ozzy47 11-13-2014 10:45 PM

It might be hard to get the email from wamp. Sometime you can get the error by inspecting the source code on the page that is showing the error.

Lynne 11-14-2014 05:15 PM

Quote:

Originally Posted by ozzy47 (Post 2522607)
It might be hard to get the email from wamp. Sometime you can get the error by inspecting the source code on the page that is showing the error.

Good point, Chris. You could also log it via AdminCP > Settings > Options > Error Handling & Logging Options > Log Database Errors to a File. Make sure that is a FULL path to a file and do not end the file name with ".log". Just have something like:

/full/path/to/file

Make sure that directory (/full/path/to/) is chmod to 777. The software will create the file.log file for you.

MyLibary 11-21-2014 04:56 AM

Got it guys,
thanks alot!

ozzy47 11-21-2014 09:24 AM

So, what was the issue, and how did you fix it, in case someone else runs into this?


All times are GMT. The time now is 03:42 AM.

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.01056 seconds
  • Memory Usage 1,726KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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