Comments (4)
This looks to be because the full site editor is passing through site_url()
in its settings rather than home_url()
, which is of course different in a subfolder installation like Bedrock. This was introduced in WordPress/gutenberg@9c5fe16 in the Gutenberg plugin, which was subsequently pulled in to core in https://core.trac.wordpress.org/ticket/54337, but I assume this probably needs to be opened as a bug in the Gutenberg repo.
For now, this workaround seems to work, but I haven't extensively tested things to see if anything else breaks:
add_filter('block_editor_settings_all', function ($editor_settings) {
$editor_settings['siteUrl'] = home_url();
return $editor_settings;
});
from bedrock.
Hi,
I cannot even load the site editor for the main TwentyTwentyTwo theme (using bedrock)
- I did a clean install of latest Bedrock
- ensured theme TwentyTwentyTwo was selected
- navigated to the new site editor (wp/wp-admin/site-editor.php).
- Got a white page with Error: "The editor is unable to find a block template for the homepage.". Full Error details below
Error: getHomepageParams
: HTTP status error, 404 Not Found
at http://demo2.local/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8766:13
at async getHomepageParams (http://demo2.local/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8762:20)
at async redirectToHomepage (http://demo2.local/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8797:28)
at async reinitializeEditor (http://demo2.local/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:9067:5)
I tried moving the theme to /web/app/themes, but that did not help.
It works fine with a regular install of WP (without bedrock)
Has anyone experienced this?
from bedrock.
For me the site editor doesn't load when you navigate to the link... wp/wp-admin/site-editor.php
This is because when the page first loads, the javascript is trying to ajax http://demo2.local/wp/?_wp-find-template=true (which results in a 404)
Notice the /wp/ in the url. It should really be loading http://demo2.local/?_wp-find-template=true
So this may be a bug with WP code. (not sure if this can be changed within the bedrock code)
The only way i can get the site editor to load is to load it with these extra url parameters
wp/wp-admin/site-editor.php?postType=wp_template&postId=twentytwentytwo%2F%2Fhome
(this bypasses the _wp-find-template request)
from bedrock.
no longer an issue as of wp 6.0
from bedrock.
Related Issues (20)
- production.php missing? HOT 1
- .env.local failed to open stream php error when WP_ENV='development' and .env.local does not exist. HOT 5
- Installation request for roave/security-advisories (locked at dev-master, required as dev-latest) HOT 2
- Wordpress update HOT 1
- Bug: Openlitespeed Wordpress pretty permalinks broken HOT 1
- Bug: htaccess not blocking /app request HOT 4
- Dependency Dashboard
- Bug: wordpress-no-content ignores wordpress-install-dir HOT 1
- Feature Request: More flexible .env.* chosing HOT 5
- Bug: Multisite not working HOT 1
- Bug: WP_ENVIRONMENT_TYPE set doesn't check if constant is already defined HOT 6
- ADD: Local environment in application.php HOT 1
- Wordpress Version in composer.json is ignored HOT 1
- Upgrading WP from 6.x to 6.3.1 stops loading core block css from wp-includes HOT 3
- There is no documentation on how to add custom blocks to a theme/plugin HOT 1
- Add file to configure production environments
- New `WP_DEVELOPMENT_MODE` constant HOT 2
- Cannot override eg. DISALLOW_FILE_MODS in .env?? HOT 3
- Redis Object Cache not working on WP_ENV='production' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock.