Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Posts
    34
    Plugin Contributions
    0

    Default Admin - Modules - Shipping issues

    Need help with this error below:

    [03-Apr-2023 10:23:20 America/Los_Angeles] Request URI: /*****/index.php?cmd=modules&set=shipping&module=freeshipper, IP address: xx.xxx.x.xxx
    #1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:667]
    #2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:634]
    #3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:275]
    #4 queryFactory->Execute() called at [/includes/modules/shipping/usps.php:1096]
    #5 usps->check() called at [/admin/modules.php:189]
    #6 require(/admin/modules.php) called at [/admin/index.php:11]
    --> PHP Fatal error: 1366:Incorrect string value: '\x99 Padd...' for column `**database**`.`orders`.`shipping_method` at row 61657 :: ALTER TABLE orders MODIFY shipping_method varchar(255) NOT NULL DEFAULT '' ==> (as called by) /includes/modules/shipping/usps.php on line 1096 <== in /includes/classes/db/mysql/query_factory.php on line 667.



    I went into Tables, shipping_method is set to varbinary 255 / any ideas?

    Getting shipping errors on checkout from customers and no display of options in admin/shipping modules.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Admin - Modules - Shipping issues

    Not sure how that field got to be varbinary but I guess it is now. For now you're going to have to remove the ALTER TABLE block from usps.php.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Admin - Modules - Shipping issues

    Should it look like this now?:

    global $sniffer;
    $results = $sniffer->field_type(TABLE_ORDERS, 'shipping_method', 'varchar(255)', true);
    if ($results !== true) {
    $sql = "" . TABLE_ORDERS . " MODIFY shipping_method varchar(255) NOT NULL DEFAULT ''";
    $db->Execute($sql);

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Admin - Modules - Shipping issues

    No. Remove that whole block of lines.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Aug 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Admin - Modules - Shipping issues

    Should I remove this chunk from the code?:
    ====================================
    }
    global $sniffer;
    $results = $sniffer->field_type(TABLE_ORDERS, 'shipping_method', 'varchar(255)', true);
    if ($results !== true) {
    $sql = "ALTER TABLE " . TABLE_ORDERS . " MODIFY shipping_method varchar(255) NOT NULL DEFAULT ''";
    $db->Execute($sql);
    }
    ====================================

    * check status of module
    *
    * @return boolean
    */
    public function check()
    {
    global $db;

    if (!isset($this->_check)) {
    $check_query = $db->Execute("SELECT configuration_value FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'MODULE_SHIPPING_USPS_STATUS' LIMIT 1");
    $this->_check = $check_query->RecordCount();
    }
    global $sniffer;
    $results = $sniffer->field_type(TABLE_ORDERS, 'shipping_method', 'varchar(255)', true);
    if ($results !== true) {
    $sql = "ALTER TABLE " . TABLE_ORDERS . " MODIFY shipping_method varchar(255) NOT NULL DEFAULT ''";
    $db->Execute($sql);
    }

    $this->notify('NOTIFY_SHIPPING_USPS_CHECK');
    return $this->_check;
    }

    /**
    * Install this module
    */
    public function install()

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Admin - Modules - Shipping issues

    Just these lines:

    global $sniffer;
    $results = $sniffer->field_type(TABLE_ORDERS, 'shipping_method', 'varchar(255)', true);
    if ($results !== true) {
    $sql = "ALTER TABLE " . TABLE_ORDERS . " MODIFY shipping_method varchar(255) NOT NULL DEFAULT ''";
    $db->Execute($sql);
    }
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Aug 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Admin - Modules - Shipping issues

    Thank you! Seems to be working well now.

 

 

Similar Threads

  1. v155 linkpointapi.php, causing issues with payment configuration in Admin/Modules/Payment
    By wsworx in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 12 Jun 2018, 02:52 AM
  2. Problem with admin module page admin/modules.php?set=shipping
    By AJBUY in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 13 Dec 2014, 11:23 PM
  3. Admin Shipping Mod Area not showing all shipping modules
    By MB1 in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 18 Feb 2012, 11:08 PM
  4. Zone Rates - shipping modules issues very urgent
    By rajendran in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Jun 2008, 01:59 PM
  5. Cloned Shipping Modules connected in Admin?
    By munchkinhead in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 19 Aug 2007, 01:51 AM

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