https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2016-06-02T20:23:32ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240252016-06-02T20:23:32ZBoone Gorgesboone@gorg.es
<ul></ul><p>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?</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240262016-06-02T20:27:24ZDavid dos Santosddossant@hunter.cuny.edu
<ul></ul><p>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 <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Update ACERT plugin (Resolved)" href="https://redmine.gc.cuny.edu/issues/5314">#5314</a> when you discovered which plugin conflicted with our ACERT plugin.</p>
<p>Many thanks,<br />David</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240272016-06-03T13:18:56ZBoone Gorgesboone@gorg.es
<ul></ul><p>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 <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Update ACERT plugin (Resolved)" href="https://redmine.gc.cuny.edu/issues/5314">#5314</a>? 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.</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240282016-06-06T13:55:37ZDavid dos Santosddossant@hunter.cuny.edu
<ul></ul><p>This is a separate issue from <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Update ACERT plugin (Resolved)" href="https://redmine.gc.cuny.edu/issues/5314">#5314</a>.</p>
<p>In my ACERT plugin (which can be seen in <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: ACERT plugin (Resolved)" href="https://redmine.gc.cuny.edu/issues/5614">#5614</a>) 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.</p>
<p>However, on our live site when I go to add project, I do not see categories or tags extended.</p>
<p>Many thanks,<br />David</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240372016-06-06T18:53:38ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Reporter Feedback</i></li></ul><p>Thanks for the additional details, David.</p>
<p>On a lark, I bumped the priority of your `register_taxonomy_for_object_type()` calls, from</p>
<pre>
add_action('init', 'cac_acert_tags_support_all');
add_action('init', 'cac_acert_category_support_all');
</pre>
<p>to</p>
<pre>
add_action('init', 'cac_acert_tags_support_all', 100);
add_action('init', 'cac_acert_category_support_all', 100);
</pre>
<p>(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.</p>
<p>Could you please verify?</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240382016-06-06T19:18:29ZDavid dos Santosddossant@hunter.cuny.edu
<ul></ul><p>Thank you Boone! Yes this has fixed the issue.</p>
<p>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.</p> CUNY Academic Commons - Bug #5642: possible plugin conflict with acert plugin?https://redmine.gc.cuny.edu/issues/5642?journal_id=240412016-06-06T20:52:11ZBoone Gorgesboone@gorg.es
<ul><li><strong>Category name</strong> set to <i>WordPress Plugins</i></li><li><strong>Status</strong> changed from <i>Reporter Feedback</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>1.9.18</i></li></ul><p>Great! The change has been applied to the repo at <a class="external" href="https://github.com/cuny-academic-commons/cac/commit/09d6ea7c6bfcc92295ee907035d8adca1977851c">https://github.com/cuny-academic-commons/cac/commit/09d6ea7c6bfcc92295ee907035d8adca1977851c</a></p>