Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2011 at 14:42 UTC
Updated:
7 Apr 2011 at 07:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
tomas.teicher commentedreplacing "drupal_set_header" to "drupal_add_http_header" solves the problem. drupal_set_header is not more in D7.
Comment #2
tr commentedThanks. There were a number of other calls to drupal_set_header() scattered throughout the code - this function was renamed in Drupal 7 core and evidently it wasn't changed everywhere in Ubercart. Patch attached and committed to 7.x-3.x.
Comment #3
tomas.teicher commentedThank you very much. It works! I just don't understand that dpm() function is added in shipping/uc_ups/uc_ups.module file . I think it should be commented, it is only for testing and needs Devel module.
Comment #4
tr commentedOh sorry, that shouldn't have been part of the patch. That was something else I was working on at the time. I only committed the changes to uc_googlecheckout.module, uc_googlecheckout.pages.inc, uc_cybersource.module, and uc_reports.module. Here's the correct patch as committed:
Comment #5
longwaveLooking at the documentation I think this needs work - the function takes two parameters, you need to include "Status" as the first parameter when setting the HTTP response code.
http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/drupal...
Comment #6
tr commented@longwave: Yup, you're right. Fixed (again). I didn't read that API doc - I just read the Converting 6.x modules to 7.x changelog, which had the wrong information. I'm editing that now ...