Page 1 of 1

Unable to add attachment in OpenCATS User Login

Posted: 25 Sep 2020, 21:17
by Satish Michael Raj P
Hi Team, Our OpenCATS Create Candidate Attachment has failed.

We have received the below error.

OpenCATS- Create Candidate Attachment _ A File Error has Occurred

A File Error has Occurred There was a problem when CATS attempted to process the file you selected. Cannot create directory ./attachments/site_1/2xxx, and it does not already exist. File errors are sometimes caused by high Internet traffic or older web browsers. The latest version of the Mozilla Firefox© browser is recommended.

The problem may be resolved by using the back button on your browser and trying again.

Tried with Chrome, Firefox, and Edge. All receive the same error.
Changes made to the php.ini file for post_max_size = 30M and upload_max_filesize = 30M with no effect

Re: Unable to add attachment in OpenCATS User Login

Posted: 28 Sep 2020, 17:56
by RussH
If the upload took a while, it will also have run afoul of the max_execution_time in php.ini (normally 30 seconds)

- Do other/smaller attachments work?
- is there a more detailed error message in your error.log file?

Re: Unable to add attachment in OpenCATS User Login

Posted: 29 Sep 2020, 19:39
by Satish Michael Raj P
Hi Team,

No the smaller attachment haven't work. Tried with .txt file and pdf files.

Error Log
VAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: http://x.x.x.x/opencats/index.php?m=job ... %3D1266%2C
[Tue Sep 29 17:37:49.855187 2020] [mpm_prefork:notice] [pid 24322] AH00169: caught SIGTERM, shutting down
[Tue Sep 29 17:37:50.021143 2020] [mpm_prefork:notice] [pid 25145] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Sep 29 17:37:50.021230 2020] [core:notice] [pid 25145] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 29 17:38:38.802710 2020] [:error] [pid 25155] [client xxx.xx.xxx.xxx:55120] PHP Notice: Use of undefined constant LOGIN_PENDING_APPROVAL - assumed 'LOGIN_PENDING_APPROVAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: http://
PHP Notice: Use of undefined constant LOGIN_PENDING_APPROVAL - assumed 'LOGIN_PENDING_APPROVAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: h

Kindly suggest? Awaiting your valuable response to fix this issue.

With Regards,

Satish Michael Raj P

Re: Unable to add attachment in OpenCATS User Login

Posted: 30 Sep 2020, 05:36
by Satish Michael Raj P
RussH wrote: 28 Sep 2020, 17:56 If the upload took a while, it will also have run afoul of the max_execution_time in php.ini (normally 30 seconds)

- Do other/smaller attachments work?
- is there a more detailed error message in your error.log file?
Hi RussH,

The smaller attachment doesn't get attached(.docx,.txt,.pdf). We received the same error "A File Error has Occurred
There was a problem when CATS attempted to process the file you selected. Cannot create directory ./attachments/site_1/2xxx, and it does not already exist. File errors are sometimes caused by high Internet traffic or older web browsers. The latest version of the Mozilla Firefox© browser is recommended.

The problem may be resolved by using the back button on your browser and trying again."

We have tried with administrator login too, the issue persists across all the users.

Error Log
VAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: http://x.x.x.x/opencats/index.php?m=job ... %3D1266%2C
[Tue Sep 29 17:37:49.855187 2020] [mpm_prefork:notice] [pid 24322] AH00169: caught SIGTERM, shutting down
[Tue Sep 29 17:37:50.021143 2020] [mpm_prefork:notice] [pid 25145] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Sep 29 17:37:50.021230 2020] [core:notice] [pid 25145] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 29 17:38:38.802710 2020] [:error] [pid 25155] [client xxx.xx.xxx.xxx:55120] PHP Notice: Use of undefined constant LOGIN_PENDING_APPROVAL - assumed 'LOGIN_PENDING_APPROVAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: http://
PHP Notice: Use of undefined constant LOGIN_PENDING_APPROVAL - assumed 'LOGIN_PENDING_APPROVAL' in /var/www/html/opencats/lib/Session.php on line 778, referer: h

Kindly suggest? Awaiting your valuable response to fix this issue.

With Regards,

Sathish Michael Raj P