The page at hidden link looks great when editing. When I publish I can see the images (see view1.png attached). But if I refresh or even try another browser, they go away. Any idea?
I'm not seeing any javascript errors reported but don't know what script replaces/inserts the background to figure it out. any help is appreciated.
Hi, can you include some screenshots showing how this View is constructed in the Block Editor? Are the images inserted using an image block with dynamic content, or using some shortcode in another Block?
Then please try the following troubleshooting steps:
- Temporarily activate a default theme like Twenty Twenty, deactivate all plugins except Types and Views (or Blocks) and test again
- If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns.
Let me know what you find out.
i'm going to play with the theme / plugin resetting (first will copy to my staging site and see if I can reproduce there).
But attached is how I set up the blocks. It's using a view loop, with a container with an image background (so I could put a like shortcut code in the corner - if there's a better way to overlay let me know).
Boy, so confused. I copied my site to my staging, and reproduced the problem. Switched themes and problem still existed.
Then disabled all but the 2 plugins and issue went away. Put back plugins one at at time until they were all back, and problem was still gone.
So recopied to staging and instead disabled a couple plugins at a time (each time publishing the page edit again so I could test the issue). Got it nailed down to one batch of 3 plugins I disabled at once as disabling those fixed it. But then reenabled and of course working.
Then on live tried those 3 and didn't fix, disabled all and didn't fix, then reenabled and republished the full page (full edit instead of quick edit) and it seems fixed. Guess for now I leave it but will definitely be watching to see if it reoccurs. IF you have any other ideas or a better way to do the shortcode overlay the image, let me know.
That is odd, when it's difficult to pin down a problem like this I will also try turning on server logs to see if anything is recorded by the server that may point to the issue. Sometimes a memory problem or other error will be logged that explains why the issue is occurring. If you're not familiar with server logs I can show you how to temporarily enable them.
Go in your wp-config.php file and look for
define('WP_DEBUG', false);
Change it to:
define('WP_DEBUG', true);
Then add these lines, just after the WP_DEBUG line:
define('WP_DEBUG_LOG', dirname(__FILE__) . '/error_log.txt');
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);
Leave the logs running while you continue testing. If any server-side errors are triggered during this process, it will create an error_log.txt file in your site's root directory. Use FTP to look for this file in the same directory as wp-content, wp-admin, and wp-config.php. You may need to click "Refresh" in your FTP browser to see a new file appear. Please download this file to your computer, open it in any text editing software, and send me its contents. Once that is done, you can revert the changes you made to wp-config.php and delete the log file.
Thanks, will keep monitoring and next time will be doing more with the logs to nail down (hopefully it's fixed)