Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.75k stars 885 forks source link

Conflict with Constant Contact Forms causes blank metabox #12640

Closed monbauza closed 5 years ago

monbauza commented 5 years ago

Please give us a description of what happened.

When the Constant Contact Forms plugin plus the Classic Editor are activated, the Yoast metabox appears blank when editing a post or page or creating a new one. The error below appears in the browser's console.

Uncaught TypeError: _.pluck is not a function load-scripts.php?c=1&load[]=wp-autop,wp-blob,wp-block-serialization-default-parser,wp-shortcode,wp-blocks,hoverIntent,common,admin-bar,heartbeat,autosave,su&load[]=ggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,jquery-u&load[]=i-position,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortco&load[]=de,backbone,wp-util,wp-backbone,media-models,wp-plupload,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovide&load[]=o,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui&load[]=-dialog,wp-api,wp-annotations,quicktags&ver=5.1.1:445

image

With Yoast SEO Premium, the problem occurs even when the Classic Editor is deactivated. A different error appears though.

Uncaught TypeError: this.activateMode is not a function media-views.min.js?ver=5.1.1:1

image

Please describe what you expected to happen and why.

Yoast metabox to load fine and no errors to appear in the browser's console.

Used versions

Djennez commented 5 years ago

wait for update added as the developers of that plugin have been notified and have indicated they're looking into it.

Pcosta88 commented 5 years ago

Please inform the customer of conversation # 493243 when this conversation has been closed.

nuvoPoint commented 5 years ago

Hey, don't want to hijack this thread but this also happens with as little as just one random import in a custom 'enqueue_block_editor_assets' script. Ex:

The script only has one line: import { withState } from '@wordpress/compose';

Then this error is shown: Uncaught TypeError: this.activateMode is not a function

Any guidance in why Yoast breaks?

larssn commented 5 years ago

Webpack users running into this thread should add

externals: {
  lodash: 'lodash'
}

to their webpack.config.js

Djennez commented 5 years ago

Closing this as the developer of CCF pushed a fix to the latest release.