Skip to main content
Attachment Integrity Check does not functon properly Started by AaronB · · Read 3009 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Attachment Integrity Check does not functon properly

Attachment and Avatars>File Maintenance: Attachment Integrity Check

Please see the attachment. ( if my screen grabber ever runs out of film, I will be in trouble )  ;)

First issue is that every time I run the check, the response is always one file to delete. I presume it is speaking of a file but it may be speaking of the database link to a non-existing file. Anyway, I did notice that no files were ever deleted from the disk.

Second issue is the "1 files" being displayed and not "1 file". I know that is picky, picky, picky but it is the little things like this that take the shine off of something.  :)   Maybe test for file count and display "1 file" or "2 files"; the easier way would be to simply state "One or more files ....... ".





Re: Attachment Integrity Check does not functon properly

Reply #1

Two changes in sources/admin/ManageAttachments.controller.php:
Code: (find) [Select]
							elseif ($file != 'index.php')
Code: (replace with) [Select]
							elseif ($file != 'index.php' && !is_dir($attach_dir . '/' . $file))

Then, just after:
Code: (find) [Select]
		$context['completed'] = $fix_errors ? true : false;
add:
Code: (add) [Select]
		$context['errors_found'] = false;

ETA: I'm not 100% sure this will fix your issue, though it fixed mine... lol
Last Edit: March 25, 2014, 04:31:18 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: Attachment Integrity Check does not functon properly

Reply #2

:)  100% it fixed the problem on mine also.

Thanks!