Does not create tables on activation.
-
I tried activating Yoast on WP MultiSite. If fails when activated network-wide or single site only.
Upon activation (and deactivation) the debug.log is flooded with “table does not exist” errors. And indeed, the plugin does not create any table in my database.
Unfortuantely the debug.log does not show the file and line (as is default), but only the namespaces.For example:
WordPress database error Table 'XXXX.wp_yoast_indexable' doesn't exist for query UPDATE
wp_yoast_indexableSET
permalink= NULL,
permalink_hash= NULL made by do_action_ref_array('wpseo_permalink_structure_check'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_HomeUrl_Watcher->force_reset_permalinks, Yoast\WP\SEO\Integrations\Watchers\Indexable_HomeUrl_Watcher->reset_permalinks, Yoast\WP\SEO\Helpers\Indexable_Helper->reset_permalink_indexables, Yoast\WP\SEO\Repositories\Indexable_Repository->reset_permalink, Yoast\WP\Lib\ORM->update_many, Yoast\WP\Lib\ORM::execute
I have cleared the options for each blog (looping through the prefixes) with a SQL query:
SELECT * FROM {prefix}_options WHERE option_name LIKE '%wpseo%'
Could you please tell me in which file I can find the method that should create the tables, so I can create them manually?
- The topic ‘Does not create tables on activation.’ is closed to new replies.