Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
890 stars 354 forks source link

Feeling Good theme - Symlink broken #7767

Closed janmckell closed 5 months ago

janmckell commented 5 months ago

Quick summary

There is no content in the 'Feelin' Good' theme.

Markup on 2024-04-23 at 2:32:07 PM

Steps to reproduce

  1. Install or activate the Feeling Good theme.
  2. Go to the site editor.
  3. Open every single template.
  4. It is empty.

What you expected to happen

To see the demo content for the theme on the homepage, and other content on other templates.

What actually happened

There is no content in any of the templates of that theme.

Browser

No response

Context

No response

Platform (Simple, Atomic, or both?)

Simple

Other notes

This is not happening on Atomic sites, as far as my test reveals - only Simple sites.

Reproducibility

Consistent

Severity

Most (> 50%)

Available workarounds?

No and the platform is unusable

Workaround details

No response

jp-imagines commented 5 months ago

Escalated here: p1714485036204049-slack-C029FM1EH

Edited to add: initial user report in 8088274-zd-a8c.

dsas commented 5 months ago

I get some output on my screen when viewing the site or using the site editor:

Warning: Trying to access array offset on value of type null in /home/wpcom/public_html/wp-content/plugins/gutenberg-core/v18.1.2/lib/compat/wordpress-6.6/resolve-patterns.php on line 26
[deanpremiumtest.wordpress.com/]
[/plugins/gutenberg-core/v18.1.2/lib/compat/wordpress-6.6/resolve-patterns.php:60 gutenberg_replace_pattern_blocks(), wp-includes/class-wp-hook.php:326 gutenberg_replace_pattern_blocks_get_block_templates(), wp-includes/plugin.php:205 apply_filters(Array), wp-includes/block-template-utils.php:1099 apply_filters('get_block_templates'), wp-includes/block-template.php:140 get_block_templates(), wp-includes/block-template.php:66 resolve_block_template(), wp-includes/template.php:66 locate_block_template(), wp-includes/template.php:398 get_query_template(), wp-includes/template-loader.php:81 get_home_template(), wp-blog-header.php:19 require_once('wp-includes/template-loader.php'), index.php:49 require('wp-blog-header.php')]

I wonder if this is related to the 18.1.2 GB update

github-actions[bot] commented 5 months ago

Support References

This comment is automatically generated. Please do not edit it.

mrfoxtalbot commented 5 months ago

Could this be related to https://github.com/Automattic/wp-calypso/issues/85530 or https://github.com/Automattic/wp-calypso/issues/76105 ?

dsas commented 5 months ago

@mrfoxtalbot perhaps, though they're showing issues in the site-editor rather than the front-end

dsas commented 5 months ago

I get some output on my screen when viewing the site or using the site editor:

Looks like that might just be unrelated noise. If I manually apply https://github.com/WordPress/gutenberg/commit/2ff5f645682235aa6d4da7649256775f6328e842 then the warning goes away but the sadness continues.

dsas commented 5 months ago

Patterns are stored in the pattern cache so that it's not necessary to read from the filesystem on every request to see what patterns exist. This cache is set for feelingood on wpcom, but the list of patterns are empty

> wp cache get wp_theme_patterns_pub/feelingood theme_files
array (
  'version' => '1.0.2',
  'patterns' => 
  array (
  ),
)

I've deleted the cache manually with wp cache delete wp_theme_patterns_pub/feelingood theme_files and now the problem is resolved.

I don't know how the cache got the wrong data in the first place but I imagine that it's not a fault of feelingood 🤔 and its patterns directory hasn't changed on wpcom since it was first deployed.

jp-imagines commented 5 months ago

🎉 Glad to see things are working again! I'm following up with the initial user report, and closing this issue.