• Resolved Erik Joling

    (@ejoling)


    Hi Darren,

    This week I updated the Block Manager plugin to version 2.0.0 on two websites. On both websites the Blocks tab in the settings of the plugin shows an empty screen.

    The browser console reveals a lot of javascript errors:

    Block "core/paragraph" is already registered. 
    Block "core/image" is already registered.
    [...] etcetera.
    Uncaught TypeError: w.includes is not a function  [block-manager-admin.js:5:2525]

    The problem remains when I deactivate all other plugins. I’m using WordPress 6.3.2

    I hope you can find the cause of this problem.

    Kind regards!
    Erik

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @ejoling

    Uncaught TypeError: w.includes is not a function  [block-manager-admin.js:5:2525]

    Yikes, that’s no good! Which browser are you using? Seems like maybe I need to polyfill includes Javascript functions.

    Block "core/image" is already registered.
    The other errors shouldn’t be happening, which Theme and WP version are you using?

    Thread Starter Erik Joling

    (@ejoling)

    Hi Darren,

    Thank your for your quick response and further inquiry.

    I’m using Firefox v118 on Ubuntu. But I just checked Chrome and the same error occurs. Also, switching to the Twenty Twenty Three theme doesn’t solve the problem.

    Plugin Author Darren Cooney

    (@dcooney)

    Ok, must be a logic issue then.

    I cant replicate this but can you click into the file to see what the line is?

    Uncaught TypeError: w.includes is not a function  [block-manager-admin.js:5:2525]
    Thread Starter Erik Joling

    (@ejoling)

    I think it has to do with the data in the database. When I clear the option value for gbm_disabled_blocks, the settings page for blocks works again.

    You could try this data ??

    a:97:{i:1;s:28:"variation;core/embed;twitter";i:3;s:29:"variation;core/embed;facebook";i:4;s:30:"variation;core/embed;instagram";i:5;s:30:"variation;core/embed;wordpress";i:6;s:31:"variation;core/embed;soundcloud";i:7;s:28:"variation;core/embed;spotify";i:8;s:27:"variation;core/embed;flickr";i:10;s:28:"variation;core/embed;animoto";i:11;s:28:"variation;core/embed;cloudup";i:12;s:33:"variation;core/embed;collegehumor";i:13;s:32:"variation;core/embed;crowdsignal";i:14;s:32:"variation;core/embed;dailymotion";i:15;s:26:"variation;core/embed;imgur";i:16;s:26:"variation;core/embed;issuu";i:17;s:32:"variation;core/embed;kickstarter";i:18;s:29:"variation;core/embed;mixcloud";i:19;s:32:"variation;core/embed;pocketcasts";i:20;s:27:"variation;core/embed;reddit";i:21;s:33:"variation;core/embed;reverbnation";i:22;s:31:"variation;core/embed;screencast";i:23;s:27:"variation;core/embed;scribd";i:24;s:31:"variation;core/embed;slideshare";i:25;s:28:"variation;core/embed;smugmug";i:26;s:33:"variation;core/embed;speaker-deck";i:27;s:27:"variation;core/embed;tiktok";i:28;s:24:"variation;core/embed;ted";i:29;s:27:"variation;core/embed;tumblr";i:30;s:31:"variation;core/embed;videopress";i:31;s:33:"variation;core/embed;wordpress-tv";i:32;s:34:"variation;core/embed;amazon-kindle";i:33;s:30:"variation;core/embed;pinterest";i:34;s:34:"variation;core/embed;wolfram-cloud";i:35;s:10:"core/audio";i:37;s:9:"core/file";i:38;s:12:"core/gallery";i:40;s:15:"core/media-text";i:41;s:10:"core/video";i:45;s:21:"core/comment-template";i:46;s:20:"core/navigation-link";i:48;s:14:"core/home-link";i:49;s:9:"core/more";i:50;s:13:"core/nextpage";i:54;s:17:"core/text-columns";i:55;s:13:"core/freeform";i:56;s:9:"core/code";i:62;s:17:"core/preformatted";i:63;s:14:"core/pullquote";i:64;s:10:"core/quote";i:65;s:10:"core/table";i:66;s:10:"core/verse";i:67;s:11:"core/avatar";i:68;s:24:"core/comment-author-name";i:69;s:22:"core/comment-edit-link";i:70;s:23:"core/comment-reply-link";i:71;s:13:"core/comments";i:72;s:29:"core/comments-pagination-next";i:73;s:32:"core/comments-pagination-numbers";i:74;s:24:"core/comments-pagination";i:75;s:33:"core/comments-pagination-previous";i:76;s:19:"core/comments-title";i:77;s:13:"core/loginout";i:79;s:26:"core/query-pagination-next";i:80;s:21:"core/query-no-results";i:81;s:29:"core/query-pagination-numbers";i:82;s:21:"core/query-pagination";i:83;s:12:"core/pattern";i:84;s:16:"core/post-author";i:85;s:26:"core/post-author-biography";i:86;s:21:"core/post-author-name";i:87;s:23:"core/post-comments-form";i:89;s:14:"core/post-date";i:90;s:17:"core/post-excerpt";i:91;s:24:"core/post-featured-image";i:92;s:25:"core/post-navigation-link";i:93;s:18:"core/post-template";i:94;s:15:"core/post-terms";i:96;s:30:"core/query-pagination-previous";i:97;s:10:"core/query";i:99;s:17:"core/comment-date";i:100;s:20:"core/comment-content";i:101;s:14:"core/read-more";i:103;s:17:"core/site-tagline";i:106;s:21:"core/term-description";i:107;s:13:"core/archives";i:108;s:13:"core/calendar";i:109;s:15:"core/categories";i:110;s:9:"core/html";i:111;s:20:"core/latest-comments";i:112;s:17:"core/latest-posts";i:113;s:14:"core/page-list";i:114;s:19:"core/page-list-item";i:115;s:8:"core/rss";i:116;s:11:"core/search";i:117;s:14:"core/shortcode";i:120;s:14:"core/tag-cloud";i:121;s:16:"core/query-title";i:122;s:15:"core/site-title";}
    Plugin Author Darren Cooney

    (@dcooney)

    Thanks for following up! Looks like some how the options array may have been incorrectly formatted into an object.

    Only fix would have been to:

    • Uninstall and then reinstall.
    • Clear the option from the DB as you’ve done.

    Glad it’s working for you now.

    Plugin Author Darren Cooney

    (@dcooney)

    A multisite uninstall won’t fix that issue. Please continue using 1.x

    Plugin Author Darren Cooney

    (@dcooney)

    I’ve managed to solve this. ??

    A fix will be out in the next release later this week.

    Plugin Author Darren Cooney

    (@dcooney)

    I’ve pushed the fix for this however there appears to be an SVN issue which is causing the plugin to not update.

    not sure what is going on.

    Plugin Author Darren Cooney

    (@dcooney)

    May have spoke too soon. It appears to be resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Block manage not usable with version 2.0.0’ is closed to new replies.