Uncaught Error: Interface ‘…’ not found for direct acces to wp-includes files
Blocking access to things that should never be directly accessed is always the best solution.
Blocking access to things that should never be directly accessed is always the best solution.
I did some further research and testing, and found the issue to be related to nginx and not WordPress itself. The following Stack Overflow post included some configuration adjustments for the site’s config file that resolved the 502 bad gateway issues. My configuration file’s client_max_body_size was already set to 64M. Here are the nginx settings … Read more
I think that you’re saying that you have moved your “uploads” directory up a level such that it now exists within your installation root, alongside /wp-includes, wp-config.php, etc.? If so, you likely need to update the rewrite rules in your webserver configuration. By default, a multisite .htaccess configuration has a rule like RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 … Read more
Yes, you can drop the “My sites” menu from a plugin. function admin_bar_menus_remove_my_sites() { remove_action( ‘admin_bar_menu’, ‘wp_admin_bar_my_sites_menu’, 20 ); } add_action( ‘add_admin_bar_menus’, ‘admin_bar_menus_remove_my_sites’ );
When you call register_post_type() to register your custom post type, one of the args is called template which is described as follows: Array of blocks to use as the default initial state for an editor session. Each item should be an array containing block name and optional attributes. So whereever you have the register_post_type(), you … Read more
Did you use as follows (here $blog_id as 1): switch_to_blog( 1 ); //Do stuff restore_current_blog();
Multisite redirect
The wp-admin url for each site does not work on WordPress multisite
Unable to create categories and tags for posts in wordpress multisite
I think that’s getting triggered by wp-load being unable to identify which blog you’re on at load time. I’d try define( ‘SITE_ID_CURRENT_SITE’, 1 ); define( ‘BLOG_ID_CURRENT_SITE’, 1 ); before you include wp-load, looking up the correct IDs for domain.com/app/ from your wp_blogs table.