Closed (fixed)
Project:
Typogrify
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
11 Jul 2007 at 23:14 UTC
Updated:
25 Aug 2007 at 15:49 UTC
When Typogrify is setup as an Input Filter, and I navigate to a page which uses the associated Input Format, I get an error:
"Fatal error: Cannot redeclare smartypants() (previously declared in /.../sites/all/modules/smartypants/smartypants-php/SmartyPants-PHP.inc:79) in /.../sites/all/modules/typogrify/smartypants.php on line 72"
I have verified that Typogrify is the last filter applied (weight =10, all other filters 9 or less).
Suggestions?
Comments
Comment #1
Tim Gambell commentedHi TallDavid,
Your bug sounds a lot like this one: http://drupal.org/node/154961
I fixed that one, but I took a shortcut. I'll go back and fix this more thoroughly. Thanks for the heads up.
If you'd like to temporarily modify your code to make it work, find all the places where it says
if module_exists('marksmarty')and replace that withif function_exists('smartypants'). There should be like 3 or 4 instances.Hope that' a help. I'll get on this asap.
Comment #2
Tim Gambell commentedComment #3
Tim Gambell commentedAdded the code described below (required a little extra fiddling around with _TokenizeHTML to make it really work). Give it a spin and let me know if it works for you!
Thanks for submitting this bug. Hopefully it's squashed now.
Comment #4
Tim Gambell commentedThe fixed code is available in CVS right now; should be available through the project page when the packaging script gets around to it.
Comment #5
TallDavid commentedI've installed the latest Typogrify 5.x-1.x-dev (2007-Jul-27) and the problem is resolved. Thanks!
Comment #6
TallDavid commentedI've installed the latest Typogrify 5.x-1.x-dev (2007-Jul-27) and the problem is resolved. Thanks!
Comment #7
(not verified) commented