• Resolved nicafyl

    (@nicafyl)


    When I attempt to (automatically) create a new sub-domain the user gets created but not the subdomain. I turned on debugging and did the creation manually and got the following errors. This is a fresh install but I did add an assortment of plugins. The errors (mostly) appear to be related to the plugins and I will try disabling them but, in any case, there is clearly a problem here.

    Notice: Use of undefined constant ms_random_string – assumed ‘ms_random_string’
    in /home/rbeblogs/public_html/wp-content/plugins/multisite-random-blog-redirect/
    ms_random_blog.php on line 259

    Notice: Undefined variable: installApp in /home/rbeblogs/public_html/wp-content/
    plugins/wysija-newsletters/models/config.php on line 2

    Notice: wp_register_script was called incorrectly. Scripts and styles should not
    be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
    or init hooks. Please see Debugging in WordPress for more information. (This mes
    sage was added in version 3.3.) in /home/rbeblogs/public_html/wp-includes/functi
    ons.php on line 3587

    Notice: wp_register_style was called incorrectly. Scripts and styles should not
    be registered or enqueued until the wp_enqueue_scripts, admin_</enqueue_scripts, o
    r init hooks. Please see Debugging in WordPress for more information. (This mess
    age was added in version 3.3.) in /home/rbeblogs/public_html/wp-includes/functio
    ns.php on line 3587

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Rename the plugins directory to plugins-old for a fast ‘fix’.

    Thread Starter nicafyl

    (@nicafyl)

    Good suggestion. That did get rid of all the error messages but the problem still exists. That is, the user login is generated but no site.

    I receive the activate email and, afterwards the password email. I can log in but there is no site there. That is, there is a desktop but nothing in the sidebar to create content or whatever.

    I am reasonably sure this is a relatively trivial issue but how to figure out where to look is the issue.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    That is, the user login is generated but no site.

    Are the tables being created in your database?

    Does WP ‘think’ the sites are there in wp-admin/network/sites.php

    Thread Starter nicafyl

    (@nicafyl)

    The tables are there but there are no entries being created for the sites. There is for the users.

    sites.php does not show the sites. users.php shows the users. Thus, everything is consistent. It just seems that for some reason the create task dies but there is no error message.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    The tables are there but there are no entries being created for the sites.

    Are you sure? That sounds a LOT like wp_x_posts and all aren’t being created.

    Thread Starter nicafyl

    (@nicafyl)

    Sorry, confusion here. What I meant was that when I set up multi-site, the tables related to it were created. You are correct that wp_x_posts and such are not being created.

    But, if I go to network admin and create a site, they are created correctly. Thus, the add user part of automatically creating a new site is working but the site part is failing.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Do you have any plugins in mu-plugins?

    Thread Starter nicafyl

    (@nicafyl)

    OK, I think we just got somewhere. Assuming mu-plugins is a directory (I am really not a WordPress guy–computer guy, yes–I have no such directory.

    Back when this story started I moved plugins to plugins.old as you suggested which got rid of the error messages but did not solve the site create problem. I have since added a couple of plugins (that don’t produce errors).

    I could extrapolate a bit but it is probably better if you just tell me what should be there (or point me to where it tells me). Seems like we are close.

    Thanks for the hand-holding. Not scared of MySQL, PHP and lots of other stuff. I just don’t know that much about the insides of WordPress yet.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    It’s okay if you don’t have mu-plugins. It’s a folder to have plugins or ‘functions’ run network wide (I use it with an ipstenu.php file that has all the weird things I wanted turned on or off for all sites on my network). Sometimes files in there are problematic.

    Alas. No closer :/

    What theme are you using on your main site?

    Thread Starter nicafyl

    (@nicafyl)

    Orange and Black.

    I actually did try to enable some mu plugins but they didn’t work so I am ignoring that piece until this part is solved.

    There is some content out there — both in the main site and one other or I would just start from scratch and not install any plugins until I was confident sites were getting added correctly. At this point I am thinking that my best bet may be to install on a local machine (or just another domain), not start with any plugins and see if it works. If it does, looking for differences should point me in the right direction.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Can you switch the theme on your MAIN site to TwentyEleven?

    Some themes have functions.php tweaks that do some crazy things.

    Thread Starter nicafyl

    (@nicafyl)

    OK, I did and the same thing. I have started to set up WP on a local machine and it made me remember that I used the “one click install” (Fantastico) to set up WP on Site5. So, maybe there is something bogus happening on that install.

    We’ll see.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Maybe but it would (should) have the same woe if you manually make a site.

    Double check SQL permissions. Make sure the ID in wp-config has FULL read/write/create table access to the DB.

    Thread Starter nicafyl

    (@nicafyl)

    Checked again and all is OK. Besides, if it was wrong then it seems that manually creating a site would also fail. (I mean manually as from the UI, not as in mucking with tables.)

    I also realized a local install and test needs some “creativity” as I have no MTA on any local machine. Maybe it is time for more coffee. (The good news is that I grow it here–let me know if I should be sending you some.)

    Thread Starter nicafyl

    (@nicafyl)

    OK, I’m embarrassed. When I was playing with the local test I realized there was a configuration option to only allow automatically creating user accounts. I went back and double-checked the real site. Sure enough, I had checked the wrong box.

    Thanks for hanging in there. Sometimes the obvious is not obvious if you are a geek (and I am talking about me). In any case, the coffee offer is still on. Happy to send you some. Organically grown.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Errors creating sub-domains’ is closed to new replies.