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
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 74

The 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

nimi - November 10, 2009 - 17:03

Help anyone? Please...

#2

nimi - November 11, 2009 - 00:09
Status:active» fixed

Solved it!

i changed the code I used to display a view to:
views_embed_view("publications_articles","publications_block");

Thanks.
Nimi.

#3

System Message - November 25, 2009 - 00:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.