Users cant log-in on site in elgg subdomain

I have a site with a your typical html landing page and a private elgg sight on a subdomain. After installing elgg on the subdomain, i found that users could not log in, I'm not sure why this is... you can try it yourself:

Username: panda

Password: panda1

Site: http://portal.homeschoolheritage.org/

I checked out the error logs and this [the one at the very end]  was the latest one, but no new ones seemed to happen when I tried to log in... Might be that something with my add user is messed up, but I am not sure since this is a fresh install.  Any ideas? 

----------------------------------EDIT----------------------------------------------

I switched the log settings to make everything log to the server feed. Now attempted log-ins print this:

[Sat Jun 13 20:57:41.236436 2020] [lsapi:notice] [pid 10896:tid 47828172977920] [client 173.218.44.54:56182] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 23:57:41] ELGG.INFO: No translations could be loaded from: /home/homesch6/portal.homeschoolheritage.org/languages/  {"process_id":27960,"memory_peak_usage":"6 MB","memory_usage":"6 MB","url":"/action/login","ip":"173.218.44.54","http_method":"OPTIONS","server":"www.portal.homeschoolheritage.org","referrer":"http://portal.homeschoolheritage.org/","unique_id":"XuWgNYxvJUR5CwtoD5yIygAAAkI"}\n, referer: http://portal.homeschoolheritage.org/

[Sat Jun 13 20:57:36.983736 2020] [lsapi:notice] [pid 10902:tid 47828208699136] [client 173.218.44.54:56176] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 23:57:36] ELGG.INFO: No translations could be loaded from: /home/homesch6/portal.homeschoolheritage.org/languages/  {"process_id":27799,"memory_peak_usage":"6 MB","memory_usage":"6 MB","url":"/cache/1592106060/default/graphics/favicon.svg","ip":"173.218.44.54","http_method":"GET","server":"www.portal.homeschoolheritage.org","referrer":"http://portal.homeschoolheritage.org/","unique_id":"XuWgMLIiQtY0zsClaU2X5wAAA5M"}\n, referer: http://portal.homeschoolheritage.org/

[Sat Jun 13 20:57:35.978775 2020] [lsapi:notice] [pid 10898:tid 47828172977920] [client 173.218.44.54:56178] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 23:57:35] ELGG.INFO: No translations could be loaded from: /home/homesch6/portal.homeschoolheritage.org/languages/  {"process_id":27757,"memory_peak_usage":"6 MB","memory_usage":"6 MB","url":"/cache/1592106060/default/elgg/spinner.js","ip":"173.218.44.54","http_method":"GET","server":"www.portal.homeschoolheritage.org","referrer":"http://portal.homeschoolheritage.org/","unique_id":"XuWgL1w@Hr4d8hOpt@Po-gAAAsI"}\n, referer: http://portal.homeschoolheritage.org/

--------------------END of EDIT------------------------

[Sat Jun 13 20:02:23.648765 2020] [lsapi:notice] [pid 322:tid 47828204496640] [client 173.218.44.54:55227] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 23:02:23] ELGG.CRITICAL: Exception at time 1592103743:\nDI\\NotFoundException: No entry or class found for 'system_log' in /home/homesch6/portal.homeschoolheritage.org/vendor/php-di/php-di/src/DI/Container.php:128\nStack trace:\n#0 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Di/PublicContainer.php(53): DI\\Container->get('system_log')\n#1 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Di/ServiceFacade.php(22): Elgg\\Di\\PublicContainer->__get('system_log')\n#2 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/lib/system_log.php(103): Elgg\\SystemLog\\SystemLog::instance()\n#3 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/start.php(58): system_log(NULL, 'shutdown:before')\n#4 [internal function]: system_log_default_logger(Object(Elgg\\HooksRegistrationService\\Event))\n#5 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/HandlersService.php(71): call_user_func('system_log_defa...', Object(Elgg\\HooksRegistrationService\\Event))\n#6 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(89): Elgg\\HandlersService->call('system_log_defa...', Object(Elgg\\HooksRegistrationService\\Event), Array)\n#7 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/lib/elgglib.php(399): Elgg\\EventsService->trigger('log', 'systemlog', Array)\n#8 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/start.php(74): elgg_trigger_event('log', 'systemlog', Array)\n#9 [internal function]: system_log_listener(Object(Elgg\\HooksRegistrationService\\Event))\n#10 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/HandlersService.php(71): call_user_func('system_log_list...', Object(Elgg\\HooksRegistrationService\\Event))\n#11 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(89): Elgg\\HandlersService->call('system_log_list...', Object(Elgg\\HooksRegistrationService\\Event), Array)\n#12 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(127): Elgg\\EventsService->trigger('shutdown:before', 'system', NULL, Array)\n#13 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application/ShutdownHandler.php(83): Elgg\\EventsService->triggerBefore('shutdown', 'system')\n#14 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application/ShutdownHandler.php(43): Elgg\\Application\\ShutdownHandler->shutdownApplication()\n#15 [internal function]: Elgg\\Application\\ShutdownHandler->__invoke()\n#16 {main}\n {"exception":"[object] (DI\\\\NotFoundException(code: 0): No entry or class found for 'system_log' at /home/homesch6/portal.homeschoolheritage.org/vendor/php-di/php-di/src/DI/Container.php:128)"} {"backtrace":[],"process_id":30969,"memory_peak_usage":"8 MB","memory_usage":"8 MB","url":"/action/admin/plugins/deactivate_all?__elgg_ts=1592103270&__elgg_token=i5a23vJ97viJL62V_JE2IA","ip":"173.218.44.54","http_method":"POST","server":"www.portal.homeschoolheritage.org","referrer":"http://www.portal.homeschoolheritage.org/admin/plugins","unique_id":"XuWTP-ZtqRv7ueKZecntvAAAAdE"}\n, referer: http://www.portal.homeschoolheritage.org/admin/plugins

