Forum
Assets being duplicated
Hello,
I'm having a strange issue where assets added to a certain bucket are doubling up in the thumbnail view. There isn't two files being uploaded to the server, or two records in the database just two copies of the same thumbnail that link to the same asset page. Can't figure out why this is happening. Any ideas?
Diagnostics:
Perch Runway: 2.8.26, PHP: 5.6.18, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.26), assets (2.8.26), categories (2.8.26), perch_members (1.4.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/mysite/public_html/media/perch
PERCH_CORE: /home/mysite/public_html/media/perch/core
PERCH_RESFILEPATH: /home/mysite/public_html/media/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 1024M, Max POST 1024M, Memory: 256M, Total max file upload: 256M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/mysite/public_html/media
HTTP_HOST: media.mysite.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
That's not something we've seen. How are they being added? When do they double up?
Hi Drew,
I've tried both drag and drop and clicking the area to bring up the file dialog box. It's happening on both Mac and Windows with Chrome and Firefox so we are pretty sure it's not a client-side issue. It could be an edge case in my template though?
In my template I have an image upload to the default bucket and then a repeater further down which contains a file upload to a bucket called 'downloads'. We've had all kinds of files uploaded to this field but the ones that are doubling up are jpg/png images. We didn't realise it was only images that were doubling until after starting this thread. So it could simply be image uploads to the file field type? It is only these images that are doubling up and it happens when the user clicks 'save' on the collection item.
If we just upload the assets, you only see one of each until saving the item.
If required, here is my template.
Hope that helps or at least makes sense!?
Are you using Paranoid Security Mode?
No, I've not had chance to check that out yet.
Ok, I'll need to investigate and see what I can come up with.
No problem! As said it's not duping the files or database records, it's just odd.
Thank you!
Ah, that's interesting - there's no duplication in the db?
Just double checked and no, no duplication in the db. It's an odd one for sure.
Gotta be the query then - thanks, we'll take a look.
Thanks Drew!