1
rgauci
Allowed memory size of 33554432 bytes exhausted
  • 2010/6/29 14:47

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


This fatal error is coming in all my modules"
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 92 bytes) in /home/xxxxxxx/public_html/class/xoopsform/formselect.php on line 157

How can I increase my memory in the xoops system or perhaps you could advise me something else

urgent please!!!
Be Set FREE!

2
voltan
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/6/29 15:20

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


add this code to .htaccess file

php_value memory_limit 256M

3
rgauci
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/6/29 15:36

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


okay Voltan.

can you advise in which .htaccess file is best

I have one in root folder which says:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php

and the other file in the public_html folder
with all the info inside it

thanks

Ray
Be Set FREE!

4
mboyden
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/6/29 15:37

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Voltan's suggestion works on some, but not on others. It depends upon your setup and whether or not the PHP installation on your server allows you to have a custom PHP ini. If voltan's suggestion doesn't work (as it wouldn't on our cPanel, suphp-based servers), then you may be able to have custom php ini file. How that is specified depends on your setup. You may also have to insert some other info in your .htaccess file for the custom ini and/or Voltan's suggestion to work.

Some quick searching on the web should help you through your particular installation.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

5
ghia
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/6/29 18:06

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Probably you have a module or block that does not scale well with its many items as eg SmartSection.

6
Catzwolf
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/6/30 18:52

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


As ghia has already suggested, this is a problem either with a bad module or rouge code somewhere.

De-active your modules one by one to see which one resolves your problem, or if you have applied any hacks etc, revert them to their original code.

Really, you shouldn't be using that amount of memory for Xoops and modules and increasing it will not solve your issue this time.

7
rgauci
Re: Allowed memory size of 33554432 bytes exhausted
  • 2010/7/1 7:22

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Thanks all of you regarding this issue. At the end I did had to increase my php.ini file from 32MB to 64MB and it is not showing any errors or blank white screens.

Now this might also help, some pointers here:

1) My website is based on Sports news so I have 2 editors who all the time putting up news articles.(world cup at the moment)

2)The blank white screen and memory error used to come after these were logged in for a while.

3) On the site I have used Publishers plus 6 clones of it. Rest of the modules are, mylinks, xcgal2, and liaise for forms.

4) On the home page (thats where the blank screen used to come) I have 2 spotlight blocks of 2 of the 7 Publisher modules, showing around 10 latest news.

I totally agree with Catzwolf that xoops should not need that much memory...... and by the way I did check all modules, fresh installations and cleanups of any code. All worked fine in the few days but when the site was having added all those articles, images etc etc, thats where the memory issues, blank screens came on.

Finally I must thank Trabis who personally helped me a lot in using Publisher, and of course lot of you and the xoops community which I find very, very helpful. Good work lads!!!!
Be Set FREE!

Login

Who's Online

148 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits