jaredcobb / ccb-core

Church Community Builder Core API - A WordPress plugin to sync your church data
http://www.wpccb.com
GNU General Public License v2.0
8 stars 5 forks source link

Error when entering API credentials #26

Open weschilders opened 5 years ago

weschilders commented 5 years ago

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

Screenshot 2019-07-22 10 38 26
iamandrewpeters commented 5 years ago

Same here. I think it has to do with the WP version. But I don't really know a way to fix it. :/

rhkittredge commented 5 years ago

It has to do with your version of PHP. I was using PHP v7.1 and received the same error. Changed PHP version to 7.3.9 and the problem went away.

jaredcobb commented 4 years ago

@weschilders @iamandrewpeters @rhkittredge thanks for reporting this. The issue is with how PHP 5.6, 7.1, and 7.2/7.3 all implement different levels of support for the password encryption method I was using, depending on the hosting environment.

I have just released a new version that implements a more widely supported method. It should work in almost any environment. The only requirement is that your hosting platform needs to have the OpenSSL PHP module installed. It should be a very common module unless the platform hasn't been managed for a very long time. The plugin will warn you if it doesn't detect the module.

I know this is a very old issue, but if you are still interested in using this plugin I have a copy of 1.0.8 ready for testing and can be manually downloaded here https://github.com/jaredcobb/ccb-core/archive/master.zip. If you do happen to test, I'd love to hear the results or if you have any problems.

I plan to release this plugin after I have more time to test this week. Thanks!