Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Unable to login or create an account #33

Open
mjs2020 opened this issue Oct 22, 2014 · 3 comments
Open

Unable to login or create an account #33

mjs2020 opened this issue Oct 22, 2014 · 3 comments
Labels

Comments

@mjs2020
Copy link

mjs2020 commented Oct 22, 2014

Hi,
Love the concept and would like to try to run on my own. I installed successfully on a VPS and am serving using Apache instead of runnung

php artisan serve

I get the homepage loading correctly and can also navigate the demo content and get to the login and register pages. However I can neither register a new account nor login with the test one. Either action takes me back to the homepage in a not logged in status. I tried both in Firefox and Chrome.

Only error I see in the console is the folowing:

Error: [ng:areq] http://errors.angularjs.org/1.2.16/ng/areq?p0=HomeCtrl&p1=not%20a%20function%2C%20got%20undefinedError: [ng:areq] http://errors.angularjs.org/1.2.16/ng/areq?p0=HomeCtrl&p1=not%20a%20function%2C%20got%20undefined

I'd be happy to provide further info or a link (in private) to the install.

Francesco

@grena grena added the bug label Oct 23, 2014
@grena
Copy link
Owner

grena commented Oct 23, 2014

Hi !

Thank you for this report. Yes, very strange behaviour.
Do you have access to Laravel's log files ? To see if anything is reported here.

It may be a permission problem (by default, Laravel handles sessions with files in app/storage/sessions) on filesystem. Can you check if permissions are set correctly ? :)

@mjs2020
Copy link
Author

mjs2020 commented Oct 27, 2014

Hi!
app/storage/sessions had permissions set to 775. I also tried 777 but no change.

Laravel's logs in app/storage/logs/laravel.log have the following:

[2014-10-22 16:11:05] local.ERROR: exception 'Swift_TransportException' with message 'Cannot send message without a sender address' in /srv/users/drupalsites/apps/homefmtoit/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:162
Stack trace:
#0 /srv/users/drupalsites/apps/homefmtoit/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(85): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#1 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(307): Swift_Mailer->send(Object(Swift_Message), Array)
#2 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(134): Illuminate\Mail\Mailer->sendSwiftMessage(Object(Swift_Message))
#3 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(214): Illuminate\Mail\Mailer->send('emails.welcome', Array, Object(Closure))
#4 /srv/users/drupalsites/apps/homefmtoit/app/controllers/AuthController.php(103): Illuminate\Support\Facades\Facade::__callStatic('send', Array)
#5 /srv/users/drupalsites/apps/homefmtoit/app/controllers/AuthController.php(103): Illuminate\Support\Facades\Mail::send('emails.welcome', Array, Object(Closure))
#6 [internal function]: AuthController->register()
#7 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#8 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('register', Array)
#9 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(AuthController), Object(Illuminate\Routing\Route), 'register')
#10 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(934): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'AuthController', 'register')
#11 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#12 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Route.php(104): call_user_func_array(Object(Closure), Array)
#13 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1000): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#14 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(968): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(738): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#17 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#18 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#19 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#20 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#21 /srv/users/drupalsites/apps/homefmtoit/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#22 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(606): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#23 /srv/users/drupalsites/apps/homefmtoit/public/index.php(49): Illuminate\Foundation\Application->run()
#24 {main} [] []
[2014-10-22 16:15:06] local.ERROR: exception 'Swift_TransportException' with message 'Cannot send message without a sender address' in /srv/users/drupalsites/apps/homefmtoit/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:162
Stack trace:
#0 /srv/users/drupalsites/apps/homefmtoit/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(85): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#1 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(307): Swift_Mailer->send(Object(Swift_Message), Array)
#2 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(134): Illuminate\Mail\Mailer->sendSwiftMessage(Object(Swift_Message))
#3 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(214): Illuminate\Mail\Mailer->send('emails.welcome', Array, Object(Closure))
#4 /srv/users/drupalsites/apps/homefmtoit/app/controllers/AuthController.php(103): Illuminate\Support\Facades\Facade::__callStatic('send', Array)
#5 /srv/users/drupalsites/apps/homefmtoit/app/controllers/AuthController.php(103): Illuminate\Support\Facades\Mail::send('emails.welcome', Array, Object(Closure))
#6 [internal function]: AuthController->register()
#7 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#8 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('register', Array)
#9 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(AuthController), Object(Illuminate\Routing\Route), 'register')
#10 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(934): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'AuthController', 'register')
#11 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#12 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Route.php(104): call_user_func_array(Object(Closure), Array)
#13 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1000): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#14 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(968): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(738): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#17 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#18 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#19 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#20 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#21 /srv/users/drupalsites/apps/homefmtoit/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#22 /srv/users/drupalsites/apps/homefmtoit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(606): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#23 /srv/users/drupalsites/apps/homefmtoit/public/index.php(49): Illuminate\Foundation\Application->run()
#24 {main} [] []

Strangely I did some more tests today (27th Oct) but the only two logs are the ones above from the 22nd of Oct. I tried changing the settings in app/config/mail.php to use sendmail instead of smtp and added a from email address but no change.

@mjs2020
Copy link
Author

mjs2020 commented Oct 30, 2014

Hi,
I've changed my PHP runtime. I was having this issue while running php 5.6. If I downgrade to php 5.4 I get other errors from Laravel displayed on screen when I login. If I use php 5.5 it seems to work just right!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants