• Resolved megalux

    (@megalux)


    Hello,

    I get this error using this plugin https://www.ads-software.com/plugins/custom-post-types/
    When try to edit a custom post…

    Error: An error occurred while running ‘mapSelect’: Cannot read property ‘pgc_sgb_lightbox_settings’ of undefined
    The error may be correlated with this previous error:
    TypeError: Cannot read property ‘pgc_sgb_lightbox_settings’ of undefined
    at ***********/wp-content/plugins/simply-gallery-block/dist/plugin.build.js?ver=1.3.0:1:32112

    I fix it in my local installation in this way…

    
    			if (e("core/editor").getEditedPostAttribute("meta")) {
    				return {
    					metaFieldValue: e("core/editor").getEditedPostAttribute("meta").pgc_sgb_lightbox_settings
    				}
    			} else {
    				return {
    					metaFieldValue: ''
    				}
    			}
    
  • The topic ‘Javascript Error Cannot read property ‘pgc_sgb_lightbox_settings’ of undefined’ is closed to new replies.