modxcms / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
1.36k stars 529 forks source link

MODX 3 No access policies or policy templates #14696

Closed Ruslan-Aleev closed 5 years ago

Ruslan-Aleev commented 5 years ago

Bug report

Summary

Access policies and policy templates disappeared in the manager panel, see screen.

policies

And errors appear in the console:

[2019-08-24 14:15:41] (ERROR in xPDO\xPDO::call @ /home/a/aleeviz8/m3/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 759) MODX\Revolution\modX::loadClass is deprecated since version 3.0. Replace references to class modAccessPolicyTemplate with MODX\Revolution\modAccessPolicyTemplate to take advantage of PSR-4 autoloading.
[2019-08-24 14:15:41] (ERROR in xPDO\xPDO::getFields @ /home/a/aleeviz8/m3/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1401) MODX\Revolution\modX::loadClass is deprecated since version 3.0. Replace references to class modAccessPolicyTemplate with MODX\Revolution\modAccessPolicyTemplate to take advantage of PSR-4 autoloading.
[2019-08-24 14:15:41] (ERROR @ /home/a/aleeviz8/m3/public_html/core/vendor/xpdo/xpdo/src/xPDO/Om/xPDOObject.php : 227) Error 42S22 executing statement: 
Array
(
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'MODX\Revolution\modAccessPolicyTemplate.name' in 'order clause'
)

Environment

MODX 3

Mark-H commented 5 years ago

Prepeared PR #14706 to fix this - would be great if you could confirm.

Ibochkarev commented 5 years ago

Fixed in #14706 @modxbot close