I've reported this issue with various modules that use CTools Export UI and dealt with it myself as I write a lot of modules with CTools Export UI integration, but it is a bit of an odd one that I have dug into various times.

Suffice to say, the basics of the issues is that due to caching and ctools use require_once() to load plugin definitions, in some cases a CTools export UI plugin definition is not longer available for use while that plugin is trying to act. More details can be read in my last delving into this issue: #2386819: Encrypt/Decrypt and cache clear issue with CTools plugin system

The simplest resolution, the one I deal with in that issue, is to using HOOK_PLUGIN_ctools_export_ui() to declare the plugins, which is a fairly undocumented function, but it changes nothing except for making the CTools export UI plugin more reliable.

Patch incoming.

CommentFileSizeAuthor
#2 ctools_export_ui-2592057-2.patch1.78 KBdeciphered

Comments

Deciphered created an issue. See original summary.

deciphered’s picture

Status: Active » Needs review
StatusFileSize
new1.78 KB

Status: Needs review » Needs work

The last submitted patch, 2: ctools_export_ui-2592057-2.patch, failed testing.

deciphered’s picture

I ran the tests on simplytest.me patched and un-patched and the same number of failures occurred for both, so the failing tests are in Context rather than in this patch.

Not much point re-marking this as 'Needs review' as the failing tests will just mark it back again.

deciphered’s picture

Status: Needs work » Needs review

Setting to needs review to (hopefully) re-queue tests.