Both manual and auto syncs process for a very long time and then eventually output the following error:
There was an API error: You are missing a subdomain, username, or password in the settings.. Error code: 401 on July 30, 2020 at 3:28 pm
When we checked the API settings we noticed that it said there was a login details error. We reset the login password and reconnected. Testing credentials now say: “The credentials were successfully authenticated.”.
Despite resolving the login we still get the API error on sync. An interesting note is that the error continues to use an old time stamp.
]]>I’ve installed the plugin on a website in development and received the error “There has been a critical error on your website. Please check your site admin email inbox for instructions.” I installed on a new, empty WP installation and get the same error. I setup debug and get a few more lines of error code:
“Recoverable fatal error: Object of class WP_Error could not be converted to string in /home/jot*******/public_html/wp-includes/formatting.php on line 1117”
and
“Warning: base64_decode() expects parameter 1 to be string, object given in /home/jot*******/public_html/wp-content/plugins/church-community-builder-core-api/includes/class-ccb-core-helpers.php on line 184”
I’m running PHP 7.2 on GoDaddy. Thanks.
]]>I have more events than what are I have on the page https://ecob.church/events/?v=cal. My events are not synchronized with the my calendar.
]]>I have added ccb api core to my wordpress dashboard. It successfully synced all my events and groups and categories. My issues is that I am trying to create a Calendar page, and when I try to use the wordpress calendar widget, nothing gets pulled from the data that was synced from ccb. I have tried to add events to the page (https://stmarkdcdemo.wpcomstaging.com/home/calendar/), but nothing happens. What am I missing? Also I am using Theta All theme for my homepage, and they have a news widget, and I do not know how to sync my events with that section either.
If you scroll down to the events section, you will see that it’s the static text provided from the theme, not my actually church events. How do I fix this as well? I have tried contacting Jacob, who created the plugin, but he is MIA.
]]>I’m trying to setup this plugin for the first time and I get an error when entering my API credentials:
Warning: base64_decode() expects parameter 1 to be string, object given in /app/public/wp-content/plugins/church-community-builder-core-api/includes/class-ccb-core-helpers.php on line 184
]]>Hey guys is anyone else experiencing an issue with connecting with their CCB API. This started happing all of the sudden.
]]>I used the recipe found at https://github.com/jaredcobb/ccb-core/wiki/Download-&-Attach-Event-Images to import and attach ccb_core_calendar images to ccb_core_calendar singles on the site. For some reason, it will only import one image from CCB and it attaches that image to every event. I can’t seem to figure out why.
]]>In general we’re getting great data and syncing appears to work. But we’ve noticed some blips such as a full group being shown as available through the plugin. In our example:
CCB Public Search Status: Available for searching
CCB Group status is FULL: https://www.screencast.com/t/ctuy1cfUyMAc
CCB Group Member Count: 16/15
WordPress DB Group Member Count: 12/15
We checked the public searching and the group is listed there so the data should sync. Neither automatic or manual syncing updates the database with the member count.
We did notice with this example that the group is actually over maximum capacity. We’re wondering if this could be causing the data to skip over syncing or even error out.
]]>Hi Jared,
I am still getting warnings that your plugin is not 7.2 compatible. is that accurate and will an update be forthcoming?
thanks again
]]>Groups are auto syncing but images in media library are not being removed when a group is removed by the plugin. I’ve got 21 groups but 67+ images that were added by the plugin.
v1.0.7
wordpress 5.0.3
thanks
]]>In CCB, groups that have reached capacity have been given the warning label “Full Group”. Is there is any way to output either “Open Group” or “Full Group”?
Thanks!
]]>I’ve installed and activated the CCB API plugin and attempted to login into the account for refineryohio account but it returns a 500 error.
Is there something that I don’t have connected up correctly?
Thank you.
]]>I recently updated my site to 7.2 and got a message that I needed “Sodium”…
“..or the sodium module installed for PHP versions 7.2 or later”
I wrote me Host and I do have Sodium installed… (see image) I have PHP Version 7.2.13
https://www.dropbox.com/s/junmwxd5x26nn3q/Screenshot%202019-01-03%2021.16.04.png?dl=0
But still, when I activate the plugin I get the same warning and my plugin gets deactivated.
Am I missing something?
]]>Not sure when it stopped auto syncing exactly. Wondering if anyone else is experiencing this. API credentials still pass test. Sync works manually but 90-minute auto sync no longer takes place.
]]>I’m having trouble pulling the main_leader data into the post_meta section.
I’ve tried
function ccb_core_customize_group_fields( $post_type_maps ) {
if ( ! empty( $post_type_maps['ccb_core_group']['fields'] ) ) {
$post_type_maps['ccb_core_group']['fields']['main_leader'] = 'post_meta';
$post_type_maps['ccb_core_group']['fields']['leaders'] = 'post_meta';
}
return $post_type_maps;
}
add_filter( 'ccb_core_synchronizer_post_api_map', 'ccb_core_customize_group_fields', 20, 1 );
As well as
function ccb_core_customize_group_fields( $post_type_maps ) {
if ( ! empty( $post_type_maps['ccb_core_group']['fields'] ) ) {
$post_type_maps['ccb_core_group']['fields']['main_leader']['full_name'] = 'post_meta';
$post_type_maps['ccb_core_group']['fields']['main_leader']['email'] = 'post_meta';
}
return $post_type_maps;
}
add_filter( 'ccb_core_synchronizer_post_api_map', 'ccb_core_customize_group_fields', 20, 1 );
The only one that creates a field is Leaders but the value comes out blank.
Any guidance would be helpful. Thank you!
]]>I’d like to convert the date post_meta field events from 2018-08-07 to August 7th. From looking at other support questions I could use the date function. I also saw how I could pull a new field for the post_meta. I’m trying to do this because I’m using a plugin that can display post meta data but is unable to use the date function to convert the appearance.
What I thought might work:
function ccb_core_customize_calendar_fields( $post_type_maps ) {
if ( ! empty( $post_type_maps['ccb_core_calendar']['fields'] ) ) {
date( 'F js', strtotime($post_type_maps['ccb_core_calendar']['fields']['date')])) = 'post_meta';
}
return $post_type_maps;
}
add_filter( 'ccb_core_synchronizer_post_api_map', 'ccb_core_customize_calendar_fields', 20, 1 );
What is a better way to go about this?
]]>I need to create a query for my taxonomy-ccb_core_group_area.php that only returns results when ccb_core_group_type = small_group. Basically, I need to be able to refine ccb_core_group_type = small_group by ccb_core_group_area. Currently, all other groups types are showing up in the ccb_core_group_area archive. Maybe I’m looking at this the wrong way?
Thanks!
]]>Hello,
Using the Php Compatibility Checker plugin to see if my site was 7.2 compatible, only this plugin failed the test. Are there any plans to update for php7.2?
thanks
FILE: /../public_html/wp-content/plugins/church-community-builder-core-api/lib/class-ccb-core-vendor-encryption.php
———————————————————————————————————————————————————
FOUND 15 ERRORS AFFECTING 7 LINES
———————————————————————————————————————————————————
81 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
81 | ERROR | Function mcrypt_decrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
97 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
97 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
97 | ERROR | The constant “MCRYPT_RAND” is deprecated since PHP 7.1 and removed since PHP 7.2
102 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
102 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
118 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
118 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
119 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
119 | ERROR | Function mcrypt_get_key_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
169 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
169 | ERROR | Function mcrypt_get_block_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
184 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
184 | ERROR | Function mcrypt_get_block_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
———————————————————————————————————————————————————
FILE: /../public_html/wp-content/plugins/church-community-builder-core-api/includes/class-ccb-core-helpers.php
—————————————————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 2 LINES
—————————————————————————————————————————————————-
118 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2
144 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2
—————————————————————————————————————————————————-
Thanks for the great plugin! We have begun implementing this at our church and have encountered an issue with duplicate event records in the database. After doing a sync, I’ll inspect the records in the database and find several events that are duplicated. For example, looking at “Revelation Fitness” events using this SQL in MyPHP …
SELECT ID, post_content, post_title, post_status, post_modified, meta_key, meta_value FROM wp_posts, wp_postmeta
WHERE wp_posts.post_title = ‘Revelation Fitness’
AND wp_postmeta.post_id = wp_posts.ID
AND wp_postmeta.meta_key = ‘date’
ORDER BY meta_value
… We find 30 records, each with a unique ID, but with several of them coming as duplicate pairs. Have you seen this behavior before? I don’t see anyone else reporting this issue.
We are using:
plugin version 1.0.4
WP version 4.9.5
thanks,
Matt-
Hi Jared,
In your sample code on Github, I see the following statement:
IMPORTANT: Recurring events in CCB are actually just a single event with a calculated recurrence that is output to the public_calendar_listing service. Therefore we are going to have multiple *instances* of each event and we should not download an event’s image multiple times…
As a church, we have, Sunday services, which are recurring. However, when they are imported they are imported as individual events.
How are they linked to one another as “recurring” events?
]]>In Jeremy’s post about extra data and adding extra fields, you referenced post mapping.
I am interested in mapping the API data into The Events Calendar. (https://www.ads-software.com/plugins/the-events-calendar)
Is there a way to do this?
]]>I was curious if there was a way to add other non-main leaders (<leaders>, group members (<participants>) and Custom Fields created in CCB (<user_defined_fields>) that I saw on the XML file from https://mychurchname.ccbchurch.com/api.php?srv=group_profiles
Does anyone have knowledge or point me to the right direction?
]]>Hey everyone I’ve just started using this wonderful plugin, Jared I really appreciate everything you are doing. As someone that knows nothing about API you’ve made it doable ?? I am having an issue with Events. I was curious if there is a way to add event images to featured images like the group settings offer. https://ibb.co/gWPyfx Here is an image of the dashboard of the events I don’t see the date/time or location is that information that cannot be provided. I would love to add the date through syncing instead of editing each event wordpress page.
]]>Please excuse the design while I’m trying to figure this out but I’m trying to add a list of upcoming events under a certain group. When creating an event in CCB inside of my group I set to public and it syncs over fine to my wordpress database and it takes on the Group Name as McKnight Trail Guide Group (mcknight-trail-guide-group). I even see it in a list format I’m assuming it is a default archive.php here https://trailhead.church/ccb_core_calendar_group_name/mcknight-trail-guide-group/
So I know it is there ??
On to my group single page which is here https://trailhead.church/groups/mcknight-trail-guide-group/
For the life of me I can’t insert this list into my custom template. In noway I’m a developer I just tend to dabble but I’m sure I’m missing something so small. Here is the code I’ve been using.
<?php
$custom_taxterms = wp_get_object_terms( $post->ID, 'mcknight-trail-guide-group', array('fields' => 'ids') );
$args = array(
'post_type' => 'ccb_core_calendar',
'post_status' => 'publish',
'posts_per_page' => 1,
'orderby' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => 'mcknight-trail-guide-group',
'field' => 'id',
'terms' => $custom_taxterms
)
),
'post__not_in' => array ($post->ID),
);
$related_items = new WP_Query( $args );
// loop over query
if ($related_items->have_posts()) :
echo '<ul>';
while ( $related_items->have_posts() ) : $related_items->the_post();
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php
endwhile;
echo '</ul>';
endif;
// Reset Post Data
wp_reset_postdata();
?>
]]>
I’m trying to obtain name values from main_leader Post Meta. Everything is returning in an array of content. I only want to display name values for full_name and email.
I want to display them like this:
Leader: Leader Name
Leader Email: [email protected]
Can you help? Thanks!
]]>Hey All,
so I have succesfully set up the ccb integration with our website and have groups syncing to the back end.
I am not sure how to display them on my website. I am using the DIVI 3.0 theme and am not sure if I need another plugin or if there is something i can do in my current theme.
Thanks
]]>Hi Jared,
I *believe that when we delete or inactivate a group within CCB, and a resync occurs, the group CPT gets deleted but its corresponding image in the media library does not. I am seeing a growing library of images, some duplicates and without groups. Any suggestions?
Thanks
Hi, now that the plugin is working (Thanks!), I’ve entered the proper settings from our CCB in the API Settings page but it won’t save. Each time I save it, the subdomain field is cleared out and it isn’t saved. It then says, “Please enter your Church Community Builder subdomain.” The subdomain is the-vineyard. I put in a fake subdomain and it saved but of course the test credentials doesn’t work. I can’t get it to work with our correct subdomain. Thanks for your help!
]]>Hi, we use CCB at our church and am trying to install the Church Community Builder Core API plugin but it’s giving a “Parse error: syntax error, unexpected ‘[‘ in /home3/habaner0/public_html/vcc2/wp-content/plugins/church-community-builder-core-api/ccb-core.php on line 40 error. I can’t activate the plugin as it says fatal error.
Please help. Thanks!
]]>I have same issue as another closed topic that was not resolved so I am re-posting…
Hello!
After syncing groups, I can see that a number of custom taxonomies have been created (Areas, Days, Types Times, etc) as well as a number of custom meta fields (leader_email, leader_full_name, group_calendar_feed, etc). However none of them are populated. Is this because of something not set in CCB or is there something additional in the plugin?
Thanks
]]>