Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @sydro that’s another error, it doesn’t have anything to do with the php8 support or the implode function changes(params position)
    I remember having this error too but it was related to the rss link used in the shortcode !
    This is what i would suggest, go to your shortcode, copy the rss link, open a new tab in your browser, paste the rss link there, if you don’t get the rss xml file, means you are using a wrong link, just fix it ??

    • This reply was modified 2 years, 4 months ago by flashios09.

    This is the patch for php8:
    edit this file:
    /path_to_wordpress/wp-content/plugins/wp-rss-retriever/inc/lib/simplepie/library/SimplePie/Parse/Date.php:544

    // This is for php version 8:
                    // the php implode function now use the <code>$separator</code> as first param and the <code>$array</code> to implode as second param
                    // see https://www.php.net/manual/en/function.implode.php#refsect1-function.implode-changelog
                    $phpVersion = substr(phpversion(), 0, 1);
                    if ($phpVersion === '8') {
                            $this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
                            $this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')'; 
                    } elseif (in_array($phpVersion, ['5', '7'])) {
                            $this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
                            $this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')';
                    }
Viewing 2 replies - 1 through 2 (of 2 total)