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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
Pages: [1]

Author Topic: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.  (Read 3855 times)

woodsy3629

  • Guest
J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
April 02, 2008, 07:38:54 pm
Hello,

I have just installed Civicrm 2.0.2 on Joomla 1.5 using deepak's blog http://civicrm.org/node/297

Without Legacy turned on I get the following when I goto Civicrm Home - We could not find a contact id.

I'm guessing its got something to do with searching the id field that changed from J1.x to J1.5

Anyone could help out?

Cheers Woodsy
« Last Edit: April 02, 2008, 07:40:45 pm by woodsy3629 »

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 10, 2008, 05:19:12 pm
Did this ever get resolved ?

I keep hoping someone will address this paricular problem, but it seems nobody has.

I'm having the same issue. "we could not find a contact id" and several functional problems which generate Civicrm.log entries to the same effect.

The problem goes away in legacy mode. Did you ever get it fixed ?

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 11, 2008, 01:36:15 am
I filed an issue about this http://issues.civicrm.org/jira/browse/CRM-3178.

J!1.5 isn't supported in 2.0. When tested on the 2.1 dev it could not be replicated so for now I've turned legacy on and will wait for 2.1.

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 11, 2008, 10:56:20 am
Oh, I'm leaving legacy on too, for now. The problem is, there seem to be some other issues which seem to be related to this bug, which the legacy mode doesn't seem to fix.





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: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 11, 2008, 11:36:08 am

Want to be more specific as to what other issues are related to the bug. This will allow us to ensure that it is fixed with the J1.5 / C2.1 combination

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

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 11, 2008, 05:04:16 pm
Quote from: Donald Lobo on June 11, 2008, 11:36:08 am

Want to be more specific as to what other issues are related to the bug. This will allow us to ensure that it is fixed with the J1.5 / C2.1 combination

lobo



Hi Donald,

I'm perfectly willing to share the other issues, though I have some tinkering to do before I can provide anything that would be meaningful to the developers. I'm trying to sort "my mistakes" from "actual problems which need to be fixed for everyone".  I'll post some info for you when that personal work is out of the way. It's possible that the other related issues will be corrected along the way.

- Noah

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 12, 2008, 10:26:07 am
The "we could not find a contact id" error can be solved by replacing the following lines ( 42 to 44 ) -
Code: [Select]
    global $my;
    require_once 'CRM/Core/BAO/UFMatch.php';
    CRM_Core_BAO_UFMatch::synchronize( $my, false, 'Joomla', 'Individual' );

in the file : joomla/administrator/components/com_civicrm/admin.civicrm.php

with:
Code: [Select]
    $user = JFactory::getUser( );
    require_once 'CRM/Core/BAO/UFMatch.php';
    CRM_Core_BAO_UFMatch::synchronize( $user, false, 'Joomla', 'Individual' );

Note: This has already been fixed in 2.1.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 12, 2008, 11:38:28 am
Yay !

That worked, and so far I can confirm that some of the related problems I alluded to have also been fixed.

The symptoms I was experiencing while not in Legacy Mode:
0. "we could not find a contact id"
1. Couldn't view the dashboard in the Joomla administrator backend
2. The dashboard menu link seemed to contain redundant "task=" and "option=" directives, which didn't seem to add any new information.
3. Attempting to edit or update the status of contributions & event registrations which were stuck in "pending" status resulted in an unrecoverable error
4. Attempting to email a contact resulted in an unrecoverable error. Error messages about "not being of type Integer"
5. A mild, but persistent headache.

Thanks for the fix !

The one remaining issue I have... that I'm about to check, is that the IPN from Paypal Standard wasn't working (in either mode).
This could easily be some misconfiguration on my part. We'll see if fixing all this other stuff makes tracking that down any easier.

Any hints on that front ? I can leave the API field blank if i'm using Paypal Standard, right ?

Where would I look to find records of Paypal having attempted an IPN ?

Full disclosure: I've had this working on a Drupal installation before, and it was no big deal. When Civicrm 2.0.x came out I not only upgraded from 1.8 (step by step), but also moved my civicrm install over to Joomla. (we had been using Joomla for our main page, and Drupal just for Civicrm stuff previously).

Turns out it actually isn't hard to move back and forth. Very doable.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 13, 2008, 12:35:22 am
Thats great !

Quote
The one remaining issue I have... that I'm about to check, is that the IPN from Paypal Standard wasn't working (in either mode).
This could easily be some misconfiguration on my part. We'll see if fixing all this other stuff makes tracking that down any easier.

Any hints on that front ? I can leave the API field blank if i'm using Paypal Standard, right ?

right, but entering a new payment processor of type "PayPal Website Payments Standard" doesn't ask for one either. All you need to enter is your email account against "Merchant Account Email". And let "Site URL" / "Recurring Payments URL" be there with default values.
« Last Edit: June 13, 2008, 12:49:35 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 16, 2008, 09:39:14 pm

[/quote]

right, but entering a new payment processor of type "PayPal Website Payments Standard" doesn't ask for one either. All you need to enter is your email account against "Merchant Account Email". And let "Site URL" / "Recurring Payments URL" be there with default values.
[/quote]


Hmmm... I've tried this a many many times now, and the IPN doesn't seem to be working.

On the upside of things, the money still goes where it needs to.. and it is possible to update the transactions manually... and that behavior is good (sends the email, updates the attendees, etc.)

Also, the Website Payments Standard still has an empty form field for API URL for both the live and testing section. This is still the case when I create a "fresh" payment processor of type "PayPal Website Payments Standard". (which is to say "it asks")

I added the debugging code suggested elsewhere, and the only record that shows up seems to be from the "Thank You" page once Paypal returns. Some help please ?


Jun 16 18:40:33  [info] $payPalURL = https://www.sandbox.paypal.com/xclick/business=ols_1189637826_biz%40nwdak.org&notify_url=http%3A//www.oldlibrarystudio.org/administrator/components/com_civicrm/civicrm/extern/ipn.php%3Freset%3D1%26contactID%3D407%26contributionID%3D161%26module%3Dcontribute&item_name=Online+Contribution%3A+Copy+of+Support+Creative+Teens+%21&quantity=1&undefined_quantity=0&cancel_return=http%3A//www.oldlibrarystudio.org/index.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm/contribute/transact%26_qf_Main_display%3D1%26cancel%3D1%26qfKey%3Dc50100d7da71afc10379ecaa310ed9b2&no_note=1&no_shipping=1&return=http%3A//www.oldlibrarystudio.org/index.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm/contribute/transact%26_qf_ThankYou_display%3D1%26qfKey%3Dc50100d7da71afc10379ecaa310ed9b2&rm=2&currency_code=USD&invoice=8dc147ac7ed4aa413a15ca363efa0c73&cmd=_xclick&amount=500

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 16, 2008, 10:22:02 pm
Quote
Also, the Website Payments Standard still has an empty form field for API URL for both the live and testing section. This is still the case when I create a "fresh" payment processor of type "PayPal Website Payments Standard". (which is to say "it asks")

If it asks, something is wrong on your side. I verified this on demo.

Quote
On the upside of things, the money still goes where it needs to.. and it is possible to update the transactions manually... and that behavior is good (sends the email, updates the attendees, etc.)

I guess you already know: that for IPN case whenever a payment is made PayPal posts a notification to your server, for which you need to make sure your server is accessible.
If it is already, check civicrm/extern/ipn.php which will take you through the processing thats carried out (sends the email, updates the attendees, etc.).
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

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: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 17, 2008, 12:58:25 am

seems like there is an issue with one of your upgrades. This url should work, but does not:

http://www.oldlibrarystudio.org/administrator/components/com_civicrm/civicrm/extern/ipn.php

Can u edit this file: /home/.marks/mrnoah/www.oldlibrarystudio.org/administrator/components/com_civicrm/civicrm/civicrm.config.php

and change people to www

that should get you to the next step, which hopefully will get IPN to work properly :)

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

mrnoah

  • Guest
Re: J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.
June 17, 2008, 06:18:21 am
Yep, that is a side-effect from an upgrade.

Wow, didn't see that one. Thanks so much Donald and Deepak !
I'm sure this will help.

*** Yep, that worked. Just tried it. ****
« Last Edit: June 17, 2008, 06:32:24 am by mrnoah »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • J.1.5 No Legacy Civicrm 2.0.2 : - We could not find a contact id.

This forum was archived on 2017-11-26.