Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array to String Conversion errors #85

Open
ryanlrobinson opened this issue Jul 16, 2019 · 3 comments
Open

Array to String Conversion errors #85

ryanlrobinson opened this issue Jul 16, 2019 · 3 comments

Comments

@ryanlrobinson
Copy link

Recently began testing out Sparkpost and this extension. It's mostly great, but have one issue to look at. On the settings page (/civicrm/admin/setting/sparkpost) this PHP error appears dozens of times:

Notice: Array to string conversion in Civi\Core\SettingsMetadata::_filterSettingsSpecification() (line 149 of /home/cividemo/public_html/sites/all/modules/civicrm/Civi/Core/SettingsMetadata.php).

Anything I've tried still works despite the error, but best case it is disconcerting.

PHP 7.2.20
CiviCRM 5.15.1
Sparkpost extension 1.3, initially tried with the version in the extension directory, then tried with the latest version here

@herbdool
Copy link
Contributor

herbdool commented Nov 8, 2019

I get the same error. I think it's related to the webhook throwing errors on the settings page. But I'm not sure if that's happening for everyone. When we upgraded to PHP 7.2 the callback URL got lost. Not sure it's related but I suspect that something in the extension has a bug in how settings metadata is set up.

@nganivet
Copy link
Contributor

nganivet commented Nov 8, 2019

Guys - I will let you debug this one as I do not have any customer instance on PHP 7.2 and/or CiviCRM 5.15. Please submit a PR, making sure you keep backwards compatibility with previous versions of CiviCRM and PHP. Thanks.

@herbdool
Copy link
Contributor

I think it's related to #66

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

No branches or pull requests

3 participants