Title: Cannot be previewed
Last modified: August 13, 2022

---

# Cannot be previewed

 *  Resolved [wenlu](https://wordpress.org/support/users/wenlu/)
 * (@wenlu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/)
 * Hi,
 * When I’m selecting the overlay background color, there is a message is shown 
   on the visual editor which is “This block has encountered an error and cannot
   be previewed.”.
 * Below is the error show on the console:
 *     ```
       TypeError: Cannot read properties of null (reading 'hex')
           at components.min.js?ver=0e6d68fb5b3f61d537b3d3411bddd6fc:38:223211
           at components.min.js?ver=0e6d68fb5b3f61d537b3d3411bddd6fc:38:223234
           at Object.useMemo (react-dom.min.js?ver=17.0.1:9:105804)
           at e.useMemo (react.min.js?ver=17.0.1:9:10749)
           at components.min.js?ver=0e6d68fb5b3f61d537b3d3411bddd6fc:38:223103
           at e_ (components.min.js?ver=0e6d68fb5b3f61d537b3d3411bddd6fc:38:223403)
           at ct (react-dom.min.js?ver=17.0.1:9:43430)
           at os (react-dom.min.js?ver=17.0.1:9:111136)
           at Ur (react-dom.min.js?ver=17.0.1:9:77643)
           at Ir (react-dom.min.js?ver=17.0.1:9:77571)
       ```
   
 * I have deactivated all the plugins and clear the cache but the issue is still
   there. May I know how can I fix it ?
 * Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [wenlu](https://wordpress.org/support/users/wenlu/)
 * (@wenlu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15912894)
 * Kindly refer to these two images for your reference.
    1. [https://snipboard.io/uwe2aM.jpg](https://snipboard.io/uwe2aM.jpg)
   2. [https://snipboard.io/sdVz24.jpg](https://snipboard.io/sdVz24.jpg)
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15929477)
 * Hey.
 * Can you tell me, which version of WordPress is used on your site?
 *  Thread Starter [wenlu](https://wordpress.org/support/users/wenlu/)
 * (@wenlu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15933492)
 * Hi,
 * I’m using WordPress Version 6.0.1.
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15934282)
 * That’s strange. Please, try to follow instructions from this topic [https://wordpress.org/support/topic/please-read-before-post/](https://wordpress.org/support/topic/please-read-before-post/)
   to ensure that problem is inside our plugin and not in the 3rd-party plugin/theme.
 *  Thread Starter [wenlu](https://wordpress.org/support/users/wenlu/)
 * (@wenlu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15934316)
 * Hi,
 * I have followed the instruction you mentioned in this topic([https://wordpress.org/support/topic/please-read-before-post/](https://wordpress.org/support/topic/please-read-before-post/))
   but still facing the issue.
 * Here’s the screen record for your reference.
    [https://streamable.com/82thaf](https://streamable.com/82thaf)
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15941710)
 * Hey.
 * I am able to reproduce this issue with the 3rd-party theme, the fix will be available
   in the next plugin update. Please, wait for a couple of days once it will be 
   released.
 * Regards, nK.
 *  Thread Starter [wenlu](https://wordpress.org/support/users/wenlu/)
 * (@wenlu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15944022)
 * Hi,
 * Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Cannot be previewed’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [wenlu](https://wordpress.org/support/users/wenlu/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/cannot-be-previewed/#post-15944022)
 * Status: resolved