Jump to content

erro no cakephp


watt

Recommended Posts

Boas pessoal,

no ficheiro app/config/core.php

meti

Configure::write('Security.salt','');

acontece que agora quando carrego no remember do meu site e faço login não consigo entrar no site...

dá este erro:

Warning (512): You cannot use an empty key for Security::cipher() [CORE/cake/libs/security.php, line 177]

Security::cipher() - CORE/cake/libs/security.php, line 177

CookieComponent::__decrypt() - CORE/cake/libs/controller/components/cookie.php, line 426

CookieComponent::startup() - CORE/cake/libs/controller/components/cookie.php, line 174

Component::startup() - CORE/cake/libs/controller/component.php, line 103

Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 229

Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 213

[main] - APP/webroot/index.php, line 90

Warning (2): Cannot modify header information - headers already sent by (output started at /home/weguuman/public_html/beta/cake/basics.php:111) [CORE/cake/libs/controller/components/cookie.php, line 364]

setcookie - [internal], line ??

CookieComponent::__write() - CORE/cake/libs/controller/components/cookie.php, line 364

CookieComponent::write() - CORE/cake/libs/controller/components/cookie.php, line 211

RememberMeComponent::remember() - APP/controllers/components/remember_me.php, line 25

UsersController::login() - APP/controllers/users_controller.php, line 42

Object::dispatchMethod() - CORE/cake/libs/object.php, line 114

Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 259

Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 213

[main] - APP/webroot/index.php, line 90

Warning (2): Cannot modify header information - headers already sent by (output started at /home/weguuman/public_html/beta/cake/basics.php:111) [CORE/cake/libs/controller/controller.php, line 587]

será que alguém sabe como posso dar a volta a este erro ? não tenho interesse em ter uma string no salt porque as passwords dos utilizadores estão a ser usados por uma outra aplicação.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.