• Hi

    I have just setup multisite and when creating a new site via the admin backend I am receiving the following errors. Does anyone no what these are and why I am receiving them?

    Warning: preg_match() expects parameter 2 to be string, object given in /home/useraccount/public_html/wp-includes/formatting.php on line 3435

    Warning: preg_match() expects parameter 2 to be string, object given in /home/useraccount/public_html/wp-includes/formatting.php on line 3424

    Warning: preg_match() expects parameter 2 to be string, object given in /home/useraccount/public_html/wp-includes/formatting.php on line 3435

    Warning: strip_tags() expects parameter 1 to be string, object given in /home/useraccount/public_html/wp-includes/formatting.php on line 3407

    Warning: strip_tags() expects parameter 1 to be string, object given in /home/useraccount/public_html/wp-includes/formatting.php on line 3407

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/useraccount/public_html/wp-includes/kses.php on line 1038

    Any help or advice is much appreciated.

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    …and sorry, it’s not an answer but I have the same problem…

    – WordPress : 4.2.2 fr
    – PHP 5.3.10-1ubuntu3.18 / MySql 5.5.43
    – on myWP.localhost
    – SUBDOMAIN_INSTALL = false

    When I click “add new site” (I use French version), there is a 403 blank page
    And tables of new site are not created
    The only reference to the new site in database is in ‘wp_blogs’

    error.log :
    PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/.../www/.../wp-includes/kses.php on line 1038, referer: https://myWP.localhost/wp-admin/network/site-new.php
    and
    Error in database WordPress Table 'maBase.wp01_2_options' doesn't exist for the request SELECT option_value FROM wp01_2_options WHERE option_name = 'blogname' LIMIT 1 by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, _wp_admin_bar_init, WP_Admin_Bar->initialize, get_blogs_of_user, get_blog_details, get_option

    some help, please ? (o:

    Thread Starter scudsy87

    (@scudsy87)

    Hi @stefdn

    From researching the net I found articles which mentioned the charset used within the database/tables (which should be UTF8) and for some reason mine weren’t correctly configured – I’ve never had this before and I’ve setup loads of WordPress installs on my VPS Server.

    What I did was to create another database, ensure that the correct charset was used and started completely from scratch with a clean install. I know it’s not ideal but I couldn’t get it to work any other way and now all is working correctly ??

    I hope this help and you manage to sort out your issue.

    Thanks

    I tried with a new base encoded in utf8mb4_general_ci like tables of WP.
    I suppose encoding utf8mb4_general_ci is the WP’s job ?

    But nothing, it’s the same #@!!#arg!!…

    what kind of hosting providers do you guys have!

    scudsy87: Like you I have install many wordpress multisites in my VPS hosting. I have now install this new version of wordpress four time and check ever setting. Figure I got a ton of DNS errors and now I’m getting to same error as listed above. Anyone figure out how to fix these issues.

    @stefdn, I had a similar problem. I think you should really try…

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    …in your wp-config.php file. ‘utf8mb4_general_ci’ may not be good enough.

    I had the same problem as @scudsy87.
    @schuurmudgeon, thanks for your solution. Now everything is ok for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Errors when creating a new site with multisite’ is closed to new replies.