Page 1 of 1

Getting a fatal error when adding a company

Posted: 20 Oct 2016, 15:21
by jdmint77
We are getting a fatal error when attempting to add a new company to CATS.

From error log:
PHP Fatal error: Class 'OpenCATS\\Entity\\Company' not found in C:\\wamp\\www\\cats\\lib\\Companies.php on line 89, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP Stack trace:, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP 1. {main}() C:\\wamp\\www\\cats\\index.php:0, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP 2. ModuleUtility::loadModule() C:\\wamp\\www\\cats\\index.php:302, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP 3. CompaniesUI->handleRequest() C:\\wamp\\www\\cats\\lib\\ModuleUtility.php:79, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP 4. CompaniesUI->onAdd() C:\\wamp\\www\\cats\\modules\\companies\\CompaniesUI.php:86, referer: http://ssats.scope-services.local/cats/ ... nies&a=add
PHP 5. Companies->add() C:\\wamp\\www\\cats\\modules\\companies\\CompaniesUI.php:542, referer: http://ssats.scope-services.local/cats/ ... nies&a=add

We're on Version 0.9.3 of CATS
Apache Version : 2.4.4
PHP Version : 5.4.12

Need to get this working. Any help would be greatly appreciated.

Re: Getting a fatal error when adding a company

Posted: 20 Oct 2016, 16:21
by jdmint77
Error may be related to this -

PHP Warning: include_once(./vendor/autoload.php): failed to open stream: No such file or directory in C:\\wamp\\www\\cats\\lib\\Companies.php on line 2

We can't find this ./vendor/autoload.php file anywhere. Is this a separate module loaded by php?

Re: Getting a fatal error when adding a company

Posted: 21 Oct 2016, 12:05
by RussH
I assume this is https://github.com/opencats/OpenCATS/issues/130 - are you using Docker?

Re: Getting a fatal error when adding a company

Posted: 21 Oct 2016, 18:16
by jdmint77
Yes, after reviewing the link that is the issue. We had composer installed, but we didn't realize you needed to run it from the command line to install the required components.

This is not a Docker, just Windows 2008 server running WAMP.

Thanks for the help.