Uploaded image for project: 'FreePBX Contributed'
  1. FreePBX Contributed
  2. FC-293

Cannot add phones to EPM: Field 'global_custom_cfg_data' doesn't have a default value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Triage
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: endpointman
    • Labels:
      None

      Description

      I can no longer add phones to OSS Endpoint Manager.

      I get the error:
      SQLSTATE[HY000]: General error: 1364 Field 'global_custom_cfg_data' doesn't have a default value

      SQL Insert statement (from PHP):
      $sql = "INSERT INTO `endpointman_mac_list` (`mac`, `model`, `template_id`) VALUES ('" . $mac . "', '" . $model . "', '" . $template . "')";

      Table description:
      {{mysql> describe endpointman_mac_list;
      -----------------------------------------------------------------+

      Field                     Type         Null Key Default Extra          

      -----------------------------------------------------------------+

      id                        int(10)      NO    PRI NULL     auto_increment
      mac                       varchar(12) YES   UNI NULL                    
      model                     varchar(11) NO         NULL                    
      template_id               int(11)      NO         NULL                    
      global_custom_cfg_data    longblob     NO         NULL                    
      global_user_cfg_data      longblob     NO         NULL                    
      config_files_override     text         NO         NULL                    
      global_settings_override longblob     YES        NULL                    
      specific_settings         longblob     YES        NULL                    

      -----------------------------------------------------------------+
      9 rows in set (0.00 sec)

      }}

      As you can see the script isn't passing the correct number of arguments to MySQL since global_custom_cfg_data, user_cfg_data, and config_files_override do not have default values but also do not allow NULL.

      I don't think I made any configuration changes lately that would have caused this, but I did migrate FreePBX to a new server.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                WMSInc WMSInc
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.