PDA

View Full Version : Class Core And Usertools Question


Memphis834@yaho
11-05-2007, 02:41 PM
Lately I've been getting a ton of database errors reported to me:

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(2)

In regards to my classcore file on line 274. This just started recently and has been occuring for the past few days. Anyone know what the problem may be? Should I just reupload a fresh classcore file?

Also, I recently switched server hosts for one of my other sites. Since the switch, my users haven't been able to use their usertools when making posts. I've been unable to find the problem. Any idea on how I can correct this problem? Any help would be greatly appreciated.

Lynne
11-05-2007, 03:10 PM
I don't think this has to do with your classcore file, I think this has to do with your site losing it's connection to mysql.

As for your other site, are your users getting an error or what when they try to use their usertools? I looked at your source code, and it looks like you are missing a link under each of your drop-downs - something like "<script type="text/javascript"> vbmenu_register("threadtools"); </script>" (but a bit differenct for each). I would check your templates.

Memphis834@yaho
11-05-2007, 03:17 PM
Well the usertools appear, they're just not clickable. So they'll still see the "B", the "I", The "U" etc. If you type out the coding around texts, the coding still works. But the buttons themselves are not clickable.

Lynne
11-05-2007, 03:24 PM
Oh, you aren't talking about the user tools, which is what I was looking at, you are talking about the Bold, Italic, Underline in the Quick Reply? As a guest, I don't see the Quick Reply. Have you modified that template lately?

Memphis834@yaho
11-05-2007, 03:54 PM
Yea I'm talking about the quickreply usertools, sorry for the confusion. I tried reverting all my templates and am still unable to user the tools for quick reply. I'm also unable to change the style options on my admincp for some reason. These are all problems that occured during the switching of server hosts.

Marco van Herwaarden
11-06-2007, 06:56 AM
To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.

If this does not solve your problem, then it might be due to:
- Not enough memory available to PHP, ask your host what the memory_limit is set to.
- Bad configured mod_security, see:

While mod_security can be a very powerful tool, misconfigured or overly strict rule sets can interfere with vBulletins Operation. Below for Apache users you can use an htaccess file and add a specific rule to disable mod_security.

Make or edit your forum .htaccess file and add the following code

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Note, place this file in your main forum directory.

See this also thread: http://www.vbulletin.com/forum/showthread.php?t=167121