Container in Global Area not working

In my theme I have a GlobalArea. If I add a container in that area, then some blocks in that container, I will find that blocks available only in the page where I added them.
On other pages, I can see the container added to the global area, but it hasn’t any block inside.

Simple blocks in a GlobalArea (without containers) work well and are shared by all pages.

Is this some error with my them, or a bug?
thanks

Concrete 9.1.1

I am able to reproduce this using the atomic clone theme using php 7.4. To reproduce

  1. Add a container to a global area
  2. Add a block to the container (notice it highlights green)

The expected behavior is the blocks in a container display in Global Area across the site.

@baz Are you able to add some more details from Dashboard System & Settings > Environment > Environment Information?

Do all the containers behave the same? I only tried the highlight container.

I tried with the grid of four.

Concrete Version

Core Version - 9.1.1
Version Installed - 9.1.1
Database Version - 20220516191423

Database Information

Version: 10.4.21-MariaDB-log
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Concrete Overrides

None

Concrete Cache Settings

Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 1 minutes.

Server Software

Apache

Server API

fpm-fcgi

PHP Version

7.4.29

PHP Extensions

apc, apcu, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, memcache, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

PHP Settings

max_execution_time - 30
max_file_uploads - 20
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M

I am having the same issue. Container added to a global area is visible on all pages but blocks added to the container are only visible on the page they were added to.

Concrete Version

Core Version - 9.1.1
Version Installed - 9.1.1
Database Version - 20220516191423

Database Information

Version: 5.5.68-MariaDB
SQL Mode:

Concrete Packages

Peacock (1.0)

Concrete Overrides

None

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

cgi-fcgi

PHP Version

7.4.30

PHP Extensions

bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, redis, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

PHP Settings

max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 2M
ic24.api.max_timeout - 7
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
redis.pconnect.connection_limit - 0
session.cache_limiter - no value
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Further to the above:
Navigate to Dashboard > Stacks & Blocks > Global Areas
In the Global Area editor the Container is visible but it’s not possible to “Add Block” to it.
It is also not possible to add a Container to the Global Area (or any Stack) from within the Dashboard.
Seems to me that Containers have not been fully integrated into Stacks and Global Areas in this version.

This should probably be made issue on github. There are a few other open container issues as well…

Yes this looks like a bug @baz are you able to create a new issue in github? Issues · concretecms/concretecms · GitHub

done

Not seen a bug fix for this yet but a temp solution I have used is to swap out the ContainerArea for Global area in the container php file. Then remove the $container parameter. Allows for a global area with a container made up of global areas. Remember to declare… use Concrete\Core\Area\GlobalArea;