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 CiviMember (Moderator: Deepak Srivastava) »
  • Can't edit a membership
Pages: [1]

Author Topic: Can't edit a membership  (Read 2899 times)

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Can't edit a membership
November 20, 2008, 07:15:02 pm
Having just set up CIVICRM and imported all my members from a custom Microsoft Access Database as contacts, as memberships and as contributions, I started to update the data.  On my first entry I renewed an expired rolling membership, carefully setting the date to the day after the expiry (expiry was on 1/5/08) i.e. 2/5/08.  On saving the entry the membership start date was changed to 2 December 2007 and the end date to 1 December 2008.  I really don't think I put the wrong date in, but anyway now I want to edit the membership to correct it, and when I click on the edit link to the right of the membership I get directed to my sites page not found error page. 

Is there something I have to set up in order to be able to edit memberships?  I'm logged in as Drupal user no. 1.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can't edit a membership
November 20, 2008, 07:38:08 pm
Have you checked your Drupal Permissions for the civiCRM module - you will need 'edit all contacts'
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Can't edit a membership
November 20, 2008, 10:40:23 pm
As I understand it Drupal user no 1 has all permissions, but yes I have allocated myself an administrator role with all CIVICRM permissions.

And I have tried to renew another rolling membership and have had the same problem - the month seems to have been ignored and ends up being December.

Tony.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Can't edit a membership
November 20, 2008, 11:28:30 pm
That's a really odd one - seeing sites not found - as in a 404 message?

One thought - is the url consistant - i.e. http://www.domain.com/blah_blah vs http://domain.com/blah_blah
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Can't edit a membership
November 23, 2008, 05:30:12 pm
I seem to have found a work-around for the problem with the month of the renewal for the rolling membership defaulting to December - I had changed my input date format to %d %m %Y (I'm in Australia and that's the usual format here) but when I changed it back to the format on the demo site (%b %d %Y) that problem disappeared.  Conversely when I changed the input date format to %d %m %Y on the Demo site I reproduced the problem.

But I still can't edit a membership from the contact's membership tab. (I can however if I find the membership from Civimember->Find Members)

Well no Eileen, it is a bit odd, I've got 2 drupal installations on the same site (A drupal 5 installation that can't be upgraded to 6 yet because of some of the modules not being ready, but which contains our main website, and a drupal 6 installation in a subdirectory (/Tony) which has the CIVICRM module installed which I'm having trouble with).  When I get the error, it is the generic Page Not Found error page from the root directory installation not the installation which has CIVICRM. the displayed url is

http://www.abc.abc.au/tony/civicrm/contact/view/membership?action=update&reset=1&cid=658&id=1582&context=membership&selectedChild=member

Whereas if I edit the membership from Civimember->Find Members, the url is different though it looks like it still should work.

http://www.abc.abc.au/tony/civicrm/contact/view/membership?reset=1&action=update&id=1582&cid=658&context=search

Eileen, I can see the difference between the urls you listed, but which urls are they i.e. where should I look to see if the urls are consistent?

Tony.
« Last Edit: November 23, 2008, 08:50:52 pm by Tonyf »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Can't edit a membership
November 23, 2008, 11:04:10 pm
Hmm - those urls you posted are incorrect - www.abc.abc.au??? - perhaps  www.abc.com.au

http://abc.com.au/tony/civicrm/contact/view/membership?action=update&reset=1&cid=658&id=1582&context=membership&selectedChild=member

does give a different error to


http://www.abc.com.au/tony/civicrm/contact/view/membership?action=update&reset=1&cid=658&id=1582&context=membership&selectedChild=member

I haven't come up with what that means though (although I would have thought your  .htaccess should redirects addresses without the www to the with www or the other way around.)


Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Can't edit a membership
November 23, 2008, 11:07:42 pm
The other thing to check is your resource urls under administer civiCRM/global settings. My local test install was redirecting me to the live site at odd times until I fixed those settings to put to the test site.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Can't edit a membership
November 23, 2008, 11:50:11 pm
Sorry Eileen I didn't give you real urls as then I'd have to give you a password, and then I'd have compromised the privacy of my members, so I just replaced bits of my url with abc.  I almost made it www.xxx.xxx.au but I thought that might give the wrong impression.  I just don't want to flag the location of my membership data to potential hackers.  So abc.com.au has nothing to do with me.  Sorry I didn't make that clear.

I've checked that the resource urls under administer civicrm/global settings do direct to the membership site in the subdirectory.

Thanks for the ideas!  Any others?

Tony.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Can't edit a membership
November 24, 2008, 09:27:24 am
Check this doc for other things to try (rebuilding menus, and updating config backend). Also make sure you don't have multiple copies of civicrm.module under your Drupal root (even if they're in directories with names like .backup - Drupal will "find" them and cause problems). Finally, review the civicrm_root and other directory / path settings in civicrm.settings.php - AND verify that you are working on the "active" copy of that settings file by adding some invalid php code to it and seeing that you get an error.
Protect your investment in CiviCRM by  becoming a Member!

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Can't edit a membership
December 01, 2008, 01:51:28 am
Thanks Dave, sorry it's taken some time to get back; I've had no time at all.

I'm not sure which doc you are referring to to check out, but I'm running Drupal 6.6, and when I recently installed CIVICRM, I rebuilt the menus.

Does the following from the Civicrm.settings.php file look right to you?  It's definitely the active file, as I added some junk and it did cause an error.

$civicrm_root = '/home/iedgg/public_html/tony/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/iedgg/public_html/tony/sites/default/files/civicrm/templates_c/' );

Now there are two drupal installations (one at home/iedgg/public_html that's version 5 and won't work with Civicrm 2.1, and one at home/iedgg/public_html/tony) and the civicrm.settings.php I was looking at was in /home/iedgg/public_html/tony/sites/default.  The /home/iedgg bit is invisible to the user though; to start using my Drupal 6.6 installation I use the url www.iffa.org.au/tony. 

There is one civicrm.module under /home/iedgg/public_html/tony/sites/all/modules/civicrm/drupal and one under
/home/iedgg/public_html/sites/all/modules/civicrm/drupal.  I don't think this is the problem however if I rename the one under /home/iedgg/public_html/sites/all/modules/civicrm/drupal to temp.civicrm.module I get a page not found error in the old installation and the problem doesn't go away in the drupal 6.6/civicrm2.1 installation.



Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't edit a membership
December 01, 2008, 03:26:44 am
Tony,

Quote
I rename the one under /home/iedgg/public_html/sites/all/modules/civicrm/drupal to temp.civicrm.module

Even when you rename, drupal will detect this module, so you should rename it civicrm.module.txt, if you don't want drupal to detect it. If will also need to rename civicrm.info to civicrm.info.txt

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Can't edit a membership

This forum was archived on 2017-11-26.