Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Error when entering API credentials #26

Open
weschilders opened this issue Jul 22, 2019 · 3 comments
Open

Error when entering API credentials #26

weschilders opened this issue Jul 22, 2019 · 3 comments

Comments

@weschilders
Copy link

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
Copy link

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

@rhkittredge
Copy link

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
Copy link
Owner

@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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants