We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting PHP errors when using the lightbox with images not in the media library.
( ! ) Notice: Undefined index: id in ./gutenberg/build/block-library/blocks/image.php on line 81
This happens in both the post editor and the frontend.
Or use the image block below.
<!-- wp:image {"sizeSlug":"large","behaviors":{"lightbox":true}} --> <figure class="wp-block-image size-large"><img src="https://wp20.wordpress.net/wp-content/themes/twentyseventeen-wp20/images/wp20-logo-white.svg" alt="WP20 logo"/></figure> <!-- /wp:image -->
No response
Yes
The text was updated successfully, but these errors were encountered:
I started this pull request to solve it. Thanks a lot for the report 🙂
Sorry, something went wrong.
SantosGuillamot
Successfully merging a pull request may close this issue.
Description
Getting PHP errors when using the lightbox with images not in the media library.
This happens in both the post editor and the frontend.
Step-by-step reproduction instructions
Or use the image block below.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: