Title: JS error while saving the page
Last modified: June 3, 2024

---

# JS error while saving the page

 *  Resolved [Nishad](https://wordpress.org/support/users/nishadup/)
 * (@nishadup)
 * [2 years ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/)
 * I encountered a JavaScript error during page updates. The error stemmed from 
   accessing the property of an iFrame without first checking if it’s empty. I’ve
   implemented a temporary fix on the site to address this issue. This fix should
   be included in the next release.
 * ![](https://wordpress.org/a3fdaacf-6daa-44f0-a094-117bf22f8470)
 * ![](https://ibb.co/Kmw0ZTb)
    -  This topic was modified 2 years ago by [Nishad](https://wordpress.org/support/users/nishadup/).
      Reason: screenshot added

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

 *  Plugin Support [Manjurul Islam](https://wordpress.org/support/users/manjurulislam/)
 * (@manjurulislam)
 * [2 years ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17800920)
 * Hi [@nishadup](https://profiles.wordpress.org/nishadup/),
 * Thank you for reaching out to RioVizual.
 * We have tested it with iframe and it’s working fine on our end. We are unable
   to replicate the issue from our end.
   Could you please provide us with more details
   or a screenshot of the error you have encountered? This will help us identify
   the issue and provide a fix in the upcoming release.
 * Thanks and have a wonderful day!
 *  Thread Starter [Nishad](https://wordpress.org/support/users/nishadup/)
 * (@nishadup)
 * [2 years ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17801070)
 * Hi [@manjurulislam](https://wordpress.org/support/users/manjurulislam/),
 * I am sorry, somehow the screenshot is not went trough. Here is the screenshot.
 * [https://ibb.co/RY4bGrD](https://ibb.co/RY4bGrD)
 * Basically the error coming from riovizual\build\index.js below code
 * `&& document.querySelector("iframe")&&(e=document.querySelector("iframe").contentDocument.
   body.querySelectorAll(".wp-block-riovizual-tablebuilder, .wp-block-riovizual-
   prosandcons, .wp-block-riovizual-pricingtable"));`
 * To fix the issue, i made the code as below
 * `&& document.querySelector("iframe").contentDocument&&(e=document.querySelector("
   iframe").contentDocument.body.querySelectorAll(".wp-block-riovizual-tablebuilder,.
   wp-block-riovizual-prosandcons, .wp-block-riovizual-pricingtable"));`
 * Hope that helped. expecting this fix on next release.
 *  Thread Starter [Nishad](https://wordpress.org/support/users/nishadup/)
 * (@nishadup)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17805773)
 * Hi [@manjurulislam](https://wordpress.org/support/users/manjurulislam/),
 * Any update on this?
 *  Plugin Support [Manjurul Islam](https://wordpress.org/support/users/manjurulislam/)
 * (@manjurulislam)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17806165)
 * Hi [@nishadup](https://profiles.wordpress.org/nishadup/),
 * We have released a new version that includes the fix. Please update to the latest
   version and check if it resolves the issue on your end. Let us know if the issue
   persists.
 *  Thread Starter [Nishad](https://wordpress.org/support/users/nishadup/)
 * (@nishadup)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17807003)
 * Hi [@manjurulislam](https://wordpress.org/support/users/manjurulislam/),
 * Thanks a ton. it worked.

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

The topic ‘JS error while saving the page’ is closed to new replies.

 * ![](https://ps.w.org/riovizual/assets/icon-256x256.png?rev=3033188)
 * [RioVizual — Table Blocks for Comparison, Pricing and Pros & Cons](https://wordpress.org/plugins/riovizual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/riovizual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/riovizual/)
 * [Active Topics](https://wordpress.org/support/plugin/riovizual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/riovizual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/riovizual/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Nishad](https://wordpress.org/support/users/nishadup/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/js-error-while-saving-the-page/#post-17807003)
 * Status: resolved