Exception on /dashboard/files/search after enabling s3 storage add-on

Permalink Browser Info Environment
After installing the addon, I get an exception that prevents me from loading the "Files" section in the admin area.

My thought is maybe this is caused by this line in the composer.json:
7 "replace": {
8 "league/flysystem": "1.0.*"
9 },

Which causes the flysystem package to be removed, I think. If I don't need the fysystem package to run c5, I'm happy to remove it. I do have old files uploaded from before the s3_storage addon was installed, but I can't see a way to remove a storage location or to convert the files to use s3 instead.

Here's the exception:

Error thrown with message "Class 'League\Flysystem\Adapter\Local' not found"
Stacktrace:
#40 Error in /app/public/concrete/src/File/StorageLocation/Configuration/LocalConfiguration.php:91
#39 Concrete\Core\File\StorageLocation\Configuration\LocalConfiguration:getAdapter in /app/public/concrete/src/Entity/File/StorageLocation/StorageLocation.php:132
#38 Concrete\Core\Entity\File\StorageLocation\StorageLocation:getFileSystemObject in /app/public/application/config/doctrine/proxies/__CG__ConcreteCoreEntityFileStorageLocationStorageLocation.php:283
#37 DoctrineProxies\__CG__\Concrete\Core\Entity\File\StorageLocation\StorageLocation:getFileSystemObject in /app/public/concrete/src/File/Image/Thumbnail/Type/Version.php:183
#36 Concrete\Core\File\Image\Thumbnail\Type\Version:getFilePath in /app/public/concrete/src/File/Image/Thumbnail/Path/Resolver.php:158
#35 Concrete\Core\File\Image\Thumbnail\Path\Resolver:determinePath in /app/public/concrete/src/File/Image/Thumbnail/Path/Resolver.php:63
#34 Concrete\Core\File\Image\Thumbnail\Path\Resolver:getPath in /app/public/concrete/src/Entity/File/Version.php:1161
#33 Concrete\Core\Entity\File\Version:getThumbnailURL in /app/public/concrete/src/Entity/File/Version.php:1398
#32 Concrete\Core\Entity\File\Version:getListingThumbnailImage in /app/public/concrete/src/Entity/File/Version.php:1330
#31 Concrete\Core\Entity\File\Version:getJSONObject in /app/public/concrete/src/Entity/File/File.php:108
#30 call_user_func_array in /app/public/concrete/src/Entity/File/File.php:108
#29 Concrete\Core\Entity\File\File:__call in /app/public/concrete/src/Tree/Node/Type/File.php:98
#28 Concrete\Core\Tree\Node\Type\File:getTreeNodeJSON in /app/public/concrete/src/File/Search/Result/Item.php:21

Type: Pre-Sale
Status: Resolved
obfoo
View Replies:
Mnkras replied on at Permalink Reply
Mnkras
I can't seem to replicate this on the 8.2.0RC2 with my dev code (which had updated dependencies).

I just posted it with a requirement on 8.2 as I haven't tested it on anything less than that yet.
obfoo replied on at Permalink Reply
obfoo
I was able to fix this by removing the 'replace' lines mentioned above from your package's composer.json and running `composer update`.

My guess is that this happens when these things are true:
1) s3_storage addon is installed on a c5 install that has uploads already added with the native filesystem storage provider (that comes with c5)
2) s3_storage addon and c5 itself are installed using composer

Once I removed the 'replace' lines from the s3_storage addon, the flysystem package was re-installed alongside the the flysystem s3 provider and your s3_storage package. It *seems* like all three packages can function together on the same install, so far, but maybe you know of issues? Why did you choose to add the replace to your composer.json? Are there compatibility issues that you know of?
Mnkras replied on at Permalink Reply
Mnkras
Hmm, ill do some testing to see if I can figure out what the best way to deal with this is.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.0RC2
Version Installed - 8.2.0RC2
Database Version - 20170626000000

# concrete5 Packages
S3 Storage (3.0.1)

