Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Posts
    2
    Plugin Contributions
    0

    red flag Issues installing Stock by Attributes

    Hello, my website is completely down with: "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request." ever since I tried to install the Stock by Attributes addon. I checked the cache folder and found the following errors:

    [01-Feb-2012 14:34:10] PHP Warning: require(index_filters/default_filter.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /shop/includes/modules/pages/index/header_php.php on line 49

    However, I never deleted, added, or even modified any files within neither the modules/pages/index directory nor the /index_filters directory. I am not updating the addon, it is a first-time install. Any ideas on where I could have gone wrong? Thanks in advance.

  2. #2
    Join Date
    May 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: Issues installing Stock by Attributes

    Quote Originally Posted by lovelyweapon View Post
    Hello, my website is completely down with: "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request." ever since I tried to install the Stock by Attributes addon. I checked the cache folder and found the following errors:

    [01-Feb-2012 14:34:10] PHP Warning: require(index_filters/default_filter.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /shop/includes/modules/pages/index/header_php.php on line 49

    However, I never deleted, added, or even modified any files within neither the modules/pages/index directory nor the /index_filters directory. I am not updating the addon, it is a first-time install. Any ideas on where I could have gone wrong? Thanks in advance.
    I'm just a user, not the developer, however I am fairly versed with PHP and Zen Cart, so I thought I'd post the solution I believe I found:

    The Stock by Attributes module includes a file (includes/functions/functions_lookups.php) that overrides the default functions, one of them being zen_get_index_filters_directory

    That function is updated in v1.5 from the version they include.

    HOWEVER, they include that file because the override two functions to pick up the stock by attributes:
    zen_check_stock
    and
    zen_get_products_stock

    So, in order to correct this I copied the v1.5 core file "functions_lookups.php", replaced ONLY those two functions, and uploaded/used that file.

    This seems to correct the issue, and my site now loads properly. I'll repost if I find any other issues that need to be addressed in this module.

 

 

Similar Threads

  1. v151 Using Stock By Attributes, In Stock Value Is Sum Of Attributes' Stock
    By y0ul053 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 29 Aug 2013, 04:23 PM
  2. Replies: 5
    Last Post: 3 Aug 2011, 08:15 AM
  3. Products with Attributes Stock issues
    By alexsmith2709 in forum General Questions
    Replies: 1
    Last Post: 14 Mar 2011, 12:43 PM
  4. Having trouble installing stock by attributes
    By dreday42 in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 8 Mar 2011, 04:15 AM
  5. Installing Stock by Attributes
    By Melissa Little in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Dec 2008, 01:09 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