Continually Breaking Community Edition

302 views
Skip to first unread message

A Peck

unread,
Apr 9, 2017, 11:46:49 PM4/9/17
to Orangescrum Community Support
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? 

Team Orangescrum

unread,
Jun 7, 2017, 3:21:44 AM6/7/17
to Orangescrum Community Support
Hi A Peck,
we are sorry for the inconvenience caused. Its seem to be .htaccess file please follow below steps-

Step 1:
orangescrum folder path - Make sure please create a folder called 'orangescrum' underneath html folder and copy source 
code here.
/var/www/html/orangescrum

Step 2:
Open this file and edit vi /etc/apache2/apache2.conf
Add this below file ( AllowOverride All instead of AllowOverride None)
<Directory /var/www/html/>
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>
Save the file and restart the Apache service.

Step 3:

Enable this module and restart the Apache service
sudo a2enmod rewrite
sudo a2enmod headers
service apache2 restart

If you still face same error please send your server access to sup...@orangescrum.com


Best Regards
Team Orangescrum

ashok kumar

unread,
Nov 27, 2018, 8:39:57 PM11/27/18
to Orangescrum Community Support
HI,

I noticed that there certain cronjob running which deleting the content of the constant.php file which causing the issue.

regards,

Soumya

unread,
Dec 24, 2018, 4:56:04 AM12/24/18
to Orangescrum Community Support
Hi Ashok kumar,

Please comment the check_subfolder();(marked in bold) line in below code in app/config/install.php

<?php exit; }else if(isset($tables) && !empty($tables)){

check_subfolder(); 

checkDebug();

}

}catch (Exception $e){

check_subfolder(); ?>

<!DOCTYPE html

This will prevent constants.php from being blank.

Thanks,
Soumya
Orangescrum Team
Reply all
Reply to author
Forward
0 new messages