XF 2.2 An exception occurred

  • Thread starter Thread starter Deleted member 745
  • Start date Start date
D

Deleted member 745

Guest
Hi,

Any idea why I'm getting this error? On localhost, since I restarted MAMP Pro...

An exception occurred: [XF\Db\Exception] No connection could be made because the target machine actively refused it in src\XF\Db\Mysqli\Adapter.php on line 165

  1. XF\Db\Mysqli\Adapter->makeConnection() in src/XF/Db/Mysqli/Adapter.php at line 28
  2. XF\Db\Mysqli\Adapter->getConnection() in src/XF/Db/AbstractAdapter.php at line 62
  3. XF\Db\AbstractAdapter->connect() in src/XF/Db/Mysqli/Adapter.php at line 113
  4. XF\Db\Mysqli\Adapter->escapeString() in src/XF/Db/AbstractAdapter.php at line 518
  5. XF\Db\AbstractAdapter->quote() in src/XF/Db/AbstractAdapter.php at line 496
  6. XF\Db\AbstractAdapter->quote() in src/XF/DataRegistry.php at line 139
  7. XF\DataRegistry->readFromDb() in src/XF/DataRegistry.php at line 84
  8. XF\DataRegistry->get() in src/XF/DataRegistry.php at line 228
  9. XF\DataRegistry->offsetGet() in src/XF/App.php at line 1927
  10. XF\App->XF\{closure}() in src/XF/Container.php at line 31
  11. XF\Container->offsetGet() in src/XF/App.php at line 2456
  12. XF\App->setupAddOnComposerAutoload() in src/XF/App.php at line 2026
  13. XF\App->setup() in src/XF/Pub/App.php at line 94
  14. XF\Pub\App->setup() in src/XF.php at line 497
  15. XF::setupApp() in src/XF.php at line 520
  16. XF::runApp() in index.php at line 20
Please delete it's fixed... I reinstalled MAMP Pro
 
Last edited by a moderator:
Glad you got it fixed... but the problem is explained. The script could not make a connection to the mySQL server that you have defined, it refusing the connection.
This can happen if the port changed, if mySQL was been reconfigured to not answer for a localhost request, blocked by firewall are the top reasons.... well, I forgot to mention that mySQL is not running can also cause that.
 
Glad you got it fixed... but the problem is explained. The script could not make a connection to the mySQL server that you have defined, it refusing the connection.
This can happen if the port changed, if mySQL was been reconfigured to not answer for a localhost request, blocked by firewall are the top reasons.... well, I forgot to mention that mySQL is not running can also cause that.
Tried all that first with no luck, only reinstall fixed it.
 
Top Bottom