Support » Networking WordPress » Can not add new site – WPMU.

  • Resolved Toan Nguyen

    (@thesun2012)


    Hi,

    I installed WPMU on hostgator, everything is fine except I can not add new site in wp-admin/network/sites.php

    I installed the fresh WP4.2.2 with default WP theme, no plugins activated.

    I faced this errors

    Warning: preg_match() expects parameter 2 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3435
    
    Warning: preg_match() expects parameter 2 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3424
    
    Warning: preg_match() expects parameter 2 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3435
    
    Warning: strip_tags() expects parameter 1 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3407
    
    Warning: strip_tags() expects parameter 1 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3407
    
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home1/xxx/public_html/wp-includes/kses.php on line 1038

    The screen is dead at this.

    I contacted with hostgator support staff but they can’t solve the problem.

    Can someone give me a suggestion please?

    I really need to get the site works properly.

    Thanks,

Viewing 15 replies - 16 through 30 (of 57 total)
  • I think you have to add this code in wp-config.php

    define( 'AUTOMATIC_UPDATER_DISABLED', true );

    Hey guys,
    Do you see any fatal errors in your PHP error logs (if you don’t know what that is, ask your hosting provider please). We’re trying to track down why this only affects a few people

    [Fri May 08 08:20:16 2015] [error] [client xxxxxxxxxxx] WordPress errore sul database COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' per la query CREATE TABLE wp_2_terms (\n term_id bigint(20) unsigned NOT NULL auto_increment,\n name varchar(200) NOT NULL default '',\n slug varchar(200) NOT NULL default '',\n term_group bigint(10) NOT NULL default 0,\n PRIMARY KEY (term_id),\n KEY slug (slug(191)),\n KEY name (name(191))\n) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8_general_ci fatta da wpmu_create_blog, install_blog, make_db_current_silent, dbDelta, referer: https://xxxxxxx/wp-admin/network/site-new.php

    this is the first error in my error log.

    it seems to me that it is something related to “utf8mb4_general_ci”. On old installations, even if upgraded to 4.2.2 tables are “utf8_general_ci” and they just work.

    Dear all,

    I tried 3 scenarios on our same hosting provider.

    1) Install multiple sites with Version 4.2 (Not yet upgrade to latest version) OK. No issue
    a. Host auto upgrade to Version 4.2.2  OK. NO issue with Multisite.

    2) Fresh installation  Not OK. Issue at mentioned above.

    Error Log as below
    [06-May-2015 15:24:43 UTC] WordPress database error Table ‘{database name}. database_table _itsec_lockouts’ doesn’t exist for query SELECT lockout_host FROM database_table_itsec_lockouts WHERE lockout_active=1 AND lockout_expire_gmt > ‘2015-05-06 15:24:43’ AND lockout_host=’ip-address’; made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, ITSEC_Lockout->check_lockout
    [06-May-2015 15:24:43 UTC] WordPress database error COLLATION ‘utf8_general_ci’ is not valid for CHARACTER SET ‘utf8mb4’ for query CREATE TABLE database_table_itsec_log (
    log_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    log_type varchar(20) NOT NULL DEFAULT ”,
    log_function varchar(255) NOT NULL DEFAULT ”,
    log_priority int(2) NOT NULL DEFAULT 1,
    log_date datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
    log_date_gmt datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
    log_host varchar(20),
    log_username varchar(20),
    log_user bigint(20) UNSIGNED,
    log_url varchar(255),
    log_referrer varchar(255),
    log_data longtext NOT NULL,
    PRIMARY KEY (log_id),
    KEY log_type (log_type),
    KEY log_date_gmt (log_date_gmt)
    ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8_general_ci made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, ITSEC_Lockout->check_lockout, ITSEC_Lib::create_database_tables, dbDelta

    3) Fresh installation Version 4.2 with auto upgrade to Version 4.2.2 at the same time  Not OK. Issue mentioned above.

    So, it seems me that core issue on wordpress.

    Yeah, me too

    [11-May-2015 01:36:16 UTC] WordPress database error COLLATION ‘utf8_general_ci’ is not valid for CHARACTER SET ‘utf8mb4’ for query CREATE TABLE wp_19_terms

    I think this is problem, actually WP can’t create new tables.

    lockout_host isn’t a core WordPress table. It comes from iThemes Security. Does your host automatically install the iThemes Security plugin when you create a new WordPress instance?

    Chris,

    I sent you ftp, wp-admin info via email 🙂

    Thank man.

    Hello, I have the same problem.
    I try to modify wp-includes/formatting.php to fix warnings preg_match() & strip_tags().
    Still the error persists .
    Checking debug.log:
    [12-May-2015 10:31:25 UTC] Error COLLATION ‘utf8_general_ci’ is not valid for CHARACTER SET ‘utf8mb4’ de la base de datos de WordPress para la consulta CREATE TABLE wp_13_terms ( term_id bigint(20) unsigned NOT NULL auto_increment, name varchar(200) NOT NULL default ”, slug varchar(200) NOT NULL default ”, term_group bigint(10) NOT NULL default 0, PRIMARY KEY (term_id), KEY slug (slug(191)), KEY name (name(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8_general_ci realizada por wpmu_create_blog, install_blog, make_db_current_silent, dbDelta

    We continue with no apparent solution?

    Having problems with our multisite when upgrading… This is ONLY happening on our multisites. Normal sites are fine.

    Issue started when we tried to upgrade to 4.2.1. My site is location on an enterprise server on campus (post-secondary institution). Could it be related to https://core.trac.wordpress.org/ticket/32127#comment:11?

    Two main issues – when moving between Dashboards and viewing Plugins pages, we receive this error after a hang and timeout: “Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /webcontent/cms/cms001/wp-includes/update.php on line 119.”

    I can guarantee that our SSL/CURL is fine. Our IT dept. set up a test page at http://cms001.pubweb.niagaracollege.ca/nc-simple-checkenv.php, source at http://pastebin.com/WghArsyU. We are totally stumped.

    When trying to upgrade the upgrade the network (“database upgrade”) from the Dashboard, it will claim all sites have been successfully updated, but then the “You need to update your network” error triggers again later. Going directly to update.php USED to indicate a database upgrade was required, which would fail with various errors. Now, going to update.php results in the same “secure connection” error as above.

    Looking at our tables, half are utf8, half are utf8mb4_unicode_ci. Manually changing tables to utf8mb4_unicode_ci seemed to resolve some errors…but as soon as I fixed one, another would pop up.

    Error samples:

    [Mon May 11 10:22:19.812221 2015] [:error] [pid 126714] [client 192.168.254.1:53029] PHP message: WordPress database error Duplicate key name ‘domain’ for query ALTER TABLE wp_blogs ADD KEY domain (domain(50),path(5)) made by wp_upgrade, make_db_current_silent, dbDelta

    [Wed May 06 23:16:46.834937 2015] [:error] [pid 115709] [client 192.168.0.101:34208] PHP message: WordPress database error Duplicate key name ‘comment_author_email’ for query ALTER TABLE wp_comments ADD KEY comment_author_email (comment_author_email(10)) made by wp_upgrade, make_db_current_silent, dbDelta
    [Wed May 06 23:16:46.835005 2015] [:error] [pid 115709] [client 192.168.0.101:34208] PHP message: WordPress database error Duplicate key name ‘domain’ for query ALTER TABLE wp_blogs ADD KEY domain (domain(50),path(5)) made by wp_upgrade, make_db_current_silent, dbDelta
    [Wed May 06 23:16:46.835012 2015] [:error] [pid 115709] [client 192.168.0.101:34208] PHP message: WordPress database error Duplicate key name ‘domain_path’ for query ALTER TABLE wp_signups ADD KEY domain_path (domain(140),path(51)) made by wp_upgrade, make_db_current_silent, dbDelta

    I can give you ANY information that you require about our setup, let me know.

    Having the same problem, can’t add or duplicate any of my network sites.

    Hello again .
    Yesterday, after writing my questions on a possible solution , I tried to reinstall WordPress again on my server , then install the WordPress MU Domain Mapping plugin previously used and configure the domain mapping .
    To my amazement , I not failed to add a new site.

    The only difference I noticed in the installation of the new WordPress was specifically indicated that the collation to use.

    Why do I see “This topic is resolved” on the right? Do we have a solution now? I would love to know. Thanks!

    Also anxiously waiting for a solution to this. Im guessing this is marked solved because the issue was reported elsewhere, although I believe the problem still stands until 4.2.3 comes out.

    not yet, actually I solved the problem by myself.

    I used “WordPress Install” tool of Hostgator, but it installed the old version (4.0.1), then upgraded to 4.2.2 automatically.

    Then I configured multisite and it’s working fine.

Viewing 15 replies - 16 through 30 (of 57 total)
  • The topic ‘Can not add new site – WPMU.’ is closed to new replies.