History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-1234
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Martin Dougiamas
Reporter: Don Hinkelman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Moodle

MMCache Conflicts with Mediaplugin Filter

Created: 11/Apr/04 08:19 AM   Updated: 24/Aug/06 01:47 PM
Component/s: General
Affects Version/s: 2.0
Fix Version/s: None

Environment: Mac OS X

Participants: Don Hinkelman, Martin Dougiamas and Michael Blake
Security Level: None


 Description  « Hide
I am making a new server and installed PHP 4.3.4 (by Server Logistics with MMCache builtin). This PHP goes with Server Logistics Apache2 and works well so far with Moodle 1.3. After enabling MMCache and turning on the mediaplugin filter of Moodle, I get this error message...



Fatal error: Cannot redeclare mediaplugin_filter() in /Library/Apache2/htdocs/courses/filter/mediaplugin/filter.php on line 28



If I turn off the mediaplugin, no error message. If I disable MMCache, the mediaplugin is OK, no error message.



I checked the MMCache documentation at SourceForge and tried to make the mmcache.filter setting ignore filter.php with the ! marker (see below) but no effect.



[mmcache php.ini settings]

zend_extension=/Library/PHP4/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so

mmcache.shm_size=16

mmcache.cache_dir=/tmp/mmcache

mmcache.enable=1

mmcache.optimizer=1

mmcache.check_mtime=1

mmcache.debug=0

mmcache.filter=*.php !filter.php

mmcache.shm_max=0

mmcache.shm_ttl=0

mmcache.shm_prune_period=0

mmcache.shm_only=0

mmcache.compress=1



So is there a simple adjustment I can do? Or should I try a different php accelerator or forget about using one?



Many thanks :-)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas - 28/Apr/05 03:50 PM
From Martin Dougiamas (martin at moodle.com) Saturday, 24 April 2004, 11:50 PM:

This deserves some good looking into ...



Shane? Can you try installing the Turck MMCache and seeing if you can duplicate this on Linux? If so, can you find exactly what it is in Moodle that makes Turck unhappy? It's something not obvious because a few people have had a quick look at this without a result ...

From Pauli Borodulin (boro at fixel.org) Thursday, 3 June 2004, 02:46 PM:

What is the status of this bug? Is anyone working on it? Is there any known workarounds if one still wants to use Turck MMCache?

From Martin Dougiamas (martin at moodle.com) Thursday, 3 June 2004, 03:59 PM:

I know the reason now. If you look in the filters code, it dynamically works out the name of a filter function (in a variable) and then calls it ...

From Shane Elliott (shane at pukunui.com) Thursday, 28 April 2005, 03:50 PM:

Fixed (some time ago) in CVS

Michael Blake - 24/Aug/06 01:47 PM
assign to a valid user