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) »
  • Strange error with path to member listing
Pages: [1]

Author Topic: Strange error with path to member listing  (Read 3294 times)

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Strange error with path to member listing
February 22, 2008, 09:39:38 am
We're working on a Drupal (5.7) site for a chamber of commerce. We've got their Members imported and have create a profile to display the active members. We created a Drupal Menu item with a URL alias to make the URL more friendly and, if we don't, Drupal rewrites the URL (changes the &), that points to the profile. Clicking on the menu item generates the following error message in the browser:

"Sorry. A non-recoverable error has occurred.
We experienced an unexpected error. Please file an issue with the backtrace

Return to home page."

Not very specific. What's stranger still, if we then type in the direct URL we get the profile page. Then, suddenly the menu link starts working -- no more error!

Any way around this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Strange error with path to member listing
February 22, 2008, 10:07:55 am

1. can you enable backtrace and see where the code is failing. Will give us a better idea. Most likely the url arguments are being munged by Drupal and php cannot decipher it :(

2. What happens if you put the link on a drupal node (page?). Can you try it with the URL alias and the original civicrm link

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: Strange error with path to member listing
February 22, 2008, 11:08:18 am
I think we solved the problem in one way. What was happeing was that using the actual url provided by CiviCRM which has a question mark in it (/civicrm/profile?reset=1&gid=1&force=1) wasn't work, since Drupal would urlencode the ?. So then we tried aliasing it, but when we did we would get directed to the CiviCRM dashboard. So we tried changing the ? to a / which worked in the way described above.


Here is the backtrace using the method of subsituting the /:

/usr/home/arcatach/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/usr/home/arcatach/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 527
/usr/home/arcatach/public_html/sites/all/modules/civicrm/CRM/Profile/Page/Listings.php, getFieldValue, 215
/usr/home/arcatach/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 858
/usr/home/arcatach/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, profile, 124
/usr/home/arcatach/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/usr/home/arcatach/public_html/includes/menu.inc, call_user_func_array, 418
/usr/home/arcatach/public_html/index.php, menu_execute_active_handler, 15

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: Strange error with path to member listing
February 23, 2008, 03:17:02 pm
The only way we can get the links to CiviCRM Membership list is to use mod_rewrite. It works, but it seems like a direct link should work.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Strange error with path to member listing
February 23, 2008, 04:05:36 pm

this issue has come up in the past and there was a patch to drupal created once upon a time. i'm not sure how we can get this fixed, but raising this in the drupal forums and attempting to get this fixed in core (if a bug) is the right way to go

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Strange error with path to member listing
March 25, 2008, 01:42:15 pm
FYI - http://drupal.org/node/118072

This worked for me, but not for all use cases (in particular our multi-page signup form gives an error). Meanwhile, mod_rewrite works fine as well if you have access to that.

Cheers,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Strange error with path to member listing

This forum was archived on 2017-11-26.