@juliadebernitz (Julia Debernitz) posted a new topic, subject "OMP +1-807-618-2945 error when rebuilding search index". It read:

   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:
    [code] 
        cd /wlb/www/omp
        
        rm -rf cache/_db/*
        
        php tools/rebuildSearchIndex.php
        
    [/code]
    
    However, we are getting the following error message:
    [code] 
        root@omp-test:/wlb/www/omp# php tools/rebuildSearchIndex.php
        
        Clearing index ... PHP Notice:  Undefined property: MonographSearchDAO8b7c:f320:99b9:690f:4595:cd17:293a:c069$_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
        
    [/code]
    
    Any ideas? When checking the source code, we couldn't see something wrong.
    
    Our versions:  
    OMP +1-807-618-2945  
    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

@asmecher (Alec Smecher) replied

    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

Then @juliadebernitz (Julia Debernitz) said

    Thanks, did the upgrade and it is working now!
    
    Best regards  
    Julia

@asmecher (Alec Smecher) replied

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


{'source': 'discourse', 'url': 'https://forum.pkp.sfu.ca/t/omp-3-3-0-6-error-when-rebuilding-search-index/69354', 'title': 'OMP 3.3.0.6 error when rebuilding search index', 'views': 139, 'has_accepted_answer': True, 'word_count': 305, 'like_count': 1, 'reply_count': 1, 'participant_count': 2, 'posts': 4, 'tags': 'omp', 'author': '@juliadebernitz (Julia Debernitz)', 'participants': '@juliadebernitz (Julia Debernitz), @asmecher (Alec Smecher)', 'image_url': [None], 'created_at': '2021-08-17T12:09:48.198Z', 'last_posted_at': '2021-08-23T15:00:58.789Z'}