Thread: Fatal Error

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Fatal Error

    Hi,

    I have a client who has been using this excellent product sucessfully for over a year, there database is massive and contains over 20'000 items!

    Today for no apprarent reason they started reciving this error when trying to add new featured products...

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2955142 bytes) in /home/sites/wallofsound-records.com/public_html/admin/featured.php on line 267

    Does anybody know what might have caused this?

    Crin :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Fatal Error

    What version of Zen Cart?
    What version of PHP?
    What version of MySQL?
    .
    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. #3
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Re: Fatal Error

    MYSQL 5.0.45

    Zen Cart 1.3.7

    PHP 4.4.7

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Fatal Error

    Is this what that line says? ...
    [font="courier"] <td class="main"><?php echo (isset($fInfo->products_name)) ? $fInfo->products_name . ' <small>(' . $currencies->format($fInfo->products_price) . ')</small>' : zen_draw_products_pull_down('products_id', 'size="5" style="font-size:10px"', $featured_array, true, $_GET['add_products_id'], true); echo zen_draw_hidden_field('products_price', (isset($fInfo->products_price) ? $fInfo->products_price : '')); ?></td>[/font]
    .
    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. #5
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Re: Fatal Error

    Yup that's it.

    <td class="main"><?php echo (isset($fInfo->products_name)) ? $fInfo->products_name . ' <small>(' . $currencies->format($fInfo->products_price) . ')</small>' : zen_draw_products_pull_down('products_id', 'size="5" style="font-size:10px"', $featured_array, true, $_GET['add_products_id'], true); echo zen_draw_hidden_field('products_price', (isset($fInfo->products_price) ? $fInfo->products_price : '')); ?></td>

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Fatal Error

    What addons/contributions do you have installed?
    .
    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.

  7. #7
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Re: Fatal Error

    None really but there's a lot of custom mods to the product related pages to allow for the sale of records.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Fatal Error

    Your database is running rather slow for its retrieval of the 37,000 records.
    I tested the same database on my own PC running XAMPP, just to check for bottlenecks (rather than messing with your live site), and found that I got results back from my PC's MySQL in about 350 milliseconds. But yours took 50,194 milliseconds ... to bring back the same data. Granted, a large portion of that time will be the transfer of the actual data ... so, maybe it's not "that" bad.

    The only way to work around both the slowdown and your server's very low memory_limit in PHP was to tell it to ignore the memory_limit when drawing the Featured and Specials pulldowns. On my test server, using 64M seemed to be just fine.

    Recommendation:
    Get your host to change their PHP "memory_limit" configuration from the default of 8M to 32M or 64M instead. (64 would be better, esp with your large database).
    .
    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. #9
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Re: Fatal Error

    Thanks! I just PM'd you but i'l reply here anyways.

    The database is VERY slow, i've been trying to work out why, could this be the memory limit too? if not what could i do to speed things up?

    Crin

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Fatal Error

    Quote Originally Posted by Crin View Post
    Thanks! I just PM'd you but i'l reply here anyways.

    The database is VERY slow, i've been trying to work out why, could this be the memory limit too? if not what could i do to speed things up?
    It's not the PHP memory_limit setting. It's likely MySQL memory issues though.

    You'll have to work with your hosting company about that. I suspect they've got insufficient RAM assigned to the MySQL processes, including its own built-in caching settings.
    .
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Fatal error: 1030:Got error -1 from storage engine
    By buildingblocks in forum General Questions
    Replies: 3
    Last Post: 5 Feb 2013, 10:40 PM
  2. v139d PHP Fatal error: Internal Zend error - Missing class information
    By badarac in forum General Questions
    Replies: 3
    Last Post: 1 May 2012, 01:33 PM
  3. Fatal error: mysql error (1064 error) -- v1.0-alpha
    By Dale Schibbelhut in forum General Questions
    Replies: 9
    Last Post: 18 Nov 2010, 08:08 PM
  4. Fatal error: Class 'notifier' not found and other error
    By mjfan80 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 24 Apr 2009, 12:39 PM
  5. Replies: 1
    Last Post: 9 Jan 2008, 09:19 PM

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