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.
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.
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.
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.
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
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Upgrade Problem
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
What is the allowed memory size, specifically?
Turning off some switches should reduce the memory used.
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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
with
If that helps, I could incorporate it in other ways.
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
Hello Paul,
Tried that and I get this now:
Parse error: parse error, unexpected $ in /home/public_html/templatefunctions.php on line 2118
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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