# Container in Global Area not working

**URL:** <https://forums.concretecms.org/t/container-in-global-area-not-working/3369>\
**Category:** Developing with Concrete\
**Created:** [June 24, 2022, 1:17pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369 "2022-06-24T13:17:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![baz](https://forums.concretecms.org/user_avatar/forums.concretecms.org/baz/32/1176_2.png) [@baz](https://forums.concretecms.org/u/baz)\
**Post date:** [June 24, 2022, 1:17pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/1 "2022-06-24T13:17:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jessicadunbar](https://forums.concretecms.org/user_avatar/forums.concretecms.org/jessicadunbar/32/4320_2.png) [@jessicadunbar](https://forums.concretecms.org/u/jessicadunbar)\
**Post date:** [June 25, 2022, 1:08pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/2 "2022-06-25T13:08:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![baz](https://forums.concretecms.org/user_avatar/forums.concretecms.org/baz/32/1176_2.png) [@baz](https://forums.concretecms.org/u/baz)\
**Post date:** [June 27, 2022, 7:44am UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/3 "2022-06-27T07:44:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jawbonelid666](https://forums.concretecms.org/user_avatar/forums.concretecms.org/jawbonelid666/32/4673_2.png) [@jawbonelid666](https://forums.concretecms.org/u/jawbonelid666)\
**Post date:** [July 23, 2022, 11:56pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/4 "2022-07-23T23:56:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jawbonelid666](https://forums.concretecms.org/user_avatar/forums.concretecms.org/jawbonelid666/32/4673_2.png) [@jawbonelid666](https://forums.concretecms.org/u/jawbonelid666)\
**Post date:** [July 24, 2022, 12:13am UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/5 "2022-07-24T00:13:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![enlil](https://forums.concretecms.org/user_avatar/forums.concretecms.org/enlil/32/3526_2.png) [@enlil](https://forums.concretecms.org/u/enlil)\
**Post date:** [July 24, 2022, 5:37am UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/6 "2022-07-24T05:37:55Z")

</div>

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

> **[Issues · concretecms/concretecms](https://github.com/concretecms/concretecms/issues?q=is:issue%2Bcontainers%2Bblock)**
>
> Official repository for Concrete CMS development. Contribute to concretecms/concretecms development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jessicadunbar](https://forums.concretecms.org/user_avatar/forums.concretecms.org/jessicadunbar/32/4320_2.png) [@jessicadunbar](https://forums.concretecms.org/u/jessicadunbar)\
**Post date:** [July 25, 2022, 3:54pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/7 "2022-07-25T15:54:24Z")

</div>

Yes this looks like a bug @baz are you able to create a new issue in github? [Issues · concretecms/concretecms · GitHub](https://github.com/concretecms/concretecms/issues)

 ![image](https://forums.concretecms.org/uploads/default/original/2X/b/be460b4c562eb2eb4691a672d90da93684bcb1a3.jpeg)

---

<div class="post-metadata">

**Author:** ![baz](https://forums.concretecms.org/user_avatar/forums.concretecms.org/baz/32/1176_2.png) [@baz](https://forums.concretecms.org/u/baz)\
**Post date:** [August 4, 2022, 3:13pm UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/8 "2022-08-04T15:13:25Z")

</div>

done

> <https://github.com/concretecms/concretecms/issues/10788>
>
> \### Affected Version of Concrete CMS
> 
> 9.x
> 
> \### Description
> 
> If you have Gl…obalArea in a theme, then add a container in that area, and then some blocks in that container, blocks will be available only in the page where you added them.
> On other pages, You will 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.
> 
> 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
> 
> \### How to reproduce
> 
> Using the atomic clone theme using php 7.4. To reproduce
> 
> Add a container to a global area
> 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.
> 
> 
> 
> \### Possible Solution
> 
> \_No response\_
> 
> \### Additional Context
> 
> https://forums.concretecms.org/t/container-in-global-area-not-working/3369

---

<div class="post-metadata">

**Author:** ![PixelPals](https://forums.concretecms.org/user_avatar/forums.concretecms.org/pixelpals/32/3777_2.png) [@PixelPals](https://forums.concretecms.org/u/PixelPals)\
**Post date:** [October 31, 2023, 9:23am UTC](https://forums.concretecms.org/t/container-in-global-area-not-working/3369/9 "2023-10-31T09:23:18Z")

</div>

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;
