You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have created a custom REST-Endpoint that creates new blogs inside the multsite. In my usecase the Statify plugin is network-activated.
As I open the new blog after the creation I get PHP notices that the Statify table is missing. WordPress database error Table 'local.wp_2_statify' doesn't exist for query SHOW FULL COLUMNS FROM wp_2_statify made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, Statify_Frontend::track_visit
Reason:
The methods to create the Statify tables is only added to the wp-admin pages.
The hook wp_initialize_site is called no matter the source of the call origin, but as Statify only hooks inside the admin the REST-Call doesn't initiate the table by default.
To Reproduce
Steps to reproduce the behavior:
Install a WP multisite
Use some way to execute
Scroll down to '....'
See error
Expected behavior
Table to be added not matter where what interface is used.
System (please complete the following information):
Version 1.8.4
The text was updated successfully, but these errors were encountered:
Describe the bug
I have created a custom REST-Endpoint that creates new blogs inside the multsite. In my usecase the Statify plugin is network-activated.
As I open the new blog after the creation I get PHP notices that the Statify table is missing.
WordPress database error Table 'local.wp_2_statify' doesn't exist for query SHOW FULL COLUMNS FROM
wp_2_statifymade by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, Statify_Frontend::track_visit
Reason:
The methods to create the Statify tables is only added to the wp-admin pages.
The hook wp_initialize_site is called no matter the source of the call origin, but as Statify only hooks inside the admin the REST-Call doesn't initiate the table by default.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Table to be added not matter where what interface is used.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: