• Resolved steplab

    (@steplab)


    I get this error inside backend inside edit module of a custom type created by Pods plugin before displaing a custom field :
    Warning: Missing argument 2 for AAM_Backend_Manager::theTitle() in *****\wp-content\plugins\advanced-access-manager\Application\Backend\Manager.php on line 137

    I resolved editing inside that line, the function theTitle definition from:

    public function theTitle($title, $id) {
            if (empty($title)) {
                $title = '[No Title]: ID ' . $id;
            }
            
            return $title;
        }

    into this:

        
    public function theTitle($title, $id=null) {
        if (empty($title)) {
                $title = '[No Title]: ID ' . $id;
            }
            
            return $title;
        }
    • This topic was modified 6 years, 11 months ago by steplab.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error message for function AAM_Backend_Manager::theTitle()’ is closed to new replies.