I upgraded to 7.4. My debug log keeps getting this error:
PHP Deprecated : implode(): Passing glue string after array is deprecated. Swap the parameters in [redacted]/wp-includes/SimplePie/Parse/Date.php on line 545
I don’t know what it’s related to.
1 Like
It’s referring to this on line 545…
$this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
Try a test of replacing that line with…
$this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
…of course, on a throwaway site, since editing core files is never recommended.
1 Like
Simone
October 1, 2020, 12:44pm
3
Seems that this is an older ClassicPress release.
It’s already swapped in current.
var $user = array();
/**
* Create new SimplePie_Parse_Date object, and set self::day_pcre,
* self::month_pcre, and self::built_in
*
* @access private
*/
public function __construct()
{
$this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
$this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')';
static $cache;
if (!isset($cache[get_class($this)]))
{
$all_methods = get_class_methods($this);
foreach ($all_methods as $method)
{
if (strtolower(substr($method, 0, 5)) === 'date_')
1 Like
@NyssaTheHobbit So, it’s just a matter of updating your site and you’re good to go.
Dashboard > Update
1 Like
It’s already running on 1.2.0.
Maybe you can try the Re-install Now
button?
2 Likes
I FTP’d in and saw that the file was last updated 2 years ago, so I replaced it with the latest core file. I can also try the re-install button.
Yeah, go ahead with the re-install, just to make sure it’s fresh.
1 Like
Okay, I re-installed and emptied the debug log. I’ll see if it comes up again.
1 Like
system
Closed
October 3, 2020, 6:45pm
10
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.