Filter Problem

Filter Problem

Jacob Romeyn -
Atsakymų skaičius: 4

I still  have the same fiter problem, can anyone help?

Fatal error: Cannot redeclare mediaplugin_filter() in /home/jromeyn1/public_html/moodle/filter/mediaplugin/filter.php on line 28

Įvertinimų vidurkis: -
Atsakymas į Jacob Romeyn

Re: Filter Problem

Zbigniew Fiedorowicz -
It could be the same problem as http://moodle.org/mod/forum/discuss.php?d=9069

You might try the solution that Haller found.
Atsakymas į Zbigniew Fiedorowicz

Re: Filter Problem

Eloy Lafuente (stronk7) -
Core developers paveikslėlis Documentation writers paveikslėlis Moodle HQ paveikslėlis Peer reviewers paveikslėlis Plugin developers paveikslėlis Testers paveikslėlis
Or perhaps you have any PHP accelerator installed in your server?

I had similar problems testing accelerators some time ago. Only IonCube PHP Accelerator seemed to work fine with filters (not absolute sure about this!). If somebody is using another alternative...

Ciao besišypsantis

PS: Haller problem (http://moodle.org/mod/forum/discuss.php?d=9069) was solved by deactivating his PHP accelerator. He posted the same question in the "Moodle en Español" course.
Atsakymas į Eloy Lafuente (stronk7)

Re: Filter Problem

Zbigniew Fiedorowicz -
Perhaps the filter architecture should be changed to deal with this conflict?  For example:
http://moodle.org/mod/forum/discuss.php?d=9069#44071
Atsakymas į Zbigniew Fiedorowicz

Re: Filter Problem

Martin Dougiamas -
Core developers paveikslėlis Documentation writers paveikslėlis Moodle HQ paveikslėlis Particularly helpful Moodlers paveikslėlis Plugin developers paveikslėlis Testers paveikslėlis
Should definitely be done.

The problem is that the function names are variables (to allow for more flexibility).

The only way I can think of is to make the filter function names something predictable like tex_filter, mediaplugin_filter etc.