Upgrade to concrete5 changed content in content block
Permalink
Has anyone else had this where the advanced permissions are turned up, and when I upgraded to 5.5.2, all the content looks fine, but when you go to edit a page, this shows up:
{CCM:BASE_URL}{CCM:BASE_URL}{CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL}R{CCM:BASE_URL}e{CCM:BASE_URL}n{CCM:BASE_URL}t{CCM:BASE_URL}a{CCM:BASE_URL}l{CCM:BASE_URL}
The {CCM:BASE_URL} is placed before every letter in the content block?
If you update it, it will overwrite what is in there, and if you replace it with new text, it will only replace some of it, and then this will show up again.
{CCM:BASE_URL}{CCM:BASE_URL}{CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL} {CCM:BASE_URL} {CCM:BASE_URL}{CCM:BASE_URL}R{CCM:BASE_URL}e{CCM:BASE_URL}n{CCM:BASE_URL}t{CCM:BASE_URL}a{CCM:BASE_URL}l{CCM:BASE_URL}
The {CCM:BASE_URL} is placed before every letter in the content block?
If you update it, it will overwrite what is in there, and if you replace it with new text, it will only replace some of it, and then this will show up again.
The issue that was happening was not that it was not defined, but rather that it was. It was a bogus domain on the server, with a dedicated IP address, because the DNS was not on the server. So they were pointing the domain as an A record.
I had the domain in the site.php define('BASE_URL', '');
As soon as I commented out that, it worked completely fine. I did also have to scrub the DB to clean it out, but once done it all worked great.
That was a really weird one to say the least.
I had the domain in the site.php define('BASE_URL', '');
As soon as I commented out that, it worked completely fine. I did also have to scrub the DB to clean it out, but once done it all worked great.
That was a really weird one to say the least.
This is the cause : the global BASE_URL in your /config/site.php is probably not defined. At least this was accidently the case with me when I moved it to a developmentserver and I'm suprised I got that far with this global not defined.
The content-block controller uses preg_replace_callback and preg_replace with some strings composed of globals like BASE_URL. If these are not defined this is what will happen. Hope this helps someone.