Views 7.x.3-alpha whatever (with the fancy new UI) deprecated the tag:
$view->api_version = '3.0-alpha1';
It must be changed to:
$view->api_version = 3;
In all exported views. Otherwise, everything breaks and hilarity does not ensue.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | api_version-1103096-10.patch | 1.71 KB | stevector |
| #5 | no-patch.png | 55.55 KB | agentrickard |
| #5 | with-patch.png | 108.03 KB | agentrickard |
| #2 | 1103086-views-update.patch | 1.69 KB | agentrickard |
Comments
Comment #1
agentrickardBumping to critical.
Comment #2
agentrickardAnd a patch.
Of course, this now generates a mystery error on the My Workbench screen.
Comment #3
stevectoragentrickard, what do you mean by "everything breaks?" Editing the View? Even seeing the View? I do not think I've seen the error you are referencing here.
Comment #4
agentrickardI can't get the Views to load at all if api_version is non-integer.
Comment #5
agentrickardScreenshots. You need Views 3.x beta 3, I believe.
Comment #6
stevectorThis is odd. Views Beta3 is still exporting with
I think it is the
that is making the difference.
Comment #7
agentrickardReally? I always change api_version = 3 and it works.
Comment #8
stevectorYeah, the beginning of a Views export from beta3 looks like this:
It uses 3.0-alpha1 and 'core = 0'. I'm not sure what 'version = 7' would do.
Maybe we should just talk this through on IRC sometime. I'm sorry for letting this issue drag out considering how small it is.
Comment #9
dave reidThis should use $view->core = 7 and $view->api_version = 3 as per an IRC conversation I overheard from merlinofchaos. I think using $view->version = 7 is why the views weren't showing up for you Ken.
Comment #10
stevectorOK, I think we're good to go here.
Comment #11
dave reidTested using the latest ctools & views from Git and all the views worked correctly and I did not see any errors.
Comment #12
stevectorhttp://drupalcode.org/project/workbench.git/commit/0465f2a