Orangescrum only works on Firefox

201 views
Skip to first unread message

Nathaniel Welch

unread,
Jan 6, 2018, 11:48:54 AM1/6/18
to Orangescrum Community Support
Having a weird issue where Orangescrum will only work on Firefox. IE, Edge, Chrome, and Safari all will show the login page, but when entering the correct credentials, it does not login and just returns back to the login page. If you enter the wrong credentials, it will tell you they are wrong. Using Firefox, you can log in and do everything just fine.

I have reviewed the following and verified I have those changes in place:
https://github.com/Orangescrum/orangescrum/issues/58

I am running CentOS 7 (latest updates) with a standard LAMP stack using the following guide:
https://www.vultr.com/docs/how-to-install-orangescrum-on-centos-7

Here are the important bits of the constants.php about my domain:

########################################################################
define("WEB_DOMAIN", "projects.otrclient.com"); //ex. demo.orangescrum.com
define('FROM_EMAIL_NOTIFY', 'proj...@otrclient.com'); //(REQUIRED)
define('SUPPORT_EMAIL', 'he...@otrclient.com'); //(REQUIRED) From Email
define('FROM_EMAIL',  'Orangescrum<'.SUPPORT_EMAIL.'>');

define("DEV_EMAIL", 'osc...@otrclient.com'); // Developer Email ID to report the application error
define('EMAIL_SUBJ', '[Orangescrum]');

// If you have not yet set up the Nohup cronjob, leave it blank
define('EMAIL_REPLY', "<div style='font-family:Arial;font-size:14px;color:#787878;margin-bottom:5px;'>Just REPLY to this Email the same will be added under the Task. <br/><span style='font-size:11px;'><b>NOTE:</b> Do not remove this original message.</span></div>");

define('RELEASE',1); //Increase the release version on every CSS/JS changes to remove the browser cache

##################### Domain and URL Constants ############################
define('SUB_FOLDER', '/'); //If your application URL followed by a folder name like: http://your-site.com/folder_name, put your folder name as 'folder_name/'

if(php_sapi_name() === "cli") {
define('PROTOCOL', "http://");
define('DOMAIN', "projects.otrclient.com/"); // Please set your application domain (REQUIRED)
}else{
$ht = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')?"https://":"http://";
define('PROTOCOL', $ht);
if($_SERVER['SERVER_PORT'] != 80)
define('DOMAIN', $_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT']."/"); 
else
define('DOMAIN', $_SERVER['SERVER_NAME']."/");
}
define('HTTP_SERVER',PROTOCOL.DOMAIN);
define('HTTP_ROOT', HTTP_SERVER.SUB_FOLDER);
define('DOMAIN_COOKIE', $_SERVER['SERVER_NAME']);
define('HTTP_APP', PROTOCOL.DOMAIN.SUB_FOLDER);
define('HTTPS_HOME', PROTOCOL.DOMAIN.SUB_FOLDER);
define('HTTP_HOME', "http://".DOMAIN.SUB_FOLDER);


Again, if I launch the site in Firefox, everything works 100%. I can create projects, assign tasks, manage users, etc. It is only if I try to use it in a different browser that I get the issue of it looping on the login page. There are no errors being logged, it just simply loops. 

Aaron Shaan

unread,
Jan 8, 2018, 8:53:19 AM1/8/18
to Orangescrum Community Support
Hi Nathaniel,

We would like to know review your error.log file from app/tmp logs.

Please share us the above file 

Regards,
Aaron Shaan
The Orangescrum team

Nathaniel Welch

unread,
Jan 8, 2018, 2:53:05 PM1/8/18
to Orangescrum Community Support

This is what is in that file:
2018-01-06 00:18:50 Error: [MissingControllerException] Controller class @SUBFOLDERimgController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERimgController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERimg/images/logo_outer.png?v=1
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:18:50 Error: [MissingControllerException] Controller class @SUBFOLDERjsController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERjsController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERjs/index/common_outer.js
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:18:51 Error: [MissingControllerException] Controller class @SUBFOLDERimgController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERimgController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERimg/images/login_header_shadow.png?v=1
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:18:51 Error: [MissingControllerException] Controller class @SUBFOLDERimgController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERimgController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERimg/google_groups.jpg
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:18:51 Error: [MissingControllerException] Controller class @SUBFOLDERimgController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERimgController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERimg/images/case_loader2.gif
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:18:51 Error: [MissingControllerException] Controller class @SUBFOLDERfavicon.icoController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERfavicon.icoController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERfavicon.ico
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:33:37 Error: [MissingControllerException] Controller class @SUBFOLDERusersController could not be found.
Exception Attributes: array (
  'class' => '@SUBFOLDERusersController',
  'plugin' => NULL,
)
Request URL: /@SUB_FOLDERusers/register_user
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:34:27 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:34:43 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:34:50 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:35:00 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:35:04 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:35:08 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:35:20 Warning: Warning (2): array_unique() expects parameter 1 to be array, null given in [/var/www/html/orangescrum-1.6.1/app/Controller/ProjectsController.php, line 1904]
Trace:
array_unique - [internal], line ??
ProjectsController::member_list() - APP/Controller/ProjectsController.php, line 1904
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

2018-01-06 00:36:03 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:37:01 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2018-01-06 00:37:15 Warning: Warning (2): Illegal string offset 'allfiles' in [/var/www/html/orangescrum-1.6.1/app/Controller/Component/PostcaseComponent.php, line 418]
Trace:
PostcaseComponent::casePosting() - APP/Controller/Component/PostcaseComponent.php, line 418
EasycasesController::ajaxpostcase() - APP/Controller/EasycasesController.php, line 367
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

2018-01-06 00:37:15 Warning: Warning (2): Illegal string offset 'storage' in [/var/www/html/orangescrum-1.6.1/app/Controller/Component/PostcaseComponent.php, line 418]
Trace:
PostcaseComponent::casePosting() - APP/Controller/Component/PostcaseComponent.php, line 418
EasycasesController::ajaxpostcase() - APP/Controller/EasycasesController.php, line 367
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

2018-01-06 00:37:15 Warning: Warning (2): Illegal string offset 'file_error' in [/var/www/html/orangescrum-1.6.1/app/Controller/Component/PostcaseComponent.php, line 418]
Trace:
PostcaseComponent::casePosting() - APP/Controller/Component/PostcaseComponent.php, line 418
EasycasesController::ajaxpostcase() - APP/Controller/EasycasesController.php, line 367
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

2018-01-06 00:37:22 Error: [MissingControllerException] Controller class Controller could not be found.
Exception Attributes: array (
  'class' => 'Controller',
  'plugin' => NULL,
)
Request URL: ///projects/hide_default_inner
Stack Trace:
#0 /var/www/html/orangescrum-1.6.1/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}

Nathaniel Welch

unread,
Jan 8, 2018, 2:59:38 PM1/8/18
to Orangescrum Community Support
I have also done a clean install on CentOS 7 on a different host and the issue is the same on that one. Currently downloading Ubuntu Server to see if it persist on that as well.

Nathaniel Welch

unread,
Jan 10, 2018, 6:29:33 PM1/10/18
to Orangescrum Community Support
Confirmed that Orangescrum installed on Ubuntu has same issue.

Aaron Shaan

unread,
Jan 12, 2018, 6:14:00 AM1/12/18
to Orangescrum Community Support
Hi Nathaniel,

There might be some miss in the code.

Is it possible on your end to share the error.log file from app/tmp/logs?

Also, please share the version of  PHP and MySQL that you are using.

Regards,
Aaron Shaan
Orangescrum Team

Nathaniel Welch

unread,
Jan 16, 2018, 7:02:33 PM1/16/18
to Orangescrum Community Support

Did some more research. This seems to be CentOS 7 only. If I run CentOS 6.5, Ubuntu 16.04 (previous response of Ubuntu not working was an error on my part), or Windows Server 2012 R2, I can access OrangeScrum from any browser. It is only when I run CentOS 7 that I can only access it via Firefox. I simply moved to CentOS 6.5 and it is up and running now. Thanks for the support.
Reply all
Reply to author
Forward
0 new messages