vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   vBulletin Database Error (https://vborg.vbsupport.ru/showthread.php?t=271719)

Max Taxable 10-10-2011 01:46 PM

Quote:

Originally Posted by Shadow786 (Post 2255592)
Yeah, I figured it out. I was looking at the TextEdit that comes bundled with OSXM my mistake.

I tried what you suggested and then rebooted my server but still no joy.

You have excluded the "php.ini" file as the problem then? Did you upload the unaltered file from your vB packet?

If it is excluded, then must now know the error details, have you been able to retrieve those as yet?

Shadow 10-10-2011 01:51 PM

Sorry, you've confused me. What is a vB Packet? Sorry for the noobish question.

And no, I have not been able to retrieve anything which details the problem.

Max Taxable 10-10-2011 01:58 PM

Quote:

Originally Posted by Shadow786 (Post 2255597)
Sorry, you've confused me. What is a vB Packet? Sorry for the noobish question.

And no, I have not been able to retrieve anything which details the problem.

The complete files and folders you should still have from originally downloading your vBulletin software. I suggest going in there and retrieving the "php.ini" file and uploading it after you rename the one you altered, rename it something like "php_modded.ini" then upload the original, unaltered php.ini file to the same location.

If you do not have your original files and folders you can go to the customer area of vBulletin.com and download it all again.

I suggest replacing the file you edited, with the original as a troubleshooting measure, testing to see if your altered file is causing your errors. Without details of the error, it's the only thing we can try. We are trying to either exclude the php.ini file as the cause of your problems, or identify it as the source of the problems. Process of elimination.

Shadow 10-10-2011 02:22 PM

Okay, as you instructed, i downloaded all the original files and folders from the customer area and ran a search for the "php.ini" file. However nothing came up? Am i doing something wrong here?

Max Taxable 10-10-2011 02:32 PM

Quote:

Originally Posted by Shadow786 (Post 2255607)
Okay, as you instructed, i downloaded all the original files and folders from the customer area and ran a search for the "php.ini" file. However nothing came up? Am i doing something wrong here?

I think I'm wrong... Not finding this file in my vB packet either.

You say you edited it? Where was it located?

Shadow 10-10-2011 02:36 PM

Yeah that's correct. It was the one located here:

/home/[sitename]/etc/php5

Max Taxable 10-10-2011 02:43 PM

Quote:

Originally Posted by Shadow786 (Post 2255612)
Yeah that's correct. It was the one located here:

/home/[sitename]/etc/php5

When you opened it again with TextEdit, did you see any added characters at the top line or bottom one?

If you PM me the file as a attachment, I can look and identify them quickly, seen them before.

BirdOPrey5 10-10-2011 03:01 PM

Notepad++ is not the same as Windows Notepad.

Notepad++ is a good text editor, I have used it for years- it is not the problem.

When you get a database error simply "View source" of the page and the real database error will be in the code.

php.ini is not a vbulletin file. It is a file that usually isn't needed at all- it allows you (on some server setups) to override default php settings.

Shadow 10-10-2011 03:01 PM

I couldn't spot anything. Sent you a PM with it instead.

EDIT: The only reason i used Notepad++ is because i use it when writing code. I find it much easier so i thought it wouldn't pose a problem when editing the "php.ini" file.

And thanks, BOP5, i'll try that right away!

EDIT2: Here's what i got using the view source option:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
/home/ex-reapers/www/includes/class_core.php on line 314

MySQL Error :
Error Number :
Request Date : Monday, October 10th 2011 @ 06:02:54 PM
Error Date : Monday, October 10th 2011 @ 06:02:54 PM
Script : [Site]
Referrer :
IP Address : 82.46.204.134
Username :
Classname : vB_Database
MySQL Version :

Max Taxable 10-10-2011 03:05 PM

Thanks for helping out BOP5, clearly I was talking nonsense and lacked the knowledge to be of any help here.

I hope you get the issue solved Shadow.


All times are GMT. The time now is 06:16 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.04536 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete