Forum Replies Created
-
AuthorPosts
-
May 5, 2020 at 2:26 pm #8450shanebpParticipant
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.
May 5, 2020 at 2:13 pm #8449shanebpParticipantTried 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
May 4, 2020 at 9:50 pm #8448shanebpParticipantCorrection: 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]May 4, 2020 at 9:24 pm #8447shanebpParticipantJust 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
May 4, 2020 at 8:56 pm #8446shanebpParticipantOpened a new ticket for this separate issue:
https://commonsinabox.org/groups/openlab-help-support/forum/topic/subdomains-not-resolving-in-vvv
May 4, 2020 at 4:29 pm #8443shanebpParticipantHi Ray,
Thanks for the link.
OpenLab is an impressive project. We may try to use it in a commercial application.
I’m playing with it in a local VVV install. Everything is working fine except that the site-templates are not found.
site-template-course-1588453586.local.cbox’s server IP address could not be found.
No big deal, just wondering if there is a simple solution that I’ve overlooked.
September 19, 2014 at 12:12 pm #5112shanebpParticipant -
AuthorPosts