Version9 and PHP 8 compatibility
Permalink Browser Info Environment
Following on from our discussion in Ajax Forms - Express Edition Light
Running this package on Concrete CMS version 9 and PHP 8 gives the following error:
Undefined property: Concrete\Package\KalmoyaHiddenAttributes\Attribute\HiddenAttributeDynamic\Controller::$avID
I appreciate this package is not expected to work yet - any ETA on compatibility?
Running this package on Concrete CMS version 9 and PHP 8 gives the following error:
Undefined property: Concrete\Package\KalmoyaHiddenAttributes\Attribute\HiddenAttributeDynamic\Controller::$avID
I appreciate this package is not expected to work yet - any ETA on compatibility?
Type: | Pre-Sale |
---|---|
Status: | Resolved |
Thank you for the heads up. So far no ETA but I'll see what I can do and try to do it quickly
Hello again,
I'm almost ready for this actually, it was faster than expected but I think I found a bug in Concrete that makes using this package a bit problematic under certain circumstances.
Could you run a test to see if you get the same problem. I'm on concrete 9.1.2.
Create an express form from the block, just add a field or 2. Just use normal core fields no need to use hidden ones. Also don't use the form already installed by Concrete, create a new one.
Then submit the form.
Then go to the dashboard to see the submission, edit it, and do you get errors when you try to save?
Let me know.
I'm almost ready for this actually, it was faster than expected but I think I found a bug in Concrete that makes using this package a bit problematic under certain circumstances.
Could you run a test to see if you get the same problem. I'm on concrete 9.1.2.
Create an express form from the block, just add a field or 2. Just use normal core fields no need to use hidden ones. Also don't use the form already installed by Concrete, create a new one.
Then submit the form.
Then go to the dashboard to see the submission, edit it, and do you get errors when you try to save?
Let me know.
I'm seeing the same thing. With PHP7.4 I get this:
Doctrine \ DBAL \ Exception \ InvalidFieldNameException
An exception occurred while executing 'UPDATE TestFormExpressSearchIndexAttributes SET ak_name = ? WHERE exEntryID = ?' with params [null, 20473]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list'
Previous exceptions
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list' (42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list' (42S22)
If I have PHP8 on I get an error from Anti Spam Master:
Undefined array key "timeOfLastIpLogClean"
Doctrine \ DBAL \ Exception \ InvalidFieldNameException
An exception occurred while executing 'UPDATE TestFormExpressSearchIndexAttributes SET ak_name = ? WHERE exEntryID = ?' with params [null, 20473]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list'
Previous exceptions
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list' (42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ak_name' in 'field list' (42S22)
If I have PHP8 on I get an error from Anti Spam Master:
Undefined array key "timeOfLastIpLogClean"
Yes Anti Spam Master is not v8 ready yet.
So anyway, the hack to deal with the core issue is to navigate to the Express object created by the form in the dashboard and then edit and save each attribute. Just put them in edit mode and save, no need to change anything.
I'm going to keep looking for a solution in the core so i can push it in GitHub
So anyway, the hack to deal with the core issue is to navigate to the Express object created by the form in the dashboard and then edit and save each attribute. Just put them in edit mode and save, no need to change anything.
I'm going to keep looking for a solution in the core so i can push it in GitHub
Hello,
I fixed the package for PHP 8 and Concrete v9 and I pushed a PR to Concrete's Core for the bug I mentioned. Hopefully it gets accepted.
Update to version 3.0 of the package and you should be good to go
I fixed the package for PHP 8 and Concrete v9 and I pushed a PR to Concrete's Core for the bug I mentioned. Hopefully it gets accepted.
Update to version 3.0 of the package and you should be good to go
This is is looking good for me now. Many thanks.