System does not open login with debug = 0

More
2 weeks 3 days ago #160989 by eliseuborges
eliseuborges created the topic: System does not open login with debug = 0
Dear,

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?


can anybody help me?

Please Log in to join the conversation.

More
2 weeks 3 days ago #160998 by eliseuborges
eliseuborges replied the topic: System does not open login with debug = 0
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?

Please Log in to join the conversation.

More
2 weeks 3 days ago #161000 by jelo
jelo replied the topic: System does not open login with debug = 0
When combineJS is set to TRUE the javascripts send to the browser get optimized.
ftp.yiiframework.com/extension/extendedclientscript/

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

Please Log in to join the conversation.

More
2 weeks 3 days ago #161001 by eliseuborges
eliseuborges replied the topic: System does not open login with debug = 0
I am debugging the application and noticed that a loop is occurring within the garbageCollect method in the ExtendedClientScript.php file

I will continue the debug to understand the problem ...

Please Log in to join the conversation.

More
2 weeks 3 days ago #161002 by jelo
jelo replied the topic: System does not open login with debug = 0
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.

Please Log in to join the conversation.

More
2 weeks 3 days ago #161003 by eliseuborges
eliseuborges replied the topic: System does not open login with debug = 0
PHP Version 5.4.23

$config = "2.06+";
$config = 184;
$config = 150831;



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.

Please Log in to join the conversation.

More
2 weeks 3 days ago #161004 by eliseuborges
eliseuborges replied the topic: System does not open login with debug = 0
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!