Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Out of Memory error when I perform a search

    My website is https://herbsofmexico.com/store/
    When a search is performed using the zencart search in the upper right (not the google search in the left column), I receive the following error message:

    5 Out of memory (Needed 8388580 bytes)
    in:
    [select count(distinct p.products_id) as total FROM (zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_products_to_categories p2c ) LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%gingko%' OR p.products_model LIKE '%gingko%' OR m.manufacturers_name LIKE '%gingko%' OR (mtpd.metatags_keywords LIKE '%gingko%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%gingko%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%gingko%') ))]

    Is this a zencart problem or a sql problem?

    What can be done to correct the problem?

    Thanks!

    Sean
    +<|:-)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Out of Memory error when I perform a search

    Need more information about the server you are on
    http://www.zen-cart.com/forum/faq.php

  3. #3
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Out of Memory error when I perform a search

    Server Information
    Server Host: doblo.websitewelcome.com (174.120.189.226) Database Host: localhost (127.0.0.1)
    Server OS: Linux 2.6.34.6 Database: MySQL 5.1.50
    Server Date: 10/11/2010 12:31:00 Database Date: 10/11/2010 12:31:00
    Server Up Time: 12:31:00 up 23 days, 13:58, 1 user, load average: 2.03, 1.82, 2.20 HTTP Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    PHP Version: 5.2.14 (Zend: 2.2.0) PHP Memory Limit: 64M PHP Safe Mode: Off
    PHP File Uploads: On Max Size: 64M POST Max Size: 64M
    Database Data Size: 220,270 kB Database Index Size: 3,858 kB

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Out of Memory error when I perform a search

    I believe your host allows a local php.ini file
    Code:
    PHP Memory Limit: 64M
    Try 96M

  5. #5
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Out of Memory error when I perform a search

    I use HostGator. Do I upload a php.ini file? If so, where?

    Thanks!

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Out of Memory error when I perform a search

    I use HostGator.
    websitewelcome.com told me that
    Do I upload a php.ini file? If so, where?
    At the root of your shop

  7. #7
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Out of Memory error when I perform a search

    I created a php.ini file with the code mentioned above.
    Does the file need to contain any other info?

    I added that file to the store directory.

    Now the entire site is down:
    https://herbsofmexico.com/store/

    Any help would be greatly appreciated!

    Thanks,

    Sean

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Out of Memory error when I perform a search

    What did you enter in the file
    Using what editor

  9. #9
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Out of Memory error when I perform a search

    Good news - The site is back up.
    Bad news - The search is still not working...

    I use ConTEXT as my editor.
    The file simply has the one line code:
    PHP Memory Limit: 64M

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Out of Memory error when I perform a search

    Server Information
    PHP Memory Limit: 64M
    The file simply has the one line code:
    PHP Memory Limit: 64M
    Bad news - The search is still not working...
    You did not change anything it was 64M before and you entered 64M

    BTW the correct syntax is
    Code:
    memory_limit = 96M

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 Out of memory error when searching
    By MelodyW in forum General Questions
    Replies: 1
    Last Post: 3 Apr 2015, 11:29 AM
  2. "Out of Memory" error when trying to view orders
    By jgold723 in forum General Questions
    Replies: 0
    Last Post: 10 Feb 2011, 08:28 PM
  3. Out of Memory when Searching
    By irishshopper in forum Basic Configuration
    Replies: 0
    Last Post: 25 Nov 2010, 11:56 AM
  4. Fatal error: Out of Memory??
    By DravenLS in forum General Questions
    Replies: 2
    Last Post: 14 May 2008, 02:13 AM
  5. Advanced Search out of memory
    By goshman in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 5 Aug 2007, 07:52 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