After implementing the last 6.2.x-dev version of the module, when i try to administrate the blocks, i get this message:

Fatal error: view::destroy() [view.destroy]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_plugin_display_default" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in C:\wamp\www\afterfoot\sites\all\modules\views\includes\view.inc on line 1459

Comments

merlinofchaos’s picture

Status: Active » Fixed

http://drupal.org/node/366782 was marked a dup of this issue.

Fix committed. Thanks!

Flying Drupalist’s picture

Status: Fixed » Active

I'm on the latest dev, and I'm getting something similar on the backup and migrate module:

Fatal error: view::destroy() [view.destroy]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_plugin_display_default" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/webadmin/html/sites/all/modules/views/includes/view.inc on line 1460

Flying Drupalist’s picture

Priority: Normal » Critical

This is also on the update.php page.

merlinofchaos’s picture

To everyone who is still getting this: Please flush your cache and see if you're still getting this issue.

roborn’s picture

Status: Active » Fixed

Using the last dev snapshot and everything is ok. :)

kenorb’s picture

Status: Fixed » Needs work

Thanks, but I've tried lastest snapshot and in my case the problem is there.

Fatal error: view::destroy() [view.destroy]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_plugin_display_default" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition incontributions\views\includes\view.inc on line 1460
1	0.0005	59304	{main}( )	..\index.php:0
2	1.1647	57872264	menu_execute_active_handler( $path = ??? )	..\index.php:19
3	1.1738	58028440	call_user_func_array ( 'panels_page_render_handler', array (0 => 'Home') )	..\menu.inc:348
4	1.1738	58028344	panels_page_render_handler( 'Home' )	..\menu.inc:0
...
12	1.4632	58830384	panels_pane_select_context( $pane = class stdClass { public $pid = '14'; public $did = '1'; public $panel = 'bottom'; public $type = 'block'; public $subtype = 'activity-all'; public $shown = '1'; public $access = array (); public $visibility = ''; public $configuration = array ('style' => 'default', 'override_title' => 0, 'override_title_text' => '', 'css_id' => '', 'css_class' => '', 'module' => 'activity', 'delta' => 'all', 'block_visibility' => 0, 'block_settings' => array ('items' => '5')); public $cache = array (); public $position = '1' }, $contexts = array () )	..\display-render.inc:175
13	1.4633	58830664	panels_ct_get_types( $type = 'block' )	..\plugins.inc:1254
14	1.4637	58831928	panels_admin_content_types_block( )	..\plugins.inc:427
15	1.9378	59289896	module_invoke( 'views', 'block', 'list' )	..\block.inc:95
16	1.9379	59290872	call_user_func_array ( 'views_block', array (2 => 'list') )	..\module.inc:450
17	1.9379	59291184	views_block( $op = 'list', $delta = ???, $edit = ??? )	..\module.inc:0
18	2.8519	65935200	view->destroy( )	..\views.module:349

Tested on anonymous.

merlinofchaos’s picture

Hmmmm. That's very interesting. Silly Panels. That helps a lot, though. Thanks for that info.

zoia’s picture

After updating views i realized that I have no access to blocks administration page any more. I get this instead

Fatal error: view::destroy() [function.view-destroy]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_plugin_display_default" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /users/pel/1dim-giann/1dimgian/public_html/modules/views/includes/view.inc on line 1460

Any suggestion? I didnt understood whats the fix .

zoia’s picture

Ok it solved after running the update of database . I would appreciate if someone could explain how to flush the cache *(suggested above)
Thanks

merlinofchaos’s picture

Status: Needs work » Active

visit admin/build/views/tools -- but not having already run update.php is your own fault.

Also, who set this to patch (code needs work). If you don't understand what the settings mean, please don't mess with them. :/

zoia’s picture

Yes it was my fault -:) that I realized after writting the post. I have a lot of reading especially for views that i am not using all its features yet. I won't mess - Thank you !!

merlinofchaos’s picture

Status: Active » Fixed

All other reports I have are that this is fixed after a cache flush.

AlexisWilke’s picture

Just a note...

I had to run the update.php

My cache is turned off anyway.

Status: Fixed » Closed (fixed)

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