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
Can No one help me with this?
Offline
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
Offline
I can find those in the "TakeATour" Folder but no other?
Very odd
Offline
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
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)
Offline
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
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
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.
Offline
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
erAck, thanks for the info.
Will mark as solved.
Offline