Document Library - Handle missing folder

Permalink 0 0 Browser Info Environment
Currently, if the folder a document library block is configured with goes missing the page breaks with an error saying the folder ID cannot be found.
My users manages to do this from time to time by reorganizing files and folders and the only way I have found to fix this is by manually delete the block from the database.

I suggest some sort of error handling is added to the block to just display an error on the page instead.


Status: New

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.0
Version Installed - 8.4.0
Database Version - 20180524000000

# concrete5 Packages
ExchangeCore LDAP Authentication (1.2.3), Multiple files attribute (1.0.6)

# concrete5 Overrides
blocks/autonav/templates/swedol_topparent.php, blocks/autonav/templates/swedol_page.php, blocks/autonav/templates/swedol_breadcrumb.php, blocks/autonav/templates, blocks/autonav, blocks/horizontal_rule/templates/gap.php, blocks/horizontal_rule/templates, blocks/horizontal_rule, blocks/coworker/icon.png, blocks/coworker/view.php, blocks/coworker/edit.php, blocks/coworker/form.php, blocks/coworker/db.xml, blocks/coworker/view.css, blocks/coworker/add.php, blocks/coworker/controller.php, blocks/coworker/templates/swedol.php, blocks/coworker/templates, blocks/coworker, blocks/topic_list/view.php, blocks/topic_list/templates/swedol.php, blocks/topic_list/templates, blocks/topic_list, blocks/document_library/view.css, blocks/document_library/controller.php, blocks/document_library/view.old, blocks/document_library/folder.svg, blocks/document_library/templates/micke.php, blocks/document_library/templates/view.css, blocks/document_library/templates/library.php, blocks/document_library/templates, blocks/document_library, blocks/page_attribute_display/templates/swedol_filelist.php, blocks/page_attribute_display/templates, blocks/page_attribute_display, blocks/feature/templates/swedol_puff/view.php, blocks/feature/templates/swedol_puff/view.js, blocks/feature/templates/swedol_puff/view.css, blocks/feature/templates/swedol_puff, blocks/feature/templates, blocks/feature, blocks/express_entry_detail/templates/swedol_links_stripped.php, blocks/express_entry_detail/templates/swedol_contact_details.php, blocks/express_entry_detail/templates/contact_info.php, blocks/express_entry_detail/templates/swedol_links.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/event_list/templates/startpage.php, blocks/event_list/templates/start2.php, blocks/event_list/templates, blocks/event_list, blocks/page_list/templates/koncernnyheter.php, blocks/page_list/templates/blocknyheter.php, blocks/page_list/templates/vd_informerar.php, blocks/page_list/templates/social.php, blocks/page_list/templates/medarbetarnyheter.php, blocks/page_list/templates/produktnyheter.php, blocks/page_list/templates/swedol.php, blocks/page_list/templates, blocks/page_list, blocks/file/view.php, blocks/file/templates/with_icon.php, blocks/file/templates/standard.php, blocks/file/templates, blocks/file, blocks/swedol_major_incidents/view.php, blocks/swedol_major_incidents/controller.php, blocks/swedol_major_incidents/templates/ticker_start.php, blocks/swedol_major_incidents/templates, blocks/swedol_major_incidents, blocks/swedol_page_files/view.php, blocks/swedol_page_files/edit.php, blocks/swedol_page_files/db.xml, blocks/swedol_page_files/add.php, blocks/swedol_page_files/controller.php, blocks/swedol_page_files/templates/table.php, blocks/swedol_page_files/templates/sidebar.php, blocks/swedol_page_files/templates, blocks/swedol_page_files, blocks/page_title/templates/startpage.php, blocks/page_title/templates, blocks/page_title, blocks/search/templates/swedol.php, blocks/search/templates, blocks/search, blocks/page_footer/view.php, blocks/page_footer/controller.php, blocks/page_footer, blocks/core_area_layout/templates/startpage-green/view.php, blocks/core_area_layout/templates/startpage-green, blocks/core_area_layout/templates/startpage-blue/view.php, blocks/core_area_layout/templates/startpage-blue, blocks/core_area_layout/templates/startpage-orange/view.php, blocks/core_area_layout/templates/startpage-orange, blocks/core_area_layout/templates, blocks/core_area_layout, blocks/date_navigation/view.php, blocks/date_navigation/templates/swedol.php, blocks/date_navigation/templates, blocks/date_navigation, blocks/image_slider/templates/startpage.php, blocks/image_slider/templates, blocks/image_slider, blocks/express_entry_list/templates/kontaktlista.php, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/swedol_parent_page/view.php, blocks/swedol_parent_page/controller.php, blocks/swedol_parent_page, blocks/swedol_page_author/view.php, blocks/swedol_page_author/controller.php, blocks/swedol_page_author/templates/news_footer.php, blocks/swedol_page_author/templates, blocks/swedol_page_author, themes/swedol/default.php, themes/swedol/images/background-slider-default.png, themes/swedol/images/background.png, themes/swedol/images/background-slider-night-road.png, themes/swedol/images/background-slider-royal.png, themes/swedol/images/background-slider-blue-sky.png, themes/swedol/images, themes/swedol/swedol_text.php, themes/swedol/view.php, themes/swedol/swedol_news.php, themes/swedol/full.php, themes/swedol/blank.php, themes/swedol/css/main.less, themes/swedol/css/styles.xml, themes/swedol/css/presets/blue-sky.less, themes/swedol/css/presets/defaults.less, themes/swedol/css/presets/swedol.less, themes/swedol/css/presets/night-road.less, themes/swedol/css/presets/royal.less, themes/swedol/css/presets, themes/swedol/css/bootstrap-modified.css, themes/swedol/css/build/body.less, themes/swedol/css/build/mixins.less, themes/swedol/css/build/mobile/navigation.less, themes/swedol/css/build/mobile, themes/swedol/css/build/miscellaneous-styles.less, themes/swedol/css/build/swedol.less.old, themes/swedol/css/build/errors.less, themes/swedol/css/build/buttons.less, themes/swedol/css/build/header.less, themes/swedol/css/build/bootstrap-3.2.0/carousel.less, themes/swedol/css/build/bootstrap-3.2.0/tooltip.less, themes/swedol/css/build/bootstrap-3.2.0/progress-bars.less, themes/swedol/css/build/bootstrap-3.2.0/responsive-utilities.less, themes/swedol/css/build/bootstrap-3.2.0/forms.less, themes/swedol/css/build/bootstrap-3.2.0/grid.less, themes/swedol/css/build/bootstrap-3.2.0/scaffolding.less, themes/swedol/css/build/bootstrap-3.2.0/utilities.less, themes/swedol/css/build/bootstrap-3.2.0/button-groups.less, themes/swedol/css/build/bootstrap-3.2.0/responsive-embed.less, themes/swedol/css/build/bootstrap-3.2.0/mixins.less, themes/swedol/css/build/bootstrap-3.2.0/popovers.less, themes/swedol/css/build/bootstrap-3.2.0/code.less, themes/swedol/css/build/bootstrap-3.2.0/panels.less, themes/swedol/css/build/bootstrap-3.2.0/pager.less, themes/swedol/css/build/bootstrap-3.2.0/variables.less, themes/swedol/css/build/bootstrap-3.2.0/labels.less, themes/swedol/css/build/bootstrap-3.2.0/component-animations.less, themes/swedol/css/build/bootstrap-3.2.0/input-groups.less, themes/swedol/css/build/bootstrap-3.2.0/buttons.less, themes/swedol/css/build/bootstrap-3.2.0/thumbnails.less, themes/swedol/css/build/bootstrap-3.2.0/list-group.less, themes/swedol/css/build/bootstrap-3.2.0/bootstrap.less, themes/swedol/css/build/bootstrap-3.2.0/glyphicons.less, themes/swedol/css/build/bootstrap-3.2.0/type.less, themes/swedol/css/build/bootstrap-3.2.0/badges.less, themes/swedol/css/build/bootstrap-3.2.0/alerts.less, themes/swedol/css/build/bootstrap-3.2.0/theme.less, themes/swedol/css/build/bootstrap-3.2.0/tables.less, themes/swedol/css/build/bootstrap-3.2.0/navs.less, themes/swedol/css/build/bootstrap-3.2.0/modals.less, themes/swedol/css/build/bootstrap-3.2.0/navbar.less, themes/swedol/css/build/bootstrap-3.2.0/media.less, themes/swedol/css/build/bootstrap-3.2.0/dropdowns.less, themes/swedol/css/build/bootstrap-3.2.0/pagination.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/resize.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/responsive-visibility.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/text-emphasis.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/nav-vertical-align.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/background-variant.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/text-overflow.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/image.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/forms.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/reset-filter.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/grid-framework.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/tab-focus.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/grid.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/panels.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/size.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/gradients.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/clearfix.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/labels.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/buttons.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/nav-divider.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/list-group.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/border-radius.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/alerts.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/table-row.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/opacity.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/pagination.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/progress-bar.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/vendor-prefixes.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/center-block.less, themes/swedol/css/build/bootstrap-3.2.0/mixins/hide-text.less, themes/swedol/css/build/bootstrap-3.2.0/mixins, themes/swedol/css/build/bootstrap-3.2.0/wells.less, themes/swedol/css/build/bootstrap-3.2.0/jumbotron.less, themes/swedol/css/build/bootstrap-3.2.0/normalize.less, themes/swedol/css/build/bootstrap-3.2.0/breadcrumbs.less, themes/swedol/css/build/bootstrap-3.2.0/close.less, themes/swedol/css/build/bootstrap-3.2.0/print.less, themes/swedol/css/build/bootstrap-3.2.0, themes/swedol/css/build/search.less, themes/swedol/css/build/fonts/blue-sky.less, themes/swedol/css/build/fonts/defaults.less, themes/swedol/css/build/fonts/swedol.less, themes/swedol/css/build/fonts/night-road.less, themes/swedol/css/build/fonts/royal.less, themes/swedol/css/build/fonts, themes/swedol/css/build/swedol.less, themes/swedol/css/build/footer.less, themes/swedol/css/build/reset.less, themes/swedol/css/build/content.less, themes/swedol/css/build/breadcrumb.less, themes/swedol/css/build/pagination.less, themes/swedol/css/build/custom-design-classes/block-sidebar-wrapped.less, themes/swedol/css/build/custom-design-classes/recent-blog-entry.less, themes/swedol/css/build/custom-design-classes/block-sidebar-padded.less, themes/swedol/css/build/custom-design-classes/area-content-accent.less, themes/swedol/css/build/custom-design-classes/testimonial-bio.less, themes/swedol/css/build/custom-design-classes/blog-entry-list.less, themes/swedol/css/build/custom-design-classes, themes/swedol/css/build/blocks/date-navigation.less, themes/swedol/css/build/blocks/page-attribute-display.less, themes/swedol/css/build/blocks/page-list.less, themes/swedol/css/build/blocks/image-slider.less, themes/swedol/css/build/blocks/page-list-template-thumbnail-grid.less, themes/swedol/css/build/blocks/image.less, themes/swedol/css/build/blocks/page-title-option-byline.less, themes/swedol/css/build/blocks/topic-list.less, themes/swedol/css/build/blocks/page-title.less, themes/swedol/css/build/blocks/image-slider.less.old, themes/swedol/css/build/blocks/feature-template-swedol-puff.less, themes/swedol/css/build/blocks/testimonial.less, themes/swedol/css/build/blocks/next-previous.less, themes/swedol/css/build/blocks/feature.less, themes/swedol/css/build/blocks/feature-template-hover-description.less, themes/swedol/css/build/blocks/tags.less, themes/swedol/css/build/blocks/page-list-option-buttons.less, themes/swedol/css/build/blocks/faq.less, themes/swedol/css/build/blocks, themes/swedol/css/build/captcha.less, themes/swedol/css/build/add-ons/calendar.less, themes/swedol/css/build/add-ons, themes/swedol/css/build, themes/swedol/css/bootstrap-modified.css.bak, themes/swedol/css, themes/swedol/swedol_full.php, themes/swedol/elements/footer.php, themes/swedol/elements/header_top.php, themes/swedol/elements/header.old, themes/swedol/elements/header.php, themes/swedol/elements/footer_bottom.php, themes/swedol/elements, themes/swedol/thumbnail.png, themes/swedol/page_theme.php, themes/swedol/page_forbidden.php, themes/swedol/left_sidebar.php, themes/swedol/right_sidebar.php, themes/swedol/startpage.php, themes/swedol/swedol_default.php, themes/swedol/swedol_landing.php, themes/swedol/page_not_found.php, themes/swedol

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.18 (Ubuntu)

# Server API
apache2handler

# PHP Version
7.0.32-0ubuntu0.16.04.1

# PHP Extensions
apache2handler, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36