Moodle

Error when trying to enable any Filters

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not a bug
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Filters
  • Labels:
    None
  • Environment:
    Linux Debian Etch
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Have completed a fresh new install of Moodle 1.9.5+ (Build:20090812).

Everything has been working without any problems until I tried to enable the Multimedia Plugins.

Upon clicking the Closed Eye under Disable/Enable for Multimedia Plugins on the Manage Filters screen I am taken to a new page with the following error message.

Filter filter%2Fmediaplugin is not currently installed

This same error message appears for any Filter that I try to enable. The only difference is that the name of the Filter is shown after the %2F.

Eg: Glossary Auto Linking ----> Filter mod%2Fglossary is not currently installed

I have not installed any other modules or plugins. This is a stock standard default install.

Any help greatly appreciated.

Thanks..

Bill

Activity

Hide
Bill Bydder added a comment -

Just worked out what appears to be happening but not why or how to fix.

The link when hovering over the closed eye for the multimedia plugins is:

http://www.mydomain.com/admin/filters.php?sesskey=XXXXXXXXXX&action=hide&filterpath=filter/mediaplugin

But when you click on the eye the URL that you are taken to reads:

http://www.mydomain.com/admin/filters.php?sesskey=XXXXXXXXXX&action=hide&filterpath=filter%2Fmediaplugin

You can see that the forward slash in filterpath is showing up in info bar at the bottom of firefox but is not included correctly in the URL.

I do have apache2 redirecting to https for anything under /admin*.

Hope that helps.

Bill

Show
Bill Bydder added a comment - Just worked out what appears to be happening but not why or how to fix. The link when hovering over the closed eye for the multimedia plugins is: http://www.mydomain.com/admin/filters.php?sesskey=XXXXXXXXXX&action=hide&filterpath=filter/mediaplugin But when you click on the eye the URL that you are taken to reads: http://www.mydomain.com/admin/filters.php?sesskey=XXXXXXXXXX&action=hide&filterpath=filter%2Fmediaplugin You can see that the forward slash in filterpath is showing up in info bar at the bottom of firefox but is not included correctly in the URL. I do have apache2 redirecting to https for anything under /admin*. Hope that helps. Bill
Hide
Bill Bydder added a comment -

Should have put this in the previous comment. Oops!!

To get around the problem:

On the page that shows the error, edit the URL in the address bar at the top of your browser manually and replace the %2F with a single / and then press enter.

Filter is activated and appears to work without problem.

Bill

Show
Bill Bydder added a comment - Should have put this in the previous comment. Oops!! To get around the problem: On the page that shows the error, edit the URL in the address bar at the top of your browser manually and replace the %2F with a single / and then press enter. Filter is activated and appears to work without problem. Bill
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Bill,

can you copy here the complete URL of the link used to enable the filter? (better if you omit the sesskey part for security reasons).

also... does that happen with any browser? I've tested it here with debian etch and firefox/safari and seems to be working ok.

Any info will be welcome, tia!

Show
Eloy Lafuente (stronk7) added a comment - Hi Bill, can you copy here the complete URL of the link used to enable the filter? (better if you omit the sesskey part for security reasons). also... does that happen with any browser? I've tested it here with debian etch and firefox/safari and seems to be working ok. Any info will be welcome, tia!
Hide
Eloy Lafuente (stronk7) added a comment -

Hi again Bill,

perhaps the redirect apache module is re-encoding the already encoded URL? I say that because the: %2F you see in the link is 100% correct (it's an encoded "/"). And PHP decodes it back to the original automatically.

So the only reason I can imagine for you error "Filter mod%2Fglossary..:" is that your apache is re-encoding the %2F once again (to %252F). And that gets decoded only once by PHP (back to %2F). Can you confirm if that works with apache redirects disabled?

If so, you should find some option in the apache side to avoid that encoding happening there.

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi again Bill, perhaps the redirect apache module is re-encoding the already encoded URL? I say that because the: %2F you see in the link is 100% correct (it's an encoded "/"). And PHP decodes it back to the original automatically. So the only reason I can imagine for you error "Filter mod%2Fglossary..:" is that your apache is re-encoding the %2F once again (to %252F). And that gets decoded only once by PHP (back to %2F). Can you confirm if that works with apache redirects disabled? If so, you should find some option in the apache side to avoid that encoding happening there. Ciao
Hide
Eloy Lafuente (stronk7) added a comment -

HO: Just found this. Hope it helps:

http://es.php.net/manual/en/function.urlencode.php#85806

If you can confirm it's working ok with that directive enabled, tia!

Ciao

Show
Eloy Lafuente (stronk7) added a comment - HO: Just found this. Hope it helps: http://es.php.net/manual/en/function.urlencode.php#85806 If you can confirm it's working ok with that directive enabled, tia! Ciao
Hide
Bill Bydder added a comment -

Hi Eloy,

Thank you for your prompt reply.

Yes, I can confirm that my apache2 config was the problem.

All fixed.

Congratulations to you guys too on creating such a fantastic product and community. Not easy to pull off both.

Cheers

Bill

Show
Bill Bydder added a comment - Hi Eloy, Thank you for your prompt reply. Yes, I can confirm that my apache2 config was the problem. All fixed. Congratulations to you guys too on creating such a fantastic product and community. Not easy to pull off both. Cheers Bill
Hide
Eloy Lafuente (stronk7) added a comment -

Thanks for feedback and congrats, Bill!

Closing as not a bug. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Thanks for feedback and congrats, Bill! Closing as not a bug. Ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: