Announcement

#1 2022-11-23 09:19:58

digitography
Member
2016-10-27
35

[resolved] Fatal error: Allowed memory size exhausted

Hello

I am getting a fatal error

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2093080 bytes)

I found a couple of suggestions on the forum to change the memory limit to -1 in file

local/config/config.inc.php

However that file does not exist!

Help appreciated

Environment details:

Piwigo 13.2.0 Check for upgrade
Installed on 17 November 2022, 5 days ago
Operating system: Linux
PHP: 7.3.2 (Show info) [2022-11-23 08:13:47]
MySQL: 5.6.51-91.0-log [2022-11-23 03:13:47]
Graphics Library: External ImageMagick 6.8.9-9
Cache size 19.41 Mo  

Piwigo URL: https://piwigo.digitography.co.uk/photos/

Offline

 

#2 2022-11-23 16:10:43

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

Can No one help me with this?

Offline

 

#3 2022-11-23 18:48:59

Phil35
Member
France
2022-10-11
60

Re: [resolved] Fatal error: Allowed memory size exhausted

Hi,

I looked on my test platform running with 13.2, the find command found one file

# find . -name 'config.inc.php' -ls
  1565135      4 -rwxr-xr-x   1 www-data www-data     1655 Oct 21 14:13 ./plugins/TakeATour/tours/2_9_0/config.inc.php
  1565144      8 -rwxr-xr-x   1 www-data www-data     5415 Oct 21 14:13 ./plugins/TakeATour/tours/first_contact/config.inc.php
  1565151      4 -rwxr-xr-x   1 www-data www-data      195 Oct 21 14:13 ./plugins/TakeATour/tours/plugins/config.inc.php
  1565132      4 -rwxr-xr-x   1 www-data www-data      596 Oct 21 14:13 ./plugins/TakeATour/tours/2_8_0/config.inc.php
  1565129      4 -rwxr-xr-x   1 www-data www-data     1235 Oct 21 14:13 ./plugins/TakeATour/tours/2_7_0/config.inc.php
  1565138      4 -rwxr-xr-x   1 www-data www-data      753 Oct 21 14:13 ./plugins/TakeATour/tours/config/config.inc.php
  1565141      4 -rwxr-xr-x   1 www-data www-data     3570 Oct 21 14:13 ./plugins/TakeATour/tours/edit_photos/config.inc.php
  1565154      4 -rwxr-xr-x   1 www-data www-data     2021 Oct 21 14:13 ./plugins/TakeATour/tours/privacy/config.inc.php
  1565148      4 -rwxr-xr-x   1 www-data www-data     2508 Oct 21 14:13 ./plugins/TakeATour/tours/manage_albums/config.inc.php
  1177870      4 -rw-r--r--   1 www-data www-data      178 Nov 10 15:40 ./local/config/config.inc.php

Phil


Piwigo 13.8 on production platform  raspberry pi 4 (os 11 (bullseye))
Piwigo 14.1 on test platform raspberry pi 4  (os 11 (bullseye))

Offline

 

#4 2022-11-23 19:32:07

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

I can find those in the "TakeATour" Folder but no other?

Very odd

Offline

 

#5 2022-11-23 19:33:32

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

Could you copy and paste the code, perhaps I can just create a file?

Worth a shot I guess, because at the end of my tether here.

Offline

 

#6 2022-11-23 21:09:11

Phil35
Member
France
2022-10-11
60

Re: [resolved] Fatal error: Allowed memory size exhausted

yes, of course :

---
local/config# cat config.inc.php
<?php

/* Dans cette fenêtre, écrivez les informations pour configurer votre galerie Piwigo. */

$conf[‘show_php_errors’] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;


---
in the version 12.3, the content is different. I think it is because of plugins I had installed.
---
./local/config/config.inc.php
<?php

/* Dans cette fenêtre, écrivez les informations pour configurer votre galerie Piwigo. */

$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;

$conf['vjs_mediainfo_dir'] = '';
$conf['vjs_exiftool_dir'] = '';
$conf['vjs_ffprobe_dir'] = '';
$conf['ffmpeg_dir'] = '';



?>

---

Last edited by Phil35 (2022-11-23 21:12:03)


Piwigo 13.8 on production platform  raspberry pi 4 (os 11 (bullseye))
Piwigo 14.1 on test platform raspberry pi 4  (os 11 (bullseye))

Offline

 

#7 2022-11-27 11:27:41

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

Still getting this error.

Cannot find any reference to memory size in any of the config files.

I can't be the only one getting this error?

I am currently adding albums one by one, which is to say the least a little tedious.

Offline

 

#8 2022-11-27 23:36:02

erAck
Only trying to help
2015-09-06
2035

Re: [resolved] Fatal error: Allowed memory size exhausted

67108864 bytes is just 64MB, too little PHP memory. Check your memory_limit setting in the Apache php.ini, it should be at least 256MB. Go to Piwigo Admin -> Tools -> Maintenance, tab Environment, click PHP Show info to see what .ini files are pulled in and what the effective memory_limit is. If you can't edit php.ini you could try the PHP user.ini local to directory approach (see https://www.php.net/manual/en/configura … r-user.php ) or try to add to your local/config/config.inc.php

Code:

ini_set('memory_limit', '256M');

If you're not allowed to increase the memory limit at any place you'd need to talk to your hosting provider.


Running Piwigo at https://erack.net/gallery/

Offline

 

#9 2022-11-28 05:30:21

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

Thanks for the reply.

I have been able to access the server side php.ini and increased the memory to 256M.

Hoping that will fix the problem.

Offline

 

#10 2022-11-29 16:25:15

digitography
Member
2016-10-27
35

Re: [resolved] Fatal error: Allowed memory size exhausted

erAck, thanks for the info.

Will mark as solved.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact