• Hello

    First, I want to thank the developpers of this plugin

    Anyway, I have 2 error messages in debug mode, located in the UamUserGroup.class.php file.

    The plugin works correctly, but as the messages are repeated many many times in debug mode, it’s quite difficult to detect a real error message when i test the new version of wordpress.

    would it be possible to correct these errors in a future version ? The solutions listed below should work…

    Many thanks

    E Bourrez

    1) in line 570 : undefined index
    if ($this->_aAssignedObjects[$sObjectType] !== null) {
    The warning is caused by checking the value of an array item without first checking that the key exists.
    it should first be checked with :
    “if (isset($this->_aAssignedObjects[$sObjectType])…”

    2) in line 1070 trying to get property of non-object
    $oParent->post_type,
    should be replaced by :
    isset( $oParent->post_type ) ? $oParent->post_type : ”;

    https://ww.wp.xz.cn/plugins/user-access-manager/

The topic ‘error messages in debug mode’ is closed to new replies.