Webmastersite.net
Register Log In

Upgrade Problem
Allowed Memory Size

Comments on Upgrade Problem

azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Aug 17, 2005 - 9:13 PM:

Paul,
Ok I upgraded from 3.16 to 3.24 and only on the main page I get the Allowed memory size. So I took out two of my toplists and this corrected the problem. I would like to have them toplists so how can I change the allowed memory size to allow the toplists. I have a total of 6 toplists on the main index. Now I have 4 and works fine. Before the upgrade I was able to have allow 6 and had no problems.

Liz
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 18, 2005 - 8:03 PM:

What is the allowed memory size, specifically?

Turning off some switches should reduce the memory used.
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Aug 19, 2005 - 6:40 AM:

Hello Paul,
I get this message when I have more than 4 toplists. I would like to have all that I had before which was 6 toplists total. Here is the error I get Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1504 bytes). Shoot I got most the switches off now.

Liz
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 19, 2005 - 12:20 PM:

I'd think a page with 6 toplists would hit the 30 second loading timeout.

Well, see if this does anything. In templatefunctions.php, replace
 for ($loopthis = 1; $loopthis<100; $loopthis++) // they couldn't have more than 100 on a page, could they?
{
if (strstr($totalpage, '<!-- BEGIN TOPLIST '. $loopthis .' -->'))
{

with
 for ($loopthis = 1; $loopthis<100; $loopthis++) // they couldn't have more than 100 on a page, could they?
{
if (strstr($totalpage, '<!-- BEGIN TOPLIST '. $loopthis .' -->'))
{
if ($query) mysql_free_result($query);


If that helps, I could incorporate it in other ways.
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Aug 19, 2005 - 5:16 PM:

Hello Paul,
Tried that and I get this now:

Parse error: parse error, unexpected $ in /home/public_html/templatefunctions.php on line 2118
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 20, 2005 - 3:37 AM:

That means you didn't copy it correctly, put it in the wrong spot, or there was a problem with the upload.

On testing though the line doesn't seem to reduce the memory used.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 20, 2005 - 3:24 PM:

I've managed to chop off half a megabyte in various ways, but the changes are far too likely to cause major errors to release them right now.
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Aug 21, 2005 - 9:33 AM:

Hello Paul,
When do you think you will have a fix for this? I also have a page for toplists like most popular, top rated, most popular category etc. with about 8 toplists total and I get the same thing on that page too. My site relies on my toplists.

Liz
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 22, 2005 - 10:59 AM:

It's simply a matter of life that the more lines of PHP are involved, the more RAM will be used. If it's your own server you can increase the memory limit in php.ini. Otherwise, the slight reduction in RAM usage described above should be available in a day or two.

Switches that can reduce RAM consumption significantly when turned off: WSN Codes, comments system, attachments, private messaging, instant messaging, help system
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.