Closed (fixed)
Project:
Link
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Nov 2010 at 09:34 UTC
Updated:
9 Feb 2013 at 22:10 UTC
Jump to comment: Most recent file
There is thrown a php notice because in _link_sanitize $element is never defined. This line is doing nothing right now. Can we simply delete this?
if (is_array($element['#item']['attributes']['rel'])) {
unset($element['#item']['attributes']['rel']);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | link-_link_sanitize-966442-3.patch | 832 bytes | kmadel |
| #2 | 966442-2.patch | 716 bytes | joelstein |
Comments
Comment #1
pobster commentedMehhhh... Change it to;
...Just in case...
Pobster
Comment #2
joelstein commentedActually, the problem is that $element is not defined in this function. It was probably meant to be:
This attached patch fixes the PHP notice.
Comment #3
kmadel commentedLooks like #2 is a reverse patch or however you say that. Here is one that works for me:
Comment #4
twistor commentedGets rid of the errors, and the logic seems sound to me. Can't verify it doesn't break old field data however.
Comment #5
aschiwi commentedPatch in #3 works for me, gets rid of the erros. Thanks everyone!
Comment #6
robinmofo commentedAny idea when this patch is going to make it into a release?
Comment #7
jcfiala commentedI've mostly been concentrating on getting link 7 ready, but I think I can spend some time this weekend going through the 2.9 bugs and seeing what patches can get applied so that at least the dev release holds the fix - after a week of reviews from folks on that, we could get a release soon before Drupalcon.
Comment #8
jcfiala commentedWell, the patch didn't work because the function had been moved into link.inc, but the change has been committed to cvs.
Comment #10
pydubreucq commentedHi,
I had this error too after migrate to Pressflow and this patch works for me ;)
Bye
Comment #11
asb commentedHi,
I'm getting this error in link 6.x-2.9 from 2010-Jun-14:
Since this issue seems to have been fixed a while ago and the last release of 'link' was more than one year ago, could we please get a new stable release, including the fix?
Thank you!
Comment #12
emosbaugh commentedpretty please
Comment #13
carn1x commentedsubscribe
Comment #14
sabeeln commentedpatch in #3 worked..
thanx..
Comment #15
asb commentedConfirming, patch from #3 seems to work.
Comment #16
dqd#14, #15 - did you patched against latest dev or against 6.x-2.9 release ?
Comment #17
asb commented"git apply" against 6.x-2.9.
Comment #18
dqdthx 4 info, asb!
Comment #19
dqdComment #20
jcfiala commentedI'm pretty sure the change for this got put into cvs then - git now - Digidog. I think the main thing is we don't have a release of 6.x-2.x branch in a long time.
That's why I'd made the ticket 'fixed' before.
Comment #21
chriscohen commentedCome on guys, this was reported in November 2010 and it's now June 2012 and there's no new release that fixes this! Please put out a release with this fix!
Comment #22
asb commentedRTBC since October 24, 2011. Well, maintaining the 8.x-1.x-dev release (and preparing for 9.x-1.x-dev :) seems to be more important than maintaining that boring old stuff people are actually using in production.
Comment #23
nesta_ commentedInitialize $element['#item']['attributes']['rel'] = ''; pre line 445 .Version 6.2.9
Comment #24
jcfiala commentedReminding myself of this.
Comment #25
jcfiala commented