I wanted to bring this to light as a possible bug. When I was creating a panel page I had this error: PHP Fatal error: Unsupported operand types in sites/all/modules/contrib/ctools/plugins/content_types/token/token.inc on line 42,

I found this topic in the issue cue in ctools (http://drupal.org/node/1624460). After, I disabled the Micropublisher I no longer recieved the error.

I pasted some of the conversation from the other post below:

$token['name'] is not empty if $token is a string.

I ran into the same error after installing a D7 module that implemented hook_token_info, but did not return the correct format.
(In my case a module was upgraded from D6, where these values for hook_token_list were all strings.)

This debugging patch should let you know the culprit, which you can then fix or report appropriately
(be sure to enable devel module first):
--- ctools/plugins/content_types/token/token.inc (revision 1389)
+++ ctools/plugins/content_types/token/token.inc (working copy)
@@ -39,6 +39,10 @@
foreach ($info['tokens'] as $entity_type => $tokens) {
foreach ($tokens as $name => $token) {
if (!empty($token['name'])) {
+ if (!is_array($token)) {
+ dpm($token);
+ $token = array();
+ }
$token += array('description' => '');
$types[$entity_type . ':' . $name] = array(
'category' => t('@entity (tokens)', array('@entity' => ucfirst($entity_type))),

reply

#4
Posted by quicksketch on September 27, 2012 at 8:38pm

I ran into the same error after installing a D7 module that implemented hook_token_info, but did not return the correct format.

Confirmed, this was the problem for me too. Thanks @aaronbauman.