Visible on Device not working (CMS v9.1.1 & PHP 7.4)

I have noticed that using the Design & Block Template, the Device Visibility - Visible on Device(s) is not working. I upgraded originally v7, then a couple years ago I upgraded to v8 and now v9. I thought maybe it was an upgrade issue, so I set up a completely new install to test it. It doesn’t work there either. If you select any of the options it does not save them.
It seems all the other Design & Block Template works.

@mdius What happens if you switch up the php version to version 8. To help with troubleshooting Are you able to copy your Environment Information to this post? You can find that info in your dashboard: example.com/dashboard/system/environment
What theme are you using?
Thank you,
Jess

On the complete new install test I set it up using Atomik.
But on the main site I am using a edited copy of Elemental. It worked on the main site before the v9 upgrade.
I will set up PHP8 and see if that helps. My goal would be getting it to work with PHP8 of course anyway.

Environment Information

# Concrete Version
Core Version - 9.1.1
Version Installed - 9.1.1
Database Version - 20220516191423

# Database Information
Version: 5.7.39
SQL Mode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Abandoned Cart (0.9.0), Advanced HTML Block (1.2.1), Advanced Image (2.0.0), Advanced Page Title (2.0.0), Anti-Spammer Master (2.0.3), Authorize.Net Payment Method (1.0.3), Community Store (2.4.7), Community Store Add-On (0.9.0), Community Store EasyPost Shipping  (2.2), Community Store Shipping for Hg Products (1.0.0), Concrete Custom Form Add-On (1.0.0), Image Optimizer (3.2.11), Mega Menu (2.0.0), Multiple Product Editing (2.4.0), Paypal Payment Method (1.2.2), Rescan All Files (0.1.5), Styled Maps (2.0.0), Tallacmans Copyright (1.5.0), Webli Image PopUp (3.0.0), Webli YouTube PopUp (2.9.0)

