When i try to open configuration page of search API module i am getting the below error:
The website encountered an unexpected error. Please try again later. Error: Class "Composer\InstalledVersions" not found in Solarium\Client::getVersion() (line 59 of vendor\solarium\solarium\src\Client.php).
I have checked the place where it is stating error but it is updated as per the recent package.
use Composer\InstalledVersions;
/**
* Returns the version string.
*
* @return string
*/
public static function getVersion(): string
{
static $version;
if (!$version) {
$version = InstalledVersions::getPrettyVersion('solarium/solarium');
}
return $version;
}
Help me to fix the issue.
vendor/composer/InstalledVersions.php
is missing or cannot be autoloaded. That is all I can say given the information you provided.