[Sat Jun 13 20:02:23.616869 2020] [lsapi:notice] [pid 322:tid 47828204496640] [client 173.218.44.54:55227] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 23:02:23] ELGG.CRITICAL: Exception at time 1592103743:\nDI\\NotFoundException: No entry or class found for 'system_log' in /home/homesch6/portal.homeschoolheritage.org/vendor/php-di/php-di/src/DI/Container.php:128\nStack trace:\n#0 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Di/PublicContainer.php(53): DI\\Container->get('system_log')\n#1 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Di/ServiceFacade.php(22): Elgg\\Di\\PublicContainer->__get('system_log')\n#2 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/lib/system_log.php(103): Elgg\\SystemLog\\SystemLog::instance()\n#3 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/start.php(58): system_log(NULL, 'cache:flush:bef...')\n#4 [internal function]: system_log_default_logger(Object(Elgg\\HooksRegistrationService\\Event))\n#5 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/HandlersService.php(71): call_user_func('system_log_defa...', Object(Elgg\\HooksRegistrationService\\Event))\n#6 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(89): Elgg\\HandlersService->call('system_log_defa...', Object(Elgg\\HooksRegistrationService\\Event), Array)\n#7 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/lib/elgglib.php(399): Elgg\\EventsService->trigger('log', 'systemlog', Array)\n#8 /home/homesch6/portal.homeschoolheritage.org/mod/system_log/start.php(74): elgg_trigger_event('log', 'systemlog', Array)\n#9 [internal function]: system_log_listener(Object(Elgg\\HooksRegistrationService\\Event))\n#10 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/HandlersService.php(71): call_user_func('system_log_list...', Object(Elgg\\HooksRegistrationService\\Event))\n#11 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(89): Elgg\\HandlersService->call('system_log_list...', Object(Elgg\\HooksRegistrationService\\Event), Array)\n#12 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(127): Elgg\\EventsService->trigger('cache:flush:bef...', 'system', NULL, Array)\n#13 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(169): Elgg\\EventsService->triggerBefore('cache:flush', 'system', NULL, Array)\n#14 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(228): Elgg\\EventsService->triggerSequence('cache:flush', 'system', NULL, NULL, Array)\n#15 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/lib/deprecated-3.3.php(39): Elgg\\EventsService->triggerDeprecatedSequence('cache:flush', 'system', NULL, NULL, 'The 'cache:flus...', '3.3')\n#16 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/ElggPlugin.php(796): elgg_flush_caches()\n#17 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/actions/admin/plugins/deactivate_all.php(31): ElggPlugin->deactivate()\n#18 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(347): include('/home/homesch6/...')\n#19 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(278): Elgg\\Router->getResponseFromFile('/home/homesch6/...', Object(Elgg\\Request))\n#20 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(128): Elgg\\Router->prepareResponse(Object(Elgg\\Http\\Request))\n#21 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(104): Elgg\\Router->getResponse(Object(Elgg\\Http\\Request))\n#22 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(473): Elgg\\Router->route(Object(Elgg\\Http\\Request))\n#23 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(359): Elgg\\Application->run()\n#24 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(415): Elgg\\Application::route(Object(Elgg\\Http\\Request))\n#25 /home/homesch6/portal.homeschoolheritage.org/index.php(8): Elgg\\Application::index()\n#26 {main}\n {"exception":"[object] (DI\\\\NotFoundException(code: 0): No entry or class found for 'system_log' at /home/homesch6/portal.homeschoolheritage.org/vendor/php-di/php-di/src/DI/Container.php:128)"} {"backtrace":[],"process_id":30969,"memory_peak_usage":"8 MB","memory_usage":"8 MB","url":"/action/admin/plugins/deactivate_all?__elgg_ts=1592103270&__elgg_token=i5a23vJ97viJL62V_JE2IA","ip":"173.218.44.54","http_method":"POST","server":"www.portal.homeschoolheritage.org","referrer":"http://www.portal.homeschoolheritage.org/admin/plugins","unique_id":"XuWTP-ZtqRv7ueKZecntvAAAAdE"}\n, referer: http://www.portal.homeschoolheritage.org/admin/plugins

