CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Issues with mod_security
Pages: [1]

Author Topic: Issues with mod_security  (Read 1428 times)

mohrahit

  • Guest
Issues with mod_security
May 08, 2008, 04:52:37 am
Hi All,

I am facing a peculiar problem. My hosting provider recently upgraded their security settings which has led to some pages on my CiviCRM/Drupal website throwing "406 (Not Acceptable)" errors.

One specific page is http://mydomain.com/index.php?q=civicrm/admin/mail&reset=1

This is the page where one can edit CiviMail mailer settings.

I tried changing the URL in CRM/Mailings/Menu.php to "civimail/admin/mal" instead of "civimail/admin/mail". Even though the error went away, but CiviCRM was not loading the right page and was taking me to "Administer CiviCRM" page.

Questions:
1. Is there a known workaround for mod_security issues?
2. What else do I need to change to make this particular page work?

mohrahit

  • Guest
Re: Issues with mod_security
May 08, 2008, 11:21:29 am
I clarified with them and it is an issue with the URL string containing a "/mail".

Is there a way I can change the "/mail" to say "/mal"? I tried changing the following but did not work:

  • Edited CRM/Mailing/Menu.php and change the url from "civimail/admin/mail" to "civimail/admin/mal"
  • Renamed CRM/Admin/Form/Setting/Mail.php to CRM/Admin/Form/Setting/Mal.php
  • Edited CRM/Admin/Form/Setting/Mal.php and changed the class name to _Mal instead of _Mail
  • Renamed templates/CRM/Admin/Form/Setting/Mail.tpl to templates/CRM/Admin/Form/Setting/Mal.tpl

Now, the URL changes to /civicrm/admin/nail&reset=1 but it does not open the page. I get a "Mailer Settings" page title with content as the same as "Administer CiviCRM".

I know that I am missing one bit, however I have not been able to trace it yet...  Any pointers/ideas/suggestions would be very helpful.

Warm Regards
Mohit

mohrahit

  • Guest
Re: Issues with mod_security
May 08, 2008, 11:29:55 am
Ok... Got it :-)

I needed to change this file as well: CRM/Core/Invoke.php

-Mohit

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Issues with mod_security

This forum was archived on 2017-11-26.