When I upgrade WP from 6.5.5 to 6.6.2, the Site Editor hangs: when I click on “Appearance” in WP admin and then on “Editor” the Site Editor hangs. The sidebar on the left appears, but on the right there is an empty screen with a progress bar that gets stuck at about 25%.
In the error log I find the following error message:
[Fri Oct 11 10:01:24.816633 2024] [allowmethods:error] [pid 2348467:tid 140551999354624] [remote 2a02:a03f:e93a:ed00:99f9:38b5:e7f6:bb61:49969] AH01623: client method denied by server configuration: ‘OPTIONS’ to /home/uuuuuu/domains/mywebsite/public_html/wp-json, referer: https://mywebsite/wp-admin/site-editor.php
This happens on the default WP with the default theme 2024, but also with other block themes I tested such as 2022 and 2023.
Rollback to 6.5.5 and the problem disappears.
Can you help ?
]]>The following errors occur:
When I add the site.webmanifest to the web.config file as a mime type, the above error is still not fixed.
Does anybody have any idea how to fix this?
Thanks
Frank
I have been completely lost and confused after the Menus option got scrapped from the “Appearance” section in WordPress. I cannot figure out the new navigation menu/block editing layout for the life of me!!
Basically, I’m struggling to edit the existing Menu that is currently visible within the header as I have no idea how to even access it. I would like to add a new option to the header with the title “Careers/Recruitment” and have already created an entire page for it… but just don’t know how to add it to the actual menu.
For reference, that page can be accessed if you go to the home page, scroll down a bit and click on “Hair Stylist Required – join the team”. I have put it there in the meantime until I figure out how to add it as a separate page on the header.
Please can someone advise?? Absolutely desperate and would appreciate any advice. Thank you!
]]>So that’s what I’ve done up to that moment:
1) Created a child theme and a file there, /patterns/custom-header.php. This is how the file starts:
<?php
/**
* Title: Custom header
* Slug: fitness-fse-child/custom-header
* Categories: fitness-fse
*/
?>
This is followed by a mix of html and php code.
2) created another file there, /parts/custom-header.php, with this code:
<!-- wp:pattern {"slug":"fitness-fse-child/custom-header"} /-->
3) Added that content as a template part to my template. Everything’s fine except for the main thing: when I change custom-header.php, these changes are not reflected on the pages which use that template. Deleting-refreshing-readding this template part don’t help.
4) Following the LLM’s advice, I tried to register this template part in the functions.php:
if (!function_exists('fitness_fse_child_register_patterns')) {
function fitness_fse_child_register_patterns()
{
register_block_pattern(
'fitness-fse-child/custom-header',
array(
'title' => __('Custom Header', 'fitness-fse-child'),
'categories' => array('fitness-fse'),
'content' => file_get_contents(get_theme_file_path('/patterns/custom-header.php')),
)
);
}
add_action('init', 'fitness_fse_child_register_patterns');
}
after that, the part started syncing as I wanted to. But unfortunately, this prevents the php code inside the custom-header.php from executing. For example, if I have
<img
class="nav-logo-img"
src="<?php echo get_stylesheet_directory_uri() ?>/assets/img/LH_LOGO-02.png"
alt=""
/>
the way this will be interpreted is pure html:
https://localhost/site.local/%3C?php%20echo%20get_stylesheet_directory_uri()%20?%3E/assets/img/LH_LOGO-02.png
So the question is, what am I doing wrong and is this even possible to make it sync, php executable, with templates in the database and their parts in files at the same time?
]]>TypeError: Cannot read properties of undefined (reading 'form')
at e.<computed>.valid (jquery.validate.js?ver=1.20.0:131:29)
at editor.savePost (validation.js?ver=5.9.10:239:21)
at Object.savePostStatus (editor.min.js?ver=734dedd6ead28ee4ca9c:7:150370)
at data.min.js?ver=7c62e39de0308c73d50c:9:3735
at editor.min.js?ver=734dedd6ead28ee4ca9c:7:149054
at editor.min.js?ver=734dedd6ead28ee4ca9c:7:148202
at n.<computed> (components.min.js?ver=36b97398bf090476214e:27:14952)
at Object.De (react-dom.min.js?ver=18.3.1:2:16716)
at Be (react-dom.min.js?ver=18.3.1:2:16870)
at react-dom.min.js?ver=18.3.1:2:36731
jquery.validate.js?ver=1.20.0:131:29
Steps to reproduce:
meta-box
plugin (5.9.10)functions.php
<?php // theme/functions.php
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
? $meta_boxes[] = [
? ? 'title' ? ?=> 'Event details',
? ? 'post_types' => 'page',
? ? 'fields' ? => [
? ? ? [
? ? ? ? 'name' => 'Location',
? ? ? ? 'id' ? => 'location',
? ? ? ? 'type' => 'text',
? ? ? ],
? ? ],
? ];
? return $meta_boxes;
} );
]]>We would like to support block-based themes in our plugin and as part of the development, we’ve added a group of blocks that now serve as the foundation for complete templates within the site editor (created manually for archive taxonomies). The template for each archive taxonomy is the plugin frontend. We would like to automate the creation of templates so the end-users will get them as part of the plugin installation.
While using regular themes (non block-based), we are using the “archive_template” and “single_template”.
Could anyone please share the best practices for programmatically add site editor templates via a plugin? which filters should be used?
Thanks,
Idan
]]>There is no Appearance, Menus — that is not for WordPress 6.5.4 block themes.
nav-menu.php gives “Your theme does not support navigation menus or widgets.”
How do I get a header in Elementor Header & Footer Builder with a menu, since Navigation blocks are not available? (When in EHFB I try to add a Navigation Menu, it gives a message about no menus exist, and a link to the missing menu editor at nav-menu.php)
(Temporary workaround: Install Max Mega Menu https://www.ads-software.com/plugins/megamenu/ which adds Appearance, Menus and a menu editor, so the EHFB Navigation Menu works.)
]]>? Any suggestions on a feature-rich FSE theme, preferably free, that would be a good move from Go, hopefully without too much disruption to the content? How about Twenty-four?
? Any suggestions on how to protect myself if I try a different theme, don’t like it and want to go back to Go?
I’m a long-time techie but a WordPress newbie, so please be merciful.