Advertisement
xtiansimon

Draggableview_issue

Mar 20th, 2012
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.86 KB | None | 0 0
  1. /** Views page error message **/
  2. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'draggableviews_structure.entity_id' in 'on clause'
  3.  
  4. /** Views error without JavaScript **/
  5. Warning: Invalid argument supplied for foreach() in views_plugin_display->uses_exposed() (line 275 of /var/www/php/drupal7/sites/all/modules/views/plugins/views_plugin_display.inc).
  6.  
  7. /** Watchdog **/
  8. | 2828
  9. |   1
  10. | php            
  11. | %type: !message in %function (line %line of %file).                  
  12. | a:6:{s:5:"%type";s:7:"Warning";s:8:"!message";s:39:"Invalid argument supplied for foreach()";s:9:"%function";s:36:"views_plugin_display->uses_exposed()";s:5:"%file";s:77:"/var/www/php/drupal7/sites/all/modules/views/plugins/views_plugin_display.inc";s:5:"%line";i:273;s:14:"severity_level";i:4;}          
  13. |        4
  14. |      
  15. | http://pizzeriamondo.local/admin/structure/views/ajax/config-item/drag/page/sort/weight            
  16. | http://pizzeriamondo.local/admin/structure/views/view/drag/edit/page  
  17. | 127.0.0.1
  18. | 1332633823
  19. |
  20.  
  21.  
  22. /** mysqldump (both tables are empty)**/
  23. --
  24. -- Table structure for table `drupal7_draggableviews_collapsed`
  25. --
  26.  
  27. DROP TABLE IF EXISTS `drupal7_draggableviews_collapsed`;
  28. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  29. /*!40101 SET character_set_client = utf8 */;
  30. CREATE TABLE `drupal7_draggableviews_collapsed` (
  31.   `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The user.',
  32.   `parent_nid` int(10) unsigned NOT NULL COMMENT 'The parent node.',
  33.   `view_name` varchar(32) NOT NULL DEFAULT '' COMMENT 'The view id.',
  34.   `collapsed` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The state.',
  35.   PRIMARY KEY (`uid`,`parent_nid`,`view_name`)
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The table that knows whether sub-lists are collapsed or...';
  37. /*!40101 SET character_set_client = @saved_cs_client */;
  38.  
  39. --
  40. -- Table structure for table `drupal7_draggableviews_structure`
  41. --
  42.  
  43. DROP TABLE IF EXISTS `drupal7_draggableviews_structure`;
  44. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  45. /*!40101 SET character_set_client = utf8 */;
  46. CREATE TABLE `drupal7_draggableviews_structure` (
  47.   `view_name` varchar(32) NOT NULL DEFAULT '' COMMENT 'Makes the order unique for each view.',
  48.   `nid` int(10) unsigned NOT NULL COMMENT 'The node id.',
  49.   `delta` int(10) unsigned NOT NULL COMMENT 'Makes the order unique for each level.',
  50.   `args` varchar(255) NOT NULL DEFAULT '' COMMENT 'Makes the order unique for a given set of arguments',
  51.   `value` int(11) NOT NULL DEFAULT '0' COMMENT 'The value.',
  52.   PRIMARY KEY (`nid`,`view_name`,`delta`,`args`)
  53. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The table saves the order settings of an draggableview.';
  54. /*!40101 SET character_set_client = @saved_cs_client */;
  55.  
  56.  
  57. /** Views export  **/
  58. $view = new view;
  59. $view->name = 'draggable_test';
  60. [...]
  61. $view->core = 7;
  62. $view->api_version = '3.0-alpha1';
  63. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  64.  
  65. /* Display: Master */
  66. [...]
  67. $handler->display->display_options['style_options']['columns'] = array(
  68.   'title' => 'title',
  69.   'draggableviews' => 'draggableviews',
  70.   'body' => 'body',
  71. );
  72. [...]
  73. /* Field: Content: Title */
  74. /* Field: Content: Draggable views */
  75. $handler->display->display_options['fields']['draggableviews']['id'] = 'draggableviews';
  76. $handler->display->display_options['fields']['draggableviews']['table'] = 'node';
  77. $handler->display->display_options['fields']['draggableviews']['field'] = 'draggableviews';
  78. $handler->display->display_options['fields']['draggableviews']['label'] = 'Drag';
  79. $handler->display->display_options['fields']['draggableviews']['element_label_colon'] = 0;
  80. $handler->display->display_options['fields']['draggableviews']['element_default_classes'] = 0;
  81. $handler->display->display_options['fields']['draggableviews']['hide_empty'] = 0;
  82. $handler->display->display_options['fields']['draggableviews']['empty_zero'] = 0;
  83. $handler->display->display_options['fields']['draggableviews']['hide_alter_empty'] = 0;
  84. $handler->display->display_options['fields']['draggableviews']['draggableviews']['ajax'] = 0;
  85. /* Field: Content: Body */
  86. [...]
  87. /* Sort criterion: Content: Draggable views weight */
  88. $handler->display->display_options['sorts']['weight']['id'] = 'weight';
  89. $handler->display->display_options['sorts']['weight']['table'] = 'draggableviews_structure';
  90. $handler->display->display_options['sorts']['weight']['field'] = 'weight';
  91. $handler->display->display_options['sorts']['weight']['draggableviews_setting_view'] = 'our_menu:end_user';
  92. $handler->display->display_options['sorts']['weight']['draggableviews_setting_new_items_bottom_list'] = 1;
  93. /* Filter criterion: Content: Published */
  94. [...]
  95. /* Filter criterion: Content: Type */
  96. [...]
  97. /* Display: Page */
  98. $handler = $view->new_display('page', 'Page', 'page');
  99. $handler->display->display_options['path'] = 'draggable-test';
  100.  
  101. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement