I am getting this error
[25-May-2015 13:46:03 America/Chicago] Exception #1432579563: exception 'DatabaseException' with message 'Elgg couldn't connect to the database using the given credentials. Check the settings file.' in /home/myusername/public_html/elgg/engine/classes/Elgg/Database.php:147
Stack trace:
#0 /home/myusername/public_html/elgg/engine/classes/Elgg/Database.php(123): Elgg\Database->establishLink('readwrite')
#1 /home/myusername/public_html/elgg/engine/lib/elgglib.php(1838): Elgg\Database->setupConnections()
#2 [internal function]: _elgg_engine_boot('boot', 'system', NULL)
#3 /home/myusername/public_html/elgg/engine/classes/Elgg/EventsService.php(56): call_user_func_array('_elgg_engine_bo...', Array)
#4 /home/myusername/public_html/elgg/engine/lib/elgglib.php(571): Elgg\EventsService->trigger('boot', 'system', NULL)
#5 /home/myusername/public_html/elgg/engine/start.php(68): elgg_trigger_event('boot', 'system')
#6 /home/myusername/public_html/elgg/index.php(55): require_once('/home/myusername/...')
#7 {main}
[25-May-2015 13:46:03 America/Chicago] PHP WARNING: 2015-05-25 13:46:03 (CDT): "mysql_real_escape_string(): Access denied for user 'myusername'@'localhost' (using password: NO)" in file /home/myusername/public_html/elgg/engine/classes/Elgg/Database.php (line 651)
[25-May-2015 13:46:03 America/Chicago] PHP WARNING: 2015-05-25 13:46:03 (CDT): "mysql_real_escape_string(): A link to the server could not be established" in file /home/myusername/public_html/elgg/engine/classes/Elgg/Database.php (line 651)
[25-May-2015 13:46:03 America/Chicago] Exception #1432579563 : fatal error in exception handler : Connection to database was lost.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
On a new installation with a blank database the installation fails if you add a settings.php manually (known bug: https://github.com/Elgg/Elgg/issues/5832). Proceed as RvR explained instead of manually creating a database.
I did what RVR said and now I am getting internal server error 500
error log
[27-May-2015 01:03:11 America/Chicago] PHP WARNING: 2015-05-27 01:03:11 (CDT): "Argument 4 passed to Elgg\PersistentLoginService::__construct() must be of the type array, null given, called in /home/umairgro/public_html/elgg/engine/classes/Elgg/Di/ServiceProvider.php on line 173 and defined" in file /home/umairgro/public_html/elgg/engine/classes/Elgg/PersistentLoginService.php (line 42)
installation was successful, but getting 500 error when opening the website. Only login page is opening and every thing else is giving error.
I've seen that error before. What version is your PHP?
5.4. It is solved now. I used installatron.com to install elgg.
- Previous
- 1
- 2
- Next
You must log in to post replies.