Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX OpenLab Support

Public Group active 1 year, 1 month ago

Have a question about Commons In A Box OpenLab, our new platform for open learning? Join the group and post your question here. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

subdomains not resolving in VVV

  • This topic has 4 replies, 1 voice, and was last updated 5 years ago by shanebp.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 4, 2020 at 8:55 pm #8445
    shanebp
    Participant

    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.

     

     

     

     

     

     

     

    May 4, 2020 at 9:24 pm #8447
    shanebp
    Participant

    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

    May 4, 2020 at 9:50 pm #8448
    shanebp
    Participant

    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]

    May 5, 2020 at 2:13 pm #8449
    shanebp
    Participant

    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

    May 5, 2020 at 2:26 pm #8450
    shanebp
    Participant

    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.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX OpenLab Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 22
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register