subdomains not resolving in VVV
- This topic has 4 replies, 1 voice, and was last updated 5 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Subdomains resolve in a vanilla WP network using VVV.
But cbox site templates do not resolve in VVV:
site-template-course-1588453586.local.cbox’s server IP address could not be found.
I can create a course, I can also create a site and but it does not resolve:
https://local.cbox/groups/cats/ > works
But the site does not: cats.local.cbox’s server IP address could not be found.
I have debug turned on but nothing in the logs re the cbox plugin installing.
I’ll try it on a public server tomorrow and see if the issue persists.
Just did a new setup on VVV. Same issues.
Only new log entry:
PHP Deprecated: wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead. in /srv/www/cbox-openlab/public_html/wp-includes/functions.php on line 5088
These are the network setting in the wp-config set up by VVV for networked site:
define( ‘WP_ALLOW_MULTISITE’, true );
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘local.openlab’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
also: VVV does not use a .htaccess file
Correction: VVV might allow using a htaccess file or it may just ignore it.
I created one anyway for the new test site with the standard network params:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Tried the procedure on a public server.
Same results: Create a course, create a site as subdomain but it is not found
…com’s server IP address could not be found.
The site is listed under …/wp-admin/network/sites.php
From the logs:
[05-May-2020 17:13:26 UTC] WordPress database error Table ‘nationi9_openlab.wp_blogs’ doesn’t exist for query SELECT wp_blogs.blog_id FROM wp_blogs WHERE domain IN ( ‘sitename.com’, ‘sitename.com’ ) AND path = ‘/’ ORDER BY CHAR_LENGTH(domain) DESC LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), require(‘wp-includes/ms-settings.php’), ms_load_current_site_and_network, get_site_by_path, get_sites, WP_Site_Query->query, WP_Site_Query->get_sites, WP_Site_Query->get_site_ids
The course site is public.
The wp_blogs table does exist and it lists all the site.templates and the subdomain site for the course.