Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Attribute Problems after 158 Move

    158 latest github with update of old database
    PHP 8
    responsive_classic clone
    OPC latest github
    No URL, problem in admin

    The old database has 156 products that do not show in the categories/products nor do they show with a search. All are products_status 0 but it appears that SOMEHOW they may be being used by the owner to modify other products' attributes. Getting the followin errors:

    Code:
    [15-Feb-2023 10:12:53 America/New_York] Request URI: /frammer1/index.php?cmd=category_product_listing&cPath=38&pID=101&action=attribute_features_copy_to_product&page=1&products_id=101, IP address: ***.***.***.***, Language id 1#1 require(/frammer1/category_product_listing.php) called at [/frammer1/index.php:11]
    --> PHP Warning: Undefined array key "copy_attributes" in /frammer1/category_product_listing.php on line 1133.
    **********************
    
    
    [15-Feb-2023 10:12:32 America/New_York] Request URI: /frammer1/index.php?cmd=category_product_listing&action=update_attributes_copy_to_product&cPath=38&page=1, IP address: ***.***.***.***, Language id 1
    #1 require(/frammer1/category_product_listing.php) called at [/frammer1/index.php:11]
    --> PHP Warning: Undefined array key "products_id" in /frammer1/category_product_listing.php on line 281.
    ************************
    
    
    [15-Feb-2023 10:11:06 America/New_York] Request URI: /frammer1/index.php?cmd=attributes_controller&products_filter=101&current_category_id=38, IP address: ***.***.***.***, Language id 1
    #1 require(/frammer1/attributes_controller.php) called at [/frammer1/index.php:11]
    --> PHP Warning: Undefined array key "products_options_type" in /frammer1/attributes_controller.php on line 1097.
    
    
    [15-Feb-2023 10:11:06 America/New_York] Request URI: /frammer1/index.php?cmd=attributes_controller&products_filter=101&current_category_id=38, IP address: ***.***.***.***, Language id 1
    #1 translate_type_to_name() called at [/frammer1/attributes_controller.php:1097]
    #2 require(/frammer1/attributes_controller.php) called at [/frammer1/index.php:11]
    --> PHP Warning: Undefined array key "" in /frammer1/attributes_controller.php on line 602.
    ******************************************
    Guidance appreciated.

    THANX
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Attribute Problems after 158 Move

    Using the site's phpMyAdmin, what results come back from the following query?
    Code:
    SELECT pa.*
                                         FROM (proucts_attributes pa
                                         LEFT JOIN products_options po ON pa.options_id = po.products_options_id
                                           AND po.language_id = 1)
                                         WHERE pa.products_id = 101
                                         ORDER BY LPAD(po.products_options_sort_order,11,'0'),
                                                  LPAD(pa.options_id,11,'0'),
                                                  LPAD(pa.products_options_sort_order,11,'0')
    P.S. I'm assuming that the site's database doesn't use table-prefixes.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Attribute Problems after 158 Move

    Quote Originally Posted by lat9 View Post
    Using the site's phpMyAdmin, what results come back from the following query?
    Code:
    SELECT pa.*
                                         FROM (proucts_attributes pa
                                         LEFT JOIN products_options po ON pa.options_id = po.products_options_id
                                           AND po.language_id = 1)
                                         WHERE pa.products_id = 101
                                         ORDER BY LPAD(po.products_options_sort_order,11,'0'),
                                                  LPAD(pa.options_id,11,'0'),
                                                  LPAD(pa.products_options_sort_order,11,'0')
    P.S. I'm assuming that the site's database doesn't use table-prefixes.
    Little typo,

    Code:
    SELECT pa.*
                                         FROM (products_attributes pa
                                         LEFT JOIN products_options po ON pa.options_id = po.products_options_id
                                           AND po.language_id = 1)
                                         WHERE pa.products_id = 101
                                         ORDER BY LPAD(po.products_options_sort_order,11,'0'),
                                                  LPAD(pa.options_id,11,'0'),
                                                  LPAD(pa.products_options_sort_order,11,'0')
    Edit: just noticed it was for @dbltoe, who would have realised this.
    Simon

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Attribute Problems after 158 Move


    Actually, I didn't until I threw it in navicat and it balked.

    Attachment 20212

    Is this enough of a look?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Attribute Problems after 158 Move

    It is! What's with that first record, with an options_id of 0; that can't be valid!

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Attribute Problems after 158 Move

    It's there for pert near ever one. Thought it strange myself but the cart works until you mess with any attribute and you cannot search from the categories/products page and then alt < without a notice that things went "bump""

    Attachment 20213
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Attribute Problems after 158 Move

    Store owner says he got it from the developer that way.

    There are also 98 product_id listings in the products directory with not a one of them being found by ID search in the admin.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Attribute Problems after 158 Move

    Quote Originally Posted by dbltoe View Post
    Store owner says he got it from the developer that way.

    There are also 98 product_id listings in the products directory with not a one of them being found by ID search in the admin.
    Do those "missing" products_id values have entries in the products_to_categories table?

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Attribute Problems after 158 Move

    I find 156 items in the products table with a products_status of 0 that have a setting in the categories_id in the products_to_categories table.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Attribute Problems after 158 Move

    Added one category and two products with no attributes this morning which resulted in three logs.

    Code:
    [16-Feb-2023 09:30:14 America/New_York] Request URI: /jetmar_Chris/index.php?cmd=attributes_controller&products_filter=8&current_category_id=22, IP address: 67.209.13.115, Language id 1
    #1 require(/jetmar_Chris/attributes_controller.php) called at [/jetmar_Chris/index.php:11]
    --> PHP Warning: Undefined array key "products_options_type" in /jetmar_Chris/attributes_controller.php on line 1097.
    
    [16-Feb-2023 09:30:14 America/New_York] Request URI: /jetmar_Chris/index.php?cmd=attributes_controller&products_filter=8&current_category_id=22, IP address: 67.209.13.115, Language id 1
    #1 translate_type_to_name() called at [/jetmar_Chris/attributes_controller.php:1097]
    #2 require(/jetmar_Chris/attributes_controller.php) called at [/jetmar_Chris/index.php:11]
    --> PHP Warning: Undefined array key "" in /jetmar_Chris/attributes_controller.php on line 602.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Looking to upgrade to 158, need help
    By pageblair in forum Upgrading to 1.5.x
    Replies: 0
    Last Post: 30 Jan 2023, 12:30 PM
  2. v158 Adding Boilerplate text to the Zen Cart Product Description 158
    By haredo in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Nov 2022, 04:07 PM
  3. v154 Database problems after move and upgrade
    By TKPope in forum Upgrading to 1.5.x
    Replies: 13
    Last Post: 14 Mar 2015, 10:50 AM
  4. v139h Problems after move to new host
    By DarkAngel in forum General Questions
    Replies: 1
    Last Post: 18 Jul 2014, 08:45 AM
  5. Replies: 0
    Last Post: 28 Jun 2008, 01:41 AM

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