Hi there!i'm a drupal developer, I've got a module named md_portfolio-7.x-2.2 from my client. I made gallary with this by views, working - but showing error "Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 of F:\xampp\htdocs\esbriet\sites\all\modules\md_portfolio\templates\mdp\theme.inc)." How to solve this ? Is it included theme also ? If yes, then mention file name that I need to copy or paste theme folder. If you have documentation for the product then please send links.
Regards,
Bayezid
Hi Bayezid,
Thank you for your feedback.
You could edit line 272 of that file
from
if (count($field_options[$md_field_flag]['field_display']) != 0) {
to
if (isset($field_options[$md_field_flag]['field_display']) && count($field_options[$md_field_flag]['field_display'])) {
You could also overridde template as a normal view.
And would you like to tell us that you created a new view or from our demo? If you created new view, could you tell us how content type structure is? It will be great if you export your view so we can test it.
Hi,
Once you have downloaded and unzipped the apage package you will see the Documentation (just open index.html)
Please go to views > format settings, and save. The error appears (because can not select filter)
Hi Cindy,
Followed all steps that is mentioned.
Now the problem with lightbox gallery - if published no image shown, if not then image showed but error:
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined variable: filter in include() (line 3 of F:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\md-portfolio-mdp-plugin-style.tpl.php).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined index: field_display in template_preprocess_md_portfolio_mdp_plugin_rows() (line 272 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 ofF:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\theme.inc).
Notice: Undefined variable: filter in include() (line 3 of F:\xampp\htdocs\bayezid\sites\all\modules\md_portfolio\templates\mdp\md-portfolio-mdp-plugin-style.tpl.php).
View export:
View export: $view = new view();
$view->name = 'md_portfolio_lightbox_gallery';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'MD portfolio Lightbox Gallery';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'MD portfolio Lightbox Gallery';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'md_load_more';
$handler->display->display_options['pager']['options']['items_per_page'] = '12';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['wle_page_check'] = '1';
$handler->display->display_options['style_plugin'] = 'md_portfolio_mdp_plugin_style';
$handler->display->display_options['style_options']['md_style_flag'] = '1';
$handler->display->display_options['style_options']['md_style_view'] = array(
'vid' => '1',
'vname' => 'md_portfolio_lightbox_gallery',
'display_id' => 'block_1',
'filter_tax_id_field_name' => 'md_taxonomy_portfolio/field_mdp_categories',
'filter_default_tax_id' => '2',
'filter_default_tax_mname' => 'md_taxonomy_portfolio',
'filter_default_field' => 'field_mdp_categories',
'filter_div_id' => 'mdp-filter-1',
'grid_div_id' => 'mdp-grid-1',
);
$handler->display->display_options['style_options']['md_style_filter_count'] = array(
'flag_check' => 1,
'options' => array(
'count_type' => 'cbp-count-tooltip',
'field_prefix' => '(',
'field_suffix' => ')',
),
);
$handler->display->display_options['style_options']['md_style_filter_type'] = 'cbp-l-filters-button';
$handler->display->display_options['style_options']['md_style_container_type'] = 'cbp-l-grid-gallery';
$handler->display->display_options['style_options']['md_style_animationType'] = 'rotateSides';
$handler->display->display_options['style_options']['md_style_displayType'] = 'lazyLoading';
$handler->display->display_options['style_options']['md_style_gridAdjustment'] = 'responsive';
$handler->display->display_options['style_options']['md_style_mediaQueries'] = '[1500, 5]
[1100, 4]
[800, 3]
[480, 2]
[320, 1]
';
$handler->display->display_options['style_options']['md_style_view_node'] = 'mdp_full_popup';
$handler->display->display_options['row_plugin'] = 'md_portfolio_mdp_plugin_rows';
$handler->display->display_options['row_options']['md_rows'] = array(
'field_mdp_images' => array(
'field' => '',
'flag' => 'more',
'caption' => array(
'class_link' => 'cbp-singlePage',
'text' => '',
'field_display' => array(
'title' => 1,
'name' => 1,
),
),
'more' => array(
'caption_flag' => 1,
'caption_text' => 'View Image',
'full_page_flag' => 0,
'full_page_text' => 'View Content',
'inline_page_flag' => 0,
'inline_page_text' => 'View Content',
'field_display' => array(
'title' => 1,
'name' => 0,
),
),
),
'title' => array(
'field' => 'title',
'flag' => '0',
),
'name' => array(
'field' => 'name',
'flag' => '0',
),
);
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
$handler->display->display_options['relationships']['uid']['required'] = TRUE;
/* Field: Content: Lightbox image */
$handler->display->display_options['fields']['field_lightbox_image']['id'] = 'field_lightbox_image';
$handler->display->display_options['fields']['field_lightbox_image']['table'] = 'field_data_field_lightbox_image';
$handler->display->display_options['fields']['field_lightbox_image']['field'] = 'field_lightbox_image';
$handler->display->display_options['fields']['field_lightbox_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_lightbox_image']['settings'] = array(
'image_style' => '',
'image_link' => '',
);
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Content: Author uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'node';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '0';
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'lightbox_gallary' => 'lightbox_gallary',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['use_ajax'] = FALSE;
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'md_load_more';
$handler->display->display_options['pager']['options']['items_per_page'] = '12';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['wle_page_check'] = '2';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'md_portfolio_mdp_plugin_style';
$handler->display->display_options['style_options']['md_style_flag'] = '1';
$handler->display->display_options['style_options']['md_style_view'] = array(
'vid' => '5',
'vname' => 'md_portfolio_lightbox_gallery',
'display_id' => 'page',
'filter_tax_id_field_name' => '0',
'filter_default_tax_id' => '0',
'filter_default_tax_mname' => '0',
'filter_default_field' => '0',
'filter_div_id' => 'mdp-filter-5',
'grid_div_id' => 'mdp-grid-5',
);
$handler->display->display_options['style_options']['md_style_filter_count'] = array(
'flag_check' => 1,
'options' => array(
'count_type' => 'cbp-count-tooltip',
'field_prefix' => '(',
'field_suffix' => ')',
),
);
$handler->display->display_options['style_options']['md_style_container_type'] = 'cbp-l-grid-gallery';
$handler->display->display_options['style_options']['md_style_caption'] = 'overlayBottomPush';
$handler->display->display_options['style_options']['md_style_displayType'] = 'lazyLoading';
$handler->display->display_options['style_options']['md_style_gridAdjustment'] = 'responsive';
$handler->display->display_options['style_options']['md_style_mediaQueries'] = '[1500, 5]
[1100, 4]
[800, 3]
[480, 2]
[320, 1]
';
$handler->display->display_options['style_options']['md_style_gapHorizontal'] = '50';
$handler->display->display_options['style_options']['md_style_gapVertical'] = '40';
$handler->display->display_options['style_options']['md_style_view_node'] = 'mdp_inline_popup';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'md_portfolio_mdp_plugin_rows';
$handler->display->display_options['row_options']['md_rows'] = array(
'field_lightbox_image' => array(
'field' => '',
'flag' => 'caption',
'caption' => array(
'class_link' => 'cbp-singlePageInline',
'text' => 'Mega Drupal',
),
'more' => array(
'caption_flag' => 0,
'caption_text' => 'View Image',
'full_page_flag' => 0,
'full_page_text' => 'View Content',
'inline_page_flag' => 0,
'inline_page_text' => 'View Content',
),
),
);
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['path'] = 'lightbox-gallery';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'MD portfolio Lightbox Gallery';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['name'] = 'main-menu';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
We are checking again. Please wait. We will reply ASAP.
I have this problems with MD PORTFOLIO MODULE:
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 of /home/streetarg/www/sites/all/modules/md_portfolio/templates/mdp/theme.inc).
Notice: Undefined variable: filter in include() (line 3 of /home/streetarg/www/sites/all/modules/md_portfolio/templates/mdp/md-portfolio-mdp-plugin-style.tpl.php).
Hello Marioro,
I purchased MD Portfolio module and I have exactly the same that you had. Can you help me please? Lot of thx in advance.
Hi Marioro,
Have you tried with above instruction?
Warning: Invalid argument supplied for foreach() en template_preprocess_md_portfolio_mdp_plugin_rows() (línea 332 de /Applications/MAMP/htdocs/other/sites/all/modules/md_portfolio/templates/mdp/theme.inc).
Notice: Undefined variable: filter en include() (línea 3 de /Applications/MAMP/htdocs/other/sites/all/modules/md_portfolio/templates/mdp/md-portfolio-mdp-plugin-style.tpl.php).
My MD-Style-Portfolio has different parameters to view your export it. I do not understand that it serves export the view, if I export the view in the style of portfolio I like, what good is this export ?, what do I do with it ?, where I keep it?
thanks! :)
Sorry I do not understand what I do with the instructions above . Step by step , please. MD Portfolio I still generates the following errors when I generate content:
Warning: Invalid argument supplied for foreach() en template_preprocess_md_portfolio_mdp_plugin_rows() (línea 332 de /Applications/MAMP/htdocs/other/sites/all/modules/md_portfolio/templates/mdp/theme.inc).
Notice: Undefined variable: filter en include() (línea 3 de /Applications/MAMP/htdocs/other/sites/all/modules/md_portfolio/templates/mdp/md-portfolio-mdp-plugin-style.tpl.php).
My MD-Style-Portfolio has different parameters to view your export it. I do not understand that it serves export the view, if I export the view in the style of portfolio I like, what good is this export ?, what do I do with it ?, where I keep it?
thanks! :)
Sorry,
But we have an instruction by Cindy in comment #4, images are also enclosed. Please try with it first and check if problem disappear.
I'm sorry. I still do not understand the instructions of comment # 4. What I have to do with the exported view ?, copy the comment text No. 4 ?, where I hit?, Do I export my new view?, What do I do with export ?. Steps Comment # 4 are not clear to me. It would be convenient a step by step instructions please. I have bought this module MegaDrupal, and I'm having problems with it.
Thank you
Marioro,
Please help us go \sites\all\modules\md_portfolio\templates\mdp\theme.inc,
edit line 272 of that file
from
to
If you still find it difficult to solve problem, you could send us your site url, admin account and FTP account. We would like to fix it for you. Please remember to check "Private message" for security reason.
Marioro,
We fixed it already. Please check if it works :)
Hi Maky,
Please send us your site url, admin account and FTP account by private comment. We would like to have a check then fix problem for you.
Hello!
Have the same issue with MD Portfolio module.. try to change line 272 and error still occure...
Warning: Invalid argument supplied for foreach() in template_preprocess_md_portfolio_mdp_plugin_rows() (line 332 of /home/dupontst/public_html/DEV_newsite/sites/all/modules/md_portfolio/templates/mdp/theme.inc).
Notice: Undefined variable: filter in include() (line 3 of /home/dupontst/public_html/DEV_newsite/sites/all/modules/md_portfolio/templates/mdp/md-portfolio-mdp-plugin-style.tpl.php).
Please investigate and advice.
Thanks, Vlade.
Hi Vradova,
Because above solutions do not work with your site, can you please send us your site admin account and FTP account by private comment? We would like to have a check then fix problem for you.
Please check site, we fixed.
By default, portfolio always has filters which come from field taxonomy of content type. However, your content type did not use field taxonomy causing errors.
As you can see, we fixed 2 files in your site:
- File md_portfolio/templates/mdp/theme.inc, line 335, replace
with
- File md_portfolio/templates/mdp/md-portfolio-mdp-plugin-style.tpl.php, line 3, replace
with
From now you can use, change/ edit taxonomy normally. If there is any problem more, please feel free to contact us, we would like to help you.
Hello!
Thanks once more for fast response...
Take care, Vlade.