• Resolved covertnine

    (@ttoomey)


    Hey guys!

    First, let me say that I LOVE your plugin. We use it on just about every production site we have so thank you for making such a great plugin!

    I do think I found a bug however with the newest version of WordPress (using Gutenberg) and the latest version of Autoptimize.

    We’re running Autoptimize 2.6.1 with WP 5.3.2 and when Autoptimize is enabled, we get the following error on the edit screen for pages on our Gutenberg powered theme:

    The block editor requires JavaScript. Please enable JavaScript in your browser settings, or try the classic editor plugin

    Disabling the plugin makes this go away. I tried added a setting for “try catch,” but that doesn’t fix it, nor did me adding the edit.min.js file to the exclusions list.

    There are two errors in my console that do not show up if I have Autoptimize disabled:

    post.php?post=1662&action=edit:283 Uncaught SyntaxError: Unexpected token '<'
    post.php?post=1662&action=edit:732 Uncaught TypeError: Cannot read property 'then' of undefined
        at post.php?post=1662&action=edit:732
    (anonymous) @ post.php?post=1662&action=edit:732

    The relevant code:

    <script src='https://c9.covertnine.com/wp-includes/js/dist/edit-post.min.js?ver=3.8.6'></script>
    <script>
    ( function() {
    	window._wpLoadBlockEditor = new Promise( function( resolve ) {
    		wp.domReady( function() {
    			resolve( wp.editPost.initializeEditor( 'editor', "page", 1662, {"alignWide":true,"availableTemplates":{"":"Default template","page-templates\/blank.php":"No Header or Footer Template","page-templates\/containerwidthpage.php":"Container Width With Title Page","page-templates\/fullwidthpage.php":"Full Width With Title Page","page-templates\/left-sidebarpage.php":"Left Sidebar Layout","page-templates\/right-sidebarpage.php":"Right Sidebar Layout"},"allowedBlockTypes":true,"disableCustomColors":false,"disableCustomFontSizes":false,"disablePostFormats":false,"titlePlaceholder":"Add title","bodyPlaceholder":"Start writing or type \/ to choose a block","isRTL":false,"autosaveInterval":60,"maxUploadFileSize":5368709120,"allowedMimeTypes":{"jpg|jpeg|jpe":"image\/jpeg","gif":"image\/gif","png":"image\/png","bmp":"image\/bmp","tiff|tif":"image\/tiff","ico":"image\/x-icon","asf|asx":"video\/x-ms-asf","wmv":"video\/x-ms-wmv","wmx":"video\/x-ms-wmx","wm":"video\/x-ms-wm","avi":"video\/avi","divx":"video\/divx","flv":"video\/x-flv","mov|qt":"video\/quicktime","mpeg|mpg|mpe":"video\/mpeg","mp4|m4v":"video\/mp4","ogv":"video\/ogg","webm":"video\/webm","mkv":"video\/x-matroska","3gp|3gpp":"video\/3gpp","3g2|3gp2":"video\/3gpp2","txt|asc|c|cc|h|srt":"text\/plain","csv":"text\/csv","tsv":"text\/tab-separated-values","ics":"text\/calendar","rtx":"text\/richtext","css":"text\/css","htm|html":"text\/html","vtt":"text\/vtt","dfxp":"application\/ttaf+xml","mp3|m4a|m4b":"audio\/mpeg","aac":"audio\/aac","ra|ram":"audio\/x-realaudio","wav":"audio\/wav","ogg|oga":"audio\/ogg","flac":"audio\/flac","mid|midi":"audio\/midi","wma":"audio\/x-ms-wma","wax":"audio\/x-ms-wax","mka":"audio\/x-matroska","rtf":"application\/rtf","js":"application\/javascript","pdf":"application\/pdf","class":"application\/java","tar":"application\/x-tar","zip":"application\/zip","gz|gzip":"application\/x-gzip","rar":"application\/rar","7z":"application\/x-7z-compressed","psd":"application\/octet-stream","xcf":"application\/octet-stream","doc":"application\/msword","pot|pps|ppt":"application\/vnd.ms-powerpoint","wri":"application\/vnd.ms-write","xla|xls|xlt|xlw":"application\/vnd.ms-excel","mdb":"application\/vnd.ms-access","mpp":"application\/vnd.ms-project","docx":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","docm":"application\/vnd.ms-word.document.macroEnabled.12","dotx":"application\/vnd.openxmlformats-officedocument.wordprocessingml.template","dotm":"application\/vnd.ms-word.template.macroEnabled.12","xlsx":"application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsm":"application\/vnd.ms-excel.sheet.macroEnabled.12","xlsb":"application\/vnd.ms-excel.sheet.binary.macroEnabled.12","xltx":"application\/vnd.openxmlformats-officedocument.spreadsheetml.template","xltm":"application\/vnd.ms-excel.template.macroEnabled.12","xlam":"application\/vnd.ms-excel.addin.macroEnabled.12","pptx":"application\/vnd.openxmlformats-officedocument.presentationml.presentation","pptm":"application\/vnd.ms-powerpoint.presentation.macroEnabled.12","ppsx":"application\/vnd.openxmlformats-officedocument.presentationml.slideshow","ppsm":"application\/vnd.ms-powerpoint.slideshow.macroEnabled.12","potx":"application\/vnd.openxmlformats-officedocument.presentationml.template","potm":"application\/vnd.ms-powerpoint.template.macroEnabled.12","ppam":"application\/vnd.ms-powerpoint.addin.macroEnabled.12","sldx":"application\/vnd.openxmlformats-officedocument.presentationml.slide","sldm":"application\/vnd.ms-powerpoint.slide.macroEnabled.12","onetoc|onetoc2|onetmp|onepkg":"application\/onenote","oxps":"application\/oxps","xps":"application\/vnd.ms-xpsdocument","odt":"application\/vnd.oasis.opendocument.text","odp":"application\/vnd.oasis.opendocument.presentation","ods":"application\/vnd.oasis.opendocument.spreadsheet","odg":"application\/vnd.oasis.opendocument.graphics","odc":"application\/vnd.oasis.opendocument.chart","odb":"application\/vnd.oasis.opendocument.database","odf":"application\/vnd.oasis.opendocument.formula","wp|wpd":"application\/wordperfect","key":"application\/vnd.apple.keynote","numbers":"application\/vnd.apple.numbers","pages":"application\/vnd.apple.pages","svg":"image\/svg+xml"},"styles":[{"css":"\/**\n * Colors\n *\/\n\/**\n * Breakpoints & Media Queries\n *\/\n\/**\n * Often re-used variables\n *\/\n\/**\n * Breakpoint mixins\n *\/\n\/**\n * Long content fade mixin\n *\n * Creates a fading overlay to signify that the content is longer\n * than the space allows.\n *\/\n\/**\n * Button states and focus styles\n *\/\n\/**\n * Applies editor left position to the selector passed as argument\n *\/\n\/**\n * Applies editor right position to the selector passed as argument\n *\/\n\/**\n * Styles that are reused verbatim in a few places\n *\/\n\/**\n * Allows users to opt-out of animations via OS-level preferences.\n *\/\n\/**\n * Reset default styles for JavaScript UI based pages.\n * This is a WP-admin agnostic reset\n *\/\n\/**\n * Reset the WP Admin page styles for Gutenberg-like pages.\n *\/\n\/**\n * Editor Normalization Styles\n *\n * These are only output in the editor, but styles here are prefixed .editor-styles-wrapper and affect the theming\n * of the editor by themes.\n * Why do these exist? Why not rely on browser defaults?\n * These styles are necessary so long as CSS can bleed from the wp-admin into the editing canvas itself.\n * Let's continue working to refactor these away, whether through Shadow DOM or better scoping of upstream styles.\n *\/\nbody {\n  font-family: \"Noto Serif\", serif;\n  font-size: 16px;\n  line-height: 1.8;\n  color: #191e23; }\n\n\/* Headings *\/\nh1 {\n  font-size: 2.44em; }\n\nh2 {\n  font-size: 1.95em; }\n\nh3 {\n  font-size: 1.56em; }\n\nh4 {\n  font-size: 1.25em; }\n\nh5 {\n  font-size: 1em; }\n\nh6 {\n  font-size: 0.8em; }\n\nh1,\nh2,\nh3 {\n  line-height: 1.4; }\n\nh4 {\n  line-height: 1.5; }\n\nh1 {\n  margin-top: 0.67em;\n  margin-bottom: 0.67em; }\n\nh2 {\n  margin-top: 0.83em;\n  margin-bottom: 0.83em; }\n\nh3 {\n  margin-top: 1em;\n  margin-bottom: 1em; }\n\nh4 {\n  margin-top: 1.33em;\n  margin-bottom: 1.33em; }\n\nh5 {\n  margin-top: 1.67em;\n  margin-bottom: 1.67em; }\n\nh6 {\n  margin-top: 2.33em;\n  margin-bottom: 2.33em; }\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  color: inherit; }\n\np {\n  font-size: inherit;\n  line-height: inherit;\n  margin-top: 28px;\n  margin-bottom: 28px; }\n\nul,\nol {\n  margin-bottom: 28px;\n  padding: inherit; }\n  ul ul,\n  ul ol,\n  ol ul,\n  ol ol {\n    margin-bottom: 0; }\n  ul li,\n  ol li {\n    margin-bottom: initial; }\n\nul {\n  list-style-type: disc; }\n\nol {\n  list-style-type: decimal; }\n\nul ul,\nol ul {\n  list-style-type: circle; }\n"},{"css":"body { font-family: 'Noto Serif' }"},{"css":"<!DOCTYPE html><html lang=\"en-US\"><head><meta charset=\"UTF-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"><meta name=\"mobile-web-app-capable\" content=\"yes\"><meta name=\"apple-mobile-web-app-capable\" content=\"yes\"><meta name=\"apple-mobile-web-app-title\" content=\"C9 WordPress Plugins + Themes - Documentation and demos for C9 WordPress Theme, Admin Plugin, C9 Blocks Plugin\"><link rel=\"profile\" href=\"http:\/\/gmpg.org\/xfn\/11\"><link rel=\"pingback\" href=\"https:\/\/c9.covertnine.com\/xmlrpc.php\"><link media=\"all\" href=\"https:\/\/c9.covertnine.com\/wp-content\/cache\/autoptimize\/css\/autoptimize_49356ec55a70ba0658777bc9db559691.css\" rel=\"stylesheet\" \/><title>404 | C9 WordPress Plugins + Themes<\/title><meta name=\"robots\" content=\"max-snippet:-1,max-image-preview:standard,max-video-preview:-1\" \/><link rel='dns-prefetch' href='\/\/www.youtube.com' \/><link rel=\"alternate\" type=\"application\/rss+xml\" title=\"C9 WordPress Plugins + Themes &raquo; Feed\" href=\"https:\/\/c9.covertnine.com\/feed\/\" \/><link rel=\"alternate\" type=\"application\/rss+xml\" title=\"C9 WordPress Plugins + Themes &raquo; Comments Feed\" href=\"https:\/\/c9.covertnine.com\/comments\/feed\/\" \/> <script type='text\/javascript' src='https:\/\/c9.covertnine.com\/wp-includes\/js\/jquery\/jquery.js'><\/script> <script type='text\/javascript'>Piwik -->\n\n  var _paq = _paq || [];\n  \/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" *\/\n  _paq.push(['trackPageView']);\n  _paq.push(['enableLinkTracking']);\n  (function() {\n    var u=\"\/\/www.covertnine.com\/matomo\/\";\n    _paq.push(['setTrackerUrl', u+'piwik.php']);\n    _paq.push(['setSiteId', '4']);\n    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n    g.type='text\/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);\n  })();\n\n<!-- End Piwik Code<\/script> <script type='text\/javascript' src='https:\/\/www.youtube.com\/player_api'><\/script> <link rel='https:\/\/api.w.org\/' href='https:\/\/c9.covertnine.com\/wp-json\/' \/><link rel=\"EditURI\" type=\"application\/rsd+xml\" title=\"RSD\" href=\"https:\/\/c9.covertnine.com\/xmlrpc.php?rsd\" \/><link rel=\"wlwmanifest\" type=\"application\/wlwmanifest+xml\" href=\"https:\/\/c9.covertnine.com\/wp-includes\/wlwmanifest.xml\" \/><link rel=\"icon\" href=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/cropped-covertnine-feather-logo-apple-touch-1-32x32.png\" sizes=\"32x32\" \/><link rel=\"icon\" href=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/cropped-covertnine-feather-logo-apple-touch-1-192x192.png\" sizes=\"192x192\" \/><link rel=\"apple-touch-icon-precomposed\" href=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/cropped-covertnine-feather-logo-apple-touch-1-180x180.png\" \/><meta name=\"msapplication-TileImage\" content=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/cropped-covertnine-feather-logo-apple-touch-1-270x270.png\" \/><\/head><body class=\"error404 wp-embed-responsive hfeed\"><div class=\"hfeed site\" id=\"page\"><div id=\"wrapper-navbar\" class=\"header-navbar\" itemscope itemtype=\"http:\/\/schema.org\/WebSite\"> <a class=\"skip-link screen-reader-text sr-only\" href=\"#content\">Skip to content<\/a><nav class=\"navbar navbar-expand-lg navbar-light\"><div class=\"container\"> <a href=\"https:\/\/c9.covertnine.com\" title=\"C9 WordPress Plugins + Themes Homepage\" class=\"navbar-brand custom-logo-link c9-custom-logo\"> <noscript><img src=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/c9-black-text-logo.svg\" class=\"c9-home-logo img-fluid\" alt=\"C9 WordPress Plugins + Themes Logo\" \/><\/noscript><img src='data:image\/svg+xml,%3Csvg%20xmlns=%22http:\/\/www.w3.org\/2000\/svg%22%20viewBox=%220%200%20%20%22%3E%3C\/svg%3E' data-src=\"https:\/\/c9.covertnine.com\/wp-content\/uploads\/2019\/10\/c9-black-text-logo.svg\" class=\"lazyload c9-home-logo img-fluid\" alt=\"C9 WordPress Plugins + Themes Logo\" \/> <\/a><div class=\"navbar-small-buttons\"><div class=\"nav-search\"> <a href=\"#\" class=\"btn-nav-search\"> <i class=\"fa fa-search\"><\/i> <span class=\"sr-only\"><\/span> <\/a><\/div><div class=\"nav-toggle\"> <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarNavDropdown\" aria-controls=\"navbarNavDropdown\" aria-expanded=\"false\" aria-label=\"Toggle navigation\"> <i class=\"fa fa-bars\"><\/i> <\/button><\/div><\/div><div id=\"navbarNavDropdown\" class=\"collapse navbar-collapse justify-content-center navbar-expand-lg\"><ul id=\"main-menu\" class=\"navbar-nav nav nav-fill justify-content-between\"><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-865\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-865 nav-item\"><a title=\"C9 Theme\" href=\"#\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" class=\"dropdown-toggle nav-link c9-smooth\" id=\"menu-item-dropdown-865\">C9 Theme<\/a><ul class=\"dropdown-menu\" aria-labelledby=\"menu-item-dropdown-865\" role=\"menu\"><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-910\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-910 nav-item\"><a title=\"Theme Overview\" href=\"https:\/\/c9.covertnine.com\/c9-theme\/\" class=\"dropdown-item c9-smooth\">Theme Overview<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1673\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1673 nav-item\"><a title=\"Customizing C9 Theme\" href=\"https:\/\/c9.covertnine.com\/documentation\/c9-client-boilerplate\/\" class=\"dropdown-item c9-smooth\">Customizing C9 Theme<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1160\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-1160 nav-item\"><div class=\"dropdown-divider\" title=\"dropdown-divider\" class=\"dropdown-item dropdown-divider c9-smooth\">dropdown-divider<\/div><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1137\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-1137 nav-item\"><span class=\"dropdown-header h6\" title=\"dropdown-header\" class=\"dropdown-item dropdown-header c9-smooth\">Demo Content<\/span><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-127\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-127 nav-item\"><a title=\"Style Guide\" href=\"https:\/\/c9.covertnine.com\/style-guide\/\" class=\"dropdown-item c9-smooth\">Style Guide<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-868\" class=\"menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-868 nav-item\"><a title=\"Posts Page\" href=\"https:\/\/c9.covertnine.com\/posts\/\" class=\"dropdown-item c9-smooth\">Posts Page<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-872\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-872 nav-item\"><a title=\"Post Header Large Photo\" href=\"\/vestibulum-pulvin-dar-sit-tamet-bigula\/\" class=\"dropdown-item c9-smooth\">Post Header Large Photo<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-899\" class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-899 nav-item\"><a title=\"Post With Photo Gallery\" href=\"https:\/\/c9.covertnine.com\/blog-post-8\/\" class=\"dropdown-item c9-smooth\">Post With Photo Gallery<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-871\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-871 nav-item\"><a title=\"Post Comments\" href=\"\/hello-world\/#comments\" class=\"dropdown-item c9-smooth\">Post Comments<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-869\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-869 nav-item\"><a title=\"404 Error\" href=\"\/busted\" class=\"dropdown-item c9-smooth\">404 Error<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-870\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-870 nav-item\"><a title=\"Search Results\" href=\"?s=ipsum&submit=Search\" class=\"dropdown-item c9-smooth\">Search Results<\/a><\/li><\/ul><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-747\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-747 nav-item\"><a title=\"C9 Blocks\" href=\"#\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" class=\"dropdown-toggle nav-link c9-smooth\" id=\"menu-item-dropdown-747\">C9 Blocks<\/a><ul class=\"dropdown-menu\" aria-labelledby=\"menu-item-dropdown-747\" role=\"menu\"><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-909\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-909 nav-item\"><a title=\"Blocks Overview\" href=\"https:\/\/c9.covertnine.com\/c9-blocks-plugin\/\" class=\"dropdown-item c9-smooth\">Blocks Overview<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1235\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1235 nav-item\"><a title=\"Installing C9 Blocks Plugin\" href=\"https:\/\/c9.covertnine.com\/documentation\/c9-blocks-plugin-installation\/\" class=\"dropdown-item c9-smooth\">Installing C9 Blocks Plugin<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1140\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1140 nav-item\"><a title=\"Building Landing Pages From Scratch\" href=\"https:\/\/c9.covertnine.com\/documentation\/using-the-c9-grid-block-for-responsive-layouts\/\" class=\"dropdown-item c9-smooth\">Building Landing Pages From Scratch<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-874\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-874 nav-item\"><a title=\"Building Landing Pages From Templates\" href=\"https:\/\/c9.covertnine.com\/documentation\/building-layouts-from-templates\/\" class=\"dropdown-item c9-smooth\">Building Landing Pages From Templates<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-876\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-876 nav-item\"><a title=\"Using Reusable Block Layouts\" href=\"https:\/\/c9.covertnine.com\/documentation\/using-saved-block-layouts\/\" class=\"dropdown-item c9-smooth\">Using Reusable Block Layouts<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-976\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-976 nav-item\"><a title=\"Development Guide\" href=\"https:\/\/c9.covertnine.com\/c9-blocks-development\/\" class=\"dropdown-item c9-smooth\">Development Guide<\/a><\/li><\/ul><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-882\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-882 nav-item\"><a title=\"C9 Admin\" href=\"https:\/\/c9.covertnine.com\/c9-admin-plugin\/\" class=\"nav-link c9-smooth\">C9 Admin<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-1425\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1425 nav-item\"><a title=\"Documentation\" href=\"https:\/\/c9.covertnine.com\/documentation\/\" class=\"nav-link c9-smooth\">Documentation<\/a><\/li><li itemscope=\"itemscope\" itemtype=\"https:\/\/www.schema.org\/SiteNavigationElement\" id=\"menu-item-991\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-991 nav-item\"><a title=\"Sample Content\" href=\"https:\/\/c9.covertnine.com\/sample-content\/\" class=\"nav-link c9-smooth\">Sample Content<\/a><\/li><li class=\"nav-item search\"><div class=\"nav-search\"> <a href=\"#\" class=\"btn-nav-search nav-link\"> <i class=\"fa fa-search\"><\/i> <span class=\"sr-only\">Search<\/span> <\/a><\/div><\/li><\/ul><\/div><\/div><\/nav><\/div><div class=\"wrapper\" id=\"error-404-wrapper\"><div class=\"container c9\" id=\"content\" tabindex=\"-1\"><div class=\"row\"><div class=\"col-12 content-area\" id=\"primary\"><main class=\"site-main\" id=\"main\"><section class=\"error-404 not-found\"><div class=\"page-content\"><header class=\"page-header container-narrow\"><h1 class=\"page-title\"> Oops! That page can&rsquo;t be found.<\/h1><\/header><div class=\"container-narrow mar30B\"><p> It looks like nothing was found at this location. Maybe try one of the links below or a search?<\/p><form method=\"get\" id=\"searchform\" action=\"https:\/\/c9.covertnine.com\/\" role=\"search\"> <label class=\"assistive-text sr-only\" for=\"s\">Search<\/label><div class=\"input-group\"> <input class=\"field form-control\" id=\"s\" name=\"s\" type=\"text\" placeholder=\"Search &hellip;\" value=\"\"> <span class=\"input-group-append\"> <input class=\"btn btn-primary\" id=\"searchsubmit\" name=\"submit\" type=\"submit\" value=\"Search\"> <\/span><\/div><\/form><\/div><\/div><\/section><\/main><\/div><\/div><\/div><\/div><div class=\"footer-entirety\"><div class=\"wrapper\" id=\"wrapper-footer-full\"><div class=\"container\" id=\"footer-full-content\" tabindex=\"-1\"><div class=\"row\"><div id=\"nav_menu-4\" class=\"footer-widget widget_nav_menu widget-count-3 col-md-4\"><h3 class=\"widget-title\">Documentation<\/h3><div class=\"menu-documentation-container\"><ul id=\"menu-documentation\" class=\"menu\"><li id=\"menu-item-1936\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1936\"><a href=\"https:\/\/c9.covertnine.com\/documentation\/c9-blocks-plugin-installation\/\" class=\" c9-smooth\">C9 Blocks Plugin Installation<\/a><\/li><li id=\"menu-item-1937\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1937\"><a href=\"https:\/\/c9.covertnine.com\/c9-blocks-development\/\" class=\" c9-smooth\">C9 Blocks Development<\/a><\/li><li id=\"menu-item-815\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-815\"><a href=\"https:\/\/c9.covertnine.com\/documentation\/using-saved-block-layouts\/\" class=\" c9-smooth\">Creating Landing Pages from Reusable Blocks<\/a><\/li><li id=\"menu-item-813\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-813\"><a href=\"https:\/\/c9.covertnine.com\/documentation\/building-layouts-from-templates\/\" class=\" c9-smooth\">Creating Landing Pages from Block Templates<\/a><\/li><li id=\"menu-item-1810\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1810\"><a href=\"https:\/\/c9.covertnine.com\/documentation\/using-the-c9-grid-block-for-responsive-layouts\/\" class=\" c9-smooth\">Building from Scratch with C9 Grid Blocks<\/a><\/li><\/ul><\/div><\/div><div id=\"nav_menu-6\" class=\"footer-widget widget_nav_menu widget-count-3 col-md-4\"><h3 class=\"widget-title\">Get Help<\/h3><div class=\"menu-get-help-container\"><ul id=\"menu-get-help\" class=\"menu\"><li id=\"menu-item-823\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-823\"><a href=\"https:\/\/c9.covertnine.com\/documentation\/\" class=\" c9-smooth\">Documentation<\/a><\/li><li id=\"menu-item-822\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-822\"><a href=\"https:\/\/www.covertnine.com\/community\" class=\" c9-smooth\">Community Forum<\/a><\/li><li id=\"menu-item-903\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-903\"><a href=\"https:\/\/c9.covertnine.com\/c9-admin-plugin\/\" class=\" c9-smooth\">C9 Admin Plugin<\/a><\/li><li id=\"menu-item-907\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-907\"><a href=\"https:\/\/c9.covertnine.com\/c9-blocks-plugin\/\" class=\" c9-smooth\">C9 Blocks Plugin<\/a><\/li><li id=\"menu-item-908\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-908\"><a href=\"https:\/\/c9.covertnine.com\/c9-theme\/\" class=\" c9-smooth\">C9 Theme<\/a><\/li><\/ul><\/div><\/div><div id=\"nav_menu-5\" class=\"footer-widget widget_nav_menu widget-count-3 col-md-4\"><h3 class=\"widget-title\">Who’s COVERT NINE?<\/h3><div class=\"menu-social-nav-container\"><ul id=\"menu-social-nav\" class=\"menu\"><li id=\"menu-item-901\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-901\"><a href=\"https:\/\/www.covertnine.com\" class=\" c9-smooth\">Company<\/a><\/li><li id=\"menu-item-902\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-902\"><a href=\"https:\/\/linkedin.com\/company\/covert-nine\" class=\" c9-smooth\">LinkedIn<\/a><\/li><li id=\"menu-item-129\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-129\"><a href=\"https:\/\/facebook.com\/covertnine\" class=\" c9-smooth\">Facebook<\/a><\/li><li id=\"menu-item-130\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-130\"><a href=\"https:\/\/instagram.com\/covertnine\" class=\" c9-smooth\">Instagram<\/a><\/li><li id=\"menu-item-1881\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-1881\"><a href=\"https:\/\/twitter.com\/covertnine\/\" class=\" c9-smooth\">Twitter<\/a><\/li><\/ul><\/div><\/div><\/div><\/div><\/div><div class=\"footer-wrapper\" id=\"wrapper-footer\"><div class=\"container\"><div class=\"row\"><div class=\"col-md-12\"><footer class=\"site-footer\" id=\"colophon\"><div class=\"site-info\"><div class=\"container\"><div class=\"row text-center d-flex justify-content-between align-items-center\"><div class=\"col-xs-6 col-sm-3 col-lg-2 p-0 footer-social-wrapper\"><div class=\"footer-social text-center\"> <a href=\"\/\/twitter.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-twitter\"><\/i><\/a><a href=\"\/\/facebook.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-facebook\"><\/i><\/a><a href=\"\/\/instagram.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-instagram\"><\/i><\/a><a href=\"\/\/pinterest.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-pinterest\"><\/i><\/a><a href=\"\/\/youtube.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-youtube\"><\/i><\/a><a href=\"https:\/\/linkedin.com\/company\/covert-nine\" target=\"_blank\"><i class=\"fab fa-linkedin\"><\/i><\/a><a href=\"https:\/\/github.com\/covertnine\" target=\"_blank\"><i class=\"fab fa-github\"><\/i><\/a><\/div><\/div><div class=\"col-xs-12 col-sm-6 col-md-5 p-0 footer-copyright-wrapper\"><p class=\"text-center copyright\">Copyright \u00a9 2019 COVERT NINE LLC. All Rights Reserved.<\/p><\/div><div class=\"col-xs-12 col-sm-12 col-md-2 text-left footer-search-wrapper\"><div class=\"footer-search\"><form method=\"get\" id=\"searchform\" action=\"https:\/\/c9.covertnine.com\/\" role=\"search\"> <label class=\"assistive-text sr-only\" for=\"s\">Search<\/label><div class=\"input-group\"> <input class=\"field form-control\" id=\"s\" name=\"s\" type=\"text\" placeholder=\"Search &hellip;\" value=\"\"> <span class=\"input-group-append\"> <input class=\"btn btn-primary\" id=\"searchsubmit\" name=\"submit\" type=\"submit\" value=\"Search\"> <\/span><\/div><\/form><\/div><\/div><\/div><\/div><\/div><\/footer><\/div><\/div><\/div><\/div><\/div><\/div><div id=\"fullscreensearch\"> <button type=\"button\" class=\"search-close\"><i class=\"fa fa-close\"><\/i><span class=\"sr-only\">Close<\/span><\/button><form role=\"search\" method=\"get\" id=\"fullscreen\" action=\"\/\"><div> <span class=\"sr-only\">Search for:<\/span> <input type=\"search\" class=\"search-field\" name=\"s\" value=\"\" placeholder=\"Search...\" \/> <button type=\"submit\" class=\"btn\">Search<\/button><\/div><\/form><\/div> <script>\/\/ Used by Gallery Custom Links to handle tenacious Lightboxes\n\t\t\t\tjQuery(document).ready(function () {\n\n\t\t\t\t\tfunction mgclInit() {\n\t\t\t\t\t\tif (jQuery.fn.off) {\n\t\t\t\t\t\t\tjQuery('.no-lightbox, .no-lightbox img').off('click'); \/\/ jQuery 1.7+\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tjQuery('.no-lightbox, .no-lightbox img').unbind('click'); \/\/ < jQuery 1.7\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjQuery('a.no-lightbox').click(mgclOnClick);\n\n\t\t\t\t\t\tif (jQuery.fn.off) {\n\t\t\t\t\t\t\tjQuery('a.set-target').off('click'); \/\/ jQuery 1.7+\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tjQuery('a.set-target').unbind('click'); \/\/ < jQuery 1.7\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjQuery('a.set-target').click(mgclOnClick);\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction mgclOnClick() {\n\t\t\t\t\t\tif (!this.target || this.target == '' || this.target == '_self')\n\t\t\t\t\t\t\twindow.location = this.href;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\twindow.open(this.href,this.target);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ From WP Gallery Custom Links\n\t\t\t\t\t\/\/ Reduce the number of  conflicting lightboxes\n\t\t\t\t\tfunction mgclAddLoadEvent(func) {\n\t\t\t\t\t\tvar oldOnload = window.onload;\n\t\t\t\t\t\tif (typeof window.onload != 'function') {\n\t\t\t\t\t\t\twindow.onload = func;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twindow.onload = function() {\n\t\t\t\t\t\t\t\toldOnload();\n\t\t\t\t\t\t\t\tfunc();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmgclAddLoadEvent(mgclInit);\n\t\t\t\t\tmgclInit();\n\n\t\t\t\t});<\/script> <script type=\"text\/javascript\">function c9BlocksShare( url, title, w, h ){\n\t\t\tvar left = ( window.innerWidth \/ 2 )-( w \/ 2 );\n\t\t\tvar top  = ( window.innerHeight \/ 2 )-( h \/ 2 );\n\t\t\treturn window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=600, top='+top+', left='+left);\n\t\t}<\/script> <noscript><style>.lazyload{display:none;}<\/style><\/noscript><script data-noptimize=\"1\">window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig.loadMode=1;<\/script><script async data-noptimize=\"1\" src='https:\/\/c9.covertnine.com\/wp-content\/plugins\/autoptimize\/classes\/external\/js\/lazysizes.min.js?ao_version=2.6.1'><\/script> <script defer src=\"https:\/\/c9.covertnine.com\/wp-content\/cache\/autoptimize\/js\/autoptimize_1cfb011754820b15fedc24eaccb40b1a.js\"><\/script><\/body><\/html>"}],"imageSizes":[{"slug":"thumbnail","name":"Thumbnail"},{"slug":"medium","name":"Medium"},{"slug":"medium_large","name":"medium_large"},{"slug":"large","name":"Large"},{"slug":"1536x1536","name":"1536x1536"},{"slug":"2048x2048","name":"2048x2048"},{"slug":"c9-feature-wide","name":"c9-feature-wide"},{"slug":"c9-feature-hd-wide","name":"c9-feature-hd-wide"},{"slug":"c9-feature-large-wide","name":"c9-feature-large-wide"},{"slug":"c9-feature-medium-wide","name":"c9-feature-medium-wide"},{"slug":"c9-feature-medium-crop","name":"c9-feature-medium-crop"},{"slug":"c9-feature-audio","name":"c9-feature-audio"},{"slug":"c9-tiny-thumb","name":"c9-tiny-thumb"},{"slug":"full","name":"Full Size"}],"richEditingEnabled":true,"postLock":{"isLocked":false,"activePostLock":"1577822361:1"},"postLockUtils":{"nonce":"e41ff64af3","unlockNonce":"092fea265b","ajaxUrl":"https:\/\/c9.covertnine.com\/wp-admin\/admin-ajax.php"},"enableCustomFields":false,"autosave":{"editLink":"https:\/\/c9.covertnine.com\/wp-admin\/revision.php?revision=1940"},"colors":[{"color":"#ca292c","name":"C9 Red","slug":"covertnine-palette-0"},{"color":"#ffffff","name":"C9 White","slug":"covertnine-palette-1"},{"color":"#353535","name":"C9 Gray","slug":"covertnine-palette-2"},{"color":"#131313","name":"C9 Dark Gray","slug":"covertnine-palette-3"},{"color":"#c14034","name":"C9 Faded Red","slug":"covertnine-palette-4"},{"color":"#63cbe5","name":"C9 Blue 1","slug":"covertnine-palette-5"},{"color":"#097b85","name":"C9 Teal","slug":"covertnine-palette-6"},{"color":"#b11f24","name":"C9 Old Red","slug":"covertnine-palette-7"},{"color":"#b8b9b9","name":"C9 Light Gray","slug":"covertnine-palette-8"},{"color":"#000000","name":"Color 9","slug":"covertnine-palette-9"}]}, null ) );
    		} );
    	} );
    } )();
    </script>

    And the second error:

    <script type='text/javascript'>
    window._wpLoadBlockEditor.then( function() {
    		wp.data.dispatch( 'core/edit-post' ).setAvailableMetaBoxesPerLocation( {"side":[],"normal":[{"id":"tsf-inpost-box","title":"Page SEO Settings"}],"advanced":[]} );
    	} );
    </script>

    Any ideas?

    -Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Maybe try unticking the “also optimize for logged in editors/ administrators”-option?

    Thread Starter covertnine

    (@ttoomey)

    The error still persists after doing that unfortunately.

    I can provide access to this site if there’s a way to send credentials.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I can provide access to this site if there’s a way to send credentials.

    That’s not permitted here I’m afraid + I don’t log into sites in the context of free support ??

    The error still persists after doing that unfortunately.

    That’s peculiar as with that option off AO isn’t optimizing JS/ CSS/ HTML/ images/ … I also did a quick test on my test/dev machine and I can’t reproduce the errors, so I have no idea what is going wrong in your case. Yet.

    OK, some questions:
    * does the error go away when “optimize JavaScript” and/or “optimize CSS” and/or “optimize HTML” are off?
    * does the error go away when all options on the “Extra” tab are off?
    * are you doing the editing in the backend (wp-admin) or are does your theme allow editing blocks in the frontend?
    * what theme are you using? does the error persist when on another theme?
    * does this happen on one site, or multiple sites, or all sites you’ve tested this on?
    * does this happen when opening a page for editing, or when the page is already open and editing a block? any specific block or all blocks?

    oh, and Happy New Year! ??

    Thread Starter covertnine

    (@ttoomey)

    Okay. I was able see it working when I started disabling some of the optimize settings in your first bullet point, and I think I know what’s wrong possibly:

    * does the error go away when “optimize JavaScript” and/or “optimize CSS” and/or “optimize HTML” are off?

    It appears to go away as long as ‘optimize HTML’ is unchecked, and given that Gutenberg stores a ton of information in comment-looking HTML markup, I’m guessing it’s stripping out comments or something like that.

    When I check the “leave comments in html” it works just fine, but when that is unchecked, it’s getting stripped out and my guess is that interferes with Gutenberg somehow.

    * what theme are you using? does the error persist when on another theme?

    We’re using our starter theme, which is based on _s. https://www.github.com/covertnine/c9 or if you want one that’s ready to go for install: https://c9.covertnine.com/wp-content/uploads/2019/10/c9.zip

    I’ve tested it out on a site with minimal addons and it doesn’t seem to come up there so it must have something to do with the blocks or content on that one specific site, though it’s also a pretty minimalist site in terms of plugins…

    As far as I can tell retaining comments fixes the issue so we should be good to go. Let me know if I can provide any additional troubleshooting info.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    The plot thickens ??

    1. when on the backend (/wp-admin), AO does not optimize by design
    2. when “also optimized for logged in editors/admins” is unticked, AO does not optimize
    3. when front-end HTML is requested in WordPress, all block HTML should already be parsed and blocks should be rendered

    Yet somehow something in your specific context, when editing blocks, is requesting front-end HTML (because otherwise AO would not act on it) and that front-end HTML contains Gutenberg HTML-tags.

    I officially now have even less of an idea what is going on there to be honest … The only troubleshooting I can think of; disable/ re-enable plugins one by one, switch themes with the goal of identifying what exactly is the culprit?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error in gutenberg editor “the block editor requires javascript”’ is closed to new replies.