Hi, since a few days I’m getting 500 Internal Server errors when accessing the Site Editor on a sub-site. The full error is:
[06-Nov-2023 16:32:03 UTC] PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in /var/www/xxx/htdocs/wp-includes/pluggable.php:929
Stack trace:
#0 /var/www/xxx/htdocs/wp-includes/pluggable.php(694): wp_parse_auth_cookie()
#1 /var/www/xxx/htdocs/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie()
#2 /var/www/xxx/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /var/www/xxx/htdocs/wp-includes/user.php(3622): apply_filters()
#4 /var/www/xxx/htdocs/wp-includes/pluggable.php(70): _wp_get_current_user()
#5 /var/www/xxx/htdocs/wp-includes/l10n.php(98): wp_get_current_user()
#6 /var/www/xxx/htdocs/wp-includes/l10n.php(152): get_user_locale()
#7 /var/www/xxx/htdocs/wp-includes/l10n.php(1300): determine_locale()
#8 /var/www/xxx/htdocs/wp-includes/l10n.php(1331): _load_textdomain_just_in_time()
#9 /var/www/xxx/htdocs/wp-includes/l10n.php(185): get_translations_for_domain()
#10 /var/www/xxx/htdocs/wp-includes/l10n.php(330): translate()
#11 /var/www/xxx/htdocs/wp-content/mu-plugins/wp-multi-network/includes/classes/class-wp-ms-networks-admin.php(176): esc_html__()
#12 /var/www/xxx/htdocs/wp-content/mu-plugins/wp-multi-network/includes/classes/class-wp-ms-networks-admin.php(35): WP_MS_Networks_Admin->set_feedback_strings()
#13 /var/www/xxx/htdocs/wp-content/mu-plugins/wpmn-loader.php(159): WP_MS_Networks_Admin->__construct()
#14 /var/www/xxx/htdocs/wp-content/mu-plugins/wpmn-loader.php(106): WPMN_Loader->includes()
#15 /var/www/xxx/htdocs/wp-content/mu-plugins/wpmn-loader.php(218): WPMN_Loader->__construct()
#16 /var/www/xxx/htdocs/wp-content/mu-plugins/wpmn-loader.php(190): wpmn()
#17 /var/www/xxx/htdocs/wp-includes/class-wp-hook.php(310): setup_multi_network()
#18 /var/www/xxx/htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#19 /var/www/xxx/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /var/www/xxx/htdocs/wp-settings.php(427): do_action()
#21 /var/www/xxx/wp-config.php(101): require_once('...')
#22 /var/www/xxx/htdocs/wp-load.php(55): require_once('...')
#23 /var/www/xxx/htdocs/wp-admin/admin.php(34): require_once('...')
#24 /var/www/xxx/htdocs/wp-admin/site-editor.php(12): require_once('...')
#25 {main}
thrown in /var/www/xxx/htdocs/wp-includes/pluggable.php on line 929
[06-Nov-2023 16:32:03 UTC] PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in /var/www/xxx/htdocs/wp-includes/pluggable.php:929
Stack trace:
#0 /var/www/xxx/htdocs/wp-includes/pluggable.php(694): wp_parse_auth_cookie()
#1 /var/www/xxx/htdocs/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie()
#2 /var/www/xxx/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /var/www/xxx/htdocs/wp-includes/user.php(3622): apply_filters()
#4 /var/www/xxx/htdocs/wp-includes/pluggable.php(70): _wp_get_current_user()
#5 /var/www/xxx/htdocs/wp-includes/l10n.php(98): wp_get_current_user()
#6 /var/www/xxx/htdocs/wp-includes/l10n.php(152): get_user_locale()
#7 /var/www/xxx/htdocs/wp-includes/l10n.php(894): determine_locale()
#8 /var/www/xxx/htdocs/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain()
#9 [internal function]: WP_Fatal_Error_Handler->handle()
#10 {main}
thrown in /var/www/xxx/htdocs/wp-includes/pluggable.php on line 929
When I rename mu-plugins/wpmn-loader.php to wpmn-loader.txt to disable the plugin, the issue disappears.
WP Multi Network has been installed and running without issues in mu-plugins for many years. It was updated to the latest version 2.5.2 a long time ago but this issue only started a few days ago.
Disabling all other plugins on the sub-site except those that are active network wide, does not fix it. I’ll try to find out if this is a conflict with any of the network activated plugins and come back here if/when I found out more.
In the meantime: does anyone have any idea where this could come from? Is it a known conflict?
]]>I added a few of my subsites to a subnetwork, and removed them after a while. Once I remove them, I have database connection error to those subsites.
“Error establishing a database connection”
How to handle this problem?
]]>I’m trying to create a wordpress multisite – multi-network (sub folders) with the WP Multi-Network plugin, and I follow the instructions to achieve the folder paths (with this tutorial)
like so:
main site (main domain) >> country1 sub network (with domain) >> city1 sub network >> subsites x.
when I modify the htaccess in the line
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
to
Rewrite rule ^(.+)?/(wp-.*) /$2 [L]
the media and wordpress customization options of the >> city 1 subnet and the >> x subsites are not shown.
Can you help me? please
]]>I’m the webmaster for a school district. I have implemented WordPress multisite in the hopes that it will help us manage user access.
I already have about 70 sites for schools and departments. I’m trying to figure out if this plugin will allow me to convert the current multisite network into new networks.
For example, I have multiple high schools with their own WordPress Multisite site. Each high school wants several departments so url structure should be /high-school/department. Ideally members of department would only have access to department pages (/high-school/department/pages(*)).
It looks like this plugin will do that. However, I can’t see a way to convert the existing (/high-school) install to its own network. I’ve been playing around with it on my dev environment, but I don’t want to break everything cuz it’s a pain to do a full restore.
Any advice?
Hello, could you add in the menu not only the networks but also the sites for each one of them? So I think the distribution is much better because it would be seen grouped.
]]>I contend that recent changes to how WP now deals with upload_path and upload_url_path in core – causes an incorrect path result when working with a blog created using the add_network function in this plugin.
Core automatically adds /sites/## (where ## is the blog id) to the directory path (in _wp_upload_dir). The plugin currently updates these two blog options with uploads/sites/## – which is then compounded by _wp_upload_dir making for some crazy urls – e.g. sites/##/sites/## …
I believe that leaving the two blog options empty will correct the issue. (at least that fixes it for my site(s))
Includes a List Table for viewing available networks, is this an admin panel only thing?
I would like to list networks publicly like how BuddyPress lists sites, or even better a tree listing:
Network 1 Name
– Site 1 Name
– Site 2 Name
Network 2 Name
– Site 1 Name
– Site 2 Name
– Site 3 Name
Network 3 Name
– Site 1 Name
This would only be needed for the main site on the main network.
]]>Hey there. I’d like to create smth like a SaaS WP website builder. How to create a registration form for new users, which will then be able to create their own websites (subsites of Multisite or even networks) under subdomains or domain/names or own domains (all those settings also need to be inside their WP admin. Maybe some WL WP plugin to also simplify admin? Any hosting like Digitalocean or another that best feed for only several not critical websites so far? thank you!
]]>Hi,
does anyone know whether it is possible to switch from the outdated “Networks for WordPress” plugin to the “WP Multi Network” plugin without further ado, or what needs to be taken into account?
Thanks
Bernhard
I created a new sub network on a WP multisite – but it has no super admin
it is listed under All Networks
but can’t access network admin dashboard /wp-admin/network/admin.php?page=networks lists the network, but there is no Admin – it is blank dash under Users
If I attempt to access the Network dashboard from the list it goes to login screen and my super admin credentials get “Sorry, you are not allowed to access this page.”
from Networks list I can’t delete the network “Cannot delete network with sites.”
the subsite dashboard is accessible through Network Dashboard > My Sites /wp-admin/my-sites.php – and it requires login and looks like a subsite dashboard
However it is not a ‘site’ in the Primary Sites list, I can’t find anywhere to delete it
I created a new network user with super admin privileges but it is not admin for the problem network
I tried editing wp-config with and without cookies configuration and other config constants
1) can I fix this by somehow adding a User with super admin ?
2) how can I delete the network ?
thanks
]]>Thanks for your work on this plugin
In hoping to avoid headaches…
When creating a WP Multi Network, should the subsite domains be added to cpanel as Addon or as Alias domains?
Regards,
]]>@arch75 What became of this problem? Did you get a solution?
]]>is the project still active?
]]>We had WP installed @ https://www.example.com.
We set up multisite as subdomains, so that we have sub1.example.com & sub2.example.com.
We installed WP Multi Network.
I’ve created a new Network @ subA.example.com.
I now want to create a new site in this new network as a subdirectory: subA.example.com/site1.
However, @ subA.example.com I can only create 2nd level subdomains: *.subA.example.com.
Is there any way I can set this new network to allow subdirectory network sites?
Thanks,
Steve
Stupid – in the field domain i put a / behind the eample.com > example.com/ now i do not have access anymore. tried to setuo wp_options in the database but here seems everything fine. Where can i correct this stupid fail? Thank you!
]]>Not sure what the problem is but I have confirmed that this plugin is no longer working if you upgrade to PHP 7.3.
It works fine under PHP 7.2 so I’m not sure what needs to be done to update the plugin to work with 7.3 but I’d like to help if I can by either hiring a developer to update it or by sponsoring the current developers. I’ve been learning PHP for some years now but I’m like a 3rd grader, and lack the time to learn faster.
I have used this plugin for several years and now have a system with two dozen networks and over 100 sites and will soon be adding at least 20 to 30 more networks which will hopefully take on lives of their own with unlimited subsites…
Please reach out to me as soon as you’re able to process your desire or interest in committing some bandwidth to this.
FWIW, this is probably the most brilliant plugin ever developed for the WP community!
Looking forward to your reply soon!
]]>I just created a new network, it’s been about two months since the last time I added a network.
The network exists but when I try to go to the network dashboard it gives me the following error:
This page isn’t working mysite.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
So I’m not able to access network plugins or settings etc…
Any help would be appreciated!
php 7.3.5
wp 5.2.2
I wanted to give you a quick idea of our company and our goals with the site.
We mostly sell subscription-based products through WooCommerce and use AffiliateWP to manage all our affiliates.
Additionally, we use Gravity Forms and Gravity Flow to manage workflows.
We have 1 main site with 2 subdomains, each with its own theme.
https://www.cryptomavericks.io – Aurum
Members.cryptomavericks.io. – BuddyBoss Theme
Blog.cryptomavericks.io. – Voice theme
I want to transfer the data across all my three sites and manage the data across the plugins like
=> Wp-affiliate: Affiliate or commission by user-generated in one site should be reflected in other sites also.
2) Users:- User register in one site should be able to log in on another site also.
3) Woo-commerce:- Products in one store should be there in other also and order management should be managed in other sites also.
And the same goes for subscriptions also.
Please let me know if this possible.
Thanks
]]>Is it possible to create a wp multisite site network using a subdomain instead of main domain, like setup mutisite on abc.xyz.com instead of xyz.com
]]>Hi!
I was wondering if there was some way to implement a multinetwork search for the entire db/install? There are several options out there for multisite but not sure if team multinetwork or someone else had luck with anything specific.
]]>WP 5.1.1
Hello!
First of all: Thanks again for this great plugin! It works fine, as far as I use it. What I miss: A network-plugin management, so that, for example, just one Wordfence have to be activated instead of activating it in every network. But that’s just an idea and not my problem…
Which is this:
I have a network A. Now I want the site x of this network to be the main site of a new network B.
I’ve tried just to use the sites domain as the network domain, after I have site x orphaned out of network A. But this doesn’t work.
Is there a way to realize my suggestion? Or must delete site x so the domain is free?
I mentioned to remember that there was a functionality to do what I want, but I didn’t find any hint for that. So may be that’s just a dream… ??
Greetings and thanks for any help!
]]>Following error I got,
Warning: Creating default object from empty value in /var/www/app_gic_wordpress_1/html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/functions.php on line 238
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /var/www/app_gic_wordpress_1/html/wp-includes/class-wp-network.php on line 132
Further investigation in functions.php line number 234 overriding $current_site variable like below and this get_network( function pulling wrong data.
$current_site = get_network( $new_network );
Line 201 $current_site variable declaration as a global and overriding line number 234
global $wpdb, $switched_network, $switched_network_stack, $current_site;
If I command this line it’s working properly
//$current_site = get_network( $new_network );
subsite network dashboard shows root network instead. Why and how to use this?
]]>Is there a way to use your plugin on multiple servers/WP installs?
For instance, I want to make sure I mirror the same user base on multiple sites, but I want them all hosted on different servers for redundancy.
site.com/1 123.312.12.11
site.com/2 76.54.33.22
1.site.com 123.312.12.11
2.site.com 76.54.33.22
Is this possible?
Thanks!
]]>Hi – I’ve installed the WP Multisite Networks plugin, and set it up following the WPMU article:
How to Create a Network of WordPress Multisite Networks
Basically, I installed the plugin and changed wp-config.php to comment-out … define(‘DOMAIN_CURRENT_SITE’, ‘example.com’); … Everything has gone according to the article, until after I create a new Network, (let’s call it “Test Network”). It creates the network, but not the first site, as it displays it has “0” sites (thought it was supposed to create the first one?). So then going back to main Networks menu, if I click on the new Test Network Dashboard, I get the following message, instead of a new Dashboard:
Our automated filters have determined that this blog signup looks like it could be by a spammer. Because of this, to complete you registration please describe in one or two sentences what you intend to use this blog for in the form below and we will review your request. Thank you for your cooperation!
WHAT AM I DOING WRONG??
I mean, it says that there are “0” sites on the new Test Network, which kinda gives credence to there not being a Dashboard, however, the link https://example.com/test-network has actually been created.
Very confused.
Network title: Test Network
Domain: https://example.com
Path: /test-network/
Site name: Test Network
define(‘WP_DEBUG’, false);
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
/* define(‘DOMAIN_CURRENT_SITE’, ‘example.com’); */ <—–no, not real domain
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);
Thanks
]]>My sub-sites are not recognized – error message:
> Sorry, this page doesn’t exist.
Please check the URL or go back a page.
404 Error. Page Not Found.
– this happened before and I think it had something to do with .htaccess ??! – but not sure how to fix it
I also note that some other post here have had similar issues, but no answers – is there any moderation going on here?
]]>I’ve checked the code in the relevant places, as given in the plugins .po-file, but can’t detect that anything might be wrong. The key-string exist, as well as the translation. Submenu of “My Networks” is being translated correct.
So I tried to set the translation in “admin-network”-po-file of WordPress (wp-content/languages). Well, that works…
]]>Hi James,
The two dropdown list for site assignments aren’t quite large enough (Available Subsites & Network Subsites). It appears the lists are limited to around 100 sites each but as we have several networks that exceed this, more often than not the site we are looking to move networks does not appear in the list. This forces us to complete a manual database update.
Please can you increase the limit to something bigger? Say 500 sites?
Many thanks!
Shane ??
]]>Hello!
First of all: thanks for that plugin! Till now, it work’s great and I don’t know what I’ve done wrong or if this problem is a plugin-problem.
I’ve installed a multisite with subdirectories. I’ve one network established with WP Multinetwork.
As said, till now it works without problems. But for any reason now this happens:
When I choose a Site of the root network, the url of that network is shown in the browsers address line, but on the WP admin-line the name of the other network is shown. Checking where I am I switched to pages. The adress-line of the browser indicates the right site, but data is shown of the second network main site.
I updated the wp-config as shown in the FAQ (which I didn’t before but: it works well…), which doesen’t have any effect. And i deleted all cookies, which doesn’t changed anything, too.
Also if I try to login the site directly, the wrong data is shown although the browser address-line is correct.
Thanks for any help!
]]>Hello I have the following structure:
https://psoriasis-skins.com/ PRIMARY NETWORK
https://psoriasis-skins.com/uk/
https://psoriasis-skins.com/es/
I need to create another network to have the following structure
https://psoriasis-skins.com/en/ SECONDARY NETWORK
https://psoriasis-skins.com/en/psoriatips
But when I create this structure for the secondary network I obtain a 404.
Any ideas?
]]>