When i Select Quick Tabs format then try to edit the settings. I get the following popup box with this error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://mysite.com/admin/structure/views/ajax/display/the_view/page/style...
StatusText: OK
ResponseText:
Fatal error: Unsupported operand types in /home/DOMAIN/public_html/includes/form.inc on line 2543

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chaquea’s picture

Hi, im having the same issue after updating views. Error is appearing with 7.x-3.3, and 7.x-dev from january 19 and 20.

amirc’s picture

FileSize
38.62 KB

same for me.

Daniel_Rempe’s picture

Same problem here:
PHP Fatal error: Unsupported operand types in /includes/form.inc on line 2543

This is the line from form.inc

$element['#options'] = $empty_option + $element['#options'];

Views version 7.x-3.1
Quicktabs version 7.x-3.3
PHP version 5.3.2

I'm quite new to Drupal modules and can't be much of a help. But seems to me like array union is not working because of not matching types or uninitialized values.

gbroekhuis’s picture

When I downgrade Views to RC3 it worked again.

dalyn.cessac’s picture

I had the same problem also, I was able to fix it by making a change to the includes/quicktabs_style_plugin.inc file on line 43.

Original:

<?php
$options = $form['grouping']['#options'];
?>

My Version:

<?php
$options = $form['grouping'][0]['field']['#options'];
?>

Currently I have the dev version to see if it was fixed, however it wasn't fixed so if there was any changes to this file from the release version to the dev version the line number may be different.

I wonder if this error was due to the newer version of views. They may have changed some stuff on how it is laid out.

joemoraca’s picture

thanks - this change worked for me!!

noslokire’s picture

Status: Active » Needs review
FileSize
533 bytes

Change worked for me as well, attached is patch if someone is interested

AaronELBorg’s picture

Noslokire's patch will indeed work but if (for some crazy reason) someone wanted to group on more than one field they'd need something like the attached patch. I don't see the use-case for it but, hey, when in Rome.......

Daniel_Rempe’s picture

Thanks. Patch in post #8 worked perfectly for me.

rv0’s picture

Patch from #8 is great

Thanks a lot

Pitcher’s picture

Help Please , what i have to do with the patch from #8 ?

rv0’s picture

Pitcher, please use google or search
the info is all over the place, eg here: http://drupal.org/node/620014

noslokire’s picture

Works for me too!

xbrianx’s picture

The patch worked for me as well.

markhalliwell’s picture

Status: Fixed » Reviewed & tested by the community

I can verify that #8 works. Please commit, cannot use 7.x-3.3 with Views.

katbailey’s picture

Component: Miscellaneous » Code
Priority: Normal » Critical
Status: Needs review » Fixed

Committed, thanks.

luigisa’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. Patch in post #8 worked perfectly for me.

etibmw’s picture

#8 worked for me as well
thanks

vikant’s picture

I have used this patch for the error, „The Quicktabs Display style requires that a field be configured to be used as the tab title.“ but it still didn't fix my problem. Any suggestions?

katbailey’s picture

@Vikant, that patch had nothing to do with „The Quicktabs Display style requires that a field be configured to be used as the tab title.“. Read the message - set a field as the tab title.

Status: Fixed » Closed (fixed)

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

drupal a11y’s picture

I fixed a related problem with updating ctools to the latest dev.