We've started to get a number of automated error e-mails from users who are running PHP 7.2, which was released very recently.
There are a couple of unexpected problems with this, causing Composr to not be compatible:
- count(): Parameter must be an array or an object that implements Countable. In some places in our code we check to see if a list is empty, by counting it – and we consider NULL to be the same as empty. I've already found 3 bugs relating to this, and expect to find some more when going through our test set. It's a very minor coding error that PHP used to be forgiving of.
- Various bugs in the PHP bundled opcache extension. I have worked around these bugs now, and I have also filed 3 bug reports to php.net about them.
Very soon a new Composr patch release will be out that fixes all known issues.
We will also put out a hotfix and link it from this announcement.
EDIT: Here is the hotfix 0003454: PHP 7.2 compatibility issues - Composr CMS feature tracker
Comments
version: 9.0.41, PHP version: 7.2.7
I have recently upgraded my V9 to the above PHP version and are experiencing problems. In my case, download items that have not been validated produce an error. It seems I can resolve the issue by manually setting the 'Validated' entry in the db to 1, accessing it then resetting it to 0.
There may be other issues but I haven't come across them yet.
Will the above mentioned FIX work on my old V9?
Nick
Definitely don't apply a v10 patch to a v9 site.
I have been unofficially maintaining a v9 branch with the most urgent fixes to maintain sites stuck on that version for whatever reason. This is a side effect of support work for some customers.
https://github.com/chrisgraham/ocPortal/commits/v9_urgent_maintenance. Any commits since March this year.
If you tell me an error message I might be able to advise further.