Title: Remove version from script breaks preview
Last modified: January 26, 2022

---

# Remove version from script breaks preview

 *  [aghanim](https://wordpress.org/support/users/aghanim/)
 * (@aghanim)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-version-from-script-breaks-preview/)
 * Hi,
 * Updated to the latest version of wordpress 5.9.
 * Changed theme to customizr. When editing the preview of images gives me the error“
   This block encountered an error and cannot be previewed”.
 * The problem lies in WP Hardening “Remove version from script”. When I toggle 
   it off, the preview works.
 * Why is that? I cant seem to understand what happenes.

Viewing 1 replies (of 1 total)

 *  [war59312](https://wordpress.org/support/users/war59312/)
 * (@war59312)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-version-from-script-breaks-preview/#post-15313334)
 * Also breaks Theme Customize button for the new WP Theme Twenty Twenty-Two.
 * See: [https://wordpress.org/support/topic/customize-button-results-in-errors/#post-15312657](https://wordpress.org/support/topic/customize-button-results-in-errors/#post-15312657)

Viewing 1 replies (of 1 total)

The topic ‘Remove version from script breaks preview’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-hardening/assets/icon-256x256.jpg?rev=3115655)
 * [WP Hardening (discontinued)](https://wordpress.org/plugins/wp-security-hardening/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-hardening/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-hardening/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-hardening/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-hardening/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-hardening/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [war59312](https://wordpress.org/support/users/war59312/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/remove-version-from-script-breaks-preview/#post-15313334)
 * Status: not resolved