Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42
  1. #11
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default In Admin: Catchable fatal error in html_output.php

    Symptom: In the admin area, when accessing pages that have pulldown menus on them, you might occasionally see a "catchable fatal error in html_output.php".
    Happens only in PHP5

    Cause: leftover legacy code incompatible with PHP5

    Solution: Interim workaround is available by using the patched files posted here:
    http://www.zen-cart.com/forum/showpo...0&postcount=10
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default noindex,nofollow problem with Always Show Categories enabled

    Symptom:
    There's a bug in v1.3.8 which only shows when you have
    Admin->Configuration->Layout Settings->Categories - Always Show on Main Page = 1

    Solution:
    To fix it, edit your /includes/init_includes/init_add_crumbs.php file, by adding the indicated code, as shown in the highlighted area:
    Code:
        if ($categories->RecordCount() > 0) {
          $breadcrumb->add($categories->fields['categories_name'], zen_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));
        } elseif(SHOW_CATEGORIES_ALWAYS == 0) {
          // if invalid, set the robots noindex/nofollow for this page
          $robotsNoIndex = true;
          break;
        }
    http://www.zen-cart.com/forum/showthread.php?t=87093
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Linkpoint Error -- SGS-020003: Invalid XML

    Symptom: "Invalid XML" errors when using the v1.3.8 LinkpointAPI payment module on orders which qualify for and select free-shipping.

    Solution: http://www.zen-cart.com/forum/showth...397#post504397
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Known Bugs (and fixes) with v1.3.8

    Problem: When deleting "ALL attributes" for a given product via the Attributes Controller, AND the product has Download Files attached to it, an error appears, saying:
    Fatal error: Cannot use object of type queryFactoryResult as array in /home/mysite/public_html/store/admin/includes/functions/general.php on line 2089
    Solution: The coding fix for this particular situation is posted here:
    http://www.zen-cart.com/forum/showthread.php?t=88609
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Known Bugs (and fixes) with v1.3.8

    Minor issue:

    Symptom: HTML-formatted emails generated by Tell-A-Friend always link to main default product-type. For example, if a product_music item was referenced, it would point to product_info instead of product_music_info in the URL.

    Fix discussed here: http://www.zen-cart.com/forum/showthread.php?t=89606
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Known Bugs (and fixes) with v1.3.8

    Symptom: Categories Meta Tags cannot be removed once added
    http://www.zen-cart.com/forum/showthread.php?t=86882

    Solution: Replace the code for the categories meta tags:
    /admin/categories.php

    And change the code for the categories meta tags to read:
    PHP Code:
          // bof: categories meta tags
          
    case 'update_category_meta_tags':
          
    // add or update meta tags
          //die('I SEE ' . $action . ' - ' . $_POST['categories_id']);
          
    $categories_id $_POST['categories_id'];
          
    $languages zen_get_languages();
          for (
    $i=0$n=sizeof($languages); $i<$n$i++) {
            
    $language_id $languages[$i]['id'];
            
    $check $db->Execute("select *
                                   from " 
    TABLE_METATAGS_CATEGORIES_DESCRIPTION "
                                   where categories_id = '" 
    . (int)$categories_id "'
                                   and language_id = '" 
    . (int)$language_id "'");
            if (
    $check->RecordCount() > 0) {
              
    $action 'update_category_meta_tags';
            } else {
              
    $action 'insert_categories_meta_tags';
            }

            
    $sql_data_array = array('metatags_title' => zen_db_prepare_input($_POST['metatags_title'][$language_id]),
                                    
    'metatags_keywords' => zen_db_prepare_input($_POST['metatags_keywords'][$language_id]),
                                    
    'metatags_description' => zen_db_prepare_input($_POST['metatags_description'][$language_id]));

            if (
    $action == 'insert_categories_meta_tags') {
              
    $insert_sql_data = array('categories_id' => $categories_id,
                                       
    'language_id' => $language_id);
              
    $sql_data_array array_merge($sql_data_array$insert_sql_data);

              
    zen_db_perform(TABLE_METATAGS_CATEGORIES_DESCRIPTION$sql_data_array);
            } elseif (
    $action == 'update_category_meta_tags') {
              if (empty(
    $_POST['metatags_title'][$language_id]) && empty($_POST['metatags_keywords'][$language_id]) && empty($_POST['metatags_description'][$language_id])) {
                
    $remove_categories_metatag "DELETE from " TABLE_METATAGS_CATEGORIES_DESCRIPTION " WHERE categories_id = '" . (int)$categories_id "' and language_id = '" . (int)$language_id "'";
                
    $db->Execute($remove_categories_metatag);
              } else {
                
    zen_db_perform(TABLE_METATAGS_CATEGORIES_DESCRIPTION$sql_data_array'update'"categories_id = '" . (int)$categories_id "' and language_id = '" . (int)$language_id "'");
              }
            }
          }

          
    zen_redirect(zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&cID=' $categories_id));
          break;
          
    // eof: categories meta tags 
    Last edited by DrByte; 29 Sep 2011 at 08:38 PM. Reason: cross linked
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Known Bugs (and fixes) with v1.3.8

    Symptom: Product Meta Tag leaving blank record

    Solution: update the file:
    /admin/includes/modules/update_products_meta_tags.php

    New Code:
    PHP Code:
    // check if new meta tags or existing
              
    $check_meta_tags_description $db->Execute("select products_id from " TABLE_META_TAGS_PRODUCTS_DESCRIPTION " where products_id='" $products_id "'");
              if (
    $check_meta_tags_description->RecordCount() <= 0) {
                
    $action 'new_product_meta_tags';
              }
              
    $languages zen_get_languages();
              for (
    $i=0$n=sizeof($languages); $i<$n$i++) {
                
    $language_id $languages[$i]['id'];

                
    $sql_data_array = array('metatags_title' => zen_db_prepare_input($_POST['metatags_title'][$language_id]),
                                        
    'metatags_keywords' => zen_db_prepare_input($_POST['metatags_keywords'][$language_id]),
                                        
    'metatags_description' => zen_db_prepare_input($_POST['metatags_description'][$language_id]));

                if (
    $action == 'new_product_meta_tags') {
                  
    $insert_sql_data = array('products_id' => $products_id,
                                           
    'language_id' => $language_id);

                  
    $sql_data_array array_merge($sql_data_array$insert_sql_data);

                  
    zen_db_perform(TABLE_META_TAGS_PRODUCTS_DESCRIPTION$sql_data_array);
                } elseif (
    $action == 'update_product_meta_tags') {
                  if (empty(
    $_POST['metatags_title'][$language_id]) && empty($_POST['metatags_keywords'][$language_id]) && empty($_POST['metatags_description'][$language_id])) {
                    
    $remove_products_metatag "DELETE from " TABLE_META_TAGS_PRODUCTS_DESCRIPTION " WHERE products_id = '" . (int)$products_id "' and language_id = '" . (int)$language_id "'";
                    
    $db->Execute($remove_products_metatag);
                  } else {

                    
    zen_db_perform(TABLE_META_TAGS_PRODUCTS_DESCRIPTION$sql_data_array'update'"products_id = '" . (int)$products_id "' and language_id = '" . (int)$language_id "'");
                  }
                }
              }
              
    zen_redirect(zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $products_id . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')));
            } 
    http://www.zen-cart.com/forum/showthread.php?t=86882
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #18
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Known Bugs (and fixes) with v1.3.8

    Symptom:
    Unknown column 'o.orders_id' in 'on clause' occurs in the Admin Orders screen when doing a search from the "Search by Product Name or ID:XX or Model" box (the standard "Search" box and Order ID searches work fine).
    This happens on MySQL 5.0 and higher.

    Solution:
    In the /admin/orders.php, from lines 715 thru 750 there are three places where the following is found:
    Code:
                              from (" . TABLE_ORDERS . " o, " .
                              TABLE_ORDERS_STATUS . " s " .
    change each of those to this instead:
    Code:
                                from (" . TABLE_ORDERS_STATUS . " s, " .
                                TABLE_ORDERS . " o " .


    Posted and discussed here: http://www.zen-cart.com/forum/showth...384#post518384
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #19
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default LinkPoint API vs coupons

    Symptom: Using v1.3.8 and Linkpoint/yourpay API module along with a discount coupon would cause a SGS-002301 error to appear along with a message saying subtotals and chargetotal don't match.

    Solution: Updated module file posted here: http://www.zen-cart.com/forum/showpo...nt=12&p=519955

    NOTE: This fix also incorporates the ot_loworderfee fix posted earlier in this thread.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Known Bugs (and fixes) with v1.3.8

    Problem: Back button not working in some instances and you go to the home page vs the last page

    Solution: edit the file
    /includes/functions/functions_general.php

    around lines 989 - 1004 is the function:
    PHP Code:
    ////
    // Set back button
      
    function zen_back_link() {
        if (
    sizeof($_SESSION['navigation']->path)-0) {
          
    $back sizeof($_SESSION['navigation']->path)-2;
          
    $link '<a href="' zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']) . '">';
        } else {
          if (isset(
    $_SERVER['HTTP_REFERER']) && strstr(HTTP_SERVER$_SERVER['HTTP_REFERER'])) {
            
    $link$_SERVER['HTTP_REFERER'];
          } else {
            
    $link '<a href="' zen_href_link(FILENAME_DEFAULT) . '">';
          }
          
    $_SESSION['navigation'] = new navigationHistory;
        }
        return 
    $link;
      } 
    replace it with the following:
    PHP Code:
    ////
    // Set back button
      
    function zen_back_link() {
        if (
    sizeof($_SESSION['navigation']->path)-0) {
          
    $back sizeof($_SESSION['navigation']->path)-2;
          
    $link '<a href="' zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']) . '">';
        } else {
          if (isset(
    $_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], HTTP_SERVER)) {
            
    $link'<a href="' $_SERVER['HTTP_REFERER'].'">';
          } else {
            
    $link '<a href="' zen_href_link(FILENAME_DEFAULT) . '">';
          }
          
    $_SESSION['navigation'] = new navigationHistory;
        }
        return 
    $link;
      } 
    Thanks to Absolute for posting this current solution ...

    Note: it has been tested to some degree but not to 100% satisfaction ... granted I cannot break it thus far so perhaps it has ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. v155 Known Bugs (and fixes) with v1.5.5 , a, b, c, d, e, f
    By DrByte in forum Upgrading to 1.5.x
    Replies: 17
    Last Post: 16 Aug 2017, 03:25 AM
  2. v153 Known Bugs (and fixes) with v1.5.3
    By swguy in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 18 Oct 2016, 06:17 PM
  3. v151 Known Bugs (and fixes) with v1.5.1
    By DrByte in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 18 Oct 2016, 06:17 PM
  4. v150 Known Bugs (and fixes) with v1.5.0
    By DrByte in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 18 Oct 2016, 06:17 PM
  5. Known Bugs (and fixes) with v1.3.9
    By DrByte in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 31 Oct 2010, 01:11 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