• Resolved Mike

    (@mike314156)


    Hello,

    I have a current site that I am trying to transfer all the plugin data to a new one. When I import the csv, nothing was happening. When I looked at the console log, there was a error message. Here is what it said:

    error
    cn-csv-import.min.js?ver=9.3.1:1 Object

    Here is the data that was in the array Object:

    Object
    abort: ? (a)
    always: ? ()
    complete: ? ()
    done: ? ()
    error: ? ()
    fail: ? ()
    getAllResponseHeaders: ? ()
    getResponseHeader: ? (a)
    overrideMimeType: ? (a)
    pipe: ? ()
    progress: ? ()
    promise: ? (a)
    readyState: 4
    responseJSON: {success: false, data: {…}}
    responseText: “{“success”:false,”data”:{“form”:{“id”:”cn-import-category”,”action”:”csv_upload”,”type”:”category”,”nonce”:”916f059980″,”_wp_http_referer”:”\/wp-admin\/admin.php?page=connections_tools&tab=import”,”cn-upload-csv-category”:”Upload”},”message”:”Syntax error found on row 1. A single double-quote was found within an enclosed string. Enclosed double-quotes must be escaped with a second double-quote.”}}”
    setRequestHeader: ? (a,b)
    state: ? ()
    status: 200
    statusCode: ? (a)
    statusText: “OK”
    success: ? ()
    then: ? ()
    __proto__: Object

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Mike

    (@mike314156)

    Here is the formatted json responseText value for you:

    [
    {
    “success”: false,
    “data”: {
    “form”: {
    “id”: “cn-import-category”,
    “action”: “csv_upload”,
    “type”: “category”,
    “nonce”: “916f059980”,
    “_wp_http_referer”: “/wp-admin/admin.php?page=connections_tools&tab=import”,
    “cn-upload-csv-category”: “Upload”
    },
    “message”: “Syntax error found on row 1. A single double-quote was found within an enclosed string. Enclosed double-quotes must be escaped with a second double-quote.”
    }
    }
    ]

    Plugin Author Steven

    (@shazahm1hotmailcom)

    My initial thought is the file is an invalid formatted CSV file. Please go thru the file and make sure it meets the requirements:

    https://connections-pro.com/documentation/csv-import/#CSV_File_Setup_Requirements

    and take a look at the Tips:

    https://connections-pro.com/documentation/csv-import/#Tips

    judging from the error, you may have an issue with quotes in he CSV file. Assuming you are using Excel or another spreadsheet app, you should no be using quotes within the cells. When the app saves the CSV file, it will properly quote and escape quotes automatically.

    Thread Starter Mike

    (@mike314156)

    I exported the csv from the plugin. Do you escape the qoutes from the export option?

    Here is a download link to the csv: https://fga.8c2.myftpupload.com/wp-content/uploads/2019/10/cn-export-all-10-08-2019-4.csv

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Yes, the export CSV files are properly formatted, quoted and escaped. I downloaded the file from the link and did a test import on my test site and it imported without any errors.

    Is that the same exact file you are importing?

    Thread Starter Mike

    (@mike314156)

    Yes it is.

    Thread Starter Mike

    (@mike314156)

    Here is the system information if something isn’t set up correctly:

    Here is my site health info:

    ### Begin System Info ###

    — Site Info

    Site URL: https://fga.8c2.myftpupload.com
    Home URL: https://fga.8c2.myftpupload.com
    Multisite: No

    — Hosting Provider

    Host: DBH: fga842859049163.db.42859049.58c.hostedresource.net:3309, SRV: fga.8c2.myftpupload.com

    — Webserver Configuration

    Operating System: Linux?(64?Bit)
    PHP Version: 7.2.15
    MySQL Version: 5.6.32
    SQL Mode: NO_ENGINE_SUBSTITUTION
    Webserver Info: Apache

    — PHP Configuration

    Safe Mode: Disabled
    Memory Limit: 256M
    Memory Used: 7.64MB
    Upload Max Size: 100M
    Post Max Size: 100M
    Upload Max Filesize: 100M
    Time Limit: 300
    Max Input Vars: 1000
    Allow URL fopen: Yes
    PCRE Backtrack Limit 1000000
    Display Errors: N/A
    PHP Arg Seperator: &

    — PHP Extensions

    cURL: Supported
    fsockopen: Supported
    SOAP Client: Installed
    Suhosin: Not Installed
    Exif: Version: 7.2.
    IPTC Parse: Installed
    XML Parse: Installed

    — GD Support

    GD Version: 2.2.5
    FreeType Support: Yes
    FreeType Linkage: with freetype
    GIF Read Support: Yes
    GIF Create Support: Yes
    JPEG Support: Yes
    PNG Support: Yes
    WBMP Support: Yes
    XPM Support: Yes
    XBM Support: Yes
    WebP Support: Yes
    BMP Support: Yes
    JIS-mapped Japanese Font Support: No

    — Session Configuration

    Session: Disabled

    — User Browser

    Platform: Windows
    Name: Chrome
    Version: 77.0.3865.90
    User Agent String: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

    — WordPress Configuration
    Version: 5.2.3
    Language: en_US
    ABSPATH /var/www/
    Permalink Structure: /%category%/%postname%/
    Active Theme: Twenty Nineteen 1.4
    Show On Front: page
    Page On Front: Home (#6)
    Page For Posts: Blog (#158)
    Remote Post: wp_remote_post() works
    Table Prefix: Length: 14 Status: Acceptable
    Admin AJAX:
    WP_DEBUG: Disabled
    Memory Limit: 40M
    Max Memory Limit: 256M
    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed

    — Connections Configuration

    Version: 9.3.1
    DB Version: 0.6

    CN_MULTISITE_ENABLED: FALSE
    CN_DIR_NAME: connections
    CN_BASE_NAME: connections/connections.php
    CN_PATH: /var/www/wp-content/plugins/connections/
    CN_URL: https://fga.8c2.myftpupload.com/wp-content/plugins/connections/
    CN_RELATIVE_URL: /wp-content/plugins/connections/
    CN_IMAGE_PATH: /var/www/wp-content/uploads/connections-images/
    CN_IMAGE_BASE_URL: https://fga.8c2.myftpupload.com/wp-content/uploads/connections-images/
    CN_IMAGE_RELATIVE_URL: /wp-content/uploads/connections-images/
    CN_TEMPLATE_PATH: /var/www/wp-content/plugins/connections/templates/
    CN_TEMPLATE_URL: https://fga.8c2.myftpupload.com/wp-content/plugins/connections/templates/
    CN_TEMPLATE_RELATIVE_URL: /wp-content/plugins/connections/templates/

    — Connections Table Structure

    CN_ENTRY_TABLE: wp_connections
    CN_ENTRY_ADDRESS_TABLE: wp_connections_address
    CN_ENTRY_PHONE_TABLE: wp_connections_phone
    CN_ENTRY_EMAIL_TABLE: wp_connections_email
    CN_ENTRY_MESSENGER_TABLE: wp_connections_messenger
    CN_ENTRY_SOCIAL_TABLE: wp_connections_social
    CN_ENTRY_LINK_TABLE: wp_connections_link
    CN_ENTRY_DATE_TABLE: wp_connections_date
    CN_ENTRY_TABLE_META: wp_connections_meta
    CN_TERMS_TABLE: wp_connections_terms
    CN_TERM_TAXONOMY_TABLE: wp_connections_term_taxonomy
    CN_TERM_RELATIONSHIP_TABLE: wp_connections_term_relationships

    DESCRIBE wp_connections
    +——————–+————-+——+—–+——————-+—————————–+
    | Field | Type | Null | Key | Default | Extra |
    +——————–+————-+——+—–+——————-+—————————–+
    | ts | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
    +——————–+————-+——+—–+——————-+—————————–+
    | date_added | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | ordo | int(11) | NO | | 0 | |
    +——————–+————-+——+—–+——————-+—————————–+
    | entry_type | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | visibility | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | slug | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | family_name | tinytext | NO | MUL | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | honorific_prefix | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | first_name | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | middle_name | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | last_name | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | honorific_suffix | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | title | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | organization | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | department | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | contact_first_name | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | contact_last_name | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | addresses | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | phone_numbers | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | email | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | im | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | social | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | links | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | dates | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | birthday | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | anniversary | tinytext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | bio | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | notes | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | excerpt | text | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | options | longtext | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | added_by | bigint(20) | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | edited_by | bigint(20) | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | owner | bigint(20) | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | user | bigint(20) | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+
    | status | varchar(20) | NO | | | |
    +——————–+————-+——+—–+——————-+—————————–+

    DESCRIBE wp_connections_address
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | line_1 | tinytext | NO | MUL | | |
    +————+———————+——+—–+———+——-+
    | line_2 | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | line_3 | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | line_4 | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | district | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | county | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | city | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | state | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | zipcode | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | country | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | latitude | decimal(15,12) | YES | | | |
    +————+———————+——+—–+———+——-+
    | longitude | decimal(15,12) | YES | | | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_phone
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | number | tinytext | NO | MUL | | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_email
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | address | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_messenger
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | uid | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_social
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | url | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_link
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+———+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | title | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | url | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | target | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+
    | follow | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | image | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | logo | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+———+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_date
    +————+———————+——+—–+————+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+————+——-+
    | entry_id | bigint(20) unsigned | NO | PRI | 0 | |
    +————+———————+——+—–+————+——-+
    | order | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+————+——-+
    | preferred | tinyint(3) unsigned | NO | | 0 | |
    +————+———————+——+—–+————+——-+
    | type | tinytext | NO | | | |
    +————+———————+——+—–+————+——-+
    | date | date | NO | | 0000-00-00 | |
    +————+———————+——+—–+————+——-+
    | visibility | tinytext | NO | | | |
    +————+———————+——+—–+————+——-+

    DESCRIBE wp_connections_meta
    +————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+——-+
    | entry_id | bigint(20) unsigned | NO | MUL | 0 | |
    +————+———————+——+—–+———+——-+
    | meta_key | varchar(255) | YES | MUL | | |
    +————+———————+——+—–+———+——-+
    | meta_value | longtext | YES | | | |
    +————+———————+——+—–+———+——-+

    DESCRIBE wp_connections_terms
    +————+————–+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————+————–+——+—–+———+——-+
    | name | varchar(200) | NO | MUL | | |
    +————+————–+——+—–+———+——-+
    | slug | varchar(200) | NO | MUL | | |
    +————+————–+——+—–+———+——-+
    | term_group | bigint(10) | NO | | 0 | |
    +————+————–+——+—–+———+——-+

    DESCRIBE wp_connections_term_taxonomy
    +————-+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +————-+———————+——+—–+———+——-+
    | term_id | bigint(20) | NO | MUL | 0 | |
    +————-+———————+——+—–+———+——-+
    | taxonomy | varchar(32) | NO | MUL | | |
    +————-+———————+——+—–+———+——-+
    | description | longtext | NO | | | |
    +————-+———————+——+—–+———+——-+
    | parent | bigint(20) unsigned | NO | | 0 | |
    +————-+———————+——+—–+———+——-+
    | count | bigint(20) | NO | | 0 | |
    +————-+———————+——+—–+———+——-+

    DESCRIBE wp_connections_term_relationships
    +——————+———————+——+—–+———+——-+
    | Field | Type | Null | Key | Default | Extra |
    +——————+———————+——+—–+———+——-+
    | term_taxonomy_id | bigint(20) unsigned | NO | PRI | 0 | |
    +——————+———————+——+—–+———+——-+
    | term_order | int(11) | NO | | 0 | |
    +——————+———————+——+—–+———+——-+

    — Connections Folder Permissions

    Image Path Exists: Yes
    Image Path Writeable: Yes

    Template Path Exists: No
    Template Path Writeable: No

    Cache Path Exists: Yes
    Cache Path Writeable: Yes
    — Must-Use Plugins

    System Plugin: 1.0.0
    System Plugin: 3.10.1

    — WordPress Active Plugins

    Connections Business Directory: 9.3.1
    Contact Form 7: 5.1.4
    Packerland Custom Blocks: 1.0.3
    Yoast SEO: 12.2

    — WordPress Inactive Plugins

    Atomic Blocks – Gutenberg Blocks Collection: 2.1.0
    File Manager: 5.1.7
    Simple Htaccess Redirects: 1.5.8
    WordPress Importer: 0.6.4

    ### End System Info ###

    Plugin Author Steven

    (@shazahm1hotmailcom)

    ok, please try the plugin and theme conflict checks. here are the links with more details:

    How do I check for a plugin conflict?

    How do I check for a theme conflict?

    Hope this helps, please let me know what you learn.

    Thread Starter Mike

    (@mike314156)

    I deactivated all plugins besides yours, and have Twenty Nineteen installed/active.

    No luck sadly.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Can you please open a new support ticket in your account so I can help debug further? Thanks! Here’s the link:

    https://connections-pro.com/my-account/support-tickets/

    ps. I’m going to mark this issue resolved and we’ll pick this up in the support ticket.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Importing Data Error’ is closed to new replies.