Forum

Thread tagged as: Problem, Error

Asset filters not working when using "Select or upload an image"

Whenever you click "Select or upload an image" in a template it brings up the Select an Asset flyout window as usual. If you start trying to filter images or files it stops working and just shows the spinner indefinitely. Occasionally it will work when clicking different filters but most of the time it just shows the spinner. After trying to click on other things a few times the filter bar eventually bugs out and disappears completely leaving nothing but the spinner.

Note that this is only when using the select or upload an image button in a template, filtering in the assets app seems to be working just fine.

I made this short youtube clip that shows the issue: Video Example

Note: I have adblock running in the video above. I tested with it disabled and still had the issue. Just adding this in case it was relevant.

Diagnostic:

Perch: 2.8.24
Production mode: Production (100)
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24), perch_forms (1.8.3)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (347), perch2_content_items (114), perch2_content_regions (39), perch2_forms (1), perch2_forms_responses (1), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (33), perch2_resource_log (10), perch2_resource_tags (0), perch2_resources (8), perch2_resources_to_tags (0), perch2_settings (17), perch2_user_passwords (0), perch2_user_privileges (30), perch2_user_role_privileges (17), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_forms',
    );
Editor plug-ins: markitup
H1: 90b388d2f6990cc025cd3be571224f57
L1: 50b72124586549b6b9cfa5ba902d23a0
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.10: done
latest_version: 2.8.15
on_sale_version: 2.8.24
headerScheme: light
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /admin/resources/logo.png
update_2.8.24: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: 970180_mkgas
PERCH_DB_SERVER: mysql51-061.wc1.ord1.stabletransit.com
PERCH_DB_DATABASE: 970180_mkgas
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/Chicago
PERCH_EMAIL_FROM: robert@relative-marketing.com
PERCH_EMAIL_FROM_NAME: Robert Hughes
PERCH_LOGINPATH: /admin
PERCH_PATH: /mnt/Target01/341004/970180/www.mkgas.com/web/content/admin
PERCH_CORE: /mnt/Target01/341004/970180/www.mkgas.com/web/content/admin/core
PERCH_RESFILEPATH: /mnt/Target01/341004/970180/www.mkgas.com/web/content/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /mnt/Target01/341004/970180/www.mkgas.com/web/content/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.4.10
Zend: 2.4.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.0.77
MySQL server: 5.1.61-log
Free disk space: 220.70 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, apache2handler, bcmath, curl, dba, dom, fileinfo, gd, imagick, imap, intl, json, ldap, pdf, exif, mcrypt, memcache, mongo, mssql, mysql, mysqli, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, recode, redis, snmp, soap, sysvmsg, sysvsem, sysvshm, tidy, uploadprogress, wddx, xmlreader, xmlrpc, xmlwriter, xsl, yaz, zip, mhash, ionCube Loader, XCache
GD: Yes
ImageMagick: Yes
PHP max upload size: 8M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
UNIQUE_ID: VqlJmgq7@YIAAHO1bHwAAAAz
SCRIPT_URL: /admin/core/settings/diagnostics/
SCRIPT_URI: https://mkgas.com/admin/core/settings/diagnostics/
PHP_DOCUMENT_ROOT: /mnt/Target01/341004/970180/www.mkgas.com/web/content
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
HTTP_X_FORWARDED_FOR: 74.195.121.85
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_HOST: mkgas.com
HTTP_REFERER: https://mkgas.com/admin/core/settings/diagnostics/
HTTP_X_MOSSO_DT: PHP54-4
HTTP_X_CLUSTER_CLIENT_IP: 74.195.121.85
HTTP_COOKIE: X-Mapping-pbdmcoom=E08CBF68014D0875407C0503CFD6D801; cmssb=0; cmsa=1; PHPSESSID=42bv00njlbrbhsf1kmghcj4747
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE: <address>Apache/2.2 Server at mkgas.com Port 80</address>
SERVER_SOFTWARE: Apache/2.2
SERVER_NAME: mkgas.com
SERVER_ADDR: 10.187.249.130
SERVER_PORT: 80
SERVER_ADMIN: root@localhost
SCRIPT_FILENAME: /mnt/Target01/341004/970180/www.mkgas.com/web/content/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 12200
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
DOCUMENT_ROOT: /mnt/Target01/341004/970180/www.mkgas.com/web/content
REMOTE_ADDR: 74.195.121.85
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1453935002.012
REQUEST_TIME: 1453935002
argc: 1

Template being used on this page:

<img src="<perch:content type="image" id="image" label="Banner Image" help="Images need to be 490px x 150px" required="true"/>" alt="<perch:content type="text" id="imgcaption" label="Image Description" required="true"/>" />
<h2><perch:content type="text" id="title" label="Section Title" order="1" required="true"/></h2>
<perch:content id="body" type="textarea" label="Section Text" textile="true" editor="markitup" />
<p>
    <a href="<perch:content type="text" id="link" label="Page link for this section"/>">Learn More</a>
</p>
Cody Sherrod

Cody Sherrod 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get any errors in your browser console?

No errors popping up but this is happening when asset-filter.php and get-assets.php are being called.

Drew McLellan

Drew McLellan 2638 points
Perch Support

And you're using Windows, is that right?

Yes. I also just tested in firefox and was getting the same issue.

Just tested on mac using chrome and having same issue.

Drew McLellan

Drew McLellan 2638 points
Perch Support

How many assets do you have in the system, approximately?

Currently only 4.

Edit: Just wanted to add that I checked around on some of our other sites and the same thing is happening on some but on others it is working fine. I dunno, this is weird.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Very odd. Is it all the same server, or different servers?

It is all on rackspace cloud hosting. I thought that might be the issue as well but some of our rackspace sites aren't having any issues at all. I just did a test and did a fresh install of perch and I am getting the same issue. I can make you a login so that you can see if you want. It is just a test not a client site or anything.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are the buckets all cloud files buckets?

Not sure im following. What do you mean cloud files buckets?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Sorry, I see you're using Perch, so the answer would be no.