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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Keep getting "Site under maintenance page'"when logged in as administrator
Pages: [1]

Author Topic: Keep getting "Site under maintenance page'"when logged in as administrator  (Read 494 times)

TJH43

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.3.10
Keep getting "Site under maintenance page'"when logged in as administrator
May 13, 2014, 12:09:42 pm
Most CiviCRM functions seem to work.  However when attempting to delete an activity from an activity search result page ... the user is instead directed to the Drupal "Site under maintenance" page and mustagain log-in  The site IS in maintenance mode.  The user has Administrator privileges.  The users in Drupal are synched as contacts in CiviCRM ... in the Administrator group. The URL producing the error is as follows:

http://www.mysite.com/civicrm/activity?atype=2&action=delete&reset=1&id=16&cid=36&context=search&key=7311b11b5d5ac188382e74cd391b2884_1219

Emptying the Drupal and CiviCRM caches and deleting browser cookies did not affect.  The CiviGroup Roles Synch module was turned off.  Turning that on and associating the Administrator Role and Group did not seem to help.

The site is running Drupal 7.27 and Civi 4.4.5.

Any suggestions appreciated.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Keep getting "Site under maintenance page'"when logged in as administrator
May 13, 2014, 12:40:19 pm
If you're being logged out, I would check whether there's a link redirecting you to HTTPS vs. HTTP.  Also, at the risk of being obvious, that it's not redirecting you to another site altogether, like a dev site?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

TJH43

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.3.10
Re: Keep getting "Site under maintenance page'"when logged in as administrator
May 13, 2014, 01:01:15 pm
Thanks for the suggestion.  That got me looking at the URL.  The delete action somehow causes a www. to be added to the URL.  Removing he www. avoids the problem of the "Under maintnance" redirect.   The user can now go on to confirm the delete and does not need to log-in.  Determining why the www is added to the delete activity request is the next step.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Keep getting "Site under maintenance page'"when logged in as administrator
May 13, 2014, 01:08:42 pm
This could be a Drupal thing (especially if you have Secure Pages module), but could also be an Apache config setting.  In addition to checking Apache confs, make sure there's no rogue .htaccess files in the path!
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

TJH43

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.3.10
Re: Keep getting "Site under maintenance page'"when logged in as administrator
May 13, 2014, 01:40:02 pm
Found it.  Modified .htaccess file at /var/www/mysite.  Uncommented last two lines below:

# To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

User can now delete activities without getting the 'Under maintenance' warning and without having to drop the www. in the url.

TJH

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Keep getting "Site under maintenance page'"when logged in as administrator

This forum was archived on 2017-11-26.