After installing Nodestream 7.x-2.0-beta1, using a MySQL Database, with all feature boxes checked during the install, I got the following error on the 'finished' page:

Notice: Undefined index: content-length in apps_retrieve_app_image() (line 261 of /home/kevins/public_html/

How can this be corrected? Please give an answer that non coders can understand.


Members fund testing for the Drupal project. Drupal Association Learn more


soumitra_chakravarti’s picture

I got the similar error while installing open enterprise on my local laptop!
Notice: Undefined index: content-length in apps_retrieve_app_image() (line 261 of C:\Users\Soumitra\Documents\Tagndo\Blueleaf Events\profiles\openenterprise\modules\apps\
Please help!

fabsor’s picture

Title: Installation Error » Undefined index: content-length warning on installation
Project: NodeStream » Apps
Version: 7.x-2.0-beta1 » 7.x-1.x-dev

This seems to be a bug in the apps module rather than in NodeStream and Open Enterprise. I'm moving this over there. I don't think the error it's serious though, just go on and use your site.

populist’s picture

The problem here is that drupal_http_request() will not return the 'content-length' header in cases where there is no actual content ( This could happen because of a misconfiguration on the apps server side or a problem with the web server talking to the app server.

Attached is a patch that should do a quick check on if that value exists before trying to compare it to the current content length, but I think there might be an underlying problem here because there *should* be content-length as part of returned http request.

febbraro’s picture

Status: Active » Fixed

Easy enough fix so I committed it. If there are problems that exist, seems like it is in drupal_http_request and some spelunking can be done there is desired.

Automatically closed -- issue fixed for 2 weeks with no activity.