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

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Fix Version/s 5.10.0-b2 [ 11914 ]
        admin Paul Phillips made changes -
        Rank Ranked higher
        admin Paul Phillips made changes -
        Rank Ranked lower
        admin Paul Phillips made changes -
        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.
        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.
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.11.0 Sprint 1 [ 194 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.11.0 Sprint 1 [ 194 ] 5.10.0 Sprint 9 [ 198 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 2 hours, 4 minutes [ 7440 ]
        Worklog Id 16916 [ 16916 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        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
        jonathan Jonathan Reissmueller made changes -
        Resolution Fixed [ 1 ]
        Status In Review [ 5 ] Reopened [ 4 ]
        abdy Abdy Franco made changes -
        Time Spent 2 hours, 4 minutes [ 7440 ] 3 hours, 4 minutes [ 11040 ]
        Worklog Id 16937 [ 16937 ]
        abdy Abdy Franco made changes -
        Status Reopened [ 4 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          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:
              Fix Release Date:
              14/May/24

              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