Skip to content

[3.0]: Parsed index always says "partially" completed #9022

@Oldiesmann

Description

@Oldiesmann

Basic Information

Trying to create a new Parsed search index always reports that the index was only "partially" completed no matter how many times you click "Resume", and in fact on PostgreSQL results in an error.

Steps to reproduce

  1. Try creating a parsed search index
  2. Click the "Resume" button when it reports that the index was partially created

Expected result

Parsed index created at some point (on my test boards, both of which have only a handful of topics and less than a dozen posts, I'd expect it to be created without having to stop and resume)

Actual result

MariaDB: Index is never created at all.
PostgreSQL: PHP error after clicking resume

Version/Git revision

16fdbf2

Database Engine

All

Database Version

11.4.8-MariaDB-ubu2204 / PostgreSQL 14.19

PHP Version

8.4.14

Logs

PHP Warning: Undefined variable $query_string in /.../Sources/ErrorHandler.php on line 283; 
PHP Fatal error: Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in /.../Sources/Db/APIs/PostgreSQL.php:754
Stack trace:
#0 /.../Sources/Db/APIs/PostgreSQL.php(754): array_combine()
#1 /.../Sources/ErrorHandler.php(294): SMF\\Db\\APIs\\PostgreSQL->error_insert()
#2 /.../Sources/TaskRunner.php(364): SMF\\ErrorHandler::log()
#3 /.../Sources/ErrorHandler.php(283): SMF\\TaskRunner::handleError()
#4 /.../Sources/TaskRunner.php(382): SMF\\ErrorHandler::log()
#5 [internal function]: SMF\\TaskRunner::handleException()
#6 {main}
 thrown in /.../Sources/Db/APIs/PostgreSQL.php on line 754

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions