Cannot access offset of type string on string in nodespark\DESConnector\Client->isClusterOk() (line 115 of /var/www/html/vendor/nodespark/des-connector/src/DESConnector/Client.php)

Created on 22 December 2022, over 1 year ago
Updated 4 August 2023, 11 months ago

Hi All,
I am facing an issue when I am trying to update my site to Drupal 9.3 and PHP 8.1.
For PHP 7.4 Elasticsearch connector was working fine, but when I am trying to update the module for PHP 8.1, it is giving me below mentioned error

Cannot access offset of type string on string in nodespark\DESConnector\Client->isClusterOk() (line 115 of /var/www/html/vendor/nodespark/des-connector/src/DESConnector/Client.php)

I found that nodespark library does not support PHP 8.1, hence a new dev version 8.x.0-dev have been released.
But the problem is
1. It is dev version and not recommended for projects at the moment,
2. After isnataling this module still I am getting below mentioned error
Uncaught Error: Call to undefined method Drupal\elasticsearch_connector\ElasticSearch\ClientManager::getClientForCluster() in /var/www/html/web/modules/contrib/elasticsearch_connector/modules/elasticsearch_connector_views/elasticsearch_connector_views.views.inc:20

Steps to reproduce

Update the site for PHP 8.1 and Drupal core 9.3

Please help if anyone has any idea on it.
Thanks in Advance

🐛 Bug report
Status

Active

Component

Code

Created by

🇮🇳India ajay547

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I get this

    Error: Class "nodespark\DESConnector\ClientFactory" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).

    PHP 8.1.14, Drupal 9.5.2

  • 🇮🇳India sja112

    @ajay547 I am also facing this issue on PHP 8.1 and Drupal core 9.3, Did you find the fix?

Production build 0.69.0 2024