Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5112

Import Manager: WHMCS errors on ticket import

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.9.0
    • Fix Version/s: 5.10.0-b2
    • Component/s: Plugins
    • Labels:
      None

      Description

      When importing from WHMCS, the following error is sometimes encountered:

      importSupportTickets
      -----------------
      SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'code' at row 1

      This has to do with the tbltickets.tid column, which contains ticket numbers in WHMCS being a VARCHAR(128). The corresponding table in Blesta, tickets.code is INT(10).

      WHMCS tickets can be all numeric, but sometimes they may contain a "-" or other characters, as it is user defined.

      We need to somehow cast/convert VARCHAR to INT, in such a way that it should not generate duplicates.

      A simple solution would be to use the tbltickets.id value as the code instead, though all tickets would have a different ticket number than previously.

        Activity

        Hide
        jonathan Jonathan Reissmueller added a comment -

        Let's just update support_tickets.code to support a varchar(128). Doesn't break anything and maybe useful in the future

        Show
        jonathan Jonathan Reissmueller added a comment - Let's just update support_tickets.code to support a varchar(128). Doesn't break anything and maybe useful in the future

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours, 4 minutes
              3h 4m

                Agile