When a WordPress page editor plugin is activated (WP Bakery) I get the console errors on a page using the shortcode [civicrm component="profile" gid="14" mode="create" hijack="0"]
.
The script from “https://example.org/civicrm/?page=CiviCRM&q=civicrm/ajax/l10n-js/en_US&cid=13243&r=nPFxX” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
SyntaxError: expected expression, got '<' on line one of the dcocument
The page uses the Classic editor, not WPBakery. I've tried various plugins to disable the WP Bakery plugin on that one page, with no luck.
Disabling WP Bakery for the whole site allows the shortcodes to work; but it can't be deactivated due to client usage. I'm also trying to work with WP Bakery support.
As a result of the errors, no CiviCRM search results are returned.
Any ideas?
No errors in any WP or CiviCRM error logs.
Going directly to the URL of the Javascipt doesn't load the script, but loads the entire page.
Is it possible to enqueue the CiviCRM script in the footer or change its load order to help troubleshoot?