Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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/collabthink.com/profiles/nodestream/modules/contrib/apps/apps.manifest.inc).
How can this be corrected? Please give an answer that non coders can understand.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#3 | 1705622-handle-cases-where-content-length-isnt-available.patch | 676 bytes | populist |
Comments
Comment #1
soumitra_chakravarti CreditAttribution: soumitra_chakravarti commentedI 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\apps.manifest.inc).
Please help!
Comment #2
fabsor CreditAttribution: fabsor commentedThis 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.
Comment #3
populist CreditAttribution: populist commentedThe problem here is that drupal_http_request() will not return the 'content-length' header in cases where there is no actual content (http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_h...). 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.
Comment #4
febbraro CreditAttribution: febbraro commentedEasy 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.
http://drupalcode.org/project/apps.git/commit/40b0911