Fatal error: Allowed memory size of

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 23549432 bytes) in ......../inc/classes/BxDolDb.php on line 480

I get that error. i think i have had it before, my php.ini is set to 128.

Quote · 17 Jul 2014

I run my memory setting in php.ini at 512M

128M is dolphins minimum requirement. However it not sufficient in many cases. Especially as a site grows or more modules are added.

My recommend minimum is 256M and my recommended ideal setting is 512M

So increase it.

https://www.deanbassett.com
Quote · 17 Jul 2014

I have now set it to 512, and restartet, but id dosnt change anything.

Quote · 17 Jul 2014

 

I have now set it to 512, and restartet, but id dosnt change anything.

 
512 or 512M

It makes a difference.

And check in dolphin admin host tools to see if it has changed there. If not, contact your host. There may be more then one php.ini file, or your host may be running software such as Suhosin to set hard limits on the php settings.

https://www.deanbassett.com
Quote · 17 Jul 2014

i have disabled all suhosin and checked the php.ini and it were 512M

Quote · 17 Jul 2014

you can see it here.

www.online-album.dk

Quote · 17 Jul 2014

Oh. You said it did not change anything. But it did. The error is now 536870912

You have something else wrong that's chewing up all the memory. I have no idea what is causing that. Perhaps a damaged table in the database.

https://www.deanbassett.com
Quote · 17 Jul 2014

it happened a little while after i restored a backup from last night. and it had worked all fine before, could this have caused anything ?

Quote · 17 Jul 2014

and by backup i mean backuo of entire server.

Quote · 17 Jul 2014

Yup. It could have. Something may have gone wrong with the restore.

https://www.deanbassett.com
Quote · 17 Jul 2014

I once had an allowed memory limit on a Dolphin test site on Arvixe hosting.  They kept increasing the memory limit and I had done nothing to the site before the error.  It finally went away on its own.  My opinion is that Arvixe changed something that was causing the problem and eventually corrected it.

You might want to contact your host.

Geeks, making the world a better place
Quote · 17 Jul 2014

there is one thing i did change after the backup, i changed the server hostname,

Quote · 17 Jul 2014

memory leaks is very common with php scripts ... I was going to suggest trying to override the default PHP memory limit but this is not really a good solution.

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 17 Jul 2014

this is from my second dolphin site.

and this is from -----> host tool

  • PHP:
    • PHP accelerator = NO - WARNING (Dolphin can be much faster if you install some PHP accelerator))
    • PHP setup = apache2handler - OK
  • MySQL:
    • key_buffer_size = 8384512 - OK
    • query_cache_limit = 1048576 - OK
    • query_cache_size = 0 - FAIL (must be >= 16777216)
    • query_cache_type = ON - OK
    • max_heap_table_size = 16777216 - OK
    • tmp_table_size = 16777216 - OK
    • thread_cache_size = 0 - FAIL (must be > 0)
  • Web-server:
    • User-side caching for static conten = click here to check it in Google Page Speed
      If it is not enabled then please consider implement this optimization, since it improve perceived site speed and save the bandwidth, refer to this tutorial on how to do this.
      To apply this optimization you need to have expires_module Apache module - OK
    • Server-side content compression = can be checked manually or in "Page Speed" tool build-in into browser.
      If it is not enabled then please consider implement this optimization, since it improve perceived site speed and save the bandwidth, refer to this tutorial on how to do this.
      To apply this optimization you need to have deflate_module Apache module - OK
  • Dolphin:
    • DB cache = On (File based cache engine) - WARNING (installing PHP accelerator will speed-up file cache)
    • Page blocks cache = On (File based cache engine) - WARNING (installing PHP accelerator will speed-up file cache)
    • Member menu cache = On (File based cache engine) - WARNING (installing PHP accelerator will speed-up file cache)
    • Templates Cache = Off (FileHtml based cache engine) - FAIL (please enable this cache in Dolphin Admin Panel -> Settings -> Advanced Settings)
    • CSS files cache = Off - FAIL (please enable this cache in Dolphin Admin Panel -> Settings -> Advanced Settings)
    • JS files cache = Off - FAIL (please enable this cache in Dolphin Admin Panel -> Settings -> Advanced Settings)
    • Compression for CSS/JS cache = On - OK
Quote · 17 Jul 2014

I checked on database now, and found this.


145 - Table './homepage/Profiles' is marked as crashed and should be repaired


but how can i repair it ?

Quote · 17 Jul 2014

From phpMyAdmin.


https://www.deanbassett.com
Quote · 17 Jul 2014

i only have this at table maintainence

Flush the table (FLUSH)

Quote · 17 Jul 2014

Then go to the SQL tab instead and put this into the Run SQL query box and click Go.

REPAIR TABLE `Profiles`

https://www.deanbassett.com
Quote · 17 Jul 2014

awesome :D that worked.

thanks for premium help.

Quote · 17 Jul 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.