Page 34 of 58 FirstFirst ... 24323334353644 ... LastLast
Results 331 to 340 of 577
  1. #331
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by gohealth View Post
    I'm running ZC 1.5.6c on PHP7.3.
    ... and which version of DbIo? There were changes for ProductAttribRaw in v1.6.0 (but use v1.6.1).

  2. #332
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by lat9 View Post
    ... and which version of DbIo? There were changes for ProductAttribRaw in v1.6.0 (but use v1.6.1).
    Just noticed that I've got changes staged for DbIo v1.6.2's version of that handler that address the issue reported.

  3. #333
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    I've just submitted v1.6.2 of DbIo for the Zen Cart plugins moderators for review; I'll post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #164: Correct duplicate records generated by the Products handler on multi-lingual stores.
    #166: ProductsAttribsRaw: Correct MySQL error on 'Import (check)' adding new download.
    #167: ProductsAttribsBasic: Correct MySQL error.
    #169: Correct PHP 7.4 deprecated use of curly brackets for array functions.

  4. #334
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    v1.6.2 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2091

  5. #335
    Join Date
    Nov 2011
    Location
    Brisbane, Australia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by lat9 View Post
    Just noticed that I've got changes staged for DbIo v1.6.2's version of that handler that address the issue reported.
    Excellent. I am running 1.6.1, so will download 1.6.2 to address the issues with ProductAttribRaw. Thanks!

  6. #336
    Join Date
    Nov 2011
    Location
    Brisbane, Australia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by lat9 View Post
    I've just submitted v1.6.2 of DbIo for the Zen Cart plugins moderators for review; I'll post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #164: Correct duplicate records generated by the Products handler on multi-lingual stores.
    #166: ProductsAttribsRaw: Correct MySQL error on 'Import (check)' adding new download.
    #167: ProductsAttribsBasic: Correct MySQL error.
    #169: Correct PHP 7.4 deprecated use of curly brackets for array functions.
    Thanks, this didn't seem to fix my issue. The issue is on the IMPORT (FULL), not the Check. The IMPORT (Check) however does show what I believe to be the issue during the IMPORT - a DELETE FROM products_attributes_download WHERE products_attributes_id = LIMIT 1

    I have installed v1.6.2 of addon, running on ZC 1.5.6c, PHP7.3. When ADDING new ProductsAttribsRaw, I still get the following on IMPORT (Check):
    2020-06-08 11:40:35: importBuildSqlQuery for products_attributes:
    INSERT INTO products_attributes (`products_id`, `options_id`, `options_values_id`, `options_values_price`, `price_prefix`, `products_options_sort_order`, `product_attribute_is_free`, `products_attributes_weight`, `products_attributes_weight_prefix`, `attributes_display_only`, `attributes_default`, `attributes_discounted`, `attributes_image`, `attributes_price_base_included`, `attributes_price_onetime`, `attributes_price_factor`, `attributes_price_factor_offset`, `attributes_price_factor_onetime`, `attributes_price_factor_onetime_offset`, `attributes_qty_prices`, `attributes_qty_prices_onetime`, `attributes_price_words`, `attributes_price_words_free`, `attributes_price_letters`, `attributes_price_letters_free`, `attributes_required`)
    VALUES (33, 4, 4, 41.95, '', 0, 1, 0.1, '', 0, 0, 1, '', 1, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0)
    2020-06-08 11:40:35: importUpdateRecordKey, removing record: DELETE FROM products_attributes_download WHERE products_attributes_id = LIMIT 1

    The INSERT looks good. The key issue is with the DELETE FROM entry that is created. I'm not sure why on INSERT it is doing a delete from this table?

    On Import (FULL), this is the error that is displayed on the browser (ie, not in the log - No log file is actually created. The message gets displayed on browser page /config/dbio_manager.php?action=file):
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1
    in:
    [DELETE FROM products_attributes_download WHERE products_attributes_id = LIMIT 1]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Thanks!

  7. #337
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Thanks for the detailed report (I appreciate it). I'll give this a deeper look later today.

  8. #338
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by lat9 View Post
    Thanks for the detailed report (I appreciate it). I'll give this a deeper look later today.
    Days are getting long down here in Florida. I've got a correction staged on GitHub for the v1.6.3 release of DbIo.

    Find this method in /admin/includes/classes/dbio/DbIoProductsAttribsRawHandler.php:
    Code:
        protected function importUpdateRecordKey($table_name, $table_fields, $record_key_value)
        {
            $proceed_with_update = true;
            if ($table_name == TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD) {
                if (empty($table_fields['products_attributes_filename']['value'])) {
                    $proceed_with_update = false;
    
                    // -----
                    // If the current DbIo operation is an import-check, simply output a debug message containing
                    // the record-deletion SQL.  Otherwise, actually run the SQL, removing that record.
                    //
                    $sql = 
                        "DELETE FROM " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " WHERE products_attributes_id = " . $this->key_fields['products_attributes_id'] . " LIMIT 1";
                    if ($this->operation == 'check') {
                        $this->debugMessage("importUpdateRecordKey, removing record: $sql", self::DBIO_STATUS);
                    } else {
                        $GLOBALS['db']->Execute($sql);
                    }
                } elseif ($this->import_is_insert) {
                    $table_fields['products_attributes_id'] = array(
                        'value' => $record_key_value,
                        'type' => 'integer',
                    );
                }
            }
            return ($proceed_with_update) ? $table_fields : false;
        }
    ... and add the highlighted clause:
    Code:
        protected function importUpdateRecordKey($table_name, $table_fields, $record_key_value)
        {
            $proceed_with_update = true;
            if ($table_name == TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD) {
                if (!$this->import_is_insert && empty($table_fields['products_attributes_filename']['value'])) {
                    $proceed_with_update = false;
    
                    // -----
                    // If the current DbIo operation is an import-check, simply output a debug message containing
                    // the record-deletion SQL.  Otherwise, actually run the SQL, removing that record.
                    //
                    $sql = 
                        "DELETE FROM " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " WHERE products_attributes_id = " . $this->key_fields['products_attributes_id'] . " LIMIT 1";
                    if ($this->operation == 'check') {
                        $this->debugMessage("importUpdateRecordKey, removing record: $sql", self::DBIO_STATUS);
                    } else {
                        $GLOBALS['db']->Execute($sql);
                    }
                } elseif ($this->import_is_insert) {
                    $table_fields['products_attributes_id'] = array(
                        'value' => $record_key_value,
                        'type' => 'integer',
                    );
                }
            }
            return ($proceed_with_update) ? $table_fields : false;
        }

  9. #339
    Join Date
    Sep 2011
    Posts
    77
    Plugin Contributions
    0

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Hey Lat9

    I wanted to change categories on products so I downloaded the product file and edited and re-imported. It didn't update changes. I suspect this is because they are existing products and DBio isn't making the new categories . Is there an Dbio command to delete products ?, then I could re-import them as (ADD) new and create the categories .

    Thanks for any help!
    Paul

  10. #340
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,349
    Plugin Contributions
    94

    Default Re: Database I/O Manager (DbIo) Plugin [Support Thread]

    Quote Originally Posted by Hasher View Post
    Hey Lat9

    I wanted to change categories on products so I downloaded the product file and edited and re-imported. It didn't update changes. I suspect this is because they are existing products and DBio isn't making the new categories . Is there an Dbio command to delete products ?, then I could re-import them as (ADD) new and create the categories .

    Thanks for any help!
    Paul
    Paul, here's the link to the details for the ProductsHandler: https://github.com/lat9/dbio/blob/ma...uctshandler.md

    That handler provides both an ADD and REMOVE command.

 

 
Page 34 of 58 FirstFirst ... 24323334353644 ... LastLast

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 213
    Last Post: 18 Nov 2024, 04:17 AM
  2. Back to Top Plugin [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 6 Feb 2016, 10:52 PM
  3. v151 Plug 'n' Pay plugin [Support Thread]
    By KetchRescue in forum Addon Payment Modules
    Replies: 5
    Last Post: 28 Nov 2015, 04:56 AM
  4. Justuno Plugin [Support Thread]
    By JustunoApp in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 May 2015, 11:00 PM
  5. VendingBox Plugin Support Thread
    By vb_support in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 10 Feb 2013, 07:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR