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

7.3 RC: Warning of missing file #19770

Closed
bph opened this issue Jan 21, 2020 · 3 comments
Closed

7.3 RC: Warning of missing file #19770

bph opened this issue Jan 21, 2020 · 3 comments
Labels
[Release] Do Not Punt Used to indicate the issue or pull request must not be moved from the assigned milestone [Type] Bug An existing feature does not function as intended
Milestone

Comments

@bph
Copy link
Contributor

bph commented Jan 21, 2020

Describe the bug
Warning: file_get_contents(/app/public/wp-content/plugins/gutenberg/build/block-library/blocks/shortcode.json): failed to open stream: No such file or directory in /app/public/wp-content/plugins/gutenberg/build/block-library/blocks/shortcode.php on line 25

Appears when activating Gutenberg plugin 7.3. RC1

To reproduce
Steps to reproduce the behavior:

  1. Create a clean WordPress instance
  2. Install Gutenberg 7.3 RC and activate
  3. Enable Debugging
  4. Use any of the default Themes

Error message appears on top of the screen.

Expected behavior
no warning or missing file

Screenshots
Screen Shot 2020-01-20 at 7 22 40 PM

Desktop (please complete the following information):

  • OS: 10.15.2
  • Browser : Chrome
  • Version: Version 79.0.3945.117 (Official Build) (64-bit)
@aduth
Copy link
Member

aduth commented Jan 21, 2020

Likely related to #19534 (cc @koke, @chipsnyder, @gziolo).

If it's a necessary file, it needs to be included in the files/patterns targeted for plugin build here:

build_files=$(ls build/*/*.{js,css,asset.php} build/block-library/blocks/*.php)
# Generate the plugin zip file.
status "Creating archive... 🎁"
zip -r gutenberg.zip \
gutenberg.php \
lib/*.php \
lib/demo-block-templates/*.html \
packages/block-serialization-default-parser/*.php \
post-content.php \
$vendor_scripts \
$build_files \
readme.txt \
changelog.txt \
README.md

@aduth aduth added this to the Gutenberg 7.3 milestone Jan 21, 2020
@aduth aduth added [Release] Do Not Punt Used to indicate the issue or pull request must not be moved from the assigned milestone [Type] Bug An existing feature does not function as intended labels Jan 21, 2020
@gziolo
Copy link
Member

gziolo commented Jan 21, 2020

Fixed by @ockham with #19772. Well, we still should regenerate the ZIP file.

@ellatrix
Copy link
Member

Let's close since this has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Release] Do Not Punt Used to indicate the issue or pull request must not be moved from the assigned milestone [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants