Mambo + G2 Memory setting issue + Internal server error
Todd_1215
Joined: 2005-08-16
Posts: 6 |
Posted: Wed, 2005-08-17 15:35 |
Hi, I am having an issue when I set my php memory limit to anything other than 8M. My ISP tells me that setting this limit above 8M is forbidden. They do allow prepend.php files so I created one to extend the php memory limit = 16M Mambo http://www.oconnorfamilyonline.com/index.php?option=com_gallery2&Itemid=28 prepend.php <?php ini_set(memory_limit,"16M"); ?> Going right to Gallery2 works fine. It's when I try getting to Gallery2 via embedded mode is when I get an "HTTP 500 Internal Server Error". So I remove the prepend.php file that bumps the memory up to 16M and when I go to Gallery2 this time using embedded mode all I get is a blank page. I don't believe that it's some directive they have set to kill my php session when it gets above 8M because I can get to Gallery2 directly just fine. Unless somehow Mambo is pushing the php memory limit past 8M and thats when I see the 500 error. Mambo version is 4.5.2.3 Gallery2 env Quote:
Gallery version = 2.0-rc-1+ core 0.9.34 Is there anyway to display how much memory isgetting used before the call to Gallery2 through the com_gallery2 component? Any troubleshooting tips are greatly appriciated. |
|
Posts: 32509
prepend.php file, never heard of such an approach. please contact your webhost admin to resolve this issue.
Posts: 6
valiant, I have requested logs from my ISP but.....I am waiting for a response. In the mean time, PHP is running in CGI mode. Would that have anything to do with it?
Posts: 6
When I remove the prepend.php file and just use the default 8M memory_limit setting for PHP I get a blank page but when I view the source I see the following:
is it possible that my custom theme I'm using is causing the issue?
Posts: 32509
when troubleshooting, you should always eliminate as many the possible causes as possible. remove your custom theme and everything else you can.
and as long as you don't have a g2 with default matrix theme and 16mb memory, we can't help you there.