Undefined variable $ajax_delay_ms in …/wpsolr_include.inc.php

Tagged:
  • Zendev
    Participant
    1 month ago #38591

    PHP Warning: Undefined variable $ajax_delay_ms in /var/www/html/wp-content/plugins/wpsolr-free/wpsolr/core/wpsolr_include.inc.php on line 740

    Seems like the $ajax_delay_ms value isn’t always set at runtime.

    Fixed temporarily with

                    if (!isset($ajax_delay_ms)) {
                            $ajax_delay_ms = 500;
                    }

    Added at line ~715

    wpsolr
    Keymaster
    1 month ago #38592

    Please create a ticket on the WPSOLR Free support. We’ll answer there.

    Zendev
    Participant
    1 month ago #38593

    I’m not asking for support because I already debugged the plugin.

    Hopefully my contribution is helpful for someone else who’s experiencing the same PHP Warnings in their logs.

    wpsolr
    Keymaster
    1 month ago #38594

    Thanks for the feedback, it is appreciated. But it would be helpful to others at wordpress.org to know about this warning, and to know when it is solved.

    Zendev
    Participant
    1 month ago #38595

    Ok, good idea. Posted there too.

    wpsolr
    Keymaster
    1 month ago #38596

    Thanks. Already replied.

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

You must be logged in to reply to this topic.