[Sat Jun 13 19:33:04.052847 2020] [autoindex:error] [pid 12101:tid 47828175079168] [client 68.66.226.77:36392] AH01276: Cannot serve directory /home/homesch6/portal.homeschoolheritage.org/: No matching DirectoryIndex (index.php,index.php7,index.php5,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.js) found, and server-generated directory index forbidden by Options directive

[Sat Jun 13 19:29:15.025331 2020] [lsapi:notice] [pid 12112:tid 47828191889152] [client 173.218.44.54:54678] [host www.portal.homeschoolheritage.org] Backend log: [2020-06-13 22:29:15] ELGG.CRITICAL: Exception at time 1592101755:\nParseError: syntax error, unexpected '$email' (T_VARIABLE), expecting ',' or ')' in /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/actions/useradd.php:44\nStack trace:\n#0 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(278): Elgg\\Router->getResponseFromFile('/home/homesch6/...', Object(Elgg\\Request))\n#1 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(128): Elgg\\Router->prepareResponse(Object(Elgg\\Http\\Request))\n#2 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Router.php(104): Elgg\\Router->getResponse(Object(Elgg\\Http\\Request))\n#3 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(473): Elgg\\Router->route(Object(Elgg\\Http\\Request))\n#4 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(359): Elgg\\Application->run()\n#5 /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/engine/classes/Elgg/Application.php(415): Elgg\\Application::route(Object(Elgg\\Http\\Request))\n#6 /home/homesch6/portal.homeschoolheritage.org/index.php(8): Elgg\\Application::index()\n#7 {main}\n {"exception":"[object] (ParseError(code: 0): syntax error, unexpected '$email' (T_VARIABLE), expecting ',' or ')' at /home/homesch6/portal.homeschoolheritage.org/vendor/elgg/elgg/actions/useradd.php:44)"} {"backtrace":[],"process_id":28214,"memory_peak_usage":"8 MB","memory_usage":"8 MB","url":"/action/useradd","ip":"173.218.44.54","http_method":"POST","server":"www.portal.homeschoolheritage.org","referrer":"http://www.portal.homeschoolheritage.org/admin/users/add","unique_id":"XuWLeiDRuqmZF85urNTbZAAAAws"}\n, referer: http://www.portal.homeschoolheritage.org/admin/users/add
 
 
  • Which version of Elgg have you installed? If it's some Elgg 3 version you could check what's set for the $CONFIG->wwwroot variable in the file elgg-config/settings.php on your server. I suspect that it might not be correctly matching the site url of your site. I think it should be "http://portal.homeschoolheritage.org" (without www).

    If you have Elgg 2 installed you can't simply change the site url in settings.php. If you really can't log in with any user, you would have to check (and if necessary correct) the corresponding entry in the database in the sites_entity table (using for example the tool phpMyAdmin to access the database).

  • I noticed you had started another thread recently about a problem very likely related to this issue. It seeems you had changed the site url of your site from a subfolder installation to a subdomain installation. I guess some setting currently does not match the desired installation conditions. As I said in my previous post, it could be the site url. Another possibility is the RewriteBase variable in the hidden .htaccess file of Elgg if you ever changed its value. Or it might be that the cached files still point to the old location with the subfolder and you would need to flush the cache.

    I understand that you might not fully know what you are doing. But it's also quite difficult to give you some good advice if you do unexpected stuff. So, better describe in detail what you had changed between the point it still worked and now.

  • I have elgg 3.3.6. This is an entirely new installation since my last post. I didn't like its prev. location so I uninstalled it and then installed it in the new location. That's why this is so strange, because I haven't changed anything. 

    I will follow along with your first message and post my results here. 

  • Alright, well there is no elgg-config/settings.php in my system... like I said, I havent changed anything though so I am not sure why. I found where it should be, its just not there. Uninstalled then reinstalled.... same thing.

  • Reinstall it by following the docs.

    Especially, pay attention to this.

     

  • Probably a bad idea, but I found settings.php in my trash from the first installation, so I just restored it and put it into new installation and changed all the settings inside. It works now, so I guess its ok to do... must be the only issue.