Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Fatal error: Allowed memory size of **** bytes exhausted

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
8 years 5 months ago #281765 by azjr
This happened to me twice now within this development project: this time, in front-end, while logged in as user, I made accidental entry in the password verification field and clicked update - got this error:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 29361996 bytes) in /home/***/public_html/***/libraries/joomla/database/driver.php on line 2050

Any ideas/suggestions? The only way I could have solved it last time (and the fastest) - was to delete the user and recreate it. = any attempt now within that user to save data in front-end, will result in this error - it affect ONLY this one user.

Please Log in or Create an account to join the conversation.

  • lousyfool
  • lousyfool
  • OFFLINE
  • Posts: 141
  • Thanks: 46
  • Karma: 5
8 years 5 months ago - 8 years 5 months ago #281771 by lousyfool
It's a fairly 'generic' error (google the error message without the numbers) only indicating that something causes your server's set memory limit to be exceeded. What triggers it, like in your case one user, isn't as relevant as the cause, which can be one or several memory hogs likely not related to a specific user or CB in general.
In other words, whatever triggers the error can be only the one last drop causing the bucket to run over. But there are probably some other processes using up the majority without you knowing.

Two ways of fixing it:
(1) increase the memory limit (it's effective, but in fact only a "band aid", not reducing the memory usage), or
(2) find and eliminate the memory hogs (means going to the root of the problem).

(1) Here's a good article on increasing the memory limit. Though your host might use not cPanel but a different interface, and/or not allow you increasing memory, and/or not let you access php.ini. Then you'll need to contact your host.

(2) To find memory hogs in your site, the usual developer tools are helpful: Joomla Debug (a memory hog itself, though!), browser tools, etc. Even simple things such as reducing the sizes of large pictures can help. You may as well scan your other extensions for memory-hungry processes and operations, and disable them for testing purposes, eventually one by one.
If you searched for "Fatal error: Allowed memory size" here on the forum, you'd get the same plus maybe some more pointers for finding the culprit in your specific case.
Last edit: 8 years 5 months ago by lousyfool.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281782 by krileon
Most likely some sort of bug in something installed is causing an infinite loop or hanging if it's only reliably affecting that one user. Try disabling non-core CB plugins within CB > Plugin Management 1 by 1 until it goes away. Also try to compare their profile to a working profile to see if anything could be different enough between them.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum