Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Apparently nobody has used profile.module with devel.module activated.
A simple grep shows me there is potentially one more of these errors as well:
modules/system/system.admin.inc: echo drupal_to_js($result);
But I'm not sure. Anyway, this patch fixes the profile.module error.
Comment | File | Size | Author |
---|---|---|---|
#10 | 263445-drupal-to-js-D6.patch | 1.21 KB | Dave Reid |
#1 | 263445-drupal_to_js-d7.patch | 1.2 KB | Dave Reid |
profile-js-fix.patch | 615 bytes | merlinofchaos | |
Comments
Comment #1
Dave ReidConfirmed that using echo drupal_to_js($var) is not the intended use. This bug is still present in 7.x and is also should be fixed in system_date_time_lookup.
Comment #2
Dave ReidSetting this to 7.x and will need to backport to 6.x
Comment #3
Dries CreditAttribution: Dries commentedLooks like upload.module might need to be updated too?
Comment #4
Dave ReidNo, it looks like there's a later comment explanation in upload_js, but the explanation is still kinda weird...
Comment #6
Dave ReidFailed due to #74645: modify file_scan_directory to include a regex for the nomask.. Setting back to code needs review.
Comment #7
drewish CreditAttribution: drewish commentedpatch still applies and everything seems to work. ran through the install and the timezone was selected correctly (i'm assuming that's what that bit of js does). created a profile text field and tested that the auto complete suggested properly. i'm assuming that's all there is to test.
Comment #8
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #9
PasqualleComment #10
Dave ReidPatch for 6.x ready for review.
Comment #11
c960657 CreditAttribution: c960657 commentedThere are also two occurrences in upload.module.
Comment #12
merlinofchaos CreditAttribution: merlinofchaos commentedupload.module was covered in #3 and #4.
Comment #13
c960657 CreditAttribution: c960657 commentedOops, sorry about that. In that case I guess it's RTBC.
Comment #14
Gábor HojtsyThanks, committed to Drupal 6.