The following error appear on Bootstrap theme, on "\contact" page:
----
Notice: Array to string conversion in Drupal\bootstrap\Plugin\Preprocess\BootstrapPanel->preprocessVariables() (line 105 of themes/bootstrap/src/Plugin/Preprocess/BootstrapPanel.php).
Notice: Array to string conversion in Drupal\bootstrap\Plugin\Preprocess\PreprocessBase->preprocessDescription() (line 82 of themes/bootstrap/src/Plugin/Preprocess/PreprocessBase.php).
Notice: Array to string conversion in Drupal\bootstrap\Plugin\Preprocess\PreprocessBase->preprocessDescription() (line 83 of themes/bootstrap/src/Plugin/Preprocess/PreprocessBase.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Londova created an issue. See original summary.

babusaheb.vikas’s picture

Hi Londova,

The Id of an element must be unique so it should not be an array.
So, please apply this patch.

Thanks

Londova’s picture

Yes
it works for me.
Thank You.

babusaheb.vikas’s picture

Status: Active » Fixed
andrey.troeglazov’s picture

Status: Fixed » Needs review

I think it should be reviewed and commited if error exists, why did you mark it as fixed?

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov

I will review it in several hours.

malcolm_p’s picture

This fixes these notices for me as well.

Londova’s picture

What is the reason to delay the Closure of this issue and to update the module respectively?

chrisolof’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3001556: Array issues

The patch in #2 fixes the error by setting the element's ID attribute to a string instead of an array. This makes sense because an element cannot have more than one ID.

wundo’s picture

Status: Reviewed & tested by the community » Fixed
wundo’s picture

Committed, thanks! :)

Londova’s picture

#wundo,
It took 4 month to implement a simple patch, proposed by #babusaheb.vikas
Do you think this is a good productivity?

Londova’s picture

I was surprised to find this error after updating to the last "dev" version !!!
Issue fixed, but not included in the last version? What is that?

andrey.troeglazov’s picture

Status: Fixed » Closed (fixed)

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

malcolm_p’s picture

I'm also seeing that this issue is not resolved as it is not committed to the dev branch. The original patch still applies though. Can we get this addressed and committed?

pick_d’s picture

I get same errors since I've updated to 8.x-1.0-beta2. So this issue is back, I guess.

wundo’s picture

There was a regression caused by one of the git merges that were done last week.

I've just pushed the fix again, I'm sorry for any inconvenience.

wundo’s picture

The commit hash that re-fix this is ff6ba3138c39d4cf4789f595fe18c896aef20275

wundo’s picture

pick_d’s picture

Update fixed that for me. Many thanks.

alexeye’s picture

The same problem as here https://www.drupal.org/project/captcha/issues/3025341, Error while "Get new captcha". If click "get new captcha" recieve blank page with message, like:
{"status":1,"message":"","data":{"url":"\/image-captcha-generate\/ bla-bla"}}

Drupal 8.8.6, Captcha 8.x-1.0. Patch cannot be applied, recieve error: " Could not apply patch! Skipping. The error was: Cannot apply patch PATHTO/captcha-3025328-2.patch" . (there are no problems with other patches)
Check it please

UPD: Captcha 8.x-1.1