i18nviews.module returning a fatal error on line 74
nimi - November 9, 2009 - 12:45
| Project: | Internationalization |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have a node that outputs a view. Once I enabled the multilingual option for that node and then tried to see the node i got:
Fatal error: Cannot use object of type views_handler_field_node_link_edit as array in C:\xampp\htdocs\drupal-6.14\sites\all\modules\i18n\i18nviews\i18nviews.module on line 74The code I use to output the view inside the node is:
$view1 = views_get_view('publications_books');
$view1->set_display('default');
$output_view1 = $view1->preview();
if ($view1->result) {
print $view1->execute_display('default');
}I tried to comment out the whole section that belongs to i18nviews.module on line 74 and it seems to work.
However, I would like to know if there is any danger in doing this?
Thanks!
Nimi.

#1
Help anyone? Please...
#2
Solved it!
i changed the code I used to display a view to:
views_embed_view("publications_articles","publications_block");
Thanks.
Nimi.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.