- 🇮🇳India visway12
Fixed this issue by applying a custom patch.
PHP: 8.1.0
Drupal: 10.2
Adding external link or a link with query string to user or main navigation menu throws the twig error below:
Warning: explode() expects parameter 2 to be string, array given in twig_split_filter() (line 785 of vendor/twig/twig/src/Extension/CoreExtension.php).
Add external or query stringed link (example:
https://www.drupal.org/ →
or /user/login?u=x001) to user or main navigation menu.
Clear the cache and try navigating through the site.
I resolved it temporarily by changing line 785 (in vendor/twig/twig/src/Extension/CoreExtension.php) to:
if (\strlen($delimiter) > 0) {
$value = is_array($value) ? implode(' ', $value) : $value;
return null === $limit ? explode($delimiter, $value) : explode($delimiter, $value, $limit);
...
Fixed
9.3
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Fixed this issue by applying a custom patch.
PHP: 8.1.0
Drupal: 10.2