Daniel Iser
Forum Replies Created
-
Update incoming @guy101, @henro2k, @liebberger – Update to v2.0.6 and try the upgrader again, it should complete this time if you were one of those affected with no restrictions to migrate.
@guy101 – Sorry for the confusion, basically if you only used the shortcode our upgrader is crashing for some reason.
I have a fix coming but its almost 5am here and I need to get some sleep. I have my team looking over the solution to hopefully make sure we don’t miss anything or cause any side effects.
We are also adding a step to save a backup file prior to processing migrations going forward so there won’t be any concerns.
Also as of now there were no migrations or changes to the shortcodes, so if that is all you used it for before, they should work as expected even if upgrades haven’t completed yet.
@defender75 – Happy to help. In v1 we only did basic filtering of post content and such, in v2 we aimed to fill the gaps and now handle restricting content at the query level as well as a few other ways.
That said there are many queries we can safely not filter, and we actually have a built in mechanism for that to happen, we just need to identify those queries.
Can you confirm what the setup of your global restrictions are, such as what protection method & content matching rules each use.
Further can you confirm none of the content missing in the slideshow should match those rules?@henro2k, @guy101, @liebberger
Can everyone confirm they were not using the Global Restrictions prior to v2 found under Settings -> Content Control. For example if you primarily used the [content_control] shortcode or widget controls?
I’ve had 3 other similar cases I’ve studied and just found that all actually had 0 restrictions to migrate and that is where it was getting stuck.
@heartitwebdesign – Awesome, glad to hear it.
Please take a moment to rate & review the plugin and or support to spread the word.
@kionae – Ok so for another user I found that they had a theme/plugin that was making post queries before
initaction. This effectively made our rules init run earlier than your tags are being added to the pages.
The temporary fix while I investigate why those other plugins do what they do was to remove our filters early on and readd them back just before we normally would expect them. This may result in some content not protected on some sites, but that is unlikely for most simpler setups:remove_filter( 'the_posts', [ \ContentControl\plugin('Frontend\Restrictions\QueryPosts'), 'restrict_query_posts' ], 10, 2 ); add_action( 'init', function () { add_filter( 'the_posts', [ \ContentControl\plugin('Frontend\Restrictions\QueryPosts'), 'restrict_query_posts' ], 10, 2 ); } );If this works for you, it likely also means you have similar. Can you tell me what plugins your using, would BuddyBoss be one of them by chance?
@corytrevor – Sorry to hear that, the fix is in v2.0.5. Thank you very much for the quick report.
Can you confirm something for me, does changing this line in your code make it work?
add_action( 'init', 'add_taxonomies_to_pages', 9 );If so I have a fix coming that should hopefully fix it.
As I suspected it seems to have been all about timing.
Ok perfect, off to test this all. Will keep you posted.
Understandable. This isn’t the only report of similar nature, so I’m trying to track it down quickly. Strangely we should support that out of the box as our rules are dynamically generated based on the existing post types & taxonomies.
I’m wondering if this is happening in a scenario where the code you have to add tags to pages isn’t running or is running too late (or ours is running too early).
Can you install a plugin by chance?
This is a tool we built for testing & troubleshooting migration issues during the build of v2.
https://github.com/code-atlantic/content-control-migration-tester/releases/tag/v1.1.0Specifically it adds an menu to the admin toolbar with options to Export v1 Data and Import v1 Data. You can uninstall it right after, and you can see the source on github.
It might help you can export the settings your using so I can try to replicate as closely as possible.
You could either paste the contents here, or submit a ticket at https://contentcontrolplugin.com/support/ with the contents of the file or attaching it.
Ok I have this patched, look for v2.0.5 in just a bit (gonna work on other issues before I publish this one).
@kionae – Sorry to hear that, happy to help.
Can you copy/paste the custom code used to register the categories functionality from your theme here?
I need to determine why it shows up some times and not others in our systems.
Further if you’d like you can follow the guide here, and send a token via the support form I will be happy to check out the site directly.
@liebberger, @guy101 – Sorry to hear that. It shouldn’t take too long generally, so its likely there was an error during the process and it never finished.
It only has to migrate our data, not anything with posts etc.
If you can follow the guide here, and send a token via the support form I will be happy to check it out directly.
It would also be helpful to get any PHP error log messages that might have occurred during this time.—
In any case I will be working out kinks in the new version all day(week if needed). Rest assured we will get it worked out.@heartitwebdesign – Ugg, sorry to hear that.
For reference can you give me the version of PHP & WP you have currently.
Rest assured I will be working to smooth out all the kinks today.
@nobo73 – Looking into this today.
For reference if #1 isn’t working, #2 is likely a result of that.