Project

General

Profile

Bug #5642

possible plugin conflict with acert plugin?

Added by David dos Santos almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2016-06-02
Due date:
% Done:

0%

Estimated time:

Description

I attempted to extend tags and categories to our project pages and we suspect a plugin conflict. With the current ACERT plugin I am able to add categories/tags to projects on our wat1 test site. So far I have been unable to reproduce the issue from our live site on our wat1 test site. Is there any way we can run a test like you did last time?

Thank you!

History

#1 Updated by Boone Gorges almost 3 years ago

Hi David - I'm not sure I understand the request. You're having a certain problem locally, but not on the production site? How have I helped you with this in the past?

#2 Updated by David dos Santos almost 3 years ago

Hi Boone, sorry for the confusion. I was able to get this to work on our local test site but not the live site on the commons. Gina suggested that it may have been a plugin issue. I was referring to Feature #5314 when you discovered which plugin conflicted with our ACERT plugin.

Many thanks,
David

#3 Updated by Boone Gorges almost 3 years ago

Ah, OK. Can you please give specific details to reproduce the problem on the production site, so I have a better sense of what to debug? Is it precisely the same issue you were having in #5314? I'm not sure which steps to take to verify that you "attempted to extend tags and categories to our project pages". Thanks in advance.

#4 Updated by David dos Santos almost 3 years ago

This is a separate issue from #5314.

In my ACERT plugin (which can be seen in #5614) on lines 70-83, I have extended the post category and post tags taxonomies to woo projects. I tested the plugin on our wat1.hunter.cuny.edu test site (only accessible on 68th st campus) and it works.

However, on our live site when I go to add project, I do not see categories or tags extended.

Many thanks,
David

#5 Updated by Boone Gorges almost 3 years ago

  • Status changed from New to Reporter Feedback

Thanks for the additional details, David.

On a lark, I bumped the priority of your `register_taxonomy_for_object_type()` calls, from

add_action('init', 'cac_acert_tags_support_all');                            
add_action('init', 'cac_acert_category_support_all');

to

add_action('init', 'cac_acert_tags_support_all', 100);                            
add_action('init', 'cac_acert_category_support_all', 100);

(When the third argument is absent, the default priority 10 is used.) This appears to have done the trick. It suggests that another plugin is interfering between priority 10 and 100 of the 'init' action, and overwriting the object-type-taxonomies. Bumping the priority means that your customizations run last, and are not overridden. I glanced through your active plugins to see if I could find the culprit, but I didn't see anything obvious; I'm not sure it's worth digging into much more, given that it's now working.

Could you please verify?

#6 Updated by David dos Santos almost 3 years ago

Thank you Boone! Yes this has fixed the issue.

Going forward I will be sure to set the priority to 100. This has been very insightful and I will be sure to read up on priorities.

#7 Updated by Boone Gorges almost 3 years ago

  • Category name set to WordPress Plugins
  • Status changed from Reporter Feedback to Resolved
  • Target version set to 1.9.18

Also available in: Atom PDF