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 CiviContribute (Moderator: Donald Lobo) »
  • CiviContribute configuration returns 403 error.
Pages: [1]

Author Topic: CiviContribute configuration returns 403 error.  (Read 5010 times)

Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
CiviContribute configuration returns 403 error.
May 28, 2013, 01:02:45 pm
I'm running CiviCRM 4.3.2 on Drupal Commons 6.28.

When I edit the 'Widget' tab on the configure a new Contribution page I get an error:

Quote
Permission denied error 403.

Requested page:
/civicrm/admin/contribute/widget

Referring URL:
http://test.nscfundalaska.org/civicrm/admin/contribute/membership?action=update&reset=1&id=10

Visitor IP Number:
nnn.nnn.nnn.nnn


Seems it runs once, to fill it out, but any time you go to edit the copy and hit any of the 'Save' buttons the error occurs and the edits don't make it to the DB?

Any ideas why?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviContribute configuration returns 403 error.
June 03, 2013, 12:06:24 pm
When you save, what page do you see?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: CiviContribute configuration returns 403 error.
June 08, 2013, 08:28:55 am
What I see when I save is the contents of the 403.shtml file, which is in the quote in the first post.   The whole CiviCRM/Drupal Commons engine does not get presented.

I think that the issue stems from the form build for the widget tab.

On all other tabs, pressing the submit form button for that tap calls the URL:

/civicrm/admin/contribute/membership?action=update&reset=1&id=9

On the widget tab, the URL called is:

/civicrm/admin/contribute/widget

I think that the URL should be something like:

/civicrm/admin/contribute/widget?action=update&reset=1&id=9

So any insight as to where to look in the code base to see where this page get assembled would be appreciated.


Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: CiviContribute configuration returns 403 error.
June 11, 2013, 12:53:38 pm
How do I escalate this issue to the attention of the folks who fix bugs?

There have been at least two version releases since I first posted and I don't have a suggested way to debug or work this problem, yet there is a long list of bug fixes in the 4.3.4 upgrade.


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviContribute configuration returns 403 error.
June 12, 2013, 03:38:55 am
Well I don't think Drupal 6 is supported in actuality, by the core team. Truth is that even if it were, I would tell you (if I was the team) that you need to test on pure vanilla Drupal, not Drupal Commons. Because maybe something in DC is causing a conflict....
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: CiviContribute configuration returns 403 error.
June 12, 2013, 08:50:58 am
Yeah.  I get that D6 is not supported 'officially', but we are already up and running on Drupal Commons on D6 and that would take a massive effort to upgrade both Drupal and Commons to D7.

That said, the problem would seem to be at my hosting server, not the codebase.  Everything works as expected in my local install of D6/Commons.

I found a thread that alluded to a solution, but no details were given.

http://forum.civicrm.org/index.php?topic=25074.0

At the end there is this:

Quote
I know this is an old thread, but just in case anyone else is looking for answers to why the text won't show up in the widget, for me it was an .htaccess restriction that was causing it. Seems absolutely logical now, but since it took me forever to figure it out, and I didn't see that come up as a solution in any of the posts I read I thought I would pass it on....

Have PM'ed the poster but no reply.

Does anyone know, generally, how htaccess restrictions affect Civicontribute, specifically the widget builder?  What directories are being accessed by AJAX, say, and where to look for differences that matter.

Upgrading is out of the question for the moment.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviContribute configuration returns 403 error.
June 12, 2013, 10:06:15 am
Is your .htaccess different than the default Drupal one?

Can you ask your host for help?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: CiviContribute configuration returns 403 error.
June 12, 2013, 10:43:51 am
I've realized it has to be a hosting issue.  They think it has to do with Mod_Secure.  Are going to try to poke a hole for me.  Suspect this has to do with PayPal API not seeming to work right as well.

I will post results here for the next one that has to deal with this when I get it running.

If I get it running.



Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: CiviContribute configuration returns 403 error.
June 12, 2013, 12:05:34 pm
In this case (and I suspect many others) it was an issue with mod_security and a specific exception put in place by hosting solved the problem.  I think this may also be in play when PayPal tries to return it's information.

Here is an explanation from my hosting provider AN Hosting:

-----

The issue in this case was due to a Server Configuration that is defined within ModSecurity and its ruleset. Unfortunately, the rule sets in place are not available to view on the server end. If you do notice any type of errors, especially a 500 Internal Server or 403 Forbidden error, please let us know so that we can review the server logs for any issues related to this security feature that is in place.

ModSecurity is an open source, free web application firewall Apache module. ModSecurity is deployed to establish an external security layer that increases security, detects, and prevents attacks before they reach web applications. It
provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis.

In some instances, legitimate connections, script, or tools/applications can be blocked by ModSecurity rules attempted to defend the server. It is better to avoid adding exceptions to these rules that defend the server because most
mod_security problems can be resolved by changing how an application or plugin performs, modifying a script, or reducing the size of files uploaded to your account.

We can send a request for a ModSecurity exception up to our next level of support, but it is a request and must be approved before being implemented on any account. ModSecurity exceptions when added are specific to a directory or
file, and are not added to the entire account. Similarly, since exceptions are added by the rule, we cannot simply except a user's entire account from all ModSecurity rules. In essence, a specific rule running from a specific directory
or file must be triggered before we will be able to consider applying any exceptions to an account.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • CiviContribute configuration returns 403 error.

This forum was archived on 2017-11-26.