OMP 3.3.0.6 error when rebuilding search index

Dear Community,

we had PDF fulltext search activated, but due to performance issues during publishing we deactivated it.

With the following code we wanted to rebuild the index in the backend:

cd /wlb/www/omp

rm -rf cache/_db/*

php tools/rebuildSearchIndex.php

However, we are getting the following error message:

root@omp-test:/wlb/www/omp# php tools/rebuildSearchIndex.php

Clearing index ... PHP Notice:  Undefined property: MonographSearchDAO::$_dataSource in /var/www/html/omp-3.3.0-6/classes/search/MonographSearchIndex.inc.php on line 187

PHP Fatal error:  Uncaught Error: Call to a member function CacheFlush() on null in /var/www/html/omp-3.3.0-6/classes/search/MonographSearchIndex.inc.php:187

Stack trace:

#0 /var/www/html/omp-3.3.0-6/tools/rebuildSearchIndex.php(33): MonographSearchIndex->rebuildIndex(true)

#1 /var/www/html/omp-3.3.0-6/tools/rebuildSearchIndex.php(38): rebuildSearchIndex->execute()

#2 {main}

  thrown in /var/www/html/omp-3.3.0-6/classes/search/MonographSearchIndex.inc.php on line 187

Any ideas? When checking the source code, we couldn’t see something wrong.

Our versions:
OMP 3.3.0.6
OS platform Linux
PHP version 7.3.29-1~deb10u1
Apache version Apache/2.4.38 (Debian)
Database driver mysql
Database server version 5.5.5-10.3.29-MariaDB-0+deb10u1

Thanks a lot in advance!
Julia

Hi @juliadebernitz,

This is issue #7153, which has already been fixed in OMP 3.3.0-7 and newer; there is a patch linked in the issue if you’d like to apply the single fix rather than upgrading.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks, did the upgrade and it is working now!

Best regards
Julia

1 Like

This topic was automatically closed after 5 days. New replies are no longer allowed.