Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite: The pp_series_upgrade_function() never executed #820

Open
rizaardiyanto1412 opened this issue Jul 4, 2023 · 2 comments
Open

Comments

@rizaardiyanto1412
Copy link

Hi.

I noticed that when the plugin is used in a multisite installation, then for the subsites which are created after the activation of the plugin the function
pp_series_upgrade_function() which alters the wp_xx_terms table etc, is never executed, so there are some PHP errors in the error log.

Original report: https://wordpress.org/support/topic/multisite-the-pp_series_upgrade_function-never-executed/

I cannot see the error on my testing

@olatechpro
Copy link
Collaborator

@rizaardiyanto1412 Send this version to the client if they need to run the upgrade manually pending the time we release an update

Here’s an update made for you to run the migration manually https://drive.google.com/file/d/1zj0uEGrSLnui9NJSYtvq16S6hh55CKA5/view?usp=sharing

After installing the upgrade, Go to Series Settings > Advanced tab to run the migration.

@olatechpro
Copy link
Collaborator

olatechpro commented Jul 11, 2023

While rechecking this again,

Hi.

I noticed that when the plugin is used in a multisite installation, then for the subsites which are created after the activation of the plugin the function
pp_series_upgrade_function() which alters the wp_xx_terms table etc, is never executed, so there are some PHP errors in the error log.

If a subsites are created after activation of the plugin, then they don't need the pp_series_upgrade_function() function as that function is for existing series. That explains why the function never run for new subsite.

On the error, providing the error log will help in knowing what the issue is.

For now, I'll leave this out of the current milestone and we've also added button in the settings area to manually run this migration if the need be.

@olatechpro olatechpro removed this from the 2.11.5: Bug Fixes milestone Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants