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) »
  • Developer Discussion »
  • Google Summer of Code »
  • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
Pages: 1 [2] 3 4 ... 8

Author Topic: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation  (Read 9572 times)

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Updates: GSoC 2015: New API: Open Supporter Data Interface (OSDI) Implementation
May 15, 2015, 06:48:07 am
Updates:

I am posting my project updates,

Last week accomplishments/problems faced:
-After using civix in windows environment I was facing some issues regarding calling civix under CMS root directory, after vigorous discussion on IRC with Eileen and with responses from community on this thread, we narrowed down to the conclusion.
-I tried Vagrant, (Linux based OS virtualization) which is primarily used to sharing Linux environment and modified files with windows. Then after few more discussions with Joe McLaughlin and Joe Murray on forum thread, switching the OS to Linux (Ubuntu/Fedora) was advised.
-I already have dual boot machine with Ubuntu 14.04 LTS installed, So I read documentation about civicrm-buildkit and CLI tools on github which are related to installation on Linux.

Target for coming week:
After checkin meeting on Skype (15/5 07:30am IST) with the team, goals and this week's target are drawn along with some exercises and activities like :
-Installing up and running drupal CMS along with latest CiviCRM version on localhost (Apache server, MySQL already installed).
-PhpStorm (PHP IDE) will be installed along with Xdebug which will be used for debugging.
-After installation tasks : will try exercises recommended by Joe McLaughlin on https://github.com/ginkgostreet/com.ginkgostreet.devtraining
-developing a wrapper to get API for contact in accordance with OSDI format.
-trying and experimenting with HAL browser on https://github.com/mikekelly/hal-browser
-making offline availability of HAL browser which will be accessible from localhost using Apache.

Further, I will be making use of OSDI Implementation wiki page (http://wiki.civicrm.org/confluence/display/CRM/OSDI+Integration) on which I will be posting and maintaining record of meeting minutes and track discussion. I will post records of previous introduction meetings on Skype as well along with prime aspects, vital implementation information and profiles about OSDI and technological guidance received from attending weekly OSDI Tech calls on Lucid meetings.
Also I would definitely like to see some mentor invocation about the tasks mentioned above or any additional exercises or activity they want to add up which can be different from the current target.

Thank you.
-for the love of code and always learning

Anudit Verma

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Updates: GSoC 2015: New API: Open Supporter Data Interface (OSDI) Implementation
May 16, 2015, 12:36:51 pm
Hi,

My project updates:
I was facing some issues with phpmyadmin (unable to proceed as login panel was unresponsive due to some miss-matched configurations) so I updated/re-installed LAMP stack components with other critical OS updates to upgrade Ubuntu to 14.04.2 LTS
-Installed Drupal 7.37 along with CiviCRM 4.6.2
-Installed PhpStorm
-Installed Xdebug (debugger)

Next target :
-dev training exercises
-development of wrapper to get API for contact (based on OSDI format)

I hope to post my next project accomplishments soon.
Thank you .
« Last Edit: May 20, 2015, 06:48:17 am by Anudit Verma »
-for the love of code and always learning

Anudit Verma

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 19, 2015, 01:11:49 pm
Hi,

I have a working dev environment setup on Linux, installed civix as well. My primary concern is about how I can configure civix to look into correct CMS directory containing civicrm configuration file so as to get over unable to locate CMS root exception.
I came across this issue on github :
https://github.com/totten/civix/issues/45

I tried some modifications on the "ClientFactory.php" present in civix/src/CRM/ClientBundle of the civix package (made URL edits in relPaths array) but I think it requires configurations to be made elsewhere or a certainly different approach.
I am eagerly awaiting for responses from the community.
Thank you.
-for the love of code and always learning

Anudit Verma

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 19, 2015, 01:24:01 pm
Hi Anudit,

I'm not sure why you need to look in the civicrm configuration file. For example, you should be having your extension use existing functions to access the CiviCRM database rather than retrieving the DSN from civicrm.settings.php.

What is your reason for needing to look in civicrm.settings.php?

What are you trying to achieve with ClientFactory pattern?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 19, 2015, 06:10:21 pm
Anudit - wanna sort this out on IRC?
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

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 22, 2015, 10:24:56 am
Hi

Joe Sir, I have started working to create skeletal extension module through civix but unfortunately I am getting this exception "Failed to locate CMS. Please call civix from somewhere under the CMS root." So I was just curious if I can define my CMS root in a configuration file (if anything needs to be done) for that I started digging into ClientFactory pattern.

Eileen: Yes, I definitely want to sort this out on IRC real soon.

Thank you.
-for the love of code and always learning

Anudit Verma

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 22, 2015, 01:32:06 pm
Heh Anudit - Eileen should be able to sort you out on IRC in a way that avoids you needing to do special work to get civix to find the CMS or use factory pattern.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 25, 2015, 08:21:39 am
Updates:

I am trying to get this solved on IRC and I have posted a question on CiviCRM stack exchange site. You can view my posted query on :
http://civicrm.stackexchange.com/questions/2660/how-to-get-over-failed-to-locate-cms-exception-on-civix

I hope to get over with this very soon.
Thank you.
-for the love of code and always learning

Anudit Verma

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 25, 2015, 01:39:01 pm
Looks like I missed you by 3 hours!
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: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 25, 2015, 02:16:27 pm
Anudit - I think we should make a plan to catch up.

Assuming you are running CiviCRM within a drupal 7 install you need to be in the drupal 7 folder to run civix - per the message "Failed to locate CMS. Please call civix from somewhere under the CMS root". You want to be in this folder 'directly' rather than via a symlink.
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

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 26, 2015, 02:32:00 am
Yes Eileen, definitely we should catch up with a plan. I was about to pm you regarding deciding suitable timings for us to communicate properly. Though I keep hanging around in IRC. So please provide me with best timings possible according to you, I'll manage my schedule accordingly.
Thanks.
-for the love of code and always learning

Anudit Verma

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 26, 2015, 02:58:41 am
I'm on IRC now...
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

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 28, 2015, 11:19:41 am
Updates:

After discussing the issue with Eileen on IRC we came across that I was having some problems with my civicrm-buildkit which was not properly git-cloned into the correct directory. Then after following the tutorial on installing civicrm-buildkit from https://buildkit.civicrm.org/#/tutorials few hurdles came along:

1. While executing the command 'civi-download-tools" for downloading and installing the civicrm-buildkit which gave an error 'node : command not found' which was required for installing CiviCRM 4.6+ but I had installed Node.js before, so the problem here was that 'node' was not a recognized command on Ubuntu rather it worked fine when I called nodejs. To overcome this problem to continue with the automated process of installation which can be solved by these ways:

  • Edit ~/.bashrc and make alias of nodejs as node by adding : (but the problems can come with automated installations)
Code: [Select]
alias node=nodejs
  • Install nodejs-legacy with apt-get (worked perfectly fine :) )
