Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map block renders in page editor but not template editor #500

Open
iandunn opened this issue Nov 14, 2023 · 1 comment · Fixed by #517
Open

Map block renders in page editor but not template editor #500

iandunn opened this issue Nov 14, 2023 · 1 comment · Fixed by #517

Comments

@iandunn
Copy link
Member

iandunn commented Nov 14, 2023

#498 rendered the map blocks in the editor, and that worked on the SotW page in my tests. Today I noticed that it's now rendered as a This block has encountered an error and cannot be previewed placeholder.

This error is in the console:

Uncaught ReferenceError: wporgGoogleMap is not defined
    Edit index.js:21

It seems like the PHP render() function gets called in the page editor, but not the site editor. I tried switching to a <ServerSideRender>, but that didn't work.

@iandunn iandunn changed the title Map block sometimes won't render in editor Map event-filters block sometimes won't render in editor Nov 17, 2023
This was referenced Nov 20, 2023
@iandunn
Copy link
Member Author

iandunn commented Nov 21, 2023

#517 got rid of the wporgGoogleMap has already been declared error, but wporgGoogleMap is not defined still remains.

@iandunn iandunn reopened this Nov 21, 2023
@iandunn iandunn changed the title Map event-filters block sometimes won't render in editor Map block renders in page editor but not template editor Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🛑 Pending discussion
Development

Successfully merging a pull request may close this issue.

1 participant