Citation saving does not work with zotero connector (firefox)

Hi,

The zotero connector does not work since I upgraded Zotero desktop application. When saving citations, nothing happens regardless of the website I am trying to download from. The save to zotero button is the right one and the name of the library is correct.

I followed the recommandation (https://www.zotero.org/support/troubleshooting_translator_issues), including reinstalling Zotero application and Zotero connector wth no success.

For example, I tried to save this citation: https://www.nature.com/articles/s41598-026-57851-1 and the debug ID is : D895697967
It says "Save to Zotero" and then there is an error message saying to check for solutions.

Thank you,
Best
  • Submit a Debug ID from Zotero, not the Zotero connector. Running Zotero in Troubleshooting Mode (Help -> Restart in Troubleshooting Mode) might help.
  • Debug ID from zotero: D1653103413

    I tried running in troubleshooting mode, but it did not solve the issue.
  • dstillman Zotero Team
    edited today at 12:23pm
    [JavaScript Error: "Error(s) encountered during statement execution: table itemDataValues has no column named valueNormalized [QUERY: INSERT INTO itemDataValues (valueID, value, valueNormalized) VALUES (?,?,NULL)] [PARAMS: 540843, "[…]"] [ERROR: table itemDataValues has no column named valueNormalized]" {file: "chrome://zotero/content/xpcom/db.js" line: 0}]
    If you check your database integrity from the Advanced → Files and Folders pane of the Zotero settings, does it pass?

    Can you provide a screenshot of the files (zotero.sqlite et al.) at the root of your Zotero data directory?
  • (3)(+0000000): Using data directory C:\Users\[…]\Documents\Zotero
    Also, you've moved your data directory to a custom location. Is this folder cloud-synced?
  • dstillman Zotero Team
    edited today at 12:59pm
    And could you go to Tools → Developer → Run JavaScript, run this, and let us know the result?

    var out = [];
    var q = "SELECT version FROM version WHERE schema=?";
    out.push('userdata: ' + await Zotero.DB.valueQueryAsync(q, ['userdata']));
    out.push('compatibility: ' + await Zotero.DB.valueQueryAsync(q, ['compatibility']));
    q = "SELECT value FROM settings WHERE setting='client' AND key='lastVersion'";
    out.push('lastVersion: ' + await Zotero.DB.valueQueryAsync(q));
    var cols = [
    ['itemDataValues', 'valueNormalized'],
    ['tags', 'nameNormalized'],
    ['creators', 'lastNameNormalized'],
    ['itemAnnotations', 'textNormalized'],
    ['itemAnnotations', 'commentNormalized'],
    ['savedSearchConditions', 'required'],
    ['items', 'clientVersion']
    ];
    for (var i = 0; i < cols.length; i++) {
    var exists = await Zotero.DB.columnExists(cols[i][0], cols[i][1]);
    out.push(cols[i][0] + '.' + cols[i][1] + ': ' + exists);
    }
    out.push('integrity: ' + await Zotero.DB.valueQueryAsync("PRAGMA integrity_check(1)"));
    out.push('vacuum.lastTime: ' + Zotero.Prefs.get('vacuum.lastTime'));
    return out.join('\n');
  • When I check for integrity, nothing happens, the "check database integrity" remains gray like it's still running. Should I find an output in specific folder?

    The screenshot is:

    https://s3.amazonaws.com/zotero.org/images/forums/u2158456/1b99uxkb6qjc5al10wvr.png

    The main database is not synchronized, but a I do have a group library synchronized online (but not stored locally).

    The javascript gives me a syntaxerror which I do not locate in the script:
    SyntaxError: expected expression, got '}'
  • Sorry, the code got cut off. Updated above.
  • The DB integrity check could take a while for a 772 MB database.

    Can you email us logs/upgrade.log from that folder?
  • userdata: 129
    compatibility: 7
    lastVersion: 10.0.3
    itemDataValues.valueNormalized: false
    tags.nameNormalized: false
    creators.lastNameNormalized: false
    itemAnnotations.textNormalized: false
    itemAnnotations.commentNormalized: false
    savedSearchConditions.required: false
    items.clientVersion: true
    integrity: ok
    vacuum.lastTime: undefined
  • Sorry but I am not sure how to email you the upgrade file.
  • dstillman Zotero Team
    edited today at 1:26pm
    Sorry, email to support@zotero.org with a link to this thread.
  • Thanks. And could you give us the output for this?

    var out = [];
    var rows = await Zotero.DB.queryAsync("SELECT rowid, schema, version FROM version ORDER BY rowid");
    for (var i = 0; i < rows.length; i++) {
    out.push('version: ' + rows[i].rowid + ' ' + rows[i].schema + ' = ' + rows[i].version);
    }
    rows = await Zotero.DB.queryAsync("SELECT setting, key, value FROM settings WHERE setting IN ('client', 'db', 'backup', 'search')");
    for (var i = 0; i < rows.length; i++) {
    out.push('settings: ' + rows[i].setting + '.' + rows[i].key + ' = ' + rows[i].value);
    }
    var tables = ['itemDataValues', 'tags', 'itemAnnotations', 'savedSearchConditions', 'items', 'libraries'];
    for (var i = 0; i < tables.length; i++) {
    var sql = await Zotero.DB.valueQueryAsync("SELECT sql FROM sqlite_master WHERE type='table' AND name=?", [tables[i]]);
    out.push('');
    out.push(sql);
    }
    out.push('');
    out.push('fulltextWords exists: ' + await Zotero.DB.tableExists('fulltextWords'));
    return out.join('\n');
  • version: 1944 system = 32
    version: 1951 triggers = 18
    version: 3979 fulltext_1 = 2545
    version: 6068 compatibility = 7
    version: 10114 fulltext_3 = 4321
    version: 10115 fulltext_58 = 25
    version: 10116 fulltext_60 = 193
    version: 10120 fulltext_61 = 9
    version: 10516 userdata = 129
    version: 10517 globalSchema = 44
    version: 10520 translators = 1790419695
    version: 10521 delete = 75
    version: 10522 styles = 1790419695
    version: 10638 repository = 1790685361
    version: 10639 lastcheck = 1790685383
    version: 10640 lastsync = 1790685384
    settings: client.lastCompatibleVersion = 6.0.4
    settings: client.lastVersion = 10.0.3

    CREATE TABLE itemDataValues (
    valueID INTEGER PRIMARY KEY,
    value UNIQUE
    )

    CREATE TABLE tags (
    tagID INTEGER PRIMARY KEY,
    name TEXT NOT NULL UNIQUE
    )

    CREATE TABLE "itemAnnotations" (
    itemID INTEGER PRIMARY KEY,
    parentItemID INT NOT NULL,
    type INTEGER NOT NULL,
    authorName TEXT,
    text TEXT,
    comment TEXT,
    color TEXT,
    pageLabel TEXT,
    sortIndex TEXT NOT NULL,
    position TEXT NOT NULL,
    isExternal INT NOT NULL,
    FOREIGN KEY (itemID) REFERENCES items(itemID) ON DELETE CASCADE,
    FOREIGN KEY (parentItemID) REFERENCES itemAttachments(itemID)
    )

    CREATE TABLE savedSearchConditions (
    savedSearchID INT NOT NULL,
    searchConditionID INT NOT NULL,
    condition TEXT NOT NULL,
    operator TEXT,
    value TEXT,
    PRIMARY KEY (savedSearchID, searchConditionID),
    FOREIGN KEY (savedSearchID) REFERENCES savedSearches(savedSearchID) ON DELETE CASCADE
    )

    CREATE TABLE items (
    itemID INTEGER PRIMARY KEY,
    itemTypeID INT NOT NULL,
    dateAdded TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    dateModified TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    clientDateModified TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    libraryID INT NOT NULL,
    key TEXT NOT NULL,
    version INT NOT NULL DEFAULT 0,
    synced INT NOT NULL DEFAULT 0, clientVersion INT NOT NULL DEFAULT 0,
    UNIQUE (libraryID, key),
    FOREIGN KEY (libraryID) REFERENCES libraries(libraryID) ON DELETE CASCADE
    )

    CREATE TABLE libraries (
    libraryID INTEGER PRIMARY KEY,
    type TEXT NOT NULL,
    editable INT NOT NULL,
    filesEditable INT NOT NULL,
    version INT NOT NULL DEFAULT 0,
    storageVersion INT NOT NULL DEFAULT 0,
    lastSync INT NOT NULL DEFAULT 0
    , archived INT NOT NULL DEFAULT 0, isAdmin INT NOT NULL DEFAULT 0, clientVersion INT NOT NULL DEFAULT 0)

    fulltextWords exists: true
  • dstillman Zotero Team
    edited today at 6:03pm
    OK, please try the Zotero beta, which should fix this.

    (For very large databases, the database upgrade for Zotero 10 could fail and then leave the database in an inconsistent state.)
Sign In or Register to comment.