PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost How do I...?

ReviewPost How do I...? Wondering how to do something in ReviewPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 10th, 2006, 11:08 AM   #1 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 204
Memory problems with rp

Quote:
*Fatal error*: Allowed memory size of 16777216 bytes exhausted (tried to allocate 65536 bytes) in */var/hsphere/local/home/xxxxxx/reviews/pp-inc.php* on line *1558

this also happened the otherday when i was trying to backup my database. so i contacted the hosting support and this is what they said:


Quote:
Hi there,

The problem is;
1. Extremely inefficient PHP code requiring up to 64MB of memory for every single page access
2. A recursive loop in your code which is killing the apache thread in the page.

When temporarily raising the memory limit for the script to 64MB per instance and commenting out the following code in file "weedtracker.com/reviews/pp-inc.php" we can get the page to load.

############################
if ( $CatPerms['children'][$id] != "" ) {
$processkids = explode( ",", $CatPerms['children'][$id] );
while ( list($num, $eachkid) = each($processkids) ) {
if ($CatPerms['ugview'][$eachkid] != 1 ) {
$numproducts += $subcats[$eachkid][3];
$numposts += $subcats[$eachkid][4];
}
$catonline[$id] += $catonline[$eachkid];
}
}
############################

You need to fix and optimize your code. The memory limit per script instance is 32MB.

Kind regards,
Support
ncg is offline   Reply With Quote
Old February 10th, 2006, 11:27 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
There should be nothing wrong with that code there. We use that same code in our product and it runs fine on servers which only have 8mb available to PHP scripts.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 10th, 2006, 10:23 PM   #3 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 204
Quote:
Originally Posted by Chuck S
There should be nothing wrong with that code there. We use that same code in our product and it runs fine on servers which only have 8mb available to PHP scripts.
i know thats what i said. ive never had a problem so far. my reviews database is getting pretty big, almost 1100 products most with pictures and almost 2000 reviews.
ncg is offline   Reply With Quote
Old February 10th, 2006, 10:31 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
yeah if your having performance issues just visit this thread to see if anything helps here. All our products have similar options so this should help. Turn off non essential things.

http://www.photopost.com/forum/showt...38#post1113838
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP + GD memory error DesmondSweeney Photopost Pro Installation & Upgrades 16 September 22nd, 2006 10:48 AM
Error memory(NOT A BUG) jlrios Photopost Pro Bug Reports 2 October 18th, 2005 01:36 PM
Approve Photos - Memory Error Steve_C Photopost Pro Installation & Upgrades 2 March 23rd, 2005 10:29 AM
Increase Memory? Steve_C Photopost Pro How Do I...? 1 March 23rd, 2005 05:24 AM


All times are GMT -5. The time now is 09:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0