After enabling the Views Fusion module, a tab in the Views (build/views/wizard) is available, module is enabled and installed correctly I suppose.

Problem, I can't Access the Fusion tab, I recieve this error:
Fatal error: Unsupported operand types in /home/......./public_html/includes/form.inc on line 342.

Drupal 5.1
Views: 5.x-1.5
Fusion: 5.x-1.x-dev (1st March)

MySQL database 4.1.12
PHP 4.4.4
Unicode library PHP Mbstring Extension
Web server Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8a PHP/4.4.4 mod_perl/1.29 FrontPage/5.0.2.2510

I hope this is enough information to find out what's happening.

TIA,
Fossie

Comments

ezra-g’s picture

I'm having the same error one one installation but it seems to work on another.

fago’s picture

What's the difference between these two installations? Php version?

ezra-g’s picture

One installation is in a subdirectory of another on a single shared hosting account:
PHP Version 4.4.4 and MySQL 4.1.21. I'll dig around to see what might be different between the two.

seanr’s picture

This occurs for me on a site with all files up to date (from CVS 5.x branch) as of today.

deavidsedice’s picture

includes/form.inc , line 342:


  $form += _element_info('form');

Seems that the code is trying to merge two arrays. But I never seen this method...

Possible solution:


  $form = array_merge(_element_info('form'),$form);

deavidsedice’s picture

Ah, one thing more: I get this error without Views Fusion.
I was using the e-commerce module, and I've some problems with shipping module.

seanr’s picture

From chx: No it's views fusion bug. The assumption is that contrib is broken and core does not babysit broken code. Prove me wrong and i will look into it.

So why are both views_fusion and e-commerce passing arrays when they shouldn't be?

fago’s picture

Status: Active » Fixed

I just had a short look at the admin form generation code and I think I found the problem. Please upgrade to the latest -dev snapshot and try again.
The problem was with the "there is no noderealtion module installed" error message, which was not returned as a form array.

Anonymous’s picture

Status: Fixed » Closed (fixed)