Background image appears then disappears
Permalink Browser Info Environment
Hi!
This install is a few years old, and was recently updated.
The background (bg) image block is no longer functioning as expected.
If I restart the browser - Firefox or Chrome, the bg image on the landing page disappears. When I am in editing mode and navigate to the page, the editing bar disappears and the bg image is not there. if I then refresh the page (clear cache) the bg image and the editing bar reappear.
I sign out, the bg image is there. It seems to stay in cache until I restart the browser, then it is gone.
Is this problem familiar to you?
Anything to be done?
This install is a few years old, and was recently updated.
The background (bg) image block is no longer functioning as expected.
If I restart the browser - Firefox or Chrome, the bg image on the landing page disappears. When I am in editing mode and navigate to the page, the editing bar disappears and the bg image is not there. if I then refresh the page (clear cache) the bg image and the editing bar reappear.
I sign out, the bg image is there. It seems to stay in cache until I restart the browser, then it is gone.
Is this problem familiar to you?
Anything to be done?
Type: | Discussion |
---|---|
Status: | In Progress |
Ok-
Just tried it out again and here is the js error - Vegas
Just tried it out again and here is the js error - Vegas
So here is part of a note sent to me by a colleague who helps me now and again:
"I looked at it, and it happened to me now! So now that I could look, I observed that only about half the time, the block javascript was appearing on the page, and half the time it wasn't there.
I disabled the Concrete5 cache and it worked as expected 100% of the time. I deleted application/files/cache directory contents, and enabled the different cache options one by one. When I enabled block cache, it no longer worked.
When I had disabled block cache while having all other cache options enabled, it still worked.
It seems to be a bug in C5 with the legacy method of "auto including" the css/js... I am not surprised... A lot of legacy stuff just don't work as expected anymore.
So I can keep the javascript file, I placed it in the themes instead and added it to the footer.php in the override (application/themes/hivis/elements) I also placed our header.php override in there too!"
I hope this helps anyone else who might run into problems with this block after updating... remember changes like this should be done as an override and at your own risk. No guarantees.
"I looked at it, and it happened to me now! So now that I could look, I observed that only about half the time, the block javascript was appearing on the page, and half the time it wasn't there.
I disabled the Concrete5 cache and it worked as expected 100% of the time. I deleted application/files/cache directory contents, and enabled the different cache options one by one. When I enabled block cache, it no longer worked.
When I had disabled block cache while having all other cache options enabled, it still worked.
It seems to be a bug in C5 with the legacy method of "auto including" the css/js... I am not surprised... A lot of legacy stuff just don't work as expected anymore.
So I can keep the javascript file, I placed it in the themes instead and added it to the footer.php in the override (application/themes/hivis/elements) I also placed our header.php override in there too!"
I hope this helps anyone else who might run into problems with this block after updating... remember changes like this should be done as an override and at your own risk. No guarantees.
Thanks for the detailed reply. I suspected it was a caching issue but thought it might be a faulty install.
I'll have to look at the current procedures for the most recent versions of the CMS. Glad you've resolved the issue for now.
I'll have to look at the current procedures for the most recent versions of the CMS. Glad you've resolved the issue for now.
There are no errors in the console either.
As the edit bar was disappearing for you I'm wondering if something went wrong with the Concrete5 install when you upgraded.
I'd check the console in your browser for error messages if you are still getting the same issue.
I definitely can't replicate it though.