Closed paulrwest closed 7 years ago
OK after some debugging a simple fix is checking for not an array as well as empty:
/vendor/quickapps-plugins/user/src/Model/Entity/AccessibleEntityTrait.php, line 36
if (empty($roles) || !is_array($roles)) {
return true;
}
I'm not sure why it's suddenly sending a string rather than an array to isAccessible so I wont do a PR or anything until you take a further look Chris.
Hi Paul,
What you mention was already fixed days ago here: https://github.com/quickapps/cms/commit/27d44a1935a006dcd5c5d59a50a76faf2ad035c6
The problem is caused by CakePHP introducing its own isAccesible
method which collides with QACMS's AccessibleEntityTrait::isAccesible
The commit I mentioned should solve this situation.
Thanks Chris, when is this commit likely to be merged to dev-master and released?
Damn, I forgot to split after this change, sorry for that. Everything should be up to date now.
I think I should document this:
This repo (quickapps/cms) is used for CI proposes only. Each plugin has its own separated (and independent) repo, these repos are the ones used by composer actually.
This repo (quickapps/cms) holds all latest changes for each plugin, however those changes must be manually propagated to each plugin repo using this splitter script: https://github.com/quickapps/cms/blob/2.0/splitter.php
Please note my additional comment with the fix I'm now not sure if this was due to updating cakePHP or the CMS...
On editing content the system thinks there's no data submitted for all EAV's even though there is. I think this is due to how CakePHP has changed the data model in the request class data() is depreciated and getData() is the new function. Something in the version update is breaking the entire CMS edit abilities.
https://book.cakephp.org/3.0/en/appendices/3-4-migration-guide.html
Running on: PHP Version 7.0.13-0ubuntu0.16.04.1 Packages:
The log file shows this error for each Field: