Forum

Thread tagged as: Question, Problem

Image Assets vanishing when moved between buckets.

I am using perch 2.6.2 and have added asset buckets by assigning folders within the resources folder.

The documentation said perch would simply recognize these folders as buckets on its own, but it did not.

So, I added the buckets via a buckets.php which looks like this:

`<?php

return array(
    'AboutPage' => array(
        'web_path'  => '/rootcellar/resources/aboutpage',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/aboutpage'
    ),
    'BlogPreview' => array(
        'web_path'  => '/rootcellar/resources/blogpreview',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/blogpreview'
    ),
    'BlogFull' => array(
        'web_path'  => '/rootcellar/resources/blogfull',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/blogfull'
    ),
    'Deodorant' => array(
        'web_path'  => '/rootcellar/resources/deodorant',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/deodorant'
    ),
    'EmilyPortrait' => array(
        'web_path'  => '/rootcellar/resources/emilyportrait',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/emilyportrait'
    ),
    'GiftSet' => array(
        'web_path'  => '/rootcellar/resources/giftset',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/giftset'
    ),
    'Laundry' => array(
        'web_path'  => '/rootcellar/resources/laundry',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/laundry'
    ),
    'LipBalm' => array(
        'web_path'  => '/rootcellar/resources/lipbalm',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/lipbalm'
    ),
    'Lotion' => array(
        'web_path'  => '/rootcellar/resources/lotion',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/lotion'
    ),
    'Misc.' => array(
        'web_path'  => '/rootcellar/resources/miscellaneous',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/miscellaneous'
    ),

    'Shampoo' => array(
        'web_path'  => '/rootcellar/resources/shampoo',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/shampoo'
    ),
    'SlideShow' => array(
        'web_path'  => '/rootcellar/resources/slideshow',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/slideshow'
    ),
    'Soap' => array(
        'web_path'  => '/rootcellar/resources/soap',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/soap'
    ),
    'Sundries' => array(
        'web_path'  => '/rootcellar/resources/sundries',
        'file_path' => '/home1/gralpher/public_html/rootcellar/resources/sundries'
    )
                );

?>`

The buckets appear correctly in perch, and files are uploaded to the correct folders (they are shown within the buckets in perch, and shown within the correct folders when viewed via FTP).

However, when I attempt to move an individual asset to a different bucket, from within perch's assets core app, it vanishes from view in the Assets core app, and does not show up in the new folder (I've looked via FTP).

All the folders have permissions of 755, as my host will not allow 777.

I cannot figure out what is causing this, and it is preventing me from uploading multiple images at once, and then assigning them to different buckets later.

I'm within 2 days of launching the site, and this isn't an issue my client is comfortable with. Any Ideas?

(P.S. I'm also having issues with thumbnails vanishing on items that are marked as library assets when they are not in use, but I think you are currently resolving that issue in another thread/ with an upcoming release)

Michael Griffin

Michael Griffin 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostics Report please?

You sure can.

Perch: 2.6.2
Production mode: Production (100)
Installed apps: content (2.6.2), assets (2.6.2), categories (2.6.2), perch_forms (1.7), perch_shop_paypal (1.2.1)
DB driver: PDO
DB tables: perch2_categories, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 3
App runtimes:
<?php $apps_list = array( 'content', 'categories', 'perch_shop_paypal', 'perch_forms', ); Editor plug-ins: markitup
H1: 3f641bedf3ac0f460d96dd8e1c3f0085
L1: c0872d63d6730ba9113d50091942ca03
headerColour: #2D5961
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.6.2: done
latest_version: 2.5.3
on_sale_version: 2.6.3
headerScheme: dark
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /rootcellar/resources/eh-main-logo-235-sq.png
perch_shop_paypal_email: emilyseaver6@gmail.com
perch_shop_product_url: product.php?s={productSlug}
perch_shop_display_oos: 0
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: gralpher_emily
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: gralpher_homestead
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/Chicago
PERCH_EMAIL_FROM: perchalerts@emilyshomestead.com
PERCH_EMAIL_FROM_NAME: Emily Griffin
PERCH_LOGINPATH: /rootcellar
PERCH_PATH: /home1/gralpher/public_html/rootcellar
PERCH_CORE: /home1/gralpher/public_html/rootcellar/core
PERCH_RESFILEPATH: /home1/gralpher/public_html/rootcellar/resources
PERCH_RESPATH: /rootcellar/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home1/gralpher/public_html/rootcellar/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:

HOSTING SETTINGS

PHP: 5.4.29
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.39-36.0
MySQL server: 5.5.39-36.0
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, mcrypt, mssql, mysql, mysqli, odbc, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, imagick, SourceGuardian, mhash, ionCube Loader, Zend Guard Loader GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 256M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
DOCUMENT_ROOT: /home1/gralpher/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: close
HTTP_COOKIE: cmsa=1; PHPSESSID=31c1cb169a314900e5042905940e40f8; __utma=61194808.323435877.1402260127.1407440493.1408575993.5; __utmz=61194808.1407440493.4.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.323435877.1402260127 HTTP_HOST: www.emilyshomestead.com
HTTP_REFERER: https://www.emilyshomestead.com/rootcellar/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2
HTTP_X_HTTP_PROTO: HTTP/1.1
HTTP_X_REAL_IP: 74.240.213.50
PATH: /bin:/usr/bin
PHPRC: /opt/phpcur/lib
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 74.240.213.50
REMOTE_PORT: 33536
REQUEST_METHOD: GET
REQUEST_URI: /rootcellar/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home1/gralpher/public_html/rootcellar/core/settings/diagnostics/index.php
SCRIPT_NAME: /rootcellar/core/settings/diagnostics/index.php
SERVER_ADDR: 50.87.146.63
SERVER_ADMIN: webmaster@emilyshomestead.com
SERVER_NAME: www.emilyshomestead.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: <address>Apache Server at www.emilyshomestead.com Port 80</address>
SERVER_SOFTWARE: Apache
UNIQUE_ID: VArvLDJXkBAAAA4yHSkAAAD2
PHP_SELF: /rootcellar/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1410002732.28
REQUEST_TIME: 1410002732
argc: 1

Drew McLellan

Drew McLellan 2638 points
Perch Support

What are the steps you are following to move the asset?

I click on the asset in the Assets core app when logged into perch, and in the drop down menu titled: "Save in bucket:" I select a different bucket.

Where I change the bucket

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think that's a failing of the UI. I can see how it's misleading. It applies to the upload of a new file - it doesn't move the existing file.

We'll get it fixed.

I'm experiencing the same thing with Perch 2.5.4. Additionally, I'm seeing multiple versions of the same buckets showing up in the "Save in bucket" selector.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you are running 2.5.4 then you need to update. Assets was new in 2.5 and so there have been loads of fixes since then.

Before reporting an issue be sure that you are running the currently available version of Perch and that the problem still exists there - then raise your own thread to report the problem.