osCmax v2.5 User Manual
Results 1 to 4 of 4

search function giving error

This is a discussion on search function giving error within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Warning: require(includes/modules/CONTENT_PRODUCT_LISTING.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/public_html/templates/fallback/content/advanced_search_result.tpl.php on line 256 Fatal error: require() ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    258
    Rep Power
    0


    Default search function giving error

    Warning: require(includes/modules/CONTENT_PRODUCT_LISTING.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/public_html/templates/fallback/content/advanced_search_result.tpl.php on line 256

    Fatal error: require() [function.require]: Failed opening required 'includes/modules/CONTENT_PRODUCT_LISTING.php' (include_path='.:/usr/lib/php') in /home/xxx/public_html/templates/fallback/content/advanced_search_result.tpl.php on line 256
    I never noticed this until recently, but i can't figure out what I might have changed to cause this error


    When i try to search for something, this is what shows.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: search function giving error

    That means you have a missing constant: CONTENT_PRODUCT_LISTING is undefined and you need to add that constant. It should be defined as 'product_listing'
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: search function giving error

    Check in filenames.php in catalog/includes/

    Line 52:
    Code:
    define('CONTENT_PRODUCT_LISTING', 'product_listing');
    and

    Line 142:
    Code:
    define('FILENAME_PRODUCT_LISTING', CONTENT_PRODUCT_LISTING . '.php');
    Regards,
    pgmarshall
    _______________________________

  4. #4
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    258
    Rep Power
    0


    Default Re: search function giving error

    got it solved, thanks for helping me with this, much appreciated once again

Similar Threads

  1. search function
    By silverchair in forum osCommerce 2.2 Modification Help
    Replies: 8
    Last Post: 03-09-2009, 09:29 PM
  2. Search Function Problem
    By FlipC in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 03-04-2008, 11:47 AM
  3. limitations on search function
    By aaanativearts in forum General Topics & Chit Chat
    Replies: 1
    Last Post: 06-15-2007, 11:22 PM
  4. authorize net ...accepts visa but AMex/discover giving error
    By Christy in forum osCmax v2 Installation issues
    Replies: 10
    Last Post: 08-03-2006, 02:20 PM
  5. How to remove search function
    By Plastic in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 05-06-2004, 05:35 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
  •