We recently need to change limesurvey v2.06 + from one server to another.
I copied the files (which are around 9GB) and changed the bank connection string.
When I started the application for the first time, config.php was debug = 1 and the application opened the login screen, logged in and browsed some screens.
The problem is that by changing debug = 0 the application will load the login screen and will not open.
By realizing an application profile I noticed that the most invoked features are readdir and is_file.
Given this scenario, I have some doubts:
1. When changing servers do I have to apply some command to clear cache?
2. Can application folder size be the problem?
3. Is there any session setup that might be locking the login screen?
4. Is there any screen that I can access to test this?
After debugging I realized that by setting 'combineJs' => false in the internal.php file the application loads correctly. Could someone tell me what that means?
What causing this issue on one server and not on the other is hard to tell.
combineJS was involved in bugreports before.
bugs.limesurvey.org/view.php?id=9845
What exact version/build of LS is used? What PHP version is used? That often changes when moving from one server to another. Try to set debug = 2 for a moment.
When I change to debug = 2 the login screen is loaded. After I log in, I get a message
"Use of undefined constant proxy_host_port - assumed 'proxy_host_port'"
I have already verified that this is a system error, but even correcting this error manually and then returning debug = 0, the system loops and does not open the login screen.
After debugging the application, I discovered that DOCUMENT_ROOT was moving to another folder. With this the findFilesRecursive method was lost and looped. Fixed DOCUMENT_ROOT and it worked!
With the debug enabled this does not happen because javascript is not combined and consequently does not call the functions that cause the infinite loop.