Cannot login after install or register users, please help

Hello everyone,

I recently installed Elgg on my own webserver. However, whenever I try to login, I get a page not found error because I am redirected to https://localhost:1337/action/login. I think this is either:

1) An issue with mod_rewrite, but I have read the installation guide and my httpd.conf has AllowOverride all here:

"# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride all"

Also, I tried copying the htaccess_dist contents into my htaccess, but to noavail.

2) Could it be an Apache SSL certificate issue?

Additionally, I check the database after I register users, and no entries are added to the table for users, meaning that nothing is working on my frontpage!!

Thank you in advance,

Kind regards,

Jonathan

  • mod_rewrite is your problem

  • Thanks Cash, anyone else think they know of a fix for this?

    version of Elgg I installed: 1.5

    details of my server platform:

    PHP Version 5.2.5, Windows NT BESPIN 5.2 build 3790, Apache 2.0 Handler

    Browser error messages:

    Internet Explorer cannot display the webpage

    error log of my server: (Coming soon, the file is very big, had to kill it)  :-)

    I checked everything in the mod_rewrite section "http://docs.elgg.org/wiki/Install_Troubleshooting"
  • I'm wondering how you managed to install Elgg to begin with if you had a faulty mod_rewrite.

    Did you migrate the database from another machine perhaps?

  • Thanks for all the help! I did a clean install and, magically, it works.

    However, I am still having trouble with the frontpage, the database is not being updated. Currently, no error messages are displayed, but when I look in the user entity table, it is empty.

    Note: The application IS connecting to the database with the root users who has full permissions.

    I'm also getting no error messages and no prompts to validate the email.

    Thank you in advance,

    Jonathan

  • Good point Kevin - maybe it has something to do with using a different port?

  • What does "trouble with the frontpage" mean exactly?

  • Hi Kevin,

    Well here is what is happening in more detail:

    I will go to the homepage/frontpage

    Register a user by filling all the fields and submitting the form

    I am then sent back to the frontpage

    When I try to login, nothing happens and the page is just reloaded

    Note: In the database, there is no entry for a new user, even though no error messages were displayed on failed login attempts or user creation.

    Thank you in advance,

    Jonathan

  • Sounds like this may still be a mod_rewrite error - the register action is going to the wrong place.

    You could go to site administration, turn on debug mode, try another registration and see if there are any errors in your PHP log.

  • I will try that and get back to you. Thanks!

  • Hi Kevin and Cash,

    I have quite a few errors in my error log, it is a bit out of my league. Can you make any sense of it?

    Thank you in advance!

    Jonathan

    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25]  [This view (footer/links) does not exist] , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] C:/Program Files/Apache Group/Apache2/htdocs/views/default/footer/analytics.php, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25]  [This view (footer/analytics) does not exist] , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] ***************** DB PROFILING ********************, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggdatalists' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where guid=1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggsites_entity where guid=1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='email' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT m.*, n.string as name, v.string as value from elggmetadata m JOIN elggentities e ON e.guid = m.entity_guid JOIN elggmetastrings v on m.value_id = v.id JOIN elggmetastrings n on m.name_id = n.id where m.entity_guid=1 and m.name_id='1' and (  (e.access_id in (2) or (e.owner_guid = -1) or (e.access_id = 0 and e.owner_guid = -1)) and e.enabled='yes') and (  (m.access_id in (2) or (m.owner_guid = -1) or (m.access_id = 0 and m.owner_guid = -1)) and m.enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggconfig where site_guid = 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggusers_sessions where session='mouo8vnp84oq7cb5pdkkpfrun5'' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='pluginorder' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='enabled_plugins' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT m.*, n.string as name, v.string as value from elggmetadata m JOIN elggentities e ON e.guid = m.entity_guid JOIN elggmetastrings v on m.value_id = v.id JOIN elggmetastrings n on m.name_id = n.id where m.entity_guid=1 and m.name_id='3' and (  (e.access_id in (2) or (e.owner_guid = -1) or (e.access_id = 0 and e.owner_guid = -1)) and e.enabled='yes') and (  (m.access_id in (2) or (m.owner_guid = -1) or (m.access_id = 0 and m.owner_guid = -1)) and m.enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentity_subtypes where type='object' and subtype='plugin'' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where  type='object' and  subtype=2 and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes') order by time_created desc limit 0, 10' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT count(guid) as total from elggentities where  ((type = 'group' and subtype = 0)) and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where  ((type = 'group' and subtype = 0)) and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes') order by time_created desc limit 0, 10' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] DB Queries for this page: 14, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] ***************************************************, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] Page / generated in 0.1847140789032 seconds, referer: http://192.168.100.25:1337/account/register.php
    [13:36:06] Jonathan Laplante: ok send the file when you're good to go
    [13:36:09] Jonathan Laplante: thanks
    [13:40:29] Jonathan Laplante: Jonathan Laplante a partagé ses détails avec Mark Michel.
    [13:40:41] Mark Michel: [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25]  [This view (footer/links) does not exist] , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] C:/Program Files/Apache Group/Apache2/htdocs/views/default/footer/analytics.php, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25]  [This view (footer/analytics) does not exist] , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] ***************** DB PROFILING ********************, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggdatalists' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where guid=1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggsites_entity where guid=1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='email' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT m.*, n.string as name, v.string as value from elggmetadata m JOIN elggentities e ON e.guid = m.entity_guid JOIN elggmetastrings v on m.value_id = v.id JOIN elggmetastrings n on m.name_id = n.id where m.entity_guid=1 and m.name_id='1' and (  (e.access_id in (2) or (e.owner_guid = -1) or (e.access_id = 0 and e.owner_guid = -1)) and e.enabled='yes') and (  (m.access_id in (2) or (m.owner_guid = -1) or (m.access_id = 0 and m.owner_guid = -1)) and m.enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggconfig where site_guid = 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggusers_sessions where session='mouo8vnp84oq7cb5pdkkpfrun5'' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='pluginorder' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggmetastrings where string='enabled_plugins' limit 1' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT m.*, n.string as name, v.string as value from elggmetadata m JOIN elggentities e ON e.guid = m.entity_guid JOIN elggmetastrings v on m.value_id = v.id JOIN elggmetastrings n on m.name_id = n.id where m.entity_guid=1 and m.name_id='3' and (  (e.access_id in (2) or (e.owner_guid = -1) or (e.access_id = 0 and e.owner_guid = -1)) and e.enabled='yes') and (  (m.access_id in (2) or (m.owner_guid = -1) or (m.access_id = 0 and m.owner_guid = -1)) and m.enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentity_subtypes where type='object' and subtype='plugin'' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where  type='object' and  subtype=2 and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes') order by time_created desc limit 0, 10' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT count(guid) as total from elggentities where  ((type = 'group' and subtype = 0)) and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes')' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] 1 times: 'SELECT * from elggentities where  ((type = 'group' and subtype = 0)) and  site_guid = 1 and (  (access_id in (2) or (owner_guid = -1) or (access_id = 0 and owner_guid = -1)) and enabled='yes') order by time_created desc limit 0, 10' , referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] DB Queries for this page: 14, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] ***************************************************, referer: http://192.168.100.25:1337/account/register.php
    [Fri May 08 11:32:35 2009] [error] [client 192.168.100.25] Page / generated in 0.1847140789032 seconds, referer: http://192.168.100.25:1337/account/register.php