Jump to content

Fatal error: Allowed memory size Issue


tatocaster

Recommended Posts

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in xxx/public_html/includes/dbfunctions.php on line 0

 

I'm trying to write custom Domain Registrar module. Using localAPI function ruins everything, and comes blank page with this error. Also , after this I cant login to admin panel. Error occurs at all localAPI call.. I found solution to rewrite some functions with custom queries, to select and so on but its' very bed experience. Plz help.

 

memory_limit is 256M now, and it's quite large for PHP.

 

Thanks

Link to comment
Share on other sites

Recommended is 128M and 256M is ok as well.

 

If you got fatal error for allowed memory size, then you should review your custom php coding and improve it

 

I even resized to 512M, and with custom coding it works well :) I said that error occurs when calling LocalAPI. simply as in documentation. just copy and paste and changed variables for testing

Link to comment
Share on other sites

  • 5 years later...

For this issue: You should be updated your local value of "memory_limit"

Goto your cPanel hosting account (i am use namehero)

Find the "MultiPHP INI Editor"

bellow "Configure PHP INI basic settings" select your domain

Find " memory_limit " and update the value of right side textbox(Defaul 32M in mycase...i was update 48M)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated