Loading...
 
Architecture / Installation

Architecture / Installation


Allowed memory size of 134217728 bytes exhausted

posts: 3 United States

Hi,

When attempting to browse to the site (on an internal server not exposed to the outside), I receive the following error:
"Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\inetpub\wwwroot\tiki\lib\init\tra.php on line 1289"

When I modify the php.ini file to allocate more memory (initially set to 128), I get basically the same error except the bytes exhausted is higher and the php file in the error message is different. I've increased the memory in increments of 128. I went all the way up to 1024. At 1024, it takes a long time to error out and the memory on the server spikes.

Rebooting the server did not help. Tiki is the only app running on the server. Server is Win2012 R2, IIS 8.5

I have no idea what to look at next. Any ideas?

Thanks in advance!

posts: 3 United States
Forgot to mention that the version of tiki is 9.6

posts: 44 Canada

This could be a tough one. Did you make any recent content changes or customizations that might have led this to happen? Or did the server configuration change? I mean - did it work before? If so, something must have triggered it. Does it happen on all pages? How about just the login page, e.g. tiki-login_scr.php

Clearing the Tiki caches might help - but since you can't login you will have to do it manually. Can you try clearing all the contents of the "templates_c" folder ? Maybe there is something in the Smarty cache that got corrupted. You should also try clearing the contents of the temp/cache folder.

Also Tiki 9 is no longer supported and you should upgrade - but since it's an internal server I suppose it's not that urgent.

While 128 is probably too low a setting, 256 should be sufficient, and since you tried up to 1024 something is wrong.

posts: 3 United States

Thank you Nelson for your reply. I cleared all the contents of templates_c and temp/cache folders. I then tested again with the following results, adjusting the memory limit along the way:

memory_limit: 128M: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in ...\tiki\lib\init\tra.php on line 1289

memory_limit: 256M: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 261904 bytes) in ...\tiki\lib\init\tra.php on line 1289

memory_limit: 528M: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 261904 bytes) in ...\tiki\lib\parser\parserlib.php on line 1605

I was not even aware this application existed before they brought the issue to my attention, so I'm not really sure what I'm looking at here. This error occurs before I get to any viewable Tiki pages at all. The only information I received from the user is that he was viewing the "Page Preview Mode" when it crashed.

Are there any db tables I could look at that might have corrupted data?


posts: 496

the file mentioned in the error message (lib\init\tra.php) is a file taking care of loading translations

have you changed the site language? Maybe try to set it back to english. You can also check the \lang folder, find your language.php and see if it is still valid or maybe it got too big. You can also try to disable the preference to collect untranslated strings (https://doc.tiki.org/i18n+Admin)

not sure if this is the cause, but maybe worth a try

hope it helps,
cheers,
gezza