Code: [Select]
sudo apt-get install nodejs-legacy

    2. Second problem I came across was while running 'amp test' for checking the configurations made in 'amp config'. I suppose I have correctly configured amp but unfortunately I am getting this error :
    Code: [Select]
    Create test application
    Create data directory: /home/anudit/.amp/canary/data/cRtGZ0pP8CQlCrUgo5bbMWsXBCDPm6ep
    AMP_URL='http://localhost:7979'
    AMP_ROOT='/home/anudit/.amp/canary'
    AMP_DB_DSN='mysql://canary_u4ntd:rfKrDtbMfsbxlM80@127.0.0.1:3306/canary_u4ntd?new_link=true'
    AMP_DB_USER='canary_u4ntd'
    AMP_DB_PASS='rfKrDtbMfsbxlM80'
    AMP_DB_HOST='127.0.0.1'
    AMP_DB_PORT='3306'
    AMP_DB_NAME='canary_u4ntd'
    AMP_DB_ARGS='-h 127.0.0.1 -u canary_u4ntd -prfKrDtbMfsbxlM80 -P 3306 canary_u4ntd'

    Connect to test application
    Expect response: "response-code-VrkPjPnUCy"
    PHP Warning:  file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     in /opt/buildkit/vendor/totten/amp/src/Amp/Command/TestCommand.php on line 153

    Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     in /opt/buildkit/vendor/totten/amp/src/Amp/Command/TestCommand.php on line 153
    Received incorrect response: ""
    Tip: Try running "amp config" and/or restarting the webserver.

    Could anyone provide any leads on this, how can I get over with this error ? so I can proceed further with civibuild
    Eagerly waiting for the responses from the community.
    Thank you.
    -for the love of code and always learning

    Anudit Verma

    Eileen

    • Forum Godess / God
    • I’m (like) Lobo ;)
    • *****
    • Posts: 4195
    • Karma: 218
      • Fuzion
    Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
    May 28, 2015, 03:17:30 pm
    did you get a message at some point telling you to add something to apache & restart it? I seem to recall that is part of the process & apache seems to be your blocker
    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: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
    May 28, 2015, 03:19:29 pm
    I note this message

    "Please pay attention to amp config and amp test. They may ask you to perform some setup tasks (such as editing the Apache configuration and restarting Apache). amp test should succeed before continuing. "

    So - re-running amp config may give you the message if you are missing it
    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

    Pages: 1 [2] 3 4 ... 8
    • CiviCRM Community Forums (archive) »
    • Old sections (read-only, deprecated) »
    • Developer Discussion »
    • Google Summer of Code »
    • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation

    This forum was archived on 2017-11-26.