Error 404 when trying to convert lead

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crisztina
    Junior Member
    • Oct 2020
    • 6

    Error 404 when trying to convert lead

    Hi,

    I'm using Version 5.9.4 and when I try to convert lead it throws "Error 404". I've checked the log and here is the message, but I haven't made any changes on code.

    Espo.DEBUG: API (404) Action POST 'getConvertAttributes' does not exist in controller 'Lead'

    Any suggestion?

    Thanks.

  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,

    You need to check :

    PHP Code:
    
    Searching 34832 files for "getConvertAttributes"
    
    /application/Espo/Modules/Crm/Controllers/Lead.php:
    56 }
    57
    58: public function postActionGetConvertAttributes($params, $data, $request)
    59 {
    60 if (empty($data->id)) {
    ..
    62 }
    63
    64: return $this->getRecordService()->getConvertAttributes($data->id);
    65 }
    66 }
    
    /application/Espo/Modules/Crm/Services/Lead.php:
    85 }
    86
    87: public function getConvertAttributes($id)
    88 {
    89 $lead = $this->getEntity($id);
    
    /client/modules/crm/src/views/lead/convert.js:
    93
    94 if (scopeList.length) {
    95: this.ajaxPostRequest('Lead/action/getConvertAttributes', {
    96 id: this.model.id
    97 }).done(function (data) { 
    
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • crisztina
      Junior Member
      • Oct 2020
      • 6

      #3
      Hello,

      I've checked each of the files and everything is OK. Any other suggestions please?

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1476

        #4
        Hello,
        log file from php/espocrm/apache or .. ?

        if you have these file, certainly "permission" error.

        maybe cache, clearCache/Rebuild
        php version
        espocrm version


        Without more information.. it's difficult
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        Working...