Mambo + G2 Memory setting issue + Internal server error

Todd_1215
Todd_1215's picture

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
Gallery http://www.oconnorfamilyonline.com/gallery2

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
com_gallery2 is 2.0.6

Gallery2 env

Quote:
Gallery version = 2.0-rc-1+ core 0.9.34
PHP version = 4.3.6 cgi
Webserver = Apache/1.3.29 (Unix) FrontPage/5.0.2.2623
Database = mysql 4.1.10a
Toolkits = SquareThumb, NetPBM, ImageMagick
Operating system = FreeBSD iwojima.globat.com 4.9-RELEASE-p2 FreeBSD 4.9-RELEASE-p2 #4: Thu i386
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-18 00:13

prepend.php file, never heard of such an approach. please contact your webhost admin to resolve this issue.

 
Todd_1215
Todd_1215's picture

Joined: 2005-08-16
Posts: 6
Posted: Thu, 2005-08-18 17:28

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?

 
Todd_1215
Todd_1215's picture

Joined: 2005-08-16
Posts: 6
Posted: Thu, 2005-08-18 17:34

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:

<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="contentpane">
<tr><td>

is it possible that my custom theme I'm using is causing the issue?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-18 22:06

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.