XenForo Server error log: Too many connections

Wanji

Well-known member
How to solve this error?

Code:
Server error log

XF\Db\Exception: Too many connections src/XF/Db/Mysqli/Adapter.php:165
Generated by: Unknown account 24 Nov 2022 at 16:11

Stack trace

#0 src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 src/XF/Db/AbstractAdapter.php(62): XF\Db\Mysqli\Adapter->getConnection()
#2 src/XF/Db/Mysqli/Adapter.php(113): XF\Db\AbstractAdapter->connect()
#3 src/XF/Db/AbstractAdapter.php(518): XF\Db\Mysqli\Adapter->escapeString('addOnsComposer')
#4 src/XF/Db/AbstractAdapter.php(496): XF\Db\AbstractAdapter->quote('addOnsComposer')
#5 src/XF/DataRegistry.php(139): XF\Db\AbstractAdapter->quote(Array)
#6 src/XF/DataRegistry.php(84): XF\DataRegistry->readFromDb(Array, Array)
#7 src/XF/DataRegistry.php(228): XF\DataRegistry->get(Array)
#8 src/XF/App.php(1797): XF\DataRegistry->offsetGet('addOnsComposer')
#9 src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container))
#10 src/XF/App.php(2325): XF\Container->offsetGet('addon.composer')
#11 src/XF/App.php(1896): XF\App->setupAddOnComposerAutoload()
#12 src/XF/Pub/App.php(93): XF\App->setup(Array)
#13 src/XF.php(497): XF\Pub\App->setup(Array)
#14 src/XF.php(520): XF::setupApp('XF\\Pub\\App')
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(30) "/whats-new/posts/110619/page-3"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Xenforo tends to do that sometimes but I have never really seen anything that breaks before. So I wouldn’t pay too much attention to it and clear the log.
 
I had something similar when performing XF upgrades.
The error was fatal!
It was to do with a settting that I have fogotten the name of.
But for some reason my host had reduced the number.
When they increased the number
The upgrade worked
'
So always do a manual backup before you upgrade
 
Last edited:
I had something simialr when performing XF ugrades.
The error was fatal!
It was to do with a settting that I have fogotten the name of.
But for some reason my host had reduced the number.
When they increased the number
The upgrade worked
'
So always do a manual backup before you upgrade
In the MySQL configuration file, you want to increase the value "max connections”. Talk to your host.
 
In the MySQL configuration file, you want to increase the value "max connections”. Talk to your host.
For y sharing hosting, I have a limit of 15 connection.
I can't increase the "max connection" just if I will update. So, for the moment I will remain with my sharing hosting.
 
Back
Top