When enabling the context module, the following error message appears:

    * The plugin definition of context cannot locate schema <em>context</em>.
    * warning: Invalid argument supplied for foreach() in ***\sites\all\modules\contrib\ctools\plugins\export_ui\ctools_export_ui.class.php on line 54.

CTools version is 1.7 stable.

Tried in a clean site (Drupal 6.19 with some standard modules like views and cck) and it happens too.

Comments

brynbellomy’s picture

subscribe

kyle_mathews’s picture

Status: Active » Closed (duplicate)

This is a ctools error and not a context error and has been discussed/fixed already in the ctools issue queue #865738: warning: Invalid argument supplied for foreach() in ctools/plugins/export_ui/ctools_export_ui.class.php on running update.php

jedihe’s picture

Thank you kyle_mathews ! I tried checking in the CTools issue queue, but couldn't find it, that's why I posted it here.

ukrdrupal’s picture

But why does it happen upon installation of the Context module? I have a relatively fresh installation of Drupal 6.19 as well and am using CTools 1.7. I have not had any problem with such warning messages, up until I installed the Context module. So, there must be some kind of conflict? If it is a CTools problem, can you at least indicate what the problem is?

kyle_mathews’s picture

Because Context depends on CTools. So when you install Context, Drupal installs CTools as well. The error is entirely innocuous and doesn't cause any problems. If you'd like more background on what exactly is causing the error, click through to the CTools issue.

ukrdrupal’s picture

Okay, apparently, if I enable them one by one (Context followed by Context layouts followed by Context UI), then there are no errors or warning messages. But, I had watched a mustardseed tutorial and he said to just enable them all at once. He didn't have any errors or warning messages, apparently. ...Is there a conflict or not? Is this a concern or not?

ukrdrupal’s picture

kyle_mathews - Thanks! ...I hadn't refreshed the page to see your response before making my comment.