I'm running Drupal 6.17, and I installed Featured Content 6.x-1.0-beta4. I configured a new featured content block with an RSS feed. Then, every time I requested a page on which this block was to be displayed, PHP stopped with this error:
Fatal error: Unsupported operand types in
/includes/common.inc on line 1430

I went to that location and found that the $options argument given at that call was NULL. So I added a debug_print_backtrace() and found this:
#0 url(featured-content/feed/1, ) called at [
/sites/all/modules/featured_content/featured_content.module:246]

The code around that location is this:

  // add rss link
  if ($featured_content['rss']['display']) {
    $settings['rss-link'] = theme('feed_icon', url('featured-content/feed/'.$delta, $query_string), 'RSS Feed');  // line 246
  }

The problem is that $query_string is never set before this line, so the module is calling url() with a NULL second argument, which incurs a fatal error.

Comments

kristen pol’s picture

Assigned: Unassigned » kristen pol

Thanks very much for the bug report and for all the sleuthing!!! I believe this is a duplicate issue as the latest dev code doesn't have the $query_string argument in it.

I will make the latest dev version beta5 but in the meantime, can you install the dev version and see if it fixes your problem?

Thanks,
Kristen

kristen pol’s picture

Category: bug » support

I made a 1.0 version. I think the code is ready for that. Please try it when you get a chance.

Thanks,
Kristen

kristen pol’s picture

Status: Active » Postponed (maintainer needs more info)

Now there is a 1.1 version because I found an error. I'm setting this to postponed for now until I hear back from you.

Thanks,
Kristen

kristen pol’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I'm closing since I haven't heard back. Please reopen if you still have this problem.

Thanks,
Kristen

kristen pol’s picture

Assigned: kristen pol » Unassigned
Issue summary: View changes

cleaning up my issues list