We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Allowed memory size | Forum

Topic location: Forum home » Support » General Questions
Paul
Paul Jun 9 '12
Hi,

I have oxwall set up on my server but when I post a blog with a large amount of text this error shows up:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/ourworld/public_html//...evix/jevix.class.php on line 80

Can someone tell me what I should to to stop getting this error?

http://www.democracycommunity.com

All the good,


Paul
Mark
Mark Jun 9 '12
basically php is running out of RAM, this setting can be changed by editing your php.ini file, its location varies from server to server.


some servers allow this setting to be overwritten via .htaccess files also.


search for your answer > https://www.google.co.uk/search?num=20&hl=en&q=Fatal+error%3A+Allowed+memory+size+of++bytes+exhausted&oq=Fatal+error%3A+Allowed+memory+size+of++bytes+exhausted&aq=f&aqi=g-c1g7g-m2&aql=&gs_l=serp.3..0i7j0l7j0i5l2.3128.3128.0.3804.1.1.0.0.0.0.63.63.1.1.0...0.0.kNDVbTP9Gc0

Paul
Paul Jun 9 '12
Hi Mark,

Thanks for the reply. 

I found a ".htaccess" file inside the directory of my oxwall site, there is also another one inside the "public_html" directory.  Unfortunately I'm not a programmer and not sure what code to write and where to insert it. 

Would you be able to tell me what the code is and where to put it please?

Thanks,

Below is the text from ".htaccess" file in the oxwall directory:




Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>

RewriteCond %{REQUEST_URI} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
Mark
Mark Jun 10 '12
put this in your .htaccess (not guaranteed to work, I recommend editing via php.ini)


php_value memory_limit 16M


most cheap host wont allow you to change this

Michael I.
Michael I. Jun 15 '12
You should consider about contacting your hosting company to increase the memory limit.