# Concrete Overrides
blocks/community_product_filter/css/ion.rangeSlider.min.css, blocks/community_product_filter/css, blocks/community_product_filter/view.css, blocks/community_product_filter/edit.php, blocks/community_product_filter/view.php, blocks/community_product_filter/controller.php, blocks/community_product_filter/js/ion.rangeSlider.min.js, blocks/community_product_filter/js, blocks/community_product_filter, blocks/community_product_list/view.css, blocks/community_product_list/view.php, blocks/community_product_list/controller.php, blocks/community_product_list, blocks/image_slider/view.css, blocks/image_slider/view.php, blocks/image_slider/controller.php, blocks/image_slider, blocks/page_list/view.css, blocks/page_list/templates/page_list_no_border/view.css, blocks/page_list/templates/page_list_no_border/view.php, blocks/page_list/templates/page_list_no_border, blocks/page_list/templates, blocks/page_list/view.php, blocks/page_list/page_list_form.php, blocks/page_list/controller.php, blocks/page_list/view_list.css, blocks/page_list/view_list.php, blocks/page_list, blocks/accordion/view.css, blocks/accordion/view.php, blocks/accordion, blocks/autonav/templates/responsive_header_navigation/view.php, blocks/autonav/templates/responsive_header_navigation, blocks/autonav/templates/custom_bread_crumb.php, blocks/autonav/templates/select_nav.php, blocks/autonav/templates/tallacman_elegant_sitemap/view.css, blocks/autonav/templates/tallacman_elegant_sitemap/view.php, blocks/autonav/templates/tallacman_elegant_sitemap, blocks/autonav/templates, blocks/autonav/view.php, blocks/autonav, blocks/community_utility_links/view.php, blocks/community_utility_links, blocks/community_product_filter.tar.bz2, blocks/search/view.css, blocks/search/templates/header_search/view.php, blocks/search/templates/header_search, blocks/search/templates, blocks/search/view.php, blocks/search/controller.php, blocks/search, blocks/form/form_setup_html.php, blocks/form/view.php, blocks/form/controller.php, blocks/form/mini_survey.php, blocks/form, blocks/community_product/view.css, blocks/community_product/view.js, blocks/community_product/view.php, blocks/community_product, blocks/share_this_page/view.php, blocks/share_this_page, blocks/social_links/view.php, blocks/social_links, controllers/single_page/dashboard/store/products.php, controllers/single_page/dashboard/store, controllers/single_page/dashboard/system/seo/bulk.php, controllers/single_page/dashboard/system/seo, controllers/single_page/dashboard/system, controllers/single_page/dashboard, controllers/single_page, elements/product_modal.php, elements/products/search.php, elements/products, elements/cart_list.php, elements/cart_modal.php, elements/checkout/shipping_methods.php, elements/checkout, authentication/community/2form.php, authentication/community/form.php, authentication/community, authentication/concrete/form.php, authentication/concrete, authentication/facebook/form.php, authentication/facebook, authentication/twitter/form.php, authentication/twitter, jobs/update_statistics.php, jobs/remove_more_versions.php, jobs/summarize_statistics.php, css/webfonts/fa-brands-400.ttf, css/webfonts/fa-regular-400.woff2, css/webfonts/fa-v4compatibility.woff2, css/webfonts/fa-solid-900.ttf, css/webfonts/fa-v4compatibility.ttf, css/webfonts/fa-brands-400.woff2, css/webfonts/fa-regular-400.ttf, css/webfonts/fa-solid-900.woff2, css/webfonts, css/features/imagery/frontend.css, css/features/imagery, css/features, css/fontawesome/all.css, css/fontawesome, css/magnific-popup/magnific-popup.css, css/magnific-popup, js/features/imagery/frontend.js, js/features/imagery, js/features, js/jquery.js, js/magnific-popup/jquery.magnific-popup.js, js/magnific-popup, single_pages/cart.php, single_pages/checkout.php, single_pages/register.php, single_pages/account/avatar.php, single_pages/account/edit_profile.php, single_pages/account/messages.php, single_pages/account, single_pages/dashboard/store/products.php, single_pages/dashboard/store/reports/products.php, single_pages/dashboard/store/reports, single_pages/dashboard/store/settings/shipping.php, single_pages/dashboard/store/settings, single_pages/dashboard/store, single_pages/dashboard/system/registration/password_requirements.php, single_pages/dashboard/system/registration, single_pages/dashboard/system/seo/bulk.php, single_pages/dashboard/system/seo, single_pages/dashboard/system, single_pages/dashboard, single_pages/checkout/complete.php, single_pages/checkout, single_pages/login.php, themes/elemental_custom/full_hg_quote_red.php, themes/elemental_custom/css/fonts/glyphiconshalflings-regular.otf, themes/elemental_custom/css/fonts/fontawesome-webfont.woff2, themes/elemental_custom/css/fonts/fontawesome-webfont.svg, themes/elemental_custom/css/fonts/fontawesome-webfont.ttf, themes/elemental_custom/css/fonts/fontawesome-webfont.eot, themes/elemental_custom/css/fonts/FontAwesome.otf, themes/elemental_custom/css/fonts/glyphiconshalflings-regular.ttf, themes/elemental_custom/css/fonts/glyphiconshalflings-regular.eot, themes/elemental_custom/css/fonts/glyphiconshalflings-regular.woff, themes/elemental_custom/css/fonts/glyphiconshalflings-regular.svg, themes/elemental_custom/css/fonts/fontawesome-webfont.woff, themes/elemental_custom/css/fonts, themes/elemental_custom/css/main-bottom-green.css, themes/elemental_custom/css/main-bottom.css, themes/elemental_custom/css/main-top.css, themes/elemental_custom/css/images/arrow_up.png, themes/elemental_custom/css/images/popup-back.gif, themes/elemental_custom/css/images/arrow.png, themes/elemental_custom/css/images, themes/elemental_custom/css/main-relay-related-items.css, themes/elemental_custom/css/main-bottom-red.css, themes/elemental_custom/css, themes/elemental_custom/whiteaccordionpage_red.php, themes/elemental_custom/mega_menu/megamenu.js, themes/elemental_custom/mega_menu/megamenu.css, themes/elemental_custom/mega_menu/images/arrow_up.png, themes/elemental_custom/mega_menu/images/popup-back.gif, themes/elemental_custom/mega_menu/images/arrow.png, themes/elemental_custom/mega_menu/images, themes/elemental_custom/mega_menu, themes/elemental_custom/product.php, themes/elemental_custom/custom_quote.php, themes/elemental_custom/full_hg.php, themes/elemental_custom/full_quotes_red_no_related.php, themes/elemental_custom/left_sidebar.php, themes/elemental_custom/full_red.php, themes/elemental_custom/whitepage_red.php, themes/elemental_custom/full_no_related_red.php, themes/elemental_custom/full_hg_red.php, themes/elemental_custom/manifest/manifest.webmanifest, themes/elemental_custom/manifest, themes/elemental_custom/account_dashboard.php, themes/elemental_custom/default-custom.php, themes/elemental_custom/full_quotes_red_basin.php, themes/elemental_custom/fancybox/fancybox_sprite.png, themes/elemental_custom/fancybox/jquery.fancybox.pack.js, themes/elemental_custom/fancybox/helpers/jquery.fancybox-media.js, themes/elemental_custom/fancybox/helpers/fancybox_buttons.png, themes/elemental_custom/fancybox/helpers/jquery.fancybox-thumbs.js, themes/elemental_custom/fancybox/helpers/jquery.fancybox-buttons.js, themes/elemental_custom/fancybox/helpers/jquery.fancybox-thumbs.css, themes/elemental_custom/fancybox/helpers/jquery.fancybox-buttons.css, themes/elemental_custom/fancybox/helpers, themes/elemental_custom/fancybox/fancybox_loading.gif, themes/elemental_custom/fancybox/jquery.fancybox.js, themes/elemental_custom/fancybox/jquery.fancybox.css, themes/elemental_custom/fancybox/fancybox_overlay.png, themes/elemental_custom/fancybox/blank.gif, themes/elemental_custom/fancybox/fancybox_sprite@2x.png, themes/elemental_custom/fancybox/fancybox_loading@2x.gif, themes/elemental_custom/fancybox, themes/elemental_custom/full_quotes.php, themes/elemental_custom/full_relays.php, themes/elemental_custom/page_forbidden.php, themes/elemental_custom/custom_quote_red.php, themes/elemental_custom/page_theme.php, themes/elemental_custom/whitepage.php, themes/elemental_custom/accordionpage.php, themes/elemental_custom/right_sidebar_red.php, themes/elemental_custom/elements/footer_bottom.php, themes/elemental_custom/elements/header_top.php, themes/elemental_custom/elements/footer.php, themes/elemental_custom/elements/footer_top_relay.php, themes/elemental_custom/elements/header_index.php, themes/elemental_custom/elements/header_red.php, themes/elemental_custom/elements/footer_bottom_relay.php, themes/elemental_custom/elements/header.php, themes/elemental_custom/elements/footer_top_red.php, themes/elemental_custom/elements/footer_top.php, themes/elemental_custom/elements/side_bar.php, themes/elemental_custom/elements/footer_bottom_red.php, themes/elemental_custom/elements, themes/elemental_custom/no_header.php, themes/elemental_custom/default.php, themes/elemental_custom/page_not_found.php, themes/elemental_custom/view.php, themes/elemental_custom/whiteaccordionpage.php, themes/elemental_custom/full_no_related.php, themes/elemental_custom/full.php, themes/elemental_custom/blank.php, themes/elemental_custom/full_quotes_no_related.php, themes/elemental_custom/category_red.php, themes/elemental_custom/js/scripts.js, themes/elemental_custom/js/jb_megamenu.js, themes/elemental_custom/js, themes/elemental_custom/full_hg_quote.php, themes/elemental_custom/full_hg_no_alt.php, themes/elemental_custom/full_relays_alt.php, themes/elemental_custom/homepage-custom.php, themes/elemental_custom/right_sidebar.php, themes/elemental_custom/images/accordion_open.gif, themes/elemental_custom/images/background.png, themes/elemental_custom/images/accordion_close.gif, themes/elemental_custom/images/background-slider-royal.png, themes/elemental_custom/images/background-slider-blue-sky.png, themes/elemental_custom/images/pdf_d.gif, themes/elemental_custom/images/pdf_d.png, themes/elemental_custom/images/li-bg.png, themes/elemental_custom/images/background-slider-night-road.png, themes/elemental_custom/images/background-slider-default.png, themes/elemental_custom/images/icons/icon72.png, themes/elemental_custom/images/icons/icon256.png, themes/elemental_custom/images/icons/icon96.png, themes/elemental_custom/images/icons/icon144.png, themes/elemental_custom/images/icons/icon192.png, themes/elemental_custom/images/icons/icon168.png, themes/elemental_custom/images/icons/icon48.png, themes/elemental_custom/images/icons/icon512.png, themes/elemental_custom/images/icons/icon_close.png, themes/elemental_custom/images/icons, themes/elemental_custom/images, themes/elemental_custom/full_relays_nc.php, themes/elemental_custom/left_sidebar_account.php, themes/elemental_custom/repair_quote_red.php, themes/elemental_custom/full_quotes_red.php, themes/elemental_custom/category.php, themes/elemental_custom, themes/dashboard/marketplace.php, themes/dashboard/account.php, themes/dashboard/page_theme.php, themes/dashboard/elements/result_messages.php, themes/dashboard/elements/footer.php, themes/dashboard/elements/title.php, themes/dashboard/elements/header.php, themes/dashboard/elements, themes/dashboard/desktop.php, themes/dashboard/default.php, themes/dashboard/view.php, themes/dashboard/full.php, themes/dashboard/blank.php, themes/dashboard/dialog.php, themes/dashboard/main.css, themes/dashboard/main.js, themes/dashboard, views/frontend/maintenance_mode.php, views/frontend, src/Sharing/SocialNetwork/Service.php, src/Sharing/SocialNetwork, src/Sharing

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

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.4.30

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, ftp, gd, hash, iconv, imagick, imap, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1700
memory_limit - 1024M
post_max_size - 256M
upload_max_filesize - 256M
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
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
unserialize_max_depth - 4096

