• Not sure how long this has been going on, but in WooCommerce of all places I have been sometimes getting a fatal error log referencing Easy-Testimonials as follows:

    CRITICAL Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty.

    It references line 981 in gp_testimonials.class.php. The line is $doc->loadHTML($html);

    Not sure if this helps but I added these lines just before line 981

    if ( empty($html)){

    return ”;

    }

    I’ll watch to see if it helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter avfadagio

    (@avfadagio)

    I was looking at my WordPress logs and noticed another warning about a deprecated error using a null for a string. I corrected it by replacing line 2163 in easy_testimonials.php with this –

    if ( 0 === strpos($block[‘blockName’] ?? ”, ‘easy-testimonials/’) ) {

    I added the ?? ”

    Thread Starter avfadagio

    (@avfadagio)

    One more. Getting a deprecated warning that an array cannot be false.

    I added this line of code before line 21 in gp_testimonial.class.php

    if(!is_array($data)) $data = [];

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.