OSDI issueshttps://lab.civicrm.org/extensions/osdi/-/issues2020-01-08T01:38:24Zhttps://lab.civicrm.org/extensions/osdi/-/issues/41Fix composer install differences2020-01-08T01:38:24ZeverykittysdaydreamFix composer install differences*Created by: joemcl*
A placeholder to note that `composer install` needs to be adjusted to conform with `buildkit` `composer` dependencies requirements, or creating the required sheduled jobs does not work. We followed these steps as a ...*Created by: joemcl*
A placeholder to note that `composer install` needs to be adjusted to conform with `buildkit` `composer` dependencies requirements, or creating the required sheduled jobs does not work. We followed these steps as a workaround:
```
find . | grep Schedule.php
cd ./com.example.osdi/api/v3/Importer/Schedule.php
cd ./com.example.osdi/api/v3/Importer/
ls
cd ../../..
ls
md vendor
md /vendor
mk dir vendor
mk dir
mkdir vendor
cd vendor
ls
touch autoload.php
find . | grep composer.json
cd
find . | grep composer.json
find . | grep osdi | grep composer.json
cd ./buildkit/build/drupal-clean/web/sites/default/files/civicrm/ext/com.example.osdi/
ls
composer
composer install
ls
ls vendor
cat vendor/autoload.php
```
https://lab.civicrm.org/extensions/osdi/-/issues/37Error creating new Importer.Schedule scheduled job2020-01-08T01:38:44ZeverykittysdaydreamError creating new Importer.Schedule scheduled job*Created by: joemcl*
Trying to create a new scheduled job with Importer.Schedule API call and getting the error below, running CiviCRM v. 5.19.alpha1 and Drupal 7, installed via buildkit on my Ubuntu 19.04 laptop.
```
Warning: requ...*Created by: joemcl*
Trying to create a new scheduled job with Importer.Schedule API call and getting the error below, running CiviCRM v. 5.19.alpha1 and Drupal 7, installed via buildkit on my Ubuntu 19.04 laptop.
```
Warning: require(/home/joe/buildkit/build/drupal-clean/web/sites/default/files/civicrm/ext/com.example.osdi/api/v3/Importer/../../../vendor/autoload.php): failed to open stream: No such file or directory in require() (line 8 of /home/joe/buildkit/build/drupal-clean/web/sites/default/files/civicrm/ext/com.example.osdi/api/v3/Importer/Schedule.php).
```https://lab.civicrm.org/extensions/osdi/-/issues/43Expose ~/civicrm/osdi/mapping in the UI2020-01-08T01:37:49ZeverykittysdaydreamExpose ~/civicrm/osdi/mapping in the UI*Created by: joemcl*
Add a menu item for ~/civicrm/osdi/mapping in the menu; add a button in ~/civicrm/osdi/config to connect to /mapping; add a button in /mapping to connect to /config*Created by: joemcl*
Add a menu item for ~/civicrm/osdi/mapping in the menu; add a button in ~/civicrm/osdi/config to connect to /mapping; add a button in /mapping to connect to /confighttps://lab.civicrm.org/extensions/osdi/-/issues/19Error when attempting one-way import2018-08-26T05:00:15ZeverykittysdaydreamError when attempting one-way import*Created by: MegaphoneJon*
I tried a one-way import since it seemed like the simplest task. I didn't configure the mapping at all - I thought I didn't need to but maybe I'm misunderstanding the docs? Anyway, I got this in the Schedule...*Created by: MegaphoneJon*
I tried a one-way import since it seemed like the simplest task. I didn't configure the mapping at all - I thought I didn't need to but maybe I'm misunderstanding the docs? Anyway, I got this in the Scheduled Job log for `OSDIQueue.Run`:
```
Entity: OSDIQueue Action: Run
Summary
Finished execution of Call OSDIQueue.Run API with result: Success (a:1:{s:6:"result";a:5:{s:8:"is_error";i:1;s:9:"exception";O:22:"CiviCRM_API3_Exception":8:{s:35:"CiviCRM_API3_ExceptionextraParams";a:6:{s:5:"field";s:4:"name";s:10:" (...)
Details
Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}
Full message:
Finished execution of Call OSDIQueue.Run API with result: Success (a:1:{s:6:"result";a:5:{s:8:"is_error";i:1;s:9:"exception";O:22:"CiviCRM_API3_Exception":8:{s:35:"CiviCRM_API3_ExceptionextraParams";a:6:{s:5:"field";s:4:"name";s:10:"error_code";i:2100;s:6:"entity";s:7:"Mapping";s:6:"action";s:3:"get";s:8:"is_error";i:1;s:13:"error_message";s:79:"Value for name is 69 characters - This field has a maxlength of 64 characters.";}s:10:"*message";s:79:"Value for name is 69 characters - This field has a maxlength of 64 characters.";s:17:"Exceptionstring";s:0:"";s:7:"*code";i:0;s:7:"*file";s:92:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/api/api.php";s:7:"*line";i:45;s:16:"Exceptiontrace";a:22:{i:0;a:4:{s:4:"file";s:113:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/uploads/civicrm/ext/civicrm_osdi/CRM/OSDIQueue/Tasks.php";s:4:"line";i:40;s:8:"function";s:12:"civicrm_api3";s:4:"args";a:3:{i:0;s:7:"Mapping";i:1;s:3:"get";i:2;a:2:{s:4:"name";s:69:"OSDIREMOTE_https://test-drupal.megaphonetech.com/civicrm/osdi/webhook";s:7:"version";i:3;}}}i:1;a:6:{s:4:"file";s:99:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Queue/Task.php";s:4:"line";i:88;s:8:"function";s:10:"AddContact";s:5:"class";s:19:"CRM_OSDIQueue_Tasks";s:4:"type";s:2:"::";s:4:"args";a:2:{i:0;O:21:"CRM_Queue_TaskContext":2:{s:5:"queue";O:19:"CRM_Queue_Queue_Sql":1:{s:22:"CRM_Queue_Queue_name";s:21:"com.civicrm.osdiqueue";}s:3:"log";O:8:"Log_file":16:{s:9:"_filename";s:122:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/uploads/civicrm/ConfigAndLog/CiviCRM.63c0face60f9ca29c6db1501.log";s:3:"_fp";i:0;s:7:"_append";b:1;s:8:"_locking";b:0;s:5:"_mode";i:420;s:8:"_dirmode";i:493;s:11:"_lineFormat";s:21:"%1$s %2$s [%3$s] %4$s";s:11:"_timeFormat";s:14:"%b %d %H:%M:%S";s:4:"_eol";s:1:"
";s:7:"_opened";b:0;s:3:"_id";s:32:"0fcaa8ac83a85099905e318c7a629e20";s:6:"_ident";s:0:"";s:9:"_priority";i:6;s:5:"_mask";i:255;s:10:"_listeners";a:0:{}s:10:"_formatMap";a:9:{s:12:"%{timestamp}";s:4:"%1$s";s:8:"%{ident}";s:4:"%2$s";s:11:"%{priority}";s:4:"%3$s";s:10:"%{message}";s:4:"%4$s";s:7:"%{file}";s:4:"%5$s";s:7:"%{line}";s:4:"%6$s";s:11:"%{function}";s:4:"%7$s";s:8:"%{class}";s:4:"%8$s";s:3:"%\{";s:3:"%%{";}}}i:1;s:939:"O:12:"PeopleStruct":5:{s:6:"person";a:13:{s:11:"family_name";s:0:"";s:10:"given_name";s:0:"";s:15:"additional_name";s:0:"";s:16:"honorific_prefix";s:0:"";s:16:"honorific_suffix";s:0:"";s:9:"gender_id";s:0:"";s:8:"employer";s:0:"";s:15:"email_addresses";a:1:{i:0;a:2:{s:7:"address";s:17:"admin@example.com";s:7:"primary";b:1;}}s:16:"postal_addresses";a:1:{i:0;a:6:{s:7:"primary";b:1;s:13:"address_lines";a:1:{i:0;s:0:"";}s:8:"locality";s:0:"";s:6:"region";s:0:"";s:7:"country";s:0:"";s:11:"postal_code";s:0:"";}}s:13:"phone_numbers";a:1:{i:0;a:3:{s:7:"primary";b:1;s:6:"number";s:0:"";s:11:"do_not_call";s:1:"0";}}s:18:"preferred_language";s:5:"en_US";s:13:"custom_fields";a:1:{s:48:"CIVI_ID_aaebfdccdd9ba0e2efa2697eeea132f61be605ce";i:3;}s:13:"modified_date";s:19:"2018-08-01 12:44:25";}s:4:"rule";i:-1;s:7:"groupid";s:1:"2";s:6:"apikey";s:11:"OSDI_rxcjro";s:8:"endpoint";s:58:"https://test-drupal.megaphonetech.com/civicrm/osdi/webhook";}";}}i:2;a:6:{s:4:"file";s:101:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Queue/Runner.php";s:4:"line";i:214;s:8:"function";s:3:"run";s:5:"class";s:14:"CRM_Queue_Task";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;r:35;}}i:3;a:6:{s:4:"file";s:101:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Queue/Runner.php";s:4:"line";i:168;s:8:"function";s:7:"runNext";s:5:"class";s:16:"CRM_Queue_Runner";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:4;a:6:{s:4:"file";s:114:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/uploads/civicrm/ext/civicrm_osdi/api/v3/OSDIQueue/Run.php";s:4:"line";i:49;s:8:"function";s:6:"runAll";s:5:"class";s:16:"CRM_Queue_Runner";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:5;a:4:{s:4:"file";s:124:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php";s:4:"line";i:89;s:8:"function";s:30:"civicrm_api3_o_s_d_i_queue_Run";s:4:"args";a:1:{i:0;a:1:{s:7:"version";i:3;}}}i:6;a:6:{s:4:"file";s:100:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php";s:4:"line";i:169;s:8:"function";s:6:"invoke";s:5:"class";s:39:"Civi\API\Provider\MagicFunctionProvider";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;a:9:{s:2:"id";i:1;s:7:"version";i:3;s:6:"params";a:1:{s:7:"version";i:3;}s:5:"extra";N;s:6:"fields";a:0:{}s:6:"entity";s:9:"OSDIQueue";s:6:"action";s:3:"run";s:8:"function";s:30:"civicrm_api3_o_s_d_i_queue_run";s:10:"is_generic";b:0;}}}i:7;a:6:{s:4:"file";s:100:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php";s:4:"line";i:100;s:8:"function";s:10:"runRequest";s:5:"class";s:15:"Civi\API\Kernel";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;a:9:{s:2:"id";i:1;s:7:"version";i:3;s:6:"params";a:1:{s:7:"version";i:3;}s:5:"extra";N;s:6:"fields";a:0:{}s:6:"entity";s:9:"OSDIQueue";s:6:"action";s:3:"run";s:8:"function";s:30:"civicrm_api3_o_s_d_i_queue_run";s:10:"is_generic";b:0;}}}i:8;a:6:{s:4:"file";s:92:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/api/api.php";s:4:"line";i:23;s:8:"function";s:7:"runSafe";s:5:"class";s:15:"Civi\API\Kernel";s:4:"type";s:2:"->";s:4:"args";a:4:{i:0;s:9:"OSDIQueue";i:1;s:3:"Run";i:2;a:1:{s:7:"version";i:3;}i:3;N;}}i:9;a:4:{s:4:"file";s:104:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php";s:4:"line";i:145;s:8:"function";s:11:"civicrm_api";s:4:"args";a:3:{i:0;s:9:"OSDIQueue";i:1;s:3:"Run";i:2;a:1:{s:7:"version";i:3;}}}i:10;a:6:{s:4:"file";s:104:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php";s:4:"line";i:113;s:8:"function";s:10:"executeJob";s:5:"class";s:19:"CRM_Core_JobManager";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;O:21:"CRM_Core_ScheduledJob":11:{s:7:"version";i:3;s:4:"name";s:22:"Call OSDIQueue.Run API";s:9:"apiParams";a:1:{s:7:"version";i:3;}s:7:"remarks";a:0:{}s:2:"id";s:2:"25";s:9:"domain_id";s:1:"1";s:13:"run_frequency";s:6:"Always";s:11:"description";s:22:"Call OSDIQueue.Run API";s:10:"api_entity";s:9:"OSDIQueue";s:10:"api_action";s:3:"Run";s:9:"is_active";s:1:"1";}}}i:11;a:6:{s:4:"file";s:103:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php";s:4:"line";i:153;s:8:"function";s:14:"executeJobById";s:5:"class";s:19:"CRM_Core_JobManager";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;s:2:"25";}}i:12;a:6:{s:4:"file";s:104:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php";s:4:"line";i:160;s:8:"function";s:6:"browse";s:5:"class";s:18:"CRM_Admin_Page_Job";s:4:"type";s:2:"->";s:4:"args";a:2:{i:0;N;i:1;N;}}i:13;a:6:{s:4:"file";s:103:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php";s:4:"line";i:136;s:8:"function";s:3:"run";s:5:"class";s:19:"CRM_Core_Page_Basic";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:14;a:6:{s:4:"file";s:100:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php";s:4:"line";i:309;s:8:"function";s:3:"run";s:5:"class";s:18:"CRM_Admin_Page_Job";s:4:"type";s:2:"->";s:4:"args";a:2:{i:0;a:3:{i:0;s:7:"civicrm";i:1;s:5:"admin";i:2;s:3:"job";}i:1;N;}}i:15;a:6:{s:4:"file";s:100:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php";s:4:"line";i:84;s:8:"function";s:7:"runItem";s:5:"class";s:15:"CRM_Core_Invoke";s:4:"type";s:2:"::";s:4:"args";a:1:{i:0;a:16:{s:2:"id";s:3:"173";s:9:"domain_id";s:1:"1";s:4:"path";s:17:"civicrm/admin/job";s:5:"title";s:14:"Scheduled Jobs";s:15:"access_callback";a:2:{i:0;s:19:"CRM_Core_Permission";i:1;s:9:"checkMenu";}s:16:"access_arguments";a:2:{i:0;a:2:{i:0;s:14:"access CiviCRM";i:1;s:18:"administer CiviCRM";}i:1;s:3:"and";}s:13:"page_callback";s:18:"CRM_Admin_Page_Job";s:10:"breadcrumb";a:2:{i:0;a:2:{s:5:"title";s:7:"CiviCRM";s:3:"url";s:58:"/wp-admin/admin.php?page=CiviCRM&q=civicrm&reset=1";}i:1;a:2:{s:5:"title";s:18:"Administer CiviCRM";s:3:"url";s:64:"/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin&reset=1";}}s:6:"is_ssl";s:1:"1";s:6:"weight";s:4:"1370";s:4:"type";s:1:"1";s:9:"page_type";s:1:"0";s:4:"desc";s:35:"Managing periodially running tasks.";s:10:"adminGroup";s:15:"System Settings";s:4:"icon";s:18:"admin/small/13.png";s:14:"page_arguments";b:0;}}}i:16;a:6:{s:4:"file";s:100:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php";s:4:"line";i:52;s:8:"function";s:7:"_invoke";s:5:"class";s:15:"CRM_Core_Invoke";s:4:"type";s:2:"::";s:4:"args";a:1:{i:0;a:3:{i:0;s:7:"civicrm";i:1;s:5:"admin";i:2;s:3:"job";}}}i:17;a:6:{s:4:"file";s:84:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-content/plugins/civicrm/civicrm.php";s:4:"line";i:1246;s:8:"function";s:6:"invoke";s:5:"class";s:15:"CRM_Core_Invoke";s:4:"type";s:2:"::";s:4:"args";a:1:{i:0;a:3:{i:0;s:7:"civicrm";i:1;s:5:"admin";i:2;s:3:"job";}}}i:18;a:6:{s:4:"file";s:75:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-includes/class-wp-hook.php";s:4:"line";i:286;s:8:"function";s:6:"invoke";s:5:"class";s:21:"CiviCRM_For_WordPress";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;s:0:"";}}i:19;a:6:{s:4:"file";s:75:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-includes/class-wp-hook.php";s:4:"line";i:310;s:8:"function";s:13:"apply_filters";s:5:"class";s:7:"WP_Hook";s:4:"type";s:2:"->";s:4:"args";a:2:{i:0;s:0:"";i:1;a:1:{i:0;s:0:"";}}}i:20;a:6:{s:4:"file";s:68:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-includes/plugin.php";s:4:"line";i:453;s:8:"function";s:9:"do_action";s:5:"class";s:7:"WP_Hook";s:4:"type";s:2:"->";s:4:"args";a:1:{i:0;a:1:{i:0;s:0:"";}}}i:21;a:4:{s:4:"file";s:64:"/var/www/testsite-wp.megaphonetech.com/htdocs/wp-admin/admin.php";s:4:"line";i:224;s:8:"function";s:9:"do_action";s:4:"args";a:1:{i:0;s:21:"toplevel_page_CiviCRM";}}}s:19:"Exceptionprevious";N;}s:15:"last_task_title";s:0:"";s:13:"numberOfItems";s:1:"3";s:11:"is_continue";i:0;}})
```https://lab.civicrm.org/extensions/osdi/-/issues/12Error message on install2018-08-24T03:35:51ZeverykittysdaydreamError message on install*Created by: MegaphoneJon*
I get this:
```
Warning: Declaration of CRM_Osdi_Permission::check($permissions) should be compatible with CRM_Core_Permission::check($permissions, $contactId = NULL) in require_once() (line 218 of /home/jon...*Created by: MegaphoneJon*
I get this:
```
Warning: Declaration of CRM_Osdi_Permission::check($permissions) should be compatible with CRM_Core_Permission::check($permissions, $contactId = NULL) in require_once() (line 218 of /home/jon/local/civicrm-buildkit/build/dmaster/sites/all/modules/civicrm/CRM/Core/ClassLoader.php).
```
It seems like a function signature mismatch that shouldn't really affect anything, but it's quick enough to clean up, and gives reviewers confidence in the code.https://lab.civicrm.org/extensions/osdi/-/issues/18Can't schedule an import when the webhook is a WordPress-based site2018-08-26T05:12:39ZeverykittysdaydreamCan't schedule an import when the webhook is a WordPress-based site*Created by: MegaphoneJon*
The various CMSes that CiviCRM supports all have different methods of indicating to their front page router which page should be loaded. Here are two examples:
```
Drupal: https://test-drupal.megaphonetec...*Created by: MegaphoneJon*
The various CMSes that CiviCRM supports all have different methods of indicating to their front page router which page should be loaded. Here are two examples:
```
Drupal: https://test-drupal.megaphonetech.com/civicrm/osdi/webhook
WordPress: https://testsite-wp.megaphonetech.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fosdi%2Fwebhook
```
Furthermore, this assumes that Drupal "clean URLs" are enabled. Otherwise, the Drupal URLs are constructed similarly:
```
Drupal (no clean URLs): http://example.org/index.php?q=civicrm/osdi/webhook
Joomla 1.5 sites: http://example.org/administrator/index2.php?option=com_civicrm&task=civicrm/osdi/webhook
Joomla 1.6+ sites: http://example.org/administrator/index.php?option=com_civicrm&task=civicrm/osdi/webhook
WordPress sites: http://example.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/osdi/webhook
```
If it helps to troubleshoot, I provisioned a WordPress site at https://osdi3.megaphonetech.com on the same server as the other two.