Error when creating a new site in wordpress multisite

#130688
  • Resolved Jan
    Rank Math free

    Hello,

    When the RankMath plugin is active either in the main site, or is activated for the multisite network, the following error appears in debug mode:
    PHP Deprecated: wpmu_new_blog is <strong>deprecated</strong> since version 5.1.0! Use wp_insert_site instead. in /wp-includes/functions.php on line 5234

    This was tested with only the RankMath plugin active. Dis/activating other plugins makes no difference.

    Why it happens, and does it have any influence on the way multisites work?

    Thanks, Jan

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Rank Math should work well with both Multisite and non-multisite without any errors. Could you please make sure you are using the latest version of the Rank Math plugin? Refer to our changelog here: https://rankmath.com/changelog/

    If you already using the latest version of Rank Math and still seeing this error, please let us know so that we can further check it.

    We are looking forward to helping you.

    Jan
    Rank Math free

    Hello,

    Thanks for your reply. We are using version 1.0.55 installed directly from wordpress.org. It says we have the latest version. Our wordpress is version 5.6.

    Thanks, Jan

    Hello,

    Thank you for that additional information.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Thank you, and we really look forward to helping you.

    Jan
    Rank Math free

    Thanks for your reply, I’ll send you the access ASAP.

    Meanwhile I’m listing the additional errors the site gave me:

    Error when creating a new subdomain site:
    Deprecated: wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead. in /hosting/www/ciessetrade.cz/www/wp-includes/functions.php on line 5234

    Errors just on one subdomain (nastrojove-hlavy.ciessetrade.cz):
    [07-Jan-2021 14:09:01 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:01 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:01 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:01 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:15 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:15 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:15 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:15 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-admin.php on line 318
    [07-Jan-2021 14:09:18 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:09:18 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:09:18 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:09:18 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:09:18 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:09:18 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:09:18 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:09:18 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:11:50 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:11:50 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:11:50 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:11:50 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:11:51 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:11:51 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 82
    [07-Jan-2021 14:11:51 UTC] PHP Warning: Illegal string offset ‘@type’ in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [07-Jan-2021 14:11:51 UTC] PHP Notice: Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439

    Thanks, Jan

    Hello,

    The temporary access you shared doesn’t work from my end.

    Please ensure both the WP and FTP access are both working so we can check this from our end.

    Looking forward to helping you

    Jan
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    The admin password still doesn’t work from our end (I attached a screenshot in the Sensitive Data section). Can you please check again?

    We are looking forward to helping you.

    Jan
    Rank Math free

    Hello,

    I checked the link. Our domain is not yet transferred to this new host, so we are using a modified hosts file. My apologies for not realizing it before. Could you please use the following entries in the hosts file on your machine?

    178.238.37.240 ciessetrade.cz
    178.238.37.240 www.ciessetrade.cz

    Thank you, Jan

    Jan
    Rank Math free

    Hello,

    The site can be accessed directly without having to modify the .hosts file.

    There are additional errors on one of the sub-sites: https://nastrojove-hlavy.ciessetrade.cz

    [09-Jan-2021 01:08:17 UTC] PHP Warning:  Illegal string offset '@type' in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-schema-opengraph-tags.php on line 46
    [09-Jan-2021 01:08:17 UTC] PHP Notice:  Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-schema-opengraph-tags.php on line 46
    [09-Jan-2021 01:08:17 UTC] PHP Warning:  Illegal string offset '@type' in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 84
    [09-Jan-2021 01:08:17 UTC] PHP Notice:  Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 84
    [09-Jan-2021 01:08:17 UTC] PHP Warning:  Illegal string offset '@type' in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439
    [09-Jan-2021 01:08:17 UTC] PHP Notice:  Uninitialized string offset: 0 in /hosting/www/ciessetrade.cz/www/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-snippet-shortcode.php on line 439

    Using the Troubleshooting Mode the problem arises only when RankMath plugin is active.

    Looking forward to your feedback.

    Thanks, Jan

    Hello,

    I don’t see any errors on your subsite: https://nastrojove-hlavy.ciessetrade.cz. I even navigated through some pages on this subsite none of the pages showed any errors nor any errors were logged in the debug.log file.

    Can you please give us the link to the page where you get these errors and also the steps to reproduce them?

    Looking forward to helping you.

    Jan
    Rank Math free

    Hello,

    the errors appear after activating the RankMath plugin. Now you can see them either at https://nastrojove-hlavy.ciessetrade.cz or athttps://drive.google.com/file/d/1v1KX9FrB-zCnFXtR2LOZ6MYp4U8UVZrI/view?usp=sharing.

    The error.log located in /www or accessible from the plugin contains them as well.

    Looking forward to reading from you soon, as this is a live production site.

    Best, Jan

    Jan
    Rank Math free

    For some reason no schema has been selected for the webpages showing the errors. After setting the schema again on those pages, the error disappeared. It’s a shame I had to find the solution by myself.
    Cheers, Jan

    Hello,

    It seems that you have marked this ticket as resolved.

    If you have any other concerns, please don’t hesitate to contact us by creating a new ticket to assist you further, as we are here to help.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘Error when creating a new site in wordpress multisite’ is closed to new replies.