Do you know if Concretev9 uses " NO_AUTO_CREATE_USER" I am running MySQL5.7 and was wondering if upgrading to 8 would work.

Switching to php8.1 crashes (500 error) both installs. I set up just like the working version of 7.4.

I installed V 9.1.2RC1 on my test server and this issue has been fixed.

Thank you so much for the update!

1 Like

I work with an elemental theme with cms 9.2.1 (php8.2) and I have no selection of device visibility.
Would that only be with elemental?
Something I didn’t load or what would cause the absence of the four buttons in “Blockdesign and Templates”

bernie
make sure that in page_theme.php bootstrap 5 is there:
protected $pThemeGridFrameworkHandle = 'bootstrap5';
regards
blinkers

Thanks @blinkdesign

Thanks, Yes it’s back when bs5 is on. Great!

How would I use it hardcoded? I have certain blocks I want to hide at various BS breakpoints in the page templates.

My Theme provides specific block classes like .hidden-xs, .hidden-sm, etc. But they do not work anymore.
It drives me crazy.

Any Ideas?

I found this issue too. But it looks like the css for v9 is a little different. They removed xs completely so if you want to use the old .hidden-xs, .hidden-sm you’ll have to add them, but anything, like the col-xs-6, etc, will not exist either. All any every xs size was removed. This is what they use for .hidden-* now…
.d-none{display:none!important}
.d-sm-none{display:none!important}
.d-md-none{display:none!important}
.d-lg-none{display:none!important}
.d-xl-none{display:none!important}
.d-xxl-none{display:none!important}

For more info check out the \concrete\css\cms.css file

The Boostrap 3 classes do not work anymore.

Bootstrap 5 has reorganised the display classes. Check Display property · Bootstrap v5.2

1 Like

This is great, thanks @mdius and @blinkdesign. Strange that BS5 removed the clear and logic hidden-xs, hidden-sm etc. Anyway, now I need to add these two classes. Thanks to the table provided I can manage, without table I always need to doublecheck that classes are set properly.