Title: Error message for function AAM_Backend_Manager::theTitle()
Last modified: December 13, 2017

---

# Error message for function AAM_Backend_Manager::theTitle()

 *  Resolved [steplab](https://wordpress.org/support/users/steplab/)
 * (@steplab)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-message-for-function-aam_backend_managerthetitle/)
 * 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 8 years, 6 months ago by [steplab](https://wordpress.org/support/users/steplab/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * (@vasyltech)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-message-for-function-aam_backend_managerthetitle/#post-9780796)
 * Hi [@steplab](https://wordpress.org/support/users/steplab/),
 * Thank you for the feedback. Based on the official WP docs, this hook expects 
   two parameters
    [https://developer.wordpress.org/reference/hooks/the_title/](https://developer.wordpress.org/reference/hooks/the_title/).
   It has to be something on your website that triggers it without 2 params however
   I’ll add your suggested solution to the core.
 * Thank you,
    Vasyl

Viewing 1 replies (of 1 total)

The topic ‘Error message for function AAM_Backend_Manager::theTitle()’ is closed
to new replies.

 * ![](https://ps.w.org/advanced-access-manager/assets/icon-256x256.png?rev=3447421)
 * [Advanced Access Manager – Access Governance for WordPress](https://wordpress.org/plugins/advanced-access-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-access-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/error-message-for-function-aam_backend_managerthetitle/#post-9780796)
 * Status: resolved