Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create attachment fails #661

Open
venuraperera99 opened this issue Sep 21, 2024 · 2 comments
Open

Create attachment fails #661

venuraperera99 opened this issue Sep 21, 2024 · 2 comments

Comments

@venuraperera99
Copy link

Expected behavior and actual behavior.

I am creating a candidate and then attaching a resume after and I get the following error (attaching during candidate creation doesnt work either):

A File Error has Occurred
There was a problem when CATS attempted to process the file you selected. Cannot create directory ./attachments/site_1/0xxx/4c62d56b738741c7c1aa24d900cbcade/, 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.

Steps to reproduce the problem.

Click add candidate and then after creating the candidate, add any attachment and submit and the error shows

What version of opencats are you running?

0.9.7.4

WAMP or LAMP?

What version of PHP and MySQL are you running

PHP version 7.2.34
MySQL version 10.3.39

attach appropriate error logs. Please attach [apache/mysql] error/access logs as needed.

@RussH
Copy link
Member

RussH commented Sep 21, 2024

hi, as per https://documentation.opencats.org/installation/install-on-ubuntu

Please check you've changed permissions on the attachments and uploads directories!

@venuraperera99
Copy link
Author

Hi Russ!

I have followed the permissions commands and modified them for the attachments and uploads directories, but I still get the same error. You can see the permissions of the file directory below

opencats@opencats-Standard-PC-i440FX-PIIX-1996:/var/www/html/opencats$ ls -la
total 540
drwxr-xr-x 24 opencats opencats 4096 Sep 21 08:59 .
drwxr-xr-x 6 root root 4096 Sep 21 08:38 ..
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 ajax
-rw-rw-r-- 1 opencats opencats 3610 Sep 14 01:28 ajax.php
drwxrwx--- 3 opencats opencats 4096 Sep 14 01:28 attachments
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 careers
-rwxrwxr-x 1 opencats opencats 2916 Sep 14 01:28 careersPage.css
-rw-rw-r-- 1 opencats opencats 65537 Sep 14 01:28 CHANGELOG.MD
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 ci
-rw-rw-r-- 1 opencats opencats 528 Sep 14 01:28 composer.json
-rw-rw-r-- 1 opencats opencats 120736 Sep 14 01:28 composer.lock
-rwxrwxr-x 1 opencats opencats 16531 Sep 21 08:59 config.php
-rwxr-xr-x 1 root root 16521 Sep 21 08:45 config.php.bkp
-rw-rw-r-- 1 opencats opencats 10530 Sep 14 01:28 constants.php
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 db
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 docker
-rwxrwxr-x 1 opencats opencats 328 Sep 14 01:28 Error.tpl
drwxrwxr-x 8 opencats opencats 4096 Sep 22 02:22 .git
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 .github
-rw-rw-r-- 1 opencats opencats 154 Sep 14 01:28 .gitignore
-rwxrwxr-x 1 opencats opencats 1041 Sep 14 01:28 ie.css
drwxr-xr-x 11 opencats opencats 12288 Sep 14 01:28 images
-rw-rw-r-- 1 opencats opencats 8722 Sep 14 01:28 index.php
-rwxr-xr-x 1 opencats opencats 104 Aug 23 15:04 INSTALL_BLOCK
-rwxrwxr-x 1 opencats opencats 5666 Sep 14 01:28 installtest.php
-rwxrwxr-x 1 opencats opencats 48808 Sep 14 01:28 installwizard.php
-rw-rw-r-- 1 opencats opencats 333 Sep 14 01:28 issue_template.md
drwxr-xr-x 3 opencats opencats 4096 Sep 14 01:28 js
drwxr-xr-x 7 opencats opencats 4096 Sep 14 01:28 lib
-rw-rw-r-- 1 opencats opencats 43229 Sep 14 01:28 LICENSE.md
-rwxrwxr-x 1 opencats opencats 25716 Sep 14 01:28 main.css
drwxr-xr-x 25 opencats opencats 4096 Mar 23 2021 modules
-rwxrwxr-x 1 opencats opencats 1069 Sep 14 01:28 not-ie.css
drwxr-xr-x 3 opencats opencats 4096 Mar 23 2021 optional-updates
-rwxrwxr-x 1 opencats opencats 3824 Sep 14 01:28 QueueCLI.php
-rw-rw-r-- 1 opencats opencats 1778 Sep 14 01:28 README.md
-rw-rw-r-- 1 opencats opencats 2310 Sep 14 01:28 rebuild_old_docs.php
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 rss
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 scripts
drwxr-xr-x 3 opencats opencats 4096 Mar 23 2021 src
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 temp
drwxr-xr-x 6 opencats opencats 4096 Sep 14 01:28 test
-rw-rw-r-- 1 opencats opencats 4 Sep 17 20:49 'text file.txt'
-rw-rw-r-- 1 opencats opencats 1658 Sep 14 01:28 .travis.yml
drwxrwx--- 3 opencats opencats 4096 Sep 14 01:28 upload
drwxr-xr-x 24 opencats opencats 4096 Mar 23 2021 vendor
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 wsdl
drwxr-xr-x 2 opencats opencats 4096 Sep 14 01:28 xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants