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.
#4855
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
#4858
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?
#4866
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
#4867
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

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

Export part in Job Order order search

Same problem as mine. Maybe you're right, I'll che[…]

The error message you're encountering indicates th[…]

Errors restoring mysqldump backup

doesnot work for me