Forum
Asset upload script error in Perch Runway: 3.1.1
Similar issue: https://forum.grabaperch.com/forum/08-23-2017-asset-upload-script-error
Hey guys,
I'm having a similar issue to the above forum post.
10.10.8255e4c4a367cfa3e2bd.js:2 Uncaught Error: This file can't be queued because it has already been processed or was rejected.
at t.enqueueFile (10.10.8255e4c4a367cfa3e2bd.js:2)
at 10.10.8255e4c4a367cfa3e2bd.js:2
at t.accept (10.10.8255e4c4a367cfa3e2bd.js:1)
at t.accept (10.10.8255e4c4a367cfa3e2bd.js:2)
at t.addFile (10.10.8255e4c4a367cfa3e2bd.js:2)
at HTMLInputElement.<anonymous> (10.10.8255e4c4a367cfa3e2bd.js:2)
Diagnostic Summary:
Perch Runway: 3.1.1, PHP: 7.2.5, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_forms (1.11), perch_shop_orders (1.2.6), perch_shop_products (1.2.6), impeng_certdash (0.6), perch_shop (1.2.6), perch_members (1.6.4)
App runtimes: <?php $apps_list = [ 'perch_forms', 'perch_members', 'perch_shop', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /container/application/public/perch
PERCH_CORE: /container/application/public/perch/core
PERCH_RESFILEPATH: /container/application/public/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 100M, Max POST 100M, Memory: 128M, Total max file upload: 100M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /var/www/html/public
HTTP_HOST: website.website.co.nz
After reading the other forum posts, I manually added the bucket info to the buckets.php. I have set all the permissions for the main admin role. If I upload using the 'Assets' section under 'Organise' the image will upload to the bucket however, I cannot select/use that image when choosing it via the page region. I also cannot upload to the bucket via the page region - nothing happens and the js error appears in the Console. I've stripped back my region code and removed the width and size attributes as below. If I remove the bucket=, it will allow me to upload to only the default bucket via the page region, no other buckets appear. At present I have 5 buckets.
<img class="card-img-top" src="<perch:content id="card_image" type="image" label="Card Image" bucket="About" />" alt="<perch:content id="card_title" type="text" label="Card Title" required title>" class="img-fluid">
Under settings, I have 'Enforce bucket restrictions on content' switched to on.
Let me know if there's anything else you need. This is a dev site at present so can give you log in details if you need them for testing.
If you switch off Enforce bucket restrictions, what happens?