GlobalAreas won´t diaplay if not logged in
Permalink
I have built a custom template that uses five global areas in the footer. Named Site Footer Column First, Site Footer Column Second, Site Footer Column Third and so on.
I have edited these and added blocks to them, works perfect, looks good. But when I log out I can only see the first column. Or well, all the columns are there but with no content. Why?
I haven't added any special permissions as far as I know, do not even know how to do that.
This is what I get if I var_dump() Site Footer Column Second object while logged in:
object(GlobalArea)#880 (18) {
["arIsGlobal:protected"]=>
int(1)
["cID"]=>
NULL
["arID"]=>
NULL
["arHandle"]=>
string(25) "Site Footer Column Second"
["c"]=>
NULL
["maximumBlocks"]=>
int(-1)
["customTemplateArray"]=>
array(0) {
}
["firstRunBlockTypeHandle"]=>
NULL
["ratingThreshold"]=>
int(0)
["showControls"]=>
bool(true)
["attributes"]=>
array(0) {
}
["enclosingStart"]=>
string(0) ""
["enclosingStartHasReplacements"]=>
bool(false)
["enclosingEnd"]=>
string(0) ""
["enclosingEndHasReplacements"]=>
bool(false)
["totalBlocks"]=>
int(2)
["areaBlocksArray"]=>
NULL
["error"]=>
string(0) ""
}
...and if I am not logged in:
object(GlobalArea)#938 (18) {
["arIsGlobal:protected"]=>
int(1)
["cID"]=>
NULL
["arID"]=>
NULL
["arHandle"]=>
string(25) "Site Footer Column Second"
["c"]=>
NULL
["maximumBlocks"]=>
int(-1)
["customTemplateArray"]=>
array(0) {
}
["firstRunBlockTypeHandle"]=>
NULL
["ratingThreshold"]=>
int(0)
["showControls"]=>
bool(true)
["attributes"]=>
array(0) {
}
["enclosingStart"]=>
string(0) ""
["enclosingStartHasReplacements"]=>
bool(false)
["enclosingEnd"]=>
string(0) ""
["enclosingEndHasReplacements"]=>
bool(false)
["totalBlocks"]=>
int(0)
["areaBlocksArray"]=>
NULL
["error"]=>
string(0) ""
}
What is wrong here? Why? and most importantly how do I fix it?
My install is fresh, here you have my environment info:
# concrete5 Version
5.6.0.2
# concrete5 Packages
None
# concrete5 Overrides
blocks/facebook_like, blocks/gmap, blocks/google_plusone, themes/standardweb
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
5.2.17
# PHP Extensions
bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend Optimizer, zip, zlib.
# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
memory_limit - 64M
post_max_size - 64M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 64M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
I have edited these and added blocks to them, works perfect, looks good. But when I log out I can only see the first column. Or well, all the columns are there but with no content. Why?
I haven't added any special permissions as far as I know, do not even know how to do that.
This is what I get if I var_dump() Site Footer Column Second object while logged in:
object(GlobalArea)#880 (18) {
["arIsGlobal:protected"]=>
int(1)
["cID"]=>
NULL
["arID"]=>
NULL
["arHandle"]=>
string(25) "Site Footer Column Second"
["c"]=>
NULL
["maximumBlocks"]=>
int(-1)
["customTemplateArray"]=>
array(0) {
}
["firstRunBlockTypeHandle"]=>
NULL
["ratingThreshold"]=>
int(0)
["showControls"]=>
bool(true)
["attributes"]=>
array(0) {
}
["enclosingStart"]=>
string(0) ""
["enclosingStartHasReplacements"]=>
bool(false)
["enclosingEnd"]=>
string(0) ""
["enclosingEndHasReplacements"]=>
bool(false)
["totalBlocks"]=>
int(2)
["areaBlocksArray"]=>
NULL
["error"]=>
string(0) ""
}
...and if I am not logged in:
object(GlobalArea)#938 (18) {
["arIsGlobal:protected"]=>
int(1)
["cID"]=>
NULL
["arID"]=>
NULL
["arHandle"]=>
string(25) "Site Footer Column Second"
["c"]=>
NULL
["maximumBlocks"]=>
int(-1)
["customTemplateArray"]=>
array(0) {
}
["firstRunBlockTypeHandle"]=>
NULL
["ratingThreshold"]=>
int(0)
["showControls"]=>
bool(true)
["attributes"]=>
array(0) {
}
["enclosingStart"]=>
string(0) ""
["enclosingStartHasReplacements"]=>
bool(false)
["enclosingEnd"]=>
string(0) ""
["enclosingEndHasReplacements"]=>
bool(false)
["totalBlocks"]=>
int(0)
["areaBlocksArray"]=>
NULL
["error"]=>
string(0) ""
}
What is wrong here? Why? and most importantly how do I fix it?
My install is fresh, here you have my environment info:
# concrete5 Version
5.6.0.2
# concrete5 Packages
None
# concrete5 Overrides
blocks/facebook_like, blocks/gmap, blocks/google_plusone, themes/standardweb
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
5.2.17
# PHP Extensions
bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend Optimizer, zip, zlib.
# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
memory_limit - 64M
post_max_size - 64M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 64M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
All edits, no matter where, needs to be approved before they are shown (unless stated when editing). It all comes down to the version handling and is actually great when you consider the use of c5 among many users.
Say you have an editor writing everything for you, but since you (as a content manager) want to have your say before publishing you can restrict the publishing rights for the editor. That way you can make small changes before putting it all live.
Say you have an editor writing everything for you, but since you (as a content manager) want to have your say before publishing you can restrict the publishing rights for the editor. That way you can make small changes before putting it all live.
Okey, makes sense. But I haven't needed to "approve" changes to other blocks before. Why do this apply to my Global Areas? And why didn't it apply to the first out of my five footer columns?
And you say "unless stated when editing". Can I "state" differently, so to say; Can I allow changes to be published automatically for Areas?
Thanks!
And you say "unless stated when editing". Can I "state" differently, so to say; Can I allow changes to be published automatically for Areas?
Thanks!
What I meant with 'unless stated' is when you are making global changes i.e. in page types. When you do you will be warned that the changes will be applied throughout your whole page at once. You can not turn off the approval process (as far as I know), and I don't think you will consider this as an issue after some more usage.
Just out of curiosity, how did you add content to your global areas? Did you add it from page type defaults, from a page or from stacks?
Just out of curiosity, how did you add content to your global areas? Did you add it from page type defaults, from a page or from stacks?
I created the Global Areas in my theme. They showed up on page and I edited / added blocks to them from a page (Home).
And yes I get the "notice" that this is a global area and it will be changed / visible on all pages.
And sure, It makes sense that I need to approve changes, but why do I not have to approve all changes? Like now, I just added a new content block to my fifth global column and changes where instantly applied for all. No need to approve this new block. And why didn't I need to approve my first global column when I added blocks to it for the first time?
It is the inconstancy that makes me confused, I guess...
And yes I get the "notice" that this is a global area and it will be changed / visible on all pages.
And sure, It makes sense that I need to approve changes, but why do I not have to approve all changes? Like now, I just added a new content block to my fifth global column and changes where instantly applied for all. No need to approve this new block. And why didn't I need to approve my first global column when I added blocks to it for the first time?
It is the inconstancy that makes me confused, I guess...
I haven't seen (or paid any attention to this), so I don't have anything to say about it.
Hi There,
I have just been directed to this thread from one I started elsewhere, and have to say this feels more like a bug to me, as you say, why is it not applied consistently, I too have a column layout and certain columns show right off the bat, and some need approving, doesnt make any sense.
I have just been directed to this thread from one I started elsewhere, and have to say this feels more like a bug to me, as you say, why is it not applied consistently, I too have a column layout and certain columns show right off the bat, and some need approving, doesnt make any sense.
This feels weird and inconsistent. But perhaps someone could explain this behavior for me? And must I "approve" any future edits to these Global Areas? And if so why? And can I auto "approve"?
After all I am logged in as the admin with full permissions to everything.