Forum

Thread tagged as: Problem

Asset Folder

When I pull the asset menu to filer images it seems to be looping through the buckets I have. Here's a couple of screenshots that might show what's happening.

Sample 1

screenshot

Sample 2

screenshot

SUMMARY INFORMATION

Perch Runway: 2.8.21, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.21), assets (2.8.21), categories (2.8.21), collection_8 (2.8.21), collection_7 (2.8.21), collection_4 (2.8.21), perch_events (1.9.2), perch_kraken (1.0), collection_1 (2.8.21), collection_6 (2.8.21), collection_5 (2.8.21), perch_podcasts (1.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', 'perch_podcasts', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/scottgruber/git/ioes-site/perch
PERCH_CORE: /Users/scottgruber/git/ioes-site/perch/core
PERCH_RESFILEPATH: /Users/scottgruber/git/ioes-site/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 256M, Total max file upload: 32M
Resource folder writeable: Yes
HTTP_HOST: dev.environment.ucla.edu:8888
DOCUMENT_ROOT: /Users/scottgruber/git/ioes-site
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

And some debug info from within the assets panel

SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='99ab87af6d54f6c4d33a7c989720cad1' LIMIT 1
0.0167  0.0005  UPDATE perch2_users SET userHash='a80249abff045c30b22ff36a27281ad5' WHERE userID='1'
0.0169  0.0002  SELECT p.privKey FROM perch2_user_privileges p
0.0184  0.0015  SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
0.0273  0.0088  SELECT collectionID, collectionKey, collectionEditRoles FROM perch2_collections WHERE collectionInAppMenu=1 ORDER BY collectionOrder ASC
0.0339  0.0066  SELECT SQL_CALC_FOUND_ROWS DISTINCT r1.*, r2.resourceFile AS thumb, r2.resourceWidth AS thumbWidth, r2.resourceHeight AS thumbHeight, r2.resourceDensity AS thumbDensity FROM perch2_resources r1 LEFT OUTER JOIN perch2_resources r2 ON r2.resourceParentID=r1.resourceID AND r2.resourceKey='thumb' AND r2.resourceAWOL!=1 WHERE r1.resourceKey='orig' AND r1.resourceAWOL=0 ORDER BY r1.resourceUpdated DESC, r1.resourceID DESC LIMIT 0, 30
4.2056  4.1717  SELECT FOUND_ROWS() AS `count`
4.2098  0.0042  SELECT DISTINCT resourceType FROM perch2_resources WHERE resourceAWOL=0 AND resourceType !="" ORDER BY resourceType ASC
4.2201  0.0103  SELECT DISTINCT resourceBucket, resourceType FROM perch2_resources WHERE resourceAWOL=0 AND resourceType !="" ORDER BY resourceType ASC
Scott Gruber

Scott Gruber 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What does your bucket list look like?

Sorry not sure where you mean.

In config/buckets.php?

return [
        'backup' => [
                 'type'      => 'dropbox',
                 'web_path'  => '',
                 'file_path' => 'backups',
         ],
    ]

Or the folders created through bucket paths in various templates on file system which looks like:

resource folder

I'll check again in the morning and remove the im_temp* files and see if that has an effect.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, I can't reproduce that, but I'll keep an eye out for it.

Thanks for the fix in 2.8.23 for this issue. Works like a charm now.