• 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.