Closed (fixed)
Project:
External Links Filter
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 23:21 UTC
Updated:
30 Jan 2014 at 15:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yan commentedNow I'm also getting this error message:
Comment #2
omelhor commentedI have the same error :
<<<
warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in C:\wamp\www\sites\all\modules\elf\elf.module on line 181.
>>>
I have installed it via wampserver on my computer
Comment #3
EllECTRONC commentedPHP Error:
And something wrong with link class, it seems it is glued together with my link class
So I did rollback to 6.x-2.1
Comment #4
yan commentedComment #5
dlnsk commentedIt's because you need PHP 5.3.6 or higher (see http://www.php.net/manual/en/domdocument.savehtml.php)
I think maintainer should require PHP 5.3.6 in function elf_requirements().
Or maybe the best choice is get rid of the parameter in method saveHTML()...
Comment #6
yan commentedTrue, server is running PHP 5.2.12. But it's sad that the module suddenly has such high requirements.
Comment #7
EllECTRONC commentedI'm on PHP 5.3.8 with this error
Comment #8
yan commentedThe same happens to me with 7.x-3.0-alpha2:
And this error message:
Running PHP 5.3.8.
Comment #9
yan commentedCould a maintainer say something about this issue? At least, it breaks the whole module...
Comment #10
yan commentedThis is really disappointing... The module is broken, the issue is marked 'critical' and no answer for months. Is this module really "Actively maintained"?
Comment #11
furamag commented"Use JavaScript to open external links in a new window" option doesn't work for me (7.x-3.0-alpha2 and 7.x-3.0-dev).
Why we are using JavaScript to open external links in a new window? I think we should add 'target="_blank"' when we add class for external link.
I created patch for External Links Filter module which add additional option "Open external links in a new window without JavaScript". I'm not sure if this is the right place to add my patch. Let me know if you think I should create new issue for it. This patch created for 7.x-3.0-dev. I'm on PHP 5.2.9-2.
Comment #12
yan commentedThe problem is that
target="_blank"is not valid XHTML strict:http://www.w3.org/MarkUp/2004/xhtml-faq#target
Comment #13
klaasvw commentedHere's a patch that fixes the issue. The problem is that elf uses DOMDocument::saveHTML with a parameter, which was introduced in PHP 5.3.6 (see http://www.php.net/manual/en/domdocument.savehtml.php). This patch will make elf use drupal's filter module's own wrappers around DOMDocument.
Patch is against HEAD. Also made the title more suitable for the issue.
@furamag Doesn't really sound this is related to this issue. Maybe you could make a separate one?
Comment #14
marty2081 commentedPatch from #13 works for me against dev branch. @klaasvw: Thanks for the effort!
Comment #15
WorldFallz commentedCommitted a reworked version of #13 to account for other bug fixes. There are no comparable wrapper functions for d6. If anyone has any ideas for 6.x-3.x I'm open to patches.
And #11 was unrelated and fixed in #1872732: Opening in a new window doesn't work.
Thanks again klaasvw!
Comment #16
WorldFallz commentedI just had a thought-- I should be able to hijack the d7 functions and include them directly with the module's code.
Comment #17
WorldFallz commentedyep, that worked with little effort. This is now committed to 6.x-3.x as well.