An Internal Error Has Occurred.

82 views
Skip to first unread message

Bijan Aryal

unread,
May 8, 2023, 12:43:24 AM5/8/23
to Orangescrum Community Support
An Internal Error Has Occurred.

Error: An Internal Error Has Occurred.


I'm getting the above mentioned error when I open up my server's IP address. 192.168.169.138. (I'm trying to install and deploy orangescrum in my centos 7 vm).

I've disabled selinux and firewall as well.

I'm getting the below error as per /var/log/httpd/error_log

[Mon May 08 10:17:29.907207 2023] [php7:notice] [pid 1180] [client 192.168.169.1:54143] PHP Notice:  Constant CURRENT_FREE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 86
[Mon May 08 10:17:29.907520 2023] [php7:notice] [pid 1180] [client 192.168.169.1:54143] PHP Notice:  Constant CURRENT_EXPIRED_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 87
[Mon May 08 10:17:29.907788 2023] [php7:notice] [pid 1180] [client 192.168.169.1:54143] PHP Notice:  Constant UPGRADE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 88
[Mon May 08 10:17:29.907964 2023] [php7:notice] [pid 1180] [client 192.168.169.1:54143] PHP Notice:  Constant FREE_TRIAL_PERIOD already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 90
[Mon May 08 10:17:29.908074 2023] [php7:notice] [pid 1180] [client 192.168.169.1:54143] PHP Notice:  Constant HTTP_FILES already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 172
[Mon May 08 10:17:30.255660 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant CURRENT_FREE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 86, referer: http://192.168.169.138/
[Mon May 08 10:17:30.255994 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant CURRENT_EXPIRED_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 87, referer: http://192.168.169.138/
[Mon May 08 10:17:30.256186 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant UPGRADE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 88, referer: http://192.168.169.138/
[Mon May 08 10:17:30.256467 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant FREE_TRIAL_PERIOD already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 90, referer: http://192.168.169.138/
[Mon May 08 10:17:30.256688 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant HTTP_FILES already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 172, referer: http://192.168.169.138/
[Mon May 08 10:17:30.370184 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant CURRENT_FREE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 86, referer: http://192.168.169.138/
[Mon May 08 10:17:30.370522 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant CURRENT_EXPIRED_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 87, referer: http://192.168.169.138/
[Mon May 08 10:17:30.370752 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant UPGRADE_PLAN already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 88, referer: http://192.168.169.138/
[Mon May 08 10:17:30.370929 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant FREE_TRIAL_PERIOD already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 90, referer: http://192.168.169.138/
[Mon May 08 10:17:30.371160 2023] [php7:notice] [pid 1181] [client 192.168.169.1:54144] PHP Notice:  Constant HTTP_FILES already defined in /var/www/html/orangescrum-2.0.11/app/Config/bootstrap.php on line 172, referer: http://192.168.169.138/

Is PHP Notice really causing the Internal Server Error? I think it's just a notice like the name indicates and issue is something else. How do I debug?

Team Orangescrum

unread,
May 8, 2023, 5:54:01 AM5/8/23
to Orangescrum Community Support
Hi Aryal,

Please share your application's error log file, located at (\app\tmp\logs\error.log). This will help us to obtain more details about the issue.

Additionally, please debug the core.php (app\Config\core.php) file by changing the value of "Configure::write('debug',0);" from 0 to 2, and then share a screenshot of your browser.

Thanks,
Mamata
Orangescrum

Bijan Aryal

unread,
May 11, 2023, 10:20:23 AM5/11/23
to Orangescrum Community Support
This is my error.log located at /var/www/html/orangescrum-2.0.11/app/tmp/logs/error.log

2023-05-11 14:16:21 Warning: Warning (2): Declaration of User::afterSave($created) should be compatible with Model::afterSave($created, $options = Array) in [/var/www/html/orangescrum-2.0.11/app/Model/User.php, line 3]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
include - APP/Model/User.php, line 3
App::load() - CORE/Cake/Core/App.php, line 547
spl_autoload_call - [internal], line ??
class_exists - [internal], line ??
ClassRegistry::init() - CORE/Cake/Utility/ClassRegistry.php, line 146
Controller::loadModel() - CORE/Cake/Controller/Controller.php, line 741
AppController::beforeFilter() - APP/Controller/AppController.php, line 67
UsersController::beforeFilter() - APP/Controller/UsersController.php, line 49
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 179

2023-05-11 14:16:21 Error: [MissingTableException] Table users for model User was not found in datasource default.
Exception Attributes: array (
  'table' => 'users',
  'class' => 'User',
  'ds' => 'default',
)
Request URL: /
Stack Trace:
#0 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3667): Model->setSource('users')
#1 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3158): Model->getDataSource()
#2 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3071): Model->_findCount('before', Array)
#3 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3005): Model->buildQuery('count', Array)
#4 /var/www/html/orangescrum-2.0.11/app/Model/AppModel.php(35): Model->find('count', Array)
#5 /var/www/html/orangescrum-2.0.11/app/Controller/AppController.php(69): AppModel->find('count', Array)
#6 /var/www/html/orangescrum-2.0.11/app/Controller/UsersController.php(49): AppController->beforeFilter()
#7 /var/www/html/orangescrum-2.0.11/lib/Cake/Event/CakeEventManager.php(243): UsersController->beforeFilter(Object(CakeEvent))
#8 /var/www/html/orangescrum-2.0.11/lib/Cake/Controller/Controller.php(677): CakeEventManager->dispatch(Object(CakeEvent))
#9 /var/www/html/orangescrum-2.0.11/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#10 /var/www/html/orangescrum-2.0.11/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(UsersController), Object(CakeRequest))
#11 /var/www/html/orangescrum-2.0.11/app/webroot/index.php(179): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#12 {main}
2023-05-11 14:16:21 Error: [MissingControllerException] Controller class ImagesController could not be found.
Exception Attributes: array (
  'class' => 'ImagesController',
  'plugin' => NULL,
)
Request URL: /images/favicon_new.ico
Stack Trace:
#0 /var/www/html/orangescrum-2.0.11/app/webroot/index.php(179): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2023-05-11 14:16:21 Warning: Warning (2): Declaration of User::afterSave($created) should be compatible with Model::afterSave($created, $options = Array) in [/var/www/html/orangescrum-2.0.11/app/Model/User.php, line 3]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
include - APP/Model/User.php, line 3
App::load() - CORE/Cake/Core/App.php, line 547
spl_autoload_call - [internal], line ??
class_exists - [internal], line ??
ClassRegistry::init() - CORE/Cake/Utility/ClassRegistry.php, line 146
Controller::loadModel() - CORE/Cake/Controller/Controller.php, line 741
AppController::beforeFilter() - APP/Controller/AppController.php, line 67
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 158
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 95
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ??

2023-05-11 14:16:21 Warning: Warning (2): Declaration of User::afterSave($created) should be compatible with Model::afterSave($created, $options = Array) in [/var/www/html/orangescrum-2.0.11/app/Model/User.php, line 3]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
include - APP/Model/User.php, line 3
App::load() - CORE/Cake/Core/App.php, line 547
spl_autoload_call - [internal], line ??
class_exists - [internal], line ??
ClassRegistry::init() - CORE/Cake/Utility/ClassRegistry.php, line 146
Controller::loadModel() - CORE/Cake/Controller/Controller.php, line 741
AppController::beforeFilter() - APP/Controller/AppController.php, line 67
ErrorsController::beforeFilter() - APP/Controller/ErrorsController.php, line 47
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 179

2023-05-11 14:16:21 Error: [MissingTableException] Table users for model User was not found in datasource default.
Exception Attributes: array (
  'table' => 'users',
  'class' => 'User',
  'ds' => 'default',
)
Request URL: /Errors/error400
Stack Trace:
#0 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3667): Model->setSource('users')
#1 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3158): Model->getDataSource()
#2 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3071): Model->_findCount('before', Array)
#3 /var/www/html/orangescrum-2.0.11/lib/Cake/Model/Model.php(3005): Model->buildQuery('count', Array)
#4 /var/www/html/orangescrum-2.0.11/app/Model/AppModel.php(35): Model->find('count', Array)
#5 /var/www/html/orangescrum-2.0.11/app/Controller/AppController.php(69): AppModel->find('count', Array)
#6 /var/www/html/orangescrum-2.0.11/app/Controller/ErrorsController.php(47): AppController->beforeFilter()
#7 /var/www/html/orangescrum-2.0.11/lib/Cake/Event/CakeEventManager.php(243): ErrorsController->beforeFilter(Object(CakeEvent))
#8 /var/www/html/orangescrum-2.0.11/lib/Cake/Controller/Controller.php(677): CakeEventManager->dispatch(Object(CakeEvent))
#9 /var/www/html/orangescrum-2.0.11/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#10 /var/www/html/orangescrum-2.0.11/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(ErrorsController), Object(CakeRequest))
#11 /var/www/html/orangescrum-2.0.11/app/webroot/index.php(179): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#12 {main}

This is the error as per /var/www/html/orangescrum-2.0.11/app/Config/core.php
Screenshot 2023-05-11 200439.png

Bijan Aryal

unread,
May 12, 2023, 8:31:24 AM5/12/23
to Orangescrum Community Support

https://www.orangescrum.com/open-source-general-installation-guide
The official tutorial for automated installation in centos 7 doesn't work.

Team Orangescrum

unread,
May 12, 2023, 9:55:03 AM5/12/23
to Orangescrum Community Support
Hi Aryal,

After reviewing the file, I noticed that some of the database tables are missing. Therefore, my suggestion is to reimport the database tables.
You can use the command prompt (CMD) to import the tables.

If you continue to experience the issue after reimporting the tables, please let me know.

Thanks & Regards,
Mamata
Orangescrum

Bijan Aryal

unread,
May 12, 2023, 10:02:56 AM5/12/23
to Orangescrum Community Support
hello, I also think that's the issue. How do I import database? I've tried what's given on tutorial
$ mysql -u root -p orangescrum < /var/www/html/orangescrum-2.0.11/database.sql
But it shows  bad value for default or something. When I enter the same command again, it shows table "actions" already exists.
Reply all
Reply to author
Forward
0 new messages