New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new PHP error #112
Comments
syndicatedpost.class.php fix ?? is_countable() has been introduced in PHP 7.3 line 708 can be change from
change to
line 906
change to
line 1304
change to
|
Wouldn't this make the code dependent on PHP 7?
…On Tue, Jan 21, 2020, 13:03 bigalownz ***@***.***> wrote:
syndicatedpost.class.php fix ??
is_countable() has been introduced in PHP 7.3
line 708 can be change from
if (count($aa) > 0) :
change to
if (is_countable($aa) && count($aa) > 0) :
line 906
if (count($refs) > 0) :
change to
if (is_countable($refs) && count($refs) > 0) :
line 1304
if (count($seen) > 0) :
change to
if (is_countable($seen) && count($seen) > 0) :
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#112?email_source=notifications&email_token=AAHOJBTW3JDLSYMZQUKMGSDQ63JAFA5CNFSM4KEWTZB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJPLGHI#issuecomment-576631581>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHOJBTRWVYTAJV3KCG2KYLQ63JAFANCNFSM4KEWTZBQ>
.
|
…Press polyfill function to avert PHP warnings.
@talgalili : Fortunately not. Only PHP 7.3+ provides is_countable() as a native function. But the WordPress core from WP 4.9.6 onward provides it by means of a polyfill function when running under earlier versions of PHP. (Check out |
updated feedwordpress with the resent patch fix
all old errors are gone apart from 1 error
Got error 'PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/wp-content/plugins/feedwordpress/syndicatedpost.class.php on line 708\n
running :
wordpress 5.3.2
PHP 7.2.26
mysql 8.0.18
Apache 2.4.41
The text was updated successfully, but these errors were encountered: