Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

System does not open login with debug = 0

  • eliseuborges
  • eliseuborges's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #160989 by eliseuborges
System does not open login with debug = 0 was created by eliseuborges
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?
The topic has been locked.
  • eliseuborges
  • eliseuborges's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #160998 by eliseuborges
Replied by eliseuborges on 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?
The topic has been locked.
More
6 years 4 months ago #161000 by jelo
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

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • eliseuborges
  • eliseuborges's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #161001 by eliseuborges
Replied by eliseuborges on 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 ...
The topic has been locked.
More
6 years 4 months ago #161002 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • eliseuborges
  • eliseuborges's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #161003 by eliseuborges
Replied by eliseuborges on 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.
The topic has been locked.
  • eliseuborges
  • eliseuborges's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #161004 by eliseuborges
Replied by eliseuborges on 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose