Loading...
 
Architecture / Installation

Architecture / Installation


Out of memory errors

posts: 8

When I browse Admin|Editing and Plugins I get an out memory errors and the page either doesn't load or loads incompletely. Also the whole site is very slow. This is the case no matter where I host it.

Any tips on how to optimise the site bearing in mind I don't have shell access.

posts: 1563 Germany

Hi Llew21,

are you on an Apache Server?

Did you check the php_memory_limit, which should be high enough:

Tiki 6.x -> 128MB
Tiki 9.x upwards -> 256MB

You have FTP access and can edit the _htaccess file?

-> somewhere between line 90 and line 100 you should find this:

Copy to clipboard
# increase memory (default is XXXM). Use this if you are getting blank pages and strange errors # php_value memory_limit 256M


delete the hash (#) of the second line:

Copy to clipboard
# increase memory (default is XXXM). Use this if you are getting blank pages and strange errors php_value memory_limit 256M


Then make sure to remane the _htaccess to .htaccess, which makes the file 'active'.

Please mind, that this works only on Apache Servers.

With Nginx or Lighttpd you need to alter the configuration differently and there you would need access to some configuration file.

Hope that helps,
Torsten

posts: 8

Hi Torsten

Thanks for the advice.

I get server error if I remove the hash. Looking elsewhere in the file I can't see CODE anywhere. Am I missing something?

Regards

mark

posts: 1563 Germany

Oh Llew21, Marc,

I am so sorry! I did misstype one character in my post and di not realise it (just quickly answred in a rush).

Please reread my above post and you should understand what I meant.

Surely yo do not find the word "CODE", which was simply appearing in the post, cause I misstyped a wikiplugin

{CODE()° instead of {CODE()}


Sorry for that.

The hash (#) is the sign for comments in .htaccess and in the original file you see two lines:
first line the explanation and second line the command

Leave the explanation being a comment, but delete the hash from the second line ... my misstype did guide you in the wrong direction, for that you deleted the wrong hash in the first line.

Hope my correction now is not too confusing - please just reread my corrected first post above, like as you would not have read it before.

If still any problem, ask again and please give notice, when the problem is solved.

Torsten


posts: 8

Thanks for the clarification Torsten.

I tried the syntax you suggested but still get an internal server error.

I looked at the file and the syntax used appears to be in this form



But if I used this I still get internal server error:

  1. increase memory (default is XXXM).

php_value memory_limit 256M



I have a feeling I have left out something from the first line

Thanks

Mark


posts: 210

Hi,

the same here. With some hosting providers like 1&1 you only get 90 MByte, no matter what you write in php.ini or .htaccess - it's hardcoded in their PHP implementation.

Since 1&1 is one of the major hosting providers, Tiki developers should better restrict their memory usage. There is no use in running up against the inevitable...