Updated to use the latest Views dev release for 7.x and the latest dev release of Ctools, i now get WSOD when trying to get to the Views admin panel, and any page on the site with a view on it shows this notice

Notice: Undefined index: export in ctools_export_crud_load() (line 75 of /Users/.../.../.../sites/all/modules/ctools/includes/export.inc).

And no views are shown.
I couldn't find another issue so not sure if it has been reported yet

Comments

acoustika’s picture

Same, after opdating views and Ctools to latest dev versions.....

bojanz’s picture

Status: Active » Fixed

Please clear your cache.
Reopen if needed.

renenee’s picture

I have the exact same situation. My cache is cleared. Problem persists.

pbz1912’s picture

I had this problem.

I fixed it by running updates. /update.php

gmopinillosv’s picture

Hi there

The issue continues. I clear cache from my browser and nothing happened. Also I ran " updates. /update.php" and nothing happened.

I don't know what to do. The recomendation is update the last version of View and Ctool and now all is crash.

Could somebody give me a light for all this issue?

I appreciate it so much. Thank you

stephensont’s picture

You need to clear Drupal's caches, not your browsers - visit http://yoursite/admin/config/development/performance and click "clear all caches".

You may need to do this a couple of times to clear the problem.

rodolfo.flavio’s picture

Only need clear cache, update database and run cron.

Lonelywolf-1’s picture

Did clear cache and run cron multple times , still the same.

unknown interloper’s picture

I cleared all caches, updated database and runed cron and it solved the problem. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hass’s picture

Status: Fixed » Active

Also cleared views and core caches several times. This is not the issue of the notice. The issue still exists. I've digged it down to a View that is shown as Block in a sidebar.

These block is from http://drupal.org/project/calendar module and shows the upcoming events. This 'export' array in the $schema array is not set in ctools_export_crud_load() and the reason is that there no $table value provided for this calendar block view.

$table is NULL and than if (empty($cache[$table])) { is always FALSE and nothing get's cached plus the export array don't get added with "some defaults" inside ctools_export_get_schema(). Additional drupal_get_schema($table); cannot gives anything back if the $table is NULL...

As I'm not sooo 100% familiar with the views code and I cannot say if this is a calendar module issue or views itself. So - what's wrong here?

dawehner’s picture

Version: 7.x-3.x-dev » 7.x-3.3
Status: Closed (fixed) » Fixed

Are you really sure we talk about the same bug as the initial one?

I think this one is definitive different as it's in another function. I underlying issue is about the internal change in the calendar module.

hass’s picture

This is 100% the same notice AND I have debugged it down to a bug! So don't close these bug case as it contains a lot of important debug information that took hard time to dig out, please.

Notice: Undefined index: export in ctools_export_crud_load() (line 75 of sites\all\modules\ctools\includes\export.inc).
swentel’s picture

Same report in ctools queue, see #1508062: Empty schema array - Undefined index: export in ctools_export_crud_load() (line 75, so this more or less a dupe (or the other). Can't reproduce this also with latest ctools, views AND/OR calendar. It also doesn't make sense that a block is causing that notice. So either some module is calling ctools_export_crud_load() with an empty $table parameter (which would be weird), or someone is calling ctools_export_crud_load() on a table which effectively has no 'export' key. Try adding a debug_backtrace() (or ddebug_backtrace() from devel) in that function to find out.

Note, these are the places where views calls ctools_export_crud_load and table parameter is never empty, so it has to be another module causing that notice.

swenteldoos-2:views swentel$ grep -R ctools_export_crud_load\( *
plugins/export_ui/views_ui.class.php:  } while (ctools_export_crud_load($form_state['plugin']['schema'], $machine_name));
views.module:  $view = ctools_export_crud_load('views_view', $name);
hass’s picture

I'm currently only able to repro it if the block in inside the sidebar and I'm using a post form (e.g. search/node). After you hit the submit button the message is shown.

If you look into the code this is all logic. It must happen as the $table is NULL.

hass’s picture

Tried to disable the upcoming block and issue is still there after I posted a search.

hass’s picture

After I disabled the calendar view completely it goes away.

swentel’s picture

Status: Active » Postponed (maintainer needs more info)

Yes, if $table is null, you'll get a notice, we need to know *why* it's throwing a notice as we can't reproduce. So again, can you change to code temporarily in export.inc to this:

  $schema = ctools_export_get_schema($table);
  if (!isset($schema['export'])) {
    drupal_set_message(print_r(debug_backtrace(), true));
   // Or use devel.
   // ddebug_backtrace();
  }
  $export = $schema['export'];

That will give us a clue to which schema doesn't have the export key, but also gives the completely call stack.

hass’s picture

I do not like to post this internals to public... what are you looking for?

swentel’s picture

Well, the backtrace won't list any confidential information, but you can temporarily paste this in a pastebin somewhere if you want to and add the link here. I'm at least online the next 3 hours, so I can have a very quick look at it and then you can delete that pastebin code again. What I'm looking for ? Well, the backtrace will tell which function where is reponsible for making $table NULL.

hass’s picture

Heck... maybe related to http://drupal.org/project/custom_formatters, too. If a content type is shown in search results and the a field value exists and is therefore formatted I see this, plain text nodes don't show the message. Just wonder why this change if calender get's disabled.

hass’s picture

Oh, I already opened a ticket for this in #1494150: Notice: Undefined index: export in ctools_export_crud_load(). Too many bugs to remember...

esmerel’s picture

tag abuse

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
tasetta’s picture

stephensont -- thank you so much for that tip! I'd been struggling with this issue for days. I was hesitant to try updating views and ctools because he said it crashed on him. But I had no clue how to clear cache from within drupal. I must remember this one! The first time I cleared, I had an error message that had me thinking oh, I guess I do have to update those modules. But then I happened to click clear again and the error resolved and FINALLY, i have my site!!!!!!!! ahhh. Thank you.