1

I'm porting an installation of Joomla, and I'm getting this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 116 bytes) in

in \wwwroot\libraries\joomla\error\exception.php on line 117

I've tried upping the limit, but that doesn't help (well, it wouldn't, it's only trying to allocated 116 bytes)

Any ideas?

Paul
  • 8,821
  • 11
  • 56
  • 103
  • 2
    A script that exceeds 134 Megabytes? Whatever for? THis sounds like broken code or a misconfiguration. – Pekka Sep 08 '10 at 15:26
  • Possible duplicate of [Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php](http://stackoverflow.com/questions/415801/allowed-memory-size-of-33554432-bytes-exhausted-tried-to-allocate-43148176-byte) – kenorb Jan 29 '16 at 10:35

8 Answers8

2

This issue can also arise if you have memcache enabled and you don't have the memcache client installed.

If this is the case, just pecl install memcache (make sure the extension is then enabled accordingly in your php.ini) and restart apache and you should be good to go.

jstats
  • 586
  • 4
  • 16
1

I've usually encountered errors like this when doing image manipulation with GD. As Yogesh suggests adding a line to up the memory limit has solved it for me. For example:

ini_set('memory_limit', '128M');
Nev Stokes
  • 6,578
  • 3
  • 35
  • 40
  • I put the memory limit up to an enormous amount, but still didn't work. It must be some issue with Joomla – Paul Sep 08 '10 at 17:00
1

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40 bytes) in /home/site/public_html/libraries/joomla/error/exception.php on line 117

What I did (thanks to a couple of fragmented suggestions is change the line on 117 to the following

$this->backtrace = debug_print_backtrace();
John Conde
  • 207,509
  • 96
  • 428
  • 469
ninja
  • 11
  • 1
0

To solve that I went to the backend and checked the debug for the site.

I saved the configuraztion and the site now works.

Alexis Pigeon
  • 7,054
  • 11
  • 36
  • 44
0

It's a very old question, but I had the same problem right now and I want to share the solution (other answer didn't help me).

If you are porting your joomla instalation you need to check all packages related with PHP in source and destination hosts.

If you are using debian based linux you need to type in both of them:

dpkg -l | grep "^ii  php5\?-"

And test that there is the same packages installed. If not, you can type this on source host:

echo $(dpkg -l | grep "^ii  php5\?\-" | cut -d " " -f 3)

Copy the result and paste it on destination host (if you are using an SSH client, for example):

apt-get install php-mail-mime ... (lot of packages) ... php5-curl

Or you can try this:

apt-get install $(ssh source_host dpkg -l | grep "^ii  php5\?\-" | cut -d " " -f 3)

Check that source_machine is correct (and use root@source_host or another_user@source_host if needed).

Restart apache2 server (it's not necessary, but it's for safe):

service apache2 restart

And check again.

If you are using windows check enabled extensions after and before migration (upload a "info.php" file to test them) and change php.ini according. Later restart apache2 service as administrator using services.msc or command line:

net apache2 stop
net apache2 start

I noticed the mistake when installing again from start and failed requirements checking.

Hope this will be useful to people with same problem.

OscarGarcia
  • 1,695
  • 13
  • 16
0

Check Your memory_limit parameter in your php.ini.

It is exceeding that limit.

Change it to your requirement and then try.

Hope this helps.

Nik
  • 3,721
  • 2
  • 18
  • 15
  • Ok. If it is not working then Check Your post_max_size parameter in your php.ini. It is exceeding the limit of your page. Change it to your requirement and then try. Hope this helps. – Nik Sep 08 '10 at 14:28
0

It looks like there was some problem with the joomla core files - as taking a fresh copy and overriding the index.php with a fresh copy, all is good now. Weird!

Paul
  • 8,821
  • 11
  • 56
  • 103
0

Another possibility that I've run in to is that one of your MySQL tables could be crashed. As odd as it sounds, that sometimes manifests itself this way.

Simply run mysqlcheck -rA to check and repair all of your mysql tables.

tylerl
  • 28,220
  • 12
  • 76
  • 108