Page 1 of 1

Getting Fatal Error when I input information when we're testing through localhost

Posted: 23 Sep 2022, 16:28
by yanazamo
I know very little about coding but I was tasked to test OpenCats on localhost. The problem is any information added to the site results in this:

Fatal error: Uncaught Error: Class 'OpenCATS\Entity\JobOrder' not found in C:\xampp\htdocs\opencats\lib\JobOrders.php:106 Stack trace: #0 C:\xampp\htdocs\opencats\modules\joborders\JobOrdersUI.php(782): JobOrders->add('Data Wizard', '1', '-1', '', '', '', '', 'H', false, true, '12', '', '', 'Chadron', 'Nebraska', '2022-09-30', '1', '1', '1', '', false) #1 C:\xampp\htdocs\opencats\modules\joborders\JobOrdersUI.php(123): JobOrdersUI->onAdd() #2 C:\xampp\htdocs\opencats\lib\ModuleUtility.php(79): JobOrdersUI->handleRequest() #3 C:\xampp\htdocs\opencats\index.php(272): ModuleUtility::loadModule('joborders') #4 {main} thrown in C:\xampp\htdocs\opencats\lib\JobOrders.php on line 106

The same error shows up when we put information in other tabs (Job order, candidates, fields etc). Someobody mentioned the class "Job Order" (and others) are probably missing from the xampp file. I only have highschool level knowledge in coding so I'm not sure how to fix it

Re: Getting Fatal Error when I input information when we're testing through localhost

Posted: 27 Sep 2022, 17:57
by RussH
Hey @yanazamo sorry you're having problems but I can understand your problem instantly - you've downloaded the live code from github and installed it. If you do things this way you have to run composer afterwards to pull in the opencats dependencies (ckeditor, phpmailer, etc). Alternatively if you install one of the releases, the dependencies are already bundled.

This is explained here https://documentation.opencats.org/#whi ... to-install

As you're looking for the simple approach - please go to https://github.com/opencats/opencats/releases and download the most recent -full package and install that instead. The documentation on installation is quite good so will walk you through the steps quickly.