• Resolved Rosenborg

    (@rosenborg)


    On pages where I have used the map function, the map does not appear. When I try to edit these pages I just get a blank screen. I am using version 2.0.5 of the plugin. It has worked on earlier versions but not since version 2.0.2.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Leap13

    (@leap13)

    Hello@rosenborg

    So sorry for my late response. please update your Premium Blocks version to 2.0.8 then go to the Premium Blocks settings page to save the API Key.

    Thanks,

    Thread Starter Rosenborg

    (@rosenborg)

    Thanks – this helped to show the map again on the front end, but I still get a blank screen when I try to edit the page.

    Plugin Author Leap13

    (@leap13)

    Hello,

    Could you please share a screenshot of your console error of the editor page?

    Thanks,

    Thread Starter Rosenborg

    (@rosenborg)

    I get no error messages on the screen, just a blank page. Inspecting the page I find a warning that appears to apply to JQMIGRATE. Not sure if that’s the cause of the problem?
    !function(){“use strict”;var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},n={};e.d(n,{default:function(){return i}});var t=window.wp.hooks;const o=Object.create(null);function i(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{since:i,version:r,alternative:c,plugin:d,link:a,hint:l}=n,s=d?from $1gwpiim:””,u=i?since version ${i}:””,$=r?and will be removed${s} in version ${r}:””,w=c?Please use ${c} instead.:””,p=a?See: ${a}:””,f=l?Note: ${l}:””,v=${e} is deprecated${u}${$}.${w}${p}${f};v in o||((0,t.doAction)(“deprecated”,e,n,v),console.warn(v),o[v]=!0)}(window.wp=window.wp||{}).deprecated=n.default}();

    Plugin Author Leap13

    (@leap13)

    Hi,
    I suggest you start by deactivating all plugins you are running on your site except Premium Blocks for Gutenberg. I just to check if there is a conflict with another plugin.

    Then check the console logs in the editor.

    Finally check the PHP error logs on your site.

    With that information report back.

    Thanks,

    Thread Starter Rosenborg

    (@rosenborg)

    No errors in the console.
    And in wp-admin/error_log we find this:
    [17-Jan-2023 18:01:55 UTC] PHP Warning: Undefined variable $unique_id in /home/visittrondheim/public_html/wp-content/plugins/premium-blocks-for-gutenberg/blocks-config/maps/index.php on line 276
    [17-Jan-2023 18:01:55 UTC] PHP Warning: Undefined variable $unique_id in /home/visittrondheim/public_html/wp-content/plugins/premium-blocks-for-gutenberg/blocks-config/maps/index.php on line 277
    [17-Jan-2023 18:01:55 UTC] PHP Warning: Undefined variable $unique_id in /home/visittrondheim/public_html/wp-content/plugins/premium-blocks-for-gutenberg/blocks-config/maps/index.php on line 280
    [17-Jan-2023 18:01:55 UTC] PHP Warning: Undefined variable $unique_id in /home/visittrondheim/public_html/wp-content/plugins/premium-blocks-for-gutenberg/blocks-config/maps/index.php on line 282
    [17-Jan-2023 18:01:55 UTC] PHP Warning: Undefined variable $unique_id in /home/visittrondheim/public_html/wp-content/plugins/premium-blocks-for-gutenberg/blocks-config/maps/index.php on line 283

    Plugin Author Leap13

    (@leap13)

    Hello,

    Could you update Premium Blocks for Gutenberg to the latest version v.2.0.9 to fix the blank page issue?

    Thanks,

    Thread Starter Rosenborg

    (@rosenborg)

    Yes, the plugin has been updated to v.2.0.9, but I still get a white page in edit mode. When I inspect the page in edit mode I find this error:
    Updated Block: premium/maps blocks.min.js?ver=69022aed79bfd45b3b1d:10
    react-dom.min.js?ver=17.0.1:9 TypeError: Cannot read properties of undefined (reading ‘horizontal’)
    at save (index.js?ver=2.0.9:1:1003110)
    at Cr (blocks.min.js?ver=69022aed79bfd45b3b1d:10:4323)
    at xr (blocks.min.js?ver=69022aed79bfd45b3b1d:10:4704)
    at Un (blocks.min.js?ver=69022aed79bfd45b3b1d:10:35859)
    at blocks.min.js?ver=69022aed79bfd45b3b1d:10:35982
    at Array.reduce ()
    at Fn (blocks.min.js?ver=69022aed79bfd45b3b1d:10:35958)
    at core-data.min.js?ver=d8d458b31912f858bcdf:2:48380
    at $r (react-dom.min.js?ver=17.0.1:9:83333)
    at unstable_runWithPriority (react.min.js?ver=17.0.1:9:7431)

    Plugin Author Leap13

    (@leap13)

    Hello,

    Well, this needs to be checked further from the code perspective because it seems there is something wrong with the map block. So, please send us a message on our website so the team can check and update this topic with the solution.

    • This reply was modified 2 years, 1 month ago by Leap13.
    Thread Starter Rosenborg

    (@rosenborg)

    Okay. I’ve done this now so I hope it gets fixed pretty quickly.

    Thread Starter Rosenborg

    (@rosenborg)

    Updated to version 2.0.10 and now it works.

    Plugin Author Leap13

    (@leap13)

    Awesome, so glad to hear that???

    We would greatly appreciate if you could help us by rating Premium Blocks For Gutenberg from?here.

    Thanks,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Map not showing and blank screen when editing’ is closed to new replies.