Skip to content
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

[4.0] php 7.2 compatibility #19216

Closed
wants to merge 3 commits into from
Closed

Conversation

brianteeman
Copy link
Contributor

Due to a change With php 7.2 the control panel shows several errors with the article related modules

Warning: count(): Parameter must be an array or an object that implements Countable in C:\Apache24\htdocs\cms4\administrator\components\com_content\Model\ArticlesModel.php on line 307

Due to a change With php 7.2 the control panel shows several errors with the article related modules

> Warning: count(): Parameter must be an array or an object that implements Countable in C:\Apache24\htdocs\cms4\administrator\components\com_content\Model\ArticlesModel.php on line 307
@mbabker
Copy link
Contributor

mbabker commented Dec 29, 2017

Since #18438 was merged this should be fixed by branch merging staging -> 3.9 -> 4.0. GitHub says the 4.0 branch is 130 commits behind staging right now so there's a bit of work waiting whenever the merge happens next.

@brianteeman
Copy link
Contributor Author

OK will leave open for now and hope that @wilonge brings 4.0 upto date and then if not needed then this can be closed

@wilsonge
Copy link
Contributor

Shame that person doesn't exist on github :P cause sounds like a tough one for him :) (i'll get on it tomorrow)

@brianteeman
Copy link
Contributor Author

i'll get on it tomorrow)

Is it tomorrow yet?

@wilsonge
Copy link
Contributor

Kinda - i got 3.8.3 merged as of Tuesday and I've made a start on 3.8.5 locally

@wilsonge
Copy link
Contributor

In fact actually it is

if (!is_array($categoryId))
{
$categoryId = $categoryId ? array($categoryId) : array();
}
is the fix @mbabker mentioned that went into 3.8.3 - so closing this

@wilsonge wilsonge closed this Feb 14, 2018
@wilsonge
Copy link
Contributor

Thanks for the prod tho!

@brianteeman brianteeman deleted the 72count40 branch February 15, 2018 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants