Title: JS Error on Edit Post
Last modified: June 6, 2018

---

# JS Error on Edit Post

 *  Resolved [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/)
 * On Edit Post, JS error is showing as shown here:
 *     ```
       wp-seo-post-scraper-760.min.js?ver=7.6:33 Uncaught TypeError: t.val is not a function
           at e.value (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at e.value (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at e.value (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at l (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at d (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at HTMLDocument.F (wp-seo-post-scraper-760.min.js?ver=7.6:33)
           at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
           at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
           at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
           at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
       ```
   
 * It is occurring due to calling the `val()` function by ID object whereas it should
   be `value`. `val()` is used in jQuery.
    Like: `t.va()` should be replaced with`
   t.value`.
 * Please fix this issue ASAP. It’s creating different issues in edit post/page.

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

 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10373092)
 * Can you confirm you are on WP v4.9.6 and Yoast SEO for WordPress v7.6?
 * That sounds like a plugin or theme conflict. Can you try and gather as much information
   for us as possible? Please perform the following:
 * 1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. [Check for conflicts](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts).
   3. Check for [JavaScript errors with your console](https://kb.yoast.com/kb/how-to-find-javascript-errors-with-your-browsers-console).
 * If you find any JavaScript errors related to Yoast SEO or if there is a conflict
   with a plugin or a theme, you can create a [new GitHub issue](https://github.com/Yoast/wordpress-seo/issues/new)
   for our developers. Please report the issue to a third party developer as well.
 * If you didn’t find any conflicts or errors, we think the issue is specific to
   your site. We’d need to investigate further but are unable to do so on these 
   forums. You can [purchase Yoast SEO Premium](https://yoast.com/wordpress/plugins/seo/)
   and receive our Premium email support and we can help you further.
 *  Thread Starter [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10373155)
 * [@mikes41720](https://wordpress.org/support/users/mikes41720/) This issue is 
   occurring with the conflict of Custom Permalinks and Yoast SEO. Error is in the
   Yoast SEO JS File (`wp-seo-post-scraper-760.min.js`). You just need to install
   the Custom Permalinks Plugin and open any post which have the postname defined.
   Then check the console. You will find the error.
 * In this file, it is creating the Object by calling `getElementById` and then 
   using this object to calling `val()` function. In actual it should be `value`.
   You may consider this typo but that’s a big issue customers are facing on.
 * Whereas it comes to Premium Version, so this issue doesn’t exist in the Premium
   Version of Yoast SEO. This issue just raises in the Latest version of the plugin
   before that everything works fine..
 * Thanks,
    Sami
 *  [yossroi](https://wordpress.org/support/users/yossroi/)
 * (@yossroi)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10373547)
 * Hi I have the exact same issue using WP v4.9.6 and Yoast premium SEO for WordPress
   v7.6?
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10382754)
 * [@sasiddiqui](https://wordpress.org/support/users/sasiddiqui/) Unfortunately,
   we were unable to reproduce the issue on our end while using the Yoast SEO v7.6.1
   and the 3rd party [Custom Permalinks](https://wordpress.org/plugins/custom-permalinks/)
   plugin v1.3.0 is active.
 * If you still experiencing this issue on the Yoast SEO v7.6.1, would you mind 
   elaborating more on how to reproduce the issue step by step so that we can investigate
   this issue further?
 *  Thread Starter [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10382988)
 * [@mazedulislamkhan](https://wordpress.org/support/users/mazedulislamkhan/) This
   issue has resolved in v7.6.1
 * This issue starts popping up in v7.6 and was resolved in v.7.6.1 across listed
   in Github Issue.
 * Thanks for reminding me about this ticket.
 * Regards,
    Sami

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

The topic ‘JS Error on Edit Post’ 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/)

 * 5 replies
 * 4 participants
 * Last reply from: [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/js-error-on-edit-post/#post-10382988)
 * Status: resolved