Hi,

I tried adding a twitter block to a mini-panel and regular panel page but, get the error below. This happens when I hit the "Finish" button to save the block into the panel.

Any ideas?

=========
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /panels/ajax/editor/add-pane/panels_mini%3Afooter/four_first/block/twitter_block-1/form
StatusText: error
ResponseText: Recoverable fatal error: Argument 2 passed to url() must be of the type array, string given, called in /home/jose/www/test/www/includes/theme.inc on line 1634 and defined in url() (line 2178 of /home/jose/www/test/www/includes/common.inc).
=========

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pedronau’s picture

I have experienced the same issue using Panels 7.x-3.3.

ericsol’s picture

Some more remarks:

I didn't have this problem on my server with the testing/acceptance version of a website. After deploying the website to the production server of my client this issue arose. I then made a local deployment (Mac OS) with the exact same setup (Drupal core and contributions with the same versions) as on the production server: no issue too. This seems one issue very hard to track down...
I changed to socialmedia and widgets modules. I don't like them very much (complicated and hard to style) but alas...

Hope this is of some use.
Eric

szantog’s picture

Using #theme 'link' in renderable array causes this. A quick and ugly fix is here:

diff --git a/sites/all/modules/contrib/twitter_block/twitter_block.module b/sites/all/modules/contrib/twitter_block/twitter_block.module
index 6a7e7f8..0eb3db4 100644
--- a/sites/all/modules/contrib/twitter_block/twitter_block.module
+++ b/sites/all/modules/contrib/twitter_block/twitter_block.module
@@ -367,7 +367,7 @@ function twitter_block_block_view($delta) {
 
   $block = array();
   $block['subject'] = check_plain($config['info']);
-  $block['content'] = array(
+  $content = array(
     '#theme' => 'link',
     '#text' => 'Tweets by @twitterapi',
     '#path' => 'https://twitter.com/twitterapi',
@@ -379,7 +379,7 @@ function twitter_block_block_view($delta) {
         'data-link-color' => !empty($data['link_color']) ? '#' . $data['link_color'] : $data['link_color'],
         'width' => $data['width'],
         'height' => $data['height'],
         'data-chrome' => !empty($data['chrome']) ? implode(' ', array_keys($data['chrome'])) : $data['chrome'],
         'data-border-color' => !empty($data['border_color']) ? '#' . $data['border_color'] : $data['border_color'],
         'lang' => $data['language'],
         'data-tweet-limit' => $data['tweet_limit'],
@@ -397,5 +397,7 @@ function twitter_block_block_view($delta) {
     ),
   );
 
+  $block['content'] = drupal_render($content);
+
   return $block;
 }
:
Devin Carlson’s picture

Status: Active » Postponed (maintainer needs more info)
Devin Carlson’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Just tested and confirmed that this is fixed in the latest -dev of ctools.

hmartens’s picture

I'm experiencing the same problem. I'm running Ctools 7x - 1.3 . Does anyone know when ctools will update their versions so that this fix is also in the official version?

neetu morwani’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Component: User interface » Code
Issue summary: View changes
Status: Closed (fixed) » Needs review
FileSize
984 bytes

This patch fixes the problem and now Twitter block can be placed in panels.

Devin Carlson’s picture

Version: 7.x-2.x-dev » 7.x-2.0
Status: Needs review » Closed (fixed)

This was fixed in CTools 7.x-1.4.

If you are still experiencing this issue with the latest release of CTools, please file a new issue.