Title: Bug in the Plugin
Last modified: August 22, 2016

---

# Bug in the Plugin

 *  [TigranTovmasyan](https://wordpress.org/support/users/tigrantovmasyan/)
 * (@tigrantovmasyan)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/bug-in-the-plugin-1/)
 * Something wrong is happening here
    **“/wordpress-seo/js/wp-seo-metabox.js”** 
   in **“yst_replaceVariables”** function.
 * Due to which the scripts coming after this are not working.
    I think it came 
   after updating “WordPress Seo” to “1.5.5.3” plugin.
 * **Uncaught TypeError: Cannot read property ‘replace’ of undefined wp-seo-metabox.
   min.js?ver=1.5.5.3:1**
 * yst_replaceVariables wp-seo-metabox.min.js?ver=1.5.5.3:1
    yst_updateTitle wp-
   seo-metabox.min.js?ver=1.5.5.3:1 yst_updateSnippet wp-seo-metabox.min.js?ver=
   1.5.5.3:1 (anonymous function) wp-seo-metabox.min.js?ver=1.5.5.3:1 j load-scripts.
   php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-
   datepicke…:2 k.fireWith load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,
   utils,jquery-ui-core,jquery-ui-datepicke…:2 n.extend.ready load-scripts.php?c
   =1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicke…:
   2 K load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-
   core,jquery-ui-datepicke…:2
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

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

 *  [Russell Heimlich](https://wordpress.org/support/users/kingkool68/)
 * (@kingkool68)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-in-the-plugin-1/#post-5222804)
 * Yup, same here.
 *  [Russell Heimlich](https://wordpress.org/support/users/kingkool68/)
 * (@kingkool68)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-in-the-plugin-1/#post-5222806)
 * Some further info…
 * Line 132 is this `excerpt = jQuery("#content").val().replace(/(<([^>]+)>)/ig,"").
   substring(0,wpseoMetaboxL10n.wpseo_meta_desc_length-1);`
 * If you have a custom post type that doesn’t have a content field, then this throws
   an error since jQuery(‘#content’) doesn’t exist.

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

The topic ‘Bug in the Plugin’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Russell Heimlich](https://wordpress.org/support/users/kingkool68/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/bug-in-the-plugin-1/#post-5222806)
 * Status: not resolved