orangescrum-community icon indicating copy to clipboard operation
orangescrum-community copied to clipboard

constants.php file always change to 0kb

Open slimshock opened this issue 8 years ago • 15 comments

Every now and then the file app/Config/constants.php will always change the size to 0kb.

Its already annoying to always upload the filein ftp when this happen.

Please advise.. thanks..

slimshock avatar Jul 27 '16 11:07 slimshock

Seconded. I have experienced this same issue. Seems to occur when a new task is created.

risendev avatar Jul 29 '16 19:07 risendev

I do agree as well, I'm facing the same issue several time. Why its happening by the way?

adilshahzad avatar Aug 10 '16 17:08 adilshahzad

Yeah.. today got this issue as well.. #nobackup

arturssmirnovs avatar Aug 11 '16 13:08 arturssmirnovs

I'm having the same issue but yesterday I changed its permission to 600 & now monitoring it, but today its again changed... whats changed i don't but the configurations are fine till this time.

adilshahzad avatar Aug 11 '16 13:08 adilshahzad

yeah.. already tried to changed its permission to 644 or even 666 but still the file size change to 0kb.

slimshock avatar Aug 12 '16 01:08 slimshock

BTW.. My constants.php file emptied when i created now task..

I tried to make new task with title filled only (i think it was only filled). <-- hope this helps identify problem.

arturssmirnovs avatar Aug 12 '16 07:08 arturssmirnovs

i've been having the same....

korachoy avatar Oct 24 '16 00:10 korachoy

Okay here is the solution, change the file permission to 444 & you all set to go.

adilshahzad avatar Oct 24 '16 07:10 adilshahzad

@Orangescrum do you know why?, I tried to change it be config.php but it still happens.

mrdevnet avatar Nov 17 '16 08:11 mrdevnet

same issue.

pprotschka avatar Mar 01 '17 15:03 pprotschka

I had this issue too (using the official Docker container). My workaround is just that I set the settings to what I needed, made a backup of the file, and then removed the write permissions to the file.

NathanWarden avatar Mar 01 '17 22:03 NathanWarden

I have the same problem from time to time.....

InsaneSplash avatar Mar 06 '17 22:03 InsaneSplash

To resolve this properly, I commented out line 313 in core.php which kept including the install.php file everytime a page was loaded. install.php is the file that keeps reading and writing to the constants.php file which is dumb.

app/Config/core.php #include("install.php");

InsaneSplash avatar Mar 07 '17 05:03 InsaneSplash

Confirm, another solution is to remove permission of www-data or set it to read-only

BlackMetalz avatar May 02 '18 03:05 BlackMetalz

for v1.6.1 end of the app/Config/core.php

change include("setup.php"); /include("constants.php");/

to

/include("setup.php");/ include("constants.php");

evreneter avatar Mar 11 '19 23:03 evreneter