Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.0alpha1, 4.2.0, 4.2.0beta1, 4.2.0rc1, 4.3.0beta1, 4.3.0rc1
-
None
Description
Script fails when --db-host and other --db options are used, because of error in the code. Patch below:
+++ updatesearchindexsolr.php (working copy)
@@ -449,7 +449,7 @@
{
if ( !empty( $this->Options[$param] ) )
{
- $optionString .= ' -
' . $param . '=' . escapeshellarg( $this>Options['db-host'] );
+ $paramString .= ' -' . $param . '=' . escapeshellarg( $this>Options[$param] );
}
}Steps to reproduce
:$ php extension\ezfind\bin\php\updatesearchindexsolr.php -d --db-host=my_db --db-user=my_user --db-password=my_pwd --db-database=my_db -s my_siteaccess --clean --php-exec=php --db-type=ezmysql