Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules: Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
#5350
When I try to add new contacts, I get:
Code: Select all
The internal mechanics CATS uses to add and edit records like candidates, companies, job orders, etc. failed on your last operation. You may have entered incorrect data that it's not used to handling or there is an internal issue.

The administrators have been notified and will resolve the issue as soon as possible. We apologize for the inconvenience. 
.

Source of CATS code: Downloaded from Github. Dependancies supplied by Composer
Server OS: Ubuntu 22.04.2 LTS
DB: MariaDB 10.6.12
Webserver: Apache/2.4.52

WebLogs
[Mon Jul 03 15:26:21.182915 2023] [php7:notice] [pid 54854] [client 23.17.234.209:41154] PHP Notice: Undefined index: isHot in /var/www/html/ats/modules/candidates/CandidatesUI.php on line 3461, referer: https://stratosphere.team/ats/index.php ... teID=32349
[Mon Jul 03 15:26:21.183138 2023] [php7:notice] [pid 54854] [client 23.17.234.209:41154] PHP Notice: Undefined index: isHot in /var/www/html/ats/modules/candidates/CandidatesUI.php on line 3461, referer: https://stratosphere.team/ats/index.php ... teID=32349
[Mon Jul 03 15:26:21.183366 2023] [php7:notice] [pid 54854] [client 23.17.234.209:41154] PHP Notice: Undefined index: isHot in /var/www/html/ats/modules/candidates/CandidatesUI.php on line 3461, referer: https://stratosphere.team/ats/index.php ... teID=32349
[Mon Jul 03 15:26:21.185355 2023] [php7:error] [pid 54854] [client 23.17.234.209:41154] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/ats/modules/candidates/CandidatesUI.php on line 3451, referer: https://stratosphere.team/ats/index.php ... teID=32349
[Mon Jul 03 17:49:03.260901 2023] [php7:error] [pid 55236] [client 87.120.84.173:64240] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Mon Jul 03 18:59:01.317258 2023] [php7:warn] [pid 56431] [client 23.17.234.209:50528] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/ats/modules/companies/Show.tpl on line 311, referer: https://stratosphere.team/ats/index.php ... nies&a=add
[Mon Jul 03 18:59:01.317381 2023] [php7:warn] [pid 56431] [client 23.17.234.209:50528] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/ats/modules/companies/Show.tpl on line 349, referer: https://stratosphere.team/ats/index.php ... nies&a=add
[Mon Jul 03 18:59:01.317399 2023] [php7:warn] [pid 56431] [client 23.17.234.209:50528] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/ats/modules/companies/Show.tpl on line 393, referer: https://stratosphere.team/ats/index.php ... nies&a=add

Do you make any sense out of these error messages?
#5354
yes - as I have been doing some test versions that are PHP 7,4 or 8.2 compatible - those are errors that a newer PHP will generate when it sees the old code. So I think you're running at least PHP 7.4 (and right now, needs to be only PHP 7.2)
#5355
I am actually running PHP Version 7.2.34-39+ubuntu22.04.1+deb.sury.org+1

Is that too high?

However, I did install phpMyAdmin from the command line, and it loaded PHP 8.2. I uninstalled it, but... it may have made some changes.

I am however using a database schema from past versions of CATS, which has extra fields, etc. Will that cause me some trouble? (likely!)

1) Do I need to load my data on to a fresh, native OpenCATS schema of tables?
2) Should I reinstall OpenCATS fresh, with proper PHP 7.2 ? (this would only take an hour - vs. fighting it for weeks)
Update: residual PHP8.2 has been removed. webserver and db restarted. Problem persists.
#5357
If this doesn't work I may have to offer to ssh on for you, seems odd. I have of course checked and MY version 0.9.7.2 works :roll:

This is the "import from resume"[…]

EMAIL CONFIGURATION

Hi, the email configuration (including different[…]

as the title says...

It's essential to keep these synchronized to ensur[…]