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

Multisite no featured image #45836

Closed
dansdev opened this issue Nov 17, 2022 · 6 comments
Closed

Multisite no featured image #45836

dansdev opened this issue Nov 17, 2022 · 6 comments
Labels
[Feature] Document Settings Document settings experience [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed.

Comments

@dansdev
Copy link

dansdev commented Nov 17, 2022

Description

Hi there,

Sorry I'm unsure if this should be directed at Gutenberg or core. I have an issue/bug with the featured image meta box on a multisite installation in pages and posts.

Adding theme support for post-thumbnails in functions.php
add_action( 'after_setup_theme', 'theme_init' ); function theme_init() { add_theme_support('post-thumbnails'); }
After enabling theme support for post-thumbnails, Featured Image box should be in sidebar on post and pages edit screens. In a multisite this is not displayed. Looking at the sidebar in chrome devtools, it's not even rendered.

I have tested the above on a single installation and Featured Image box displays as it should.

Step-by-step reproduction instructions

  1. Install WordPress as multisite installation
  2. add add_theme_support('post-thumbnails'); to functions.php
  3. Navigate to post or page

Screenshots, screen recording, code snippet

multisite

Environment info

WP version: 6.1.1
Theme: Twenty Twenty-Three ( also tested with Twenty Twenty-Two)
Plugins: none
Multisite

Installed locally using Local by Flywheel
Apache 2.4.43
php 8.1.9

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

@Mamaduka Mamaduka added [Feature] Document Settings Document settings experience Needs Testing Needs further testing to be confirmed. labels Nov 17, 2022
@Mamaduka
Copy link
Member

Hi, @dansdev

I couldn't reproduce the issue when testing with WP 6.1.1 and Twenty Twenty-Three theme. I've not used the snippet to enable the post thumbnails since the Twenty Twenty-Three theme supports the feature out of the box.

Can you provide more details about your setup?

  • Do you see any errors in the DevTools console?
  • What is the role of the user you're testing with?

Thanks

@Mamaduka Mamaduka added [Status] Needs More Info Follow-up required in order to be actionable. and removed Needs Testing Needs further testing to be confirmed. labels Dec 13, 2022
@ndiego
Copy link
Member

ndiego commented Dec 13, 2022

Just following up on this one as well. I tested with 6.1.1 and the Twenty Twenty-Two theme and added the code snippet included above. I have been unable to replicate the issue. The Featured Image panel is displaying for me on both posts and pages.

image

@dansdev
Copy link
Author

dansdev commented Dec 14, 2022

Hi, @dansdev

I couldn't reproduce the issue when testing with WP 6.1.1 and Twenty Twenty-Three theme. I've not used the snippet to enable the post thumbnails since the Twenty Twenty-Three theme supports the feature out of the box.

Can you provide more details about your setup?

  • Do you see any errors in the DevTools console?
  • What is the role of the user you're testing with?

Thanks

Hi @Mamaduka, @ndiego

Thank you both for taking the time to look into my issue. I can confirm that my user role is administrator and that there are indeed DevTools errors, please see below:

console

Interesting enough in Local if I swap over to nginx webserver, the console errors are gone and the featured image panel displays fine in pages, posts and cpts! So looks like the issue might related to either Apache or Local. This is with a fresh install of Twenty Twenty-Three without using the add_theme_support snippet.

For reference, I have tested in Local by Flywheel on Apache 2.4.43 and Nginx 1.16.0, both installations using php 8.1.9.

Cheers

@github-actions
Copy link

Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Dec 30, 2022
@Mamaduka
Copy link
Member

Mamaduka commented Jan 2, 2023

@dansdev, based on errors, the WP installation is having trouble finding REST API endpoints. It looks like an Apache server or Local issue.

I will close the issue since this isn't something we can fix in the plugin or WP.

@Mamaduka Mamaduka closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2023
@ramiy
Copy link
Contributor

ramiy commented Jan 10, 2023

Same issue with 6.1.1 on a regular website, not multisite. In the post editing page, the "featured image" panel is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Settings Document settings experience [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed.
Projects
None yet
Development

No branches or pull requests

4 participants