Community

Fatal error: Unsupported operand types in /var/www/vhosts/japlusu.com/subdomains/staging/includes/path.inc on line 434

I get this error when running cron.php:

Fatal error: Unsupported operand types in /var/www/vhosts/japlusu.com/subdomains/staging/includes/path.inc on line 434

I did a backtrace right before that line:

array (
  'file' => '/var/www/vhosts/japlusu.com/subdomains/staging/modules/path/path.module',
  'line' => 218,
  'function' => 'path_save',
  'args' =>
  array (
    0 => 'uttps://staging.japlusu.com/content/central-glass-ad-580-wide',
  ),
)

And Line 434 in path.inc is:

<?php
  $path
+= array('language' => LANGUAGE_NONE);
?>

It seems like path is not an array (dumping it outputs
uttps://staging.japlusu.com/content/central-glass-ad-580-wide)

Seems odd - what is uttps doing there? Server is running Drupal 7.14. Can anyone help?

Comments

I found what was causing this

I found what was causing this issue....

I used hook_node_load and added a var in the $node object called path..

eg $node->path = url('node/1', array('absolute' => TRUE));

Turns out "path" is used internally by Drupal.

Removing $node->path fixed the cron issue.