PHP error with PHP 7.4

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. :wink:

1 Like

Seems that this is an older ClassicPress release.
It’s already swapped in current.

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?

image

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:

1 Like

Okay, I re-installed and emptied the debug log. I’ll see if it comes up again.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.