Author Topic: /includes/class_core.php on line 311 error  (Read 78 times)

0 Members and 1 Guest are viewing this topic.

Online
*
/includes/class_core.php on line 311 error
« on: Today at 11:02:41 AM »
Hello, I use vbulletin. For this, I need to use php version 5.3. I receive error messages like this from time to time. Sometimes these messages occur 1-2 times a day and sometimes 50-60 times a day. Why does it make this error?


Offline
*****
Re: /includes/class_core.php on line 311 error
« Reply #1 on: Today at 11:47:35 AM »
The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?

Online
*
Re: /includes/class_core.php on line 311 error
« Reply #2 on: Today at 11:51:38 AM »
The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?

Yes, there is such a file. Since I use vbulletin 3.8.5, php 5.4 version works incorrectly. For this reason, I need to use php5.3. I use litespeed.

« Last Edit: Today at 11:54:08 AM by megaster55 »

Offline
****
Re: /includes/class_core.php on line 311 error
« Reply #3 on: Today at 01:00:53 PM »
PHP Forums are known to be hard on mysql servers.  It's entirely possibly that the mysql server is overwhelmed with connections, thus the timeout message.   Tuning your mysql to meet your server resources, as well as caching plugins should help resolve the problem.
Google Hangouts:  rcschaff82@gmail.com

Offline
*****
Re: /includes/class_core.php on line 311 error
« Reply #4 on: Today at 01:45:35 PM »
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl

Online
*
Re: /includes/class_core.php on line 311 error
« Reply #5 on: Today at 02:08:44 PM »
PHP Forums are known to be hard on mysql servers.  It's entirely possibly that the mysql server is overwhelmed with connections, thus the timeout message.   Tuning your mysql to meet your server resources, as well as caching plugins should help resolve the problem.

i use already APC (Alternative PHP Cache)

Online
*
Re: /includes/class_core.php on line 311 error
« Reply #6 on: Today at 02:10:31 PM »
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl
How to install this I am a beginner is there an installation article for cwp

Offline
*****
Re: /includes/class_core.php on line 311 error
« Reply #7 on: Today at 02:32:33 PM »
Code: [Select]
cd /usr/local/src
wget https://github.com/major/MySQLTuner-perl/archive/refs/tags/v2.6.0.tar.gz
tar xzvf v2.6.0.tar.gz
cp MySQLTuner-perl-2.6.0/mysqltuner.pl /usr/local/bin/
chmod +x /usr/local/bin/mysqltuner.pl
/usr/local/bin/mysqltuner.pl