I am attempting to add a superfish menu to a panel. When I do this I get "Fatal error: Unsupported operand types in //includes/common.inc on line 4462

If I disable the superfish module, this error goes away.

The menu I'm trying to add has two items in it (this is a test site).

Other modules/themes enabled:
admin_menu
php
ninesixty (theme)
views
pathauto
token
panel
ctools

Drupal version 7.22

If I don't put the menu into a panel, it works fine.

CommentFileSizeAuthor
#13 error.PNG26.73 KBadam_b
#9 superfish_error.PNG12.09 KBadam_b

Comments

mehrpadin’s picture

Hey there,

Works for me, what kind of Panel it is? and how do you exactly add it?

kenrbnsn’s picture

It's a flexible panel with 3 regions (header, menu, content) & I put the menu in the menu region. The menu was a new menu I created with two main entries and one submenu entry.

This was a clean install to test the problem I saw on another site.

As a test, I reverted back to version 7.x-1.8. This version worked fine. I could edit the panel with no problems. I then updated back to 7.x-1.9. The page reloaded fine, but as soon as I went to edit the panel, I got the same error.

If I go display the page again (not editing the panel), these errors are shown:

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /home/mytestb/public_html/testsuperfish/includes/bootstrap.inc).
Notice: Array to string conversion in filter_xss() (line 1442 of /home/mytestb/public_html/testsuperfish/includes/common.inc).
Notice: Array to string conversion in filter_xss() (line 1442 of /home/mytestb/public_html/testsuperfish/includes/common.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /home/mytestb/public_html/testsuperfish/includes/bootstrap.inc).
Notice: Array to string conversion in filter_xss() (line 1442 of /home/mytestb/public_html/testsuperfish/includes/common.inc).
Notice: Array to string conversion in filter_xss() (line 1442 of /home/mytestb/public_html/testsuperfish/includes/common.inc).

The menu is shown on the page.

The problem occurs whether I try to edit the panel from the page displayed or from the admin menus.

mehrpadin’s picture

Weird, it's all fine over here! all the modules and the core are all up to date?

kenrbnsn’s picture

Yes, my test was done on a clean install of Drupal 7.22. Here's what's installed

Update status information on all installed and enabled Drupal projects:
 Name                              Installed version  Proposed version  Status
 Administration menu (admin_menu)  7.x-3.0-rc4        7.x-3.0-rc4       Up to date
 Drupal                            7.22               7.22              Up to date
 Chaos tools (ctools)              7.x-1.3            7.x-1.3           Up to date
 Libraries (libraries)             7.x-2.1            7.x-2.1           Up to date
 Panels (panels)                   7.x-3.3            7.x-3.3           Up to date
 Pathauto (pathauto)               7.x-1.2            7.x-1.2           Up to date
 Superfish (superfish)             7.x-1.9            7.x-1.9           Up to date
 Token (token)                     7.x-1.5            7.x-1.5           Up to date
 Views (views)                     7.x-3.7            7.x-3.7           Up to date
 960 Grid System (ninesixty)       7.x-1.0            7.x-1.0           Up to date

I'm running PHP v5.3.21

mehrpadin’s picture

Take a look #1985562: Upgrade to Superfish 1.9 caused Panels content to fail (white screen) - SOLVED, need some time to reproduce all these on my local, so not tested yet, let me know if you did.

kenrbnsn’s picture

I tested the ctools patch and it worked fine on my test system, now to test it on my site where I originally saw the problem.

jwilson3’s picture

Status: Active » Closed (duplicate)

Updating to the latest CTools 7.x-1.x-dev snapshot fixes this issue (fix was committed may 1st). I'll close this as a duplicate of #1925018: Adding a renderable-array block to a page gives errors in the admin UI.

codemode01’s picture

Issue tags: +superfish, +Ajax

I will confirm that the CTools 7.x-1x-dev snapshot cleared my AJAX error issues when adding a superfish menu to a panel. Thank you for the tips.

adam_b’s picture

StatusFileSize
new12.09 KB

The latest CTools dev didn't work for me, but I suspect I have a separate issue. When I try and create add a SF menu block within panels, I get the attached error. Just putting it here in case it's relevant.

mehrpadin’s picture

Hey there,

Which version of the SF is this?

adam_b’s picture

It's 7.x-1.9 for the module and 1.0 for the library.

mehrpadin’s picture

Can you please try the latest development release? with the master branch of the SF library.

adam_b’s picture

StatusFileSize
new26.73 KB

Done (7.x-1.9+16-dev and 1.2-beta2)... but I'm afraid it made no difference, even after I flushed all the caches and tried it again.
The attached screengrab shows the error message that appears in the Panels content when I select a SF menu block and click Finish.

silentkrange’s picture

Issue summary: View changes

I get a similar error, but it's an "Internal Server Error" -- any thoughts anyone?