Title: Plugin script causing js error preventing page / post editor from being used
Last modified: January 29, 2019

---

# Plugin script causing js error preventing page / post editor from being used

 *  [rmmoul](https://wordpress.org/support/users/rmmoul/)
 * (@rmmoul)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-script-causing-js-error-preventing-page-post-editor-from-being-used/)
 * We recently upgraded your CTA plugin to the latest version (3.3.10) on a site
   running wordpress 5.0.3 with the classic editor plugin installed. We do not have
   the advanced custom field plugin installed.
 * When trying to edit a post or page, we are able to use the visual editor tab,
   but trying to switch to the text editor tab throws the following error in the
   js console and the text editor fails to load the text for editing.
 * acf-input.min.js?ver=5.7.9:10965 Uncaught TypeError: Cannot read property ‘getPostEdits’
   of undefined
 * We are not using the ACF plugin, so it seems that these extra scripts shouldn’t
   be loaded. To fix the issue for the time being we’ve had to manually edit your
   plugin at:
 * cta/shared/classes/class.load-shared.php
 * We’ve commented out the lines that load the ACF files on lines 88 and 98 and 
   this has fixed our issue. This is not a permanent solution though, I believe 
   that the plugin should possibly check for the ACF plugin before loading these
   files to prevent this issue.

The topic ‘Plugin script causing js error preventing page / post editor from being
used’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cta_a5a5a5.svg)
 * [WordPress Calls to Action](https://wordpress.org/plugins/cta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cta/)
 * [Active Topics](https://wordpress.org/support/plugin/cta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cta/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rmmoul](https://wordpress.org/support/users/rmmoul/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-script-causing-js-error-preventing-page-post-editor-from-being-used/)
 * Status: not resolved