Closed janmckell closed 5 months ago
Escalated here: p1714485036204049-slack-C029FM1EH
Edited to add: initial user report in 8088274-zd-a8c.
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
Support References
This comment is automatically generated. Please do not edit it.
Could this be related to https://github.com/Automattic/wp-calypso/issues/85530 or https://github.com/Automattic/wp-calypso/issues/76105 ?
@mrfoxtalbot perhaps, though they're showing issues in the site-editor rather than the front-end
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.
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.
🎉 Glad to see things are working again! I'm following up with the initial user report, and closing this issue.
Quick summary
There is no content in the 'Feelin' Good' theme.
Steps to reproduce
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