Critical Error on SERP after upgrade to 24.0.1

  • nmckay
    Participant
    1 year, 3 months ago #54379

    I attempted to update WP Solr Pro to version 24.0.1. After the update, I received a critical error when attempting to use the site search. After rolling the plugin back to the previous version, the search works again. So it appears there is some conflict with the latest version of WP Solr Pro search.

    Here is the error I see in debug log:

    [01-May-2025 18:11:55 UTC] PHP Fatal error: Declaration of React\Promise\Internal\FulfilledPromise::then(?callable $onFulfilled = null, ?callable $onRejected = null): React\Promise\PromiseInterface must be compatible with React\Promise\PromiseInterface::then(?callable $onFulfilled = null, ?callable $onRejected = null, ?callable $onProgress = null) in /wordpress/modes-cms-militaryonesource/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/react/promise/src/Internal/FulfilledPromise.php on line 37

    wpsolr
    Keymaster
    1 year, 3 months ago #54380

    Thanks for the feedback. We will investigate to remove the React dependency from WPSOLR’s composer on next release.

    wpsolr
    Keymaster
    1 year, 3 months ago #54401

    After investigation, it will not be possible to remove the dependency.

    => react/promise is required by ezimuel/ringphp, itself required by opensearch-project/opensearch-php

    nmckay
    Participant
    1 year, 3 months ago #54402

    Is there some setting I need to toggle or perhaps a re-indexing that I need to do to correct the problem in my instance? I would think a lot of other implementations of WP Solr Pro would break as well if this was a widespread problem. Perhaps there is something I can do to correct the problem that is not code related. Or do I need to install React on my search server?

    wpsolr
    Keymaster
    1 year, 3 months ago #54404

    A plugin is probably installing the same library, but in an older version, creating this conflict.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.