I'm getting frustrated with this application.
I'm running this on an ubuntu 16.04 host with the requirements met (I've also replicated this behavior on the Docker image), and the problem is as follows:
I make ANY modification to:
- Login page (tmp/app/View/Users/login.ctp) swap a graphic or modify text and the application dies. (I end up with ERR_TOO_MANY_REDIRECTS)
- I can junk any of the changes, clear cookies and the application is STILL broken.
This can be replicated on numerous other pages (header_inner, etc) and I end up with the same behavior.
This is the ONLY thing that works to remedy:
1. Move entire directory to temporary location
2. Unzip download
3. Backup database
4. Import database.sql
5. Force refresh browser
And the application works perfect in its default form. I can re-import the DB and the project data is all there, AS SOON AS I make a change anywhere the application quits working and I repeat steps 1-5.
Log output (this entry occurs 100s if not 1000s of times):
2017-04-10 03:38:13 Warning: Warning (2): setcookie() expects parameter 3 to be long, string given in [/var/www/html/2lith-proj/app/Controller/UsersController.php, line 1485]
Trace:
setcookie - [internal], line ??
UsersController::login() - APP/Controller/UsersController.php, line 1485
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
What is going on here? Is this an expected behavior and a way to discourage modification of this code?