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 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’ );
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.
To clarify my comments (since comments don’t lend themselves to code blocks), you should only be using the .htaccess rules that apply to your particular WordPress installation. I’m assuming in this answer that you’re using WordPress greater than 3.5 (the current release as I write this is 6.7), and your question shows Subdomain Multisite. Thus, … Read more
Media Attachment Pages Redirect to Media Files After Migrating to WordPress Multisite
You could create a cron job that gathers all the data and caches the results in a usermeta value for each user. It’d be slow to generate, but that wouldn’t matter because it’d run in the background. The data would then be fast to retrieve on the page where you display the user’s images. The … Read more
I figured out the problem. First, I had opened a ticket with GoDaddy ProSupport. They told me: Since it was built using a multisite WordPress structure, I’m afraid that we are unable to work on it because of the liability of making changes that can affect other websites using the same database. We recommend hiring … Read more
Upon debugging we found the wp_max_upload_size function was returning 1MB. The u_bytes and p_bytes were as expected and equal to 100MB as defined in our uploads.ini file but the application of upload_size_limit filter changed the size to 1MB i.e., the problem was at: return apply_filters( ‘upload_size_limit’, min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes ); A upload_size_limit_filter … Read more
Have a look at your PHP errors. I’ve seen WP CLI fail like that because PHP fatals out.