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?

2 Attachments

Type: Discussion
Status: In Progress
arlenesey
View Replies:
1976Ltd replied on at Permalink Reply
1976Ltd
I've taken a look at your homepage where the fullscreen image block is being used and it loads correctly in Firefox and Chrome for me.

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.
arlenesey replied on at Permalink Reply 1 Attachment
arlenesey
Ok-
Just tried it out again and here is the js error - Vegas
arlenesey replied on at Permalink Reply
arlenesey
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.
1976Ltd replied on at Permalink Reply
1976Ltd
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), GalleryES (2.5.1), Hi-Vis (1.0.3), Page Redirect (2.0), Page Selector Attribute (2.0), Spacer (0.9.4), Under Construction (1.0.1), Vivid Simple Accordion (1.0.1)

# concrete5 Overrides
blocks/vivid_simple_accordion/templates/anja_accordion/view.php, blocks/vivid_simple_accordion/templates/anja_accordion/view.js, blocks/vivid_simple_accordion/templates/anja_accordion/view.css, blocks/vivid_simple_accordion/templates/anja_accordion, blocks/vivid_simple_accordion/templates, blocks/vivid_simple_accordion, elements/footer.php, single_pages/betschart_gallery.php, themes/hivis/js/foundation.min.js, themes/hivis/js/vendor/fastclick.js, themes/hivis/js/vendor/modernizr.js, themes/hivis/js/vendor, themes/hivis/js, themes/hivis/elements/footer.php, themes/hivis/elements, themes/hivis

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.38

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 100
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 200000
memory_limit - 256M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.