Database Connection Failed, only on certain pages/devices
Posted: Tue Oct 24, 2017 1:06 pm
Having an odd but serious error on my install (http://www.houstonswimclub.com). The site runs normally as expected without errors on a desktop (Chrome, Edge, etc), except for 1 URL http://www.houstonswimclub.com/employment where I get the following error:
On mobile devices, the root URL doesn't work either. If you go to http://www.houstonswimclub.com on a phone (any browser, Chrome, stock, etc) you get the error:
All the other URLs/pages work fine. If you visit http://www.houstonswimclub.com/home it will load fine. I just changed the name of the /employment page to /jobs and now jobs loads just fine. (employment should now go to the 404 page, but it doesn't).
I thought it might have something to do with my htaccess file and PrettyURL use, but I checked and don't see anything out of the ordinary. It's been working with PrettyURL just fine for over a year, just suddenly stopped working in those two instances without any changes on my part. Host just says it's a "scripting error".
Anyone else encountered this or know what the solution might be? Thanks!
CMSMS 2.2.3.1
Installed Modules
AdminSearch 1.0.4
CGBlog 1.15.5
CGCalendar 2.5
CGExtensions 1.57.1
CGFeedback 2.1
CGSimpleSmarty 2.1.7
CMSContentManager 1.1.6
CMSMailer 6.2.14
Captcha 0.5.5
CmsJobManager 0.1.1
DecisionTree 0.2.12
DesignManager 1.1.3
FAQ 2.0.3
FileManager 1.6.4
FilePicker 1.0.1
FormBuilder 0.8.1.6
FrontEndUsers 2.1.1
Gallery 2.3.2
JQueryTools 1.4.0.3
MenuManager 1.50.3
MicroTiny 2.2.1
ModuleManager 2.1.2
Navigator 1.0.8
News 2.51.3
Search 1.51.2
Config file
Code: Select all
Database Connection Failed
Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) (2002)
Function Performed: CONNECT
Code: Select all
Database Connection Failed
Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (2002)
Function Performed: CONNECT
I thought it might have something to do with my htaccess file and PrettyURL use, but I checked and don't see anything out of the ordinary. It's been working with PrettyURL just fine for over a year, just suddenly stopped working in those two instances without any changes on my part. Host just says it's a "scripting error".
Anyone else encountered this or know what the solution might be? Thanks!
CMSMS 2.2.3.1
Installed Modules
AdminSearch 1.0.4
CGBlog 1.15.5
CGCalendar 2.5
CGExtensions 1.57.1
CGFeedback 2.1
CGSimpleSmarty 2.1.7
CMSContentManager 1.1.6
CMSMailer 6.2.14
Captcha 0.5.5
CmsJobManager 0.1.1
DecisionTree 0.2.12
DesignManager 1.1.3
FAQ 2.0.3
FileManager 1.6.4
FilePicker 1.0.1
FormBuilder 0.8.1.6
FrontEndUsers 2.1.1
Gallery 2.3.2
JQueryTools 1.4.0.3
MenuManager 1.50.3
MicroTiny 2.2.1
ModuleManager 2.1.2
Navigator 1.0.8
News 2.51.3
Search 1.51.2
Config file
Code: Select all
<?php
# CMS Made Simple Configuration File
# Documentation: https://docs.cmsmadesimple.org/configuration/config-file/config-reference
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxxx';
$config['db_password'] = 'xxxxx';
$config['db_name'] = 'xxxxx';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'America/Chicago';
$config['url_rewriting'] = 'mod_rewrite';
?>