# concrete5 Overrides
blocks/content/view.php, blocks/content, blocks/express_form/templates/email_sign_up/view.php, blocks/express_form/templates/email_sign_up, blocks/express_form/templates, blocks/express_form, blocks/core_area_layout/templates/call_out_with_gradient/view.php, blocks/core_area_layout/templates/call_out_with_gradient, blocks/core_area_layout/templates/call_out/view.php, blocks/core_area_layout/templates/call_out, blocks/core_area_layout/templates, blocks/core_area_layout, blocks/steps/db.xml, blocks/steps/view.php, blocks/steps/edit.php, blocks/steps/controller.php, blocks/steps/add.php, blocks/steps/LICENSE.TXT, blocks/steps/composer.php, blocks/steps/form_setup_html.php, blocks/steps/icon.png, blocks/steps/view.css, blocks/steps, blocks/hero/db.xml, blocks/hero/view.php, blocks/hero/edit.php, blocks/hero/controller.php, blocks/hero/add.php, blocks/hero/form.php, blocks/hero/tools/crop_image.php, blocks/hero/tools/composer_save.php, blocks/hero/tools, blocks/hero/composer.php, blocks/hero/icon.png, blocks/hero, blocks/image/templates/main_logo/view.php, blocks/image/templates/main_logo, blocks/image/templates/footer_logo/view.php, blocks/image/templates/footer_logo, blocks/image/templates, blocks/image, blocks/autonav/templates/main_navigation/view.php, blocks/autonav/templates/main_navigation, blocks/autonav/templates, blocks/autonav, themes/ofoo/page.php, themes/ofoo/description.txt, themes/ofoo/page_not_found.php, themes/ofoo/page_theme.php, themes/ofoo/assets/images/logo-ofoo-horizontal.svg, themes/ofoo/assets/images/stacker-thumb.png, themes/ofoo/assets/images/brocolli-large.png, themes/ofoo/assets/images/icon-creditcards-@2x.png, themes/ofoo/assets/images/brocolli-thumb.png, themes/ofoo/assets/images/photo-sample-kids-laughing-large.jpg, themes/ofoo/assets/images/icon-flound-main.svg, themes/ofoo/assets/images/logo-ofoo-stacked.svg, themes/ofoo/assets/images/crackers-thumb.png, themes/ofoo/assets/images/avatar-master.psd, themes/ofoo/assets/images/dip-large.png, themes/ofoo/assets/images/avatar-five-@2x.png, themes/ofoo/assets/images/roll-large.png, themes/ofoo/assets/images/cookie-large.png, themes/ofoo/assets/images/trailmix-large.png, themes/ofoo/assets/images/popcorn-thumb.png, themes/ofoo/assets/images/roll-thumb.png, themes/ofoo/assets/images/pod-sample-side.png, themes/ofoo/assets/images/trailmix-thumb.png, themes/ofoo/assets/images/photo-sample-football-kid.jpg, themes/ofoo/assets/images/hummus-thumb.png, themes/ofoo/assets/images/trailmix-large.png, themes/ofoo/assets/images/avatar-six-@2x.png, themes/ofoo/assets/images/pod-sample-main.png, themes/ofoo/assets/images/avatar-eight-@2x.png, themes/ofoo/assets/images/funny-faces.jpg, themes/ofoo/assets/images/gif-sample-ofoos.gif, themes/ofoo/assets/images/popcorn-large.png, themes/ofoo/assets/images/lunch-item-shadow.png, themes/ofoo/assets/images/hero-sample-kids-laughing.jpg, themes/ofoo/assets/images/bg-gradient-default.png, themes/ofoo/assets/images/pod-sample-sweet.png, themes/ofoo/assets/images/icon-flound-side.svg, themes/ofoo/assets/images/avatar-two-@2x.png, themes/ofoo/assets/images/photo-sample-kid-eating-breakfast.jpg, themes/ofoo/assets/images/popcorn-thumb.png, themes/ofoo/assets/images/hummus-large.png, themes/ofoo/assets/images/avatar-seven-@2x.png, themes/ofoo/assets/images/hero-sample-kids-funny-faces.jpg, themes/ofoo/assets/images/stacker-large.png, themes/ofoo/assets/images/avatar-four-@2x.png, themes/ofoo/assets/images/logo-obvious-foods.svg, themes/ofoo/assets/images/cookie-thumb.png, themes/ofoo/assets/images/icon-flound-sweet.svg, themes/ofoo/assets/images/photo-sample-kids-on-fence.jpg, themes/ofoo/assets/images/avatar-one-@2x.png, themes/ofoo/assets/images/popcorn-large.png, themes/ofoo/assets/images/avatar-three-@2x.png, themes/ofoo/assets/images/trailmix-thumb.png, themes/ofoo/assets/images/dip-thumb.png, themes/ofoo/assets/images/crackers-large.png, themes/ofoo/assets/images/bg-hero-radial-cover.png, themes/ofoo/assets/images, themes/ofoo/assets/css/off-canvas/_starter.scss, themes/ofoo/assets/css/off-canvas/_mixins.scss, themes/ofoo/assets/css/off-canvas/_variables.scss, themes/ofoo/assets/css/off-canvas/_toggle-button.scss, themes/ofoo/assets/css/off-canvas/_skeleton.scss, themes/ofoo/assets/css/off-canvas/_ios-workaround.scss, themes/ofoo/assets/css/off-canvas/_header-fixed.scss, themes/ofoo/assets/css/off-canvas/_layout.scss, themes/ofoo/assets/css/off-canvas, themes/ofoo/assets/css/main.css, themes/ofoo/assets/css/_mixins.scss, themes/ofoo/assets/css/font-awesome/_mixins.scss, themes/ofoo/assets/css/font-awesome/_animated.scss, themes/ofoo/assets/css/font-awesome/font-awesome.scss, themes/ofoo/assets/css/font-awesome/_bordered-pulled.scss, themes/ofoo/assets/css/font-awesome/_stacked.scss, themes/ofoo/assets/css/font-awesome/_path.scss, themes/ofoo/assets/css/font-awesome/_list.scss, themes/ofoo/assets/css/font-awesome/_core.scss, themes/ofoo/assets/css/font-awesome/_variables.scss, themes/ofoo/assets/css/font-awesome/_screen-reader.scss, themes/ofoo/assets/css/font-awesome/_larger.scss, themes/ofoo/assets/css/font-awesome/_fixed-width.scss, themes/ofoo/assets/css/font-awesome/_rotated-flipped.scss, themes/ofoo/assets/css/font-awesome/_icons.scss, themes/ofoo/assets/css/font-awesome, themes/ofoo/assets/css/yarn.lock, themes/ofoo/assets/css/owl-carousel/owl.carousel.css, themes/ofoo/assets/css/owl-carousel, themes/ofoo/assets/css/_variables.scss, themes/ofoo/assets/css/foodpod/_components.scss, themes/ofoo/assets/css/foodpod/_base.scss, themes/ofoo/assets/css/foodpod/_text.scss, themes/ofoo/assets/css/foodpod/_helpers.scss, themes/ofoo/assets/css/foodpod/_focus.scss, themes/ofoo/assets/css/foodpod/_hover-focus.scss, themes/ofoo/assets/css/foodpod/components/_selectpicker.scss, themes/ofoo/assets/css/foodpod/components/_steps.scss, themes/ofoo/assets/css/foodpod/components/_social-links.scss, themes/ofoo/assets/css/foodpod/components/_info-panel.scss, themes/ofoo/assets/css/foodpod/components/_grid.scss, themes/ofoo/assets/css/foodpod/components/_-items.scss, themes/ofoo/assets/css/foodpod/components/_lists.scss, themes/ofoo/assets/css/foodpod/components/_modals.scss, themes/ofoo/assets/css/foodpod/components/_progress-bars.scss, themes/ofoo/assets/css/foodpod/components/_meal-box.scss, themes/ofoo/assets/css/foodpod/components/_nutrition-facts.scss, themes/ofoo/assets/css/foodpod/components/_badges.scss, themes/ofoo/assets/css/foodpod/components/_heroes.scss, themes/ofoo/assets/css/foodpod/components/_buttons.scss, themes/ofoo/assets/css/foodpod/components/_wysiwygs.scss, themes/ofoo/assets/css/foodpod/components/_articles.scss, themes/ofoo/assets/css/foodpod/components/_callouts.scss, themes/ofoo/assets/css/foodpod/components/_wells.scss, themes/ofoo/assets/css/foodpod/components/_select2.scss, themes/ofoo/assets/css/foodpod/components/_dropdowns.scss, themes/ofoo/assets/css/foodpod/components/_avatars.scss, themes/ofoo/assets/css/foodpod/components/_alerts.scss, themes/ofoo/assets/css/foodpod/components/_forms.scss, themes/ofoo/assets/css/foodpod/components, themes/ofoo/assets/css/foodpod/_layout.scss, themes/ofoo/assets/css/foodpod, themes/ofoo/assets/css/main.scss, themes/ofoo/assets/css/bootstrap-select/bootstrap-select.scss, themes/ofoo/assets/css/bootstrap-select/variables.scss, themes/ofoo/assets/css/bootstrap-select, themes/ofoo/assets/css/select2/select2.min.css, themes/ofoo/assets/css/select2, themes/ofoo/assets/css/main.css.map, themes/ofoo/assets/css/bootstrap/_panels.scss, themes/ofoo/assets/css/bootstrap/_pager.scss, themes/ofoo/assets/css/bootstrap/_breadcrumbs.scss, themes/ofoo/assets/css/bootstrap/_responsive-embed.scss, themes/ofoo/assets/css/bootstrap/_grid.scss, themes/ofoo/assets/css/bootstrap/_utilities.scss, themes/ofoo/assets/css/bootstrap/_component-animations.scss, themes/ofoo/assets/css/bootstrap/_modals.scss, themes/ofoo/assets/css/bootstrap/_carousel.scss, themes/ofoo/assets/css/bootstrap/_navbar.scss, themes/ofoo/assets/css/bootstrap/_glyphicons.scss, themes/ofoo/assets/css/bootstrap/_mixins.scss, themes/ofoo/assets/css/bootstrap/_progress-bars.scss, themes/ofoo/assets/css/bootstrap/_scaffolding.scss, themes/ofoo/assets/css/bootstrap/_thumbnails.scss, themes/ofoo/assets/css/bootstrap/_button-groups.scss, themes/ofoo/assets/css/bootstrap/_badges.scss, themes/ofoo/assets/css/bootstrap/_buttons.scss, themes/ofoo/assets/css/bootstrap/_close.scss, themes/ofoo/assets/css/bootstrap/_print.scss, themes/ofoo/assets/css/bootstrap/_variables.scss, themes/ofoo/assets/css/bootstrap/_tables.scss, themes/ofoo/assets/css/bootstrap/_pagination.scss, themes/ofoo/assets/css/bootstrap/_type.scss, themes/ofoo/assets/css/bootstrap/_tooltip.scss, themes/ofoo/assets/css/bootstrap/_list-group.scss, themes/ofoo/assets/css/bootstrap/_media.scss, themes/ofoo/assets/css/bootstrap/_navs.scss, themes/ofoo/assets/css/bootstrap/_theme.scss, themes/ofoo/assets/css/bootstrap/_jumbotron.scss, themes/ofoo/assets/css/bootstrap/mixins/_panels.scss, themes/ofoo/assets/css/bootstrap/mixins/_grid.scss, themes/ofoo/assets/css/bootstrap/mixins/_border-radius.scss, themes/ofoo/assets/css/bootstrap/mixins/_background-variant.scss, themes/ofoo/assets/css/bootstrap/mixins/_resize.scss, themes/ofoo/assets/css/bootstrap/mixins/_table-row.scss, themes/ofoo/assets/css/bootstrap/mixins/_gradients.scss, themes/ofoo/assets/css/bootstrap/mixins/_size.scss, themes/ofoo/assets/css/bootstrap/mixins/_image.scss, themes/ofoo/assets/css/bootstrap/mixins/_nav-divider.scss, themes/ofoo/assets/css/bootstrap/mixins/_clearfix.scss, themes/ofoo/assets/css/bootstrap/mixins/_text-overflow.scss, themes/ofoo/assets/css/bootstrap/mixins/_opacity.scss, themes/ofoo/assets/css/bootstrap/mixins/_buttons.scss, themes/ofoo/assets/css/bootstrap/mixins/_vendor-prefixes.scss, themes/ofoo/assets/css/bootstrap/mixins/_pagination.scss, themes/ofoo/assets/css/bootstrap/mixins/_text-emphasis.scss, themes/ofoo/assets/css/bootstrap/mixins/_center-block.scss, themes/ofoo/assets/css/bootstrap/mixins/_list-group.scss, themes/ofoo/assets/css/bootstrap/mixins/_responsive-visibility.scss, themes/ofoo/assets/css/bootstrap/mixins/_progress-bar.scss, themes/ofoo/assets/css/bootstrap/mixins/_nav-vertical-align.scss, themes/ofoo/assets/css/bootstrap/mixins/_hide-text.scss, themes/ofoo/assets/css/bootstrap/mixins/_reset-filter.scss, themes/ofoo/assets/css/bootstrap/mixins/_tab-focus.scss, themes/ofoo/assets/css/bootstrap/mixins/_labels.scss, themes/ofoo/assets/css/bootstrap/mixins/_alerts.scss, themes/ofoo/assets/css/bootstrap/mixins/_forms.scss, themes/ofoo/assets/css/bootstrap/mixins/_grid-framework.scss, themes/ofoo/assets/css/bootstrap/mixins/_reset-text.scss, themes/ofoo/assets/css/bootstrap/mixins, themes/ofoo/assets/css/bootstrap/_input-groups.scss, themes/ofoo/assets/css/bootstrap/_wells.scss, themes/ofoo/assets/css/bootstrap/_code.scss, themes/ofoo/assets/css/bootstrap/_normalize.scss, themes/ofoo/assets/css/bootstrap/_dropdowns.scss, themes/ofoo/assets/css/bootstrap/_labels.scss, themes/ofoo/assets/css/bootstrap/_alerts.scss, themes/ofoo/assets/css/bootstrap/_forms.scss, themes/ofoo/assets/css/bootstrap/_responsive-utilities.scss, themes/ofoo/assets/css/bootstrap/_popovers.scss, themes/ofoo/assets/css/bootstrap, themes/ofoo/assets/css, themes/ofoo/assets/fonts/font-awesome/FontAwesome.otf, themes/ofoo/assets/fonts/font-awesome/fontawesome-webfont.eot, themes/ofoo/assets/fonts/font-awesome/fontawesome-webfont.ttf, themes/ofoo/assets/fonts/font-awesome/fontawesome-webfont.svg, themes/ofoo/assets/fonts/font-awesome/fontawesome-webfont.woff2, themes/ofoo/assets/fonts/font-awesome/fontawesome-webfont.woff, themes/ofoo/assets/fonts/font-awesome, themes/ofoo/assets/fonts, themes/ofoo/assets/js/off-canvas/off-canvas.min.js, themes/ofoo/assets/js/off-canvas/off-canvas.js, themes/ofoo/assets/js/off-canvas, themes/ofoo/assets/js/service-worker.js, themes/ofoo/assets/js/sw/sw-toolbox.js, themes/ofoo/assets/js/sw, themes/ofoo/assets/js/main.babel, themes/ofoo/assets/js/main.min.js, themes/ofoo/assets/js/bootstrap-select/bootstrap-select.js, themes/ofoo/assets/js/bootstrap-select, themes/ofoo/assets/js/bootstrap/popover.js, themes/ofoo/assets/js/bootstrap/scrollspy.js, themes/ofoo/assets/js/bootstrap/button.js, themes/ofoo/assets/js/bootstrap/modal.js, themes/ofoo/assets/js/bootstrap/dropdown.js, themes/ofoo/assets/js/bootstrap/tab.js, themes/ofoo/assets/js/bootstrap/transition.js, themes/ofoo/assets/js/bootstrap/carousel.js, themes/ofoo/assets/js/bootstrap/alert.js, themes/ofoo/assets/js/bootstrap/collapse.js, themes/ofoo/assets/js/bootstrap/affix.js, themes/ofoo/assets/js/bootstrap/tooltip.js, themes/ofoo/assets/js/bootstrap, themes/ofoo/assets/js/main.min.js.map, themes/ofoo/assets/js, themes/ofoo/assets, themes/ofoo/elements/alert.php, themes/ofoo/elements/header.php, themes/ofoo/elements/head.php, themes/ofoo/elements/footer.php, themes/ofoo/elements/foot.php, themes/ofoo/elements, themes/ofoo

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.1.3

# PHP Extensions
bz2, cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, gd, hash, iconv, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, readline, redis, Reflection, session, SimpleXML, sockets, SPL, standard, tokenizer, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.