Closed (fixed)
Project:
Diff
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2011 at 23:22 UTC
Updated:
22 Oct 2012 at 19:11 UTC
Jump to comment: Most recent file
In the list under the Revisions tab, when you click on a revision older than the current, you get one or more messages like this:
Notice: Undefined offset: 1 in DrupalDiffInline->process_chunk() (line 1284 of /Applications/drupal-7.0/sites/all/modules/diff/DiffEngine.php)..
Other than that the output seems ok
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | diff-1122206-7-notices-thrown-by-DiffEngine-process_chunk.d7.patch | 555 bytes | alan d. |
| #2 | undefined_offset.patch | 373 bytes | binford2k |
Comments
Comment #1
bryancasler commentedSame problem
Comment #2
binford2k commentedI didn't spend the time to figure out the logic here, just band-aided the obvious bug.
Comment #3
realityloop commentedI'm unable to reproduce this on current dev release, please reopen if you can still reproduce and if you could add information about your environment too please php version etc it would be helpful.
Comment #4
alan d. commentedThis was very simple to replicate on 2.0 and 2.x-dev.
Bang the error appears.
PS: Make sure that you are not suppressing warnings in your error settings.
Comment #5
bfdi533 commentedSame problem here. Bug is VERY obtrusive and need to get this fixed.
There is also a spot at line 1279 where the same patch needs to be applied. Once I patched the file in both places (1279, 1284) then I was able to get rid of the errors and display the inline diff properly.
Comment #6
alexh commentedSame problem and fix as in #5 for me. although output is still not ok, but this is probably due to other issues (date and field collection fields).
Comment #7
alan d. commentedComment #8
alan d. commentedThis should be resolved with the new branch, 7.x-3.0-alpha1 or 7.x-3.0-dev.
This is still alpha, so test carefully before use on a production site and report any issues back to the queues.
Leaving open to backport
Comment #9
mitchell commentedMarking this as fixed, as it is committed to the latest dev branch.
Please reopen this issue if this change introduced any bugs.
Follow-ups should be added in separate issues.