Try a longer username, when I try with a two character user name I get error Username length error, maybe this is the issue and your install is just throwing a default ‘undefined’ error.
The user/ directory is missing from the git clone.
ive compared the Modules/user/user.js file from that of the one on emoncms.org its the same, however its clear that my and possibly @bidouilleur installation is missing the actual /user/register.json and login.json files
'login':function(username,password,rememberme) { var result ={}; $.ajax({ type: "POST", url: path+"user/login.json", data: "&username="+username+"&password="+encodeURIComponent(password)+"&rememberme="+rememberme, dataType: 'json', async: false, success: function(data) { result = data; } }); return result; },
Where do i locate these as they dont appear to be on the git fork
Not sure but the problem is related to .htaccess and mod_rewrite if I remember well
when you uploaded the files, did you upload the .htaccess file (invisible on mac for exemple if you don’t know)
Else make one with following content
Are there any changes you would recommend us making to the install guide to avoid this next time.
The changes you mentioned to apache2.conf in your link look identical to the changes mentioned in the install guide:
Emoncms uses a front controller to route requests, modrewrite needs to be configured:
sudo a2enmod rewrite
For `<Directory />` and `<Directory /var/www/>` change `AllowOverride None` to `AllowOverride All`. This may be on lines 7 and 11 of `/etc/apache2/sites-available/default`. Modern versions of Ubuntu store these in the main config file: `/etc/apache2/apache2.conf`.
sudo nano /etc/apache2/sites-available/default
or
sudo nano /etc/apache2/apache2.conf
[Ctrl + X ] then [Y] then [Enter] to Save and exit.
Restart the lamp server:
sudo service apache2 restart
Did you follow these steps?
Why are the changes you made to htaccess required? Following symlinks should not be needed. Unless you symlinked the files into your web directory. Would you recommend these changes be made default?