Closed (fixed)
Project:
Diff
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2011 at 16:55 UTC
Updated:
2 Oct 2011 at 23:51 UTC
Jump to comment: Most recent file
I tried the latest diff 7.x-2.x code, but I'm getting a 500 internal server error when viewing a specific revision. Looking at my PHP error logs, here's the error message I'm getting:
PHP Fatal error: Call to undefined function drupal_strpos() in /Users/drupal/sites/all/modules/contrib/diff/DiffEngine.php on line 1275
It pretty much makes Diff unusable for me right now.
Thoughts?
Thanks,
Ben
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal_strpos_to_strpos-1251068-1.patch | 1.92 KB | mas5d2 |
| #2 | drupal_strpos_to_strpos-1251068-1.patch | 1.92 KB | mas5d2 |
Comments
Comment #1
Hakaku commentedI'm not sure how this error got introduced, but you'll have to replace all instances of drupal_strpos with just strpos. There should be 4 of them in the file DiffEngine.php on lines 1243, 1253, 1275 and 1279.
Comment #2
mas5d2 commentedPatch to change drupal_strpos to strpos.
Comment #3
mas5d2 commentedPatch to change drupal_strpos to strpos.
Comment #4
realityloop commentedApplied to dev