I noticed some strange behaviour on the contexts tab in the page manager, where I had hundreds of contexts and relations with the same name. It took me a while to find the problem. In ctools_get_plugins() two static caches('ctools_plugin_setup' and 'ctools_plugins') are used for loading and building the plugins. This function is actually called twice on the page in ctools_context_handler_edit_context() (once in ctools_context_admin_includes() and once in ctools_context_add_context_form() for contexts). During this process a default view caused a ctools_get_plugins_reset() call on my website.
But in ctools_get_plugins_reset() only the 'ctools_plugin_setup' static variable is cleared, meaning that the second time the function is called, all plugin information is again appended to the 'ctools_plugins' var, leading to incorrect data.

CommentFileSizeAuthor
ctools_plugins_static_cache_clear.patch537 bytesmh86

Comments

merlinofchaos’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

Committed to D7. This likely needs to be backported to D6.

  • merlinofchaos committed b20b44a on 8.x-2.x
    Issue #1285062 by mh86: Plugins reset not actually resetting plugins.
    
    

  • merlinofchaos committed b20b44a on 8.x-3.x
    Issue #1285062 by mh86: Plugins reset not actually resetting plugins.
    
    
japerry’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

japerry’s picture

Drupal 6 is no longer supported, closing.