Problem/Motivation

Drupal 8.9.16
PHP 7.3.28

All update.php OK, cleared caches

Error after entering key and trying to "Save Configuration":
Warning: preg_match() expects parameter 2 to be string, array given in Cleantalk\Common\Helper::http__request__rc_to_host() (line 1323 of modules/cleantalk/src/lib/Cleantalk/Common/Helper.php).

Cleantalk\Common\Helper::http__request__rc_to_host('sfw_update', Array, Array) (Line: 249)
Cleantalk\Common\Firewall\FirewallUpdater->update() (Line: 675)
Drupal\cleantalk\CleantalkFuncs::apbct_sfw_update('gazy8a9utuju') (Line: 81)
Drupal\cleantalk\Form\CleantalkSettingsForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 273)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'cleantalk_settings_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('cleantalk_settings_form', Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder->processForm('cleantalk_settings_form', Array, Object) (Line: 321).... etc.

Any ideas? It works on my local WAMP setup, but not on the production server

Thx

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

CBEEM created an issue. See original summary.

znaeff’s picture

Hello,

Our developers will check the code. We will contact you within 1-2 business days.

znaeff’s picture

Hello.

We've fixed the issue. All the fixes have been downloaded to Drupal repository.

Also, could you please check if CURL is enabled on your web server?

cbeem’s picture

It's a public cPanel, I'm not sure how to check for CURL?

cbeem’s picture

Should I be installing Clean Talk 9.1.11?

cbeem’s picture

I updated to 9.1.11, still the same error. i presume to do with cURL? I've asked the host to install it.

Am I safe to assume that Clean Talk is actually installed and working?

Thanks :)

cbeem’s picture

I loaded up a phpinfo page on the server:

cURL support enabled
cURL Information 7.77.0

So yes, cURL is already supported and enabled

cbeem’s picture

I have updated to PHP 7.4.21. the error on the config screen still persists.

But I just received an Anti Spam Report email from Clean Talk which includes the domain, so I am assuming it is working OK.

serge-m’s picture

Thank you for your feedback.
I've added it to the task. The programmer staff will look into the issue in up to 48 hours.
Please, wait.

serge-m’s picture

Thank you for waiting.
Further troubleshooting requires some of your personal data.

Please, copy-paste your question here in our private Ticket System:
https://cleantalk.org/my/support/open

aganz’s picture

I can verify the issue. New Drupal install. Disappears after cache clear.

znaeff’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.