Page 1 of 1

Unable to upload CVs

Posted: 05 Sep 2019, 08:11
by jthesecond
From the candidate page, I am unable to upload a CV (add an attachment)
The following is the error I get:

A File Error has Occurred

There was a problem when CATS attempted to process the file you selected. File size is less than 1 byte. 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.

I have tried multiple times including on firefox. I have also gone to my hosting provider and they were unable to help, but they ensured the php.ini file values were all correct. Can anyone help me?

Re: Unable to upload CVs

Posted: 05 Sep 2019, 15:54
by RussH

there are a few possible reasons for this, you'll need to look at your error log to see what's being recorded. Normally it's the maximum filesize or the session timing out, both variables can be changed in php.ini

Re: Unable to upload CVs

Posted: 06 Sep 2019, 08:19
by jthesecond
Thank you for your prompt response. I am using shared hosting, how do I access the error logs?
These are my local variables for my php.ini file:
max_execution_time 300
max_file_uploads 20

Re: Unable to upload CVs

Posted: 06 Sep 2019, 10:39
by jthesecond
I found the error logs and the following is the applicable error:

PHP Deprecated: Non-static method DatabaseSearch::fulltextDecode() should not be called statically, assuming $this from incompatible context in /home/dlkgrznn/ on line 1285
[05-Sep-2019 09:12:14 UTC]

Re: Unable to upload CVs

Posted: 06 Sep 2019, 15:01
by RussH
what version PHP are you running? The current version supports PHP 5.6 only and not PHP 7.x

Re: Unable to upload CVs

Posted: 09 Sep 2019, 07:29
by jthesecond
I am running PHP 5.6

Re: Unable to upload CVs

Posted: 10 Sep 2019, 07:51
by jthesecond
System information:
Operating System Type: CATS thinks your operating system is UNIX.
PHP Version: 5.6.40
Database Version: MySQL 10.1.41-MariaDB

Re: Unable to upload CVs

Posted: 13 Sep 2019, 14:33
by jthesecond
Here is my information for my php:

Re: Unable to upload CVs

Posted: 13 Sep 2019, 15:52
by RussH

sorry have taken a look at the thread, and you need to set the value of upload_max_filesize and post_max_size in your php.ini :
Code: Select all
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
After modifying php.ini file(s), you need to restart your HTTP server to use new configuration.

Your error message is a red herring as it's a notification only that from PHP 5.6 onwards, the syntax is deprecated and will be removed in a future version - this is why the PHP 7.x version needs a significant rewrite.