Neither of those commands work. I tried to replace the file, but there is no functions_metadata.inc.php file in my piwifo appdata folder. Where would I find it?
Offline
It's in your Piwigo's installation include/functions_metadata.inc.php
Offline
the only include folder I have is located in www/plugins/localfileseditor/include. Within that folder, there is a functions.inc.php file but no functions_metadata.inc.php file to overwrite.
Offline
piwigoaus : It should be there, Ive just done mine and fixed the problem.
I've installed by Piwigo in a folder called galerie and the include Folder is in there.
my website.de/galerie/include
There is another include folder in the admin folder but its not that one.
I just swapped the file with the one provided earlier in the thread and it fixed the problem.
Offline
The only folders with an include folder are located in the WWW folder. They are www/plugins/AdminTools and www/plugins/LocalFilesEditor. I can't attach a picture. My Piwigo docker appdata folder contains these folders: keys, log, nginx, php, www.
Perhaps the file got deleted and the reason I am getting the error. But there is no include folder anywhere but where I mentioned above.
The error shows this folder, /app/www/public/include/functions_metadata.inc.php. I do not see a public folder in my installation. To make sure my install is setup, I created a new instance of Piwigo in a new docker. There is no public folder.
Last edited by piwigoaus (2024-07-03 18:08:17)
Offline
Piwigo itself does not have nor create a public folder. It's part of your docker's or whatever web server document root. Also, it's odd that your installation would be in www/ (as www/plugins/... suggests) but you have no www/include/ directory and the error message mentioning /app/www/public/include/functions_metadata.inc.php (is the www/plugins/... you mention actually /app/www/plugins/... or located somehwere else not under /app/ ?).
However, see what this command gives::
find /app -name functions_metadata.inc.php
You may have to execute that inside the Piwigo Docker container, like
docker exec -it piwigo find /app -name functions_metadata.inc.php
or
docker exec -it piwigo find /www -name functions_metadata.inc.php
or brutally with a big club
docker exec -it piwigo find / -name functions_metadata.inc.php
(I don't know how the docker containers are "mounted"|docked).
I suspect you have some broken Docker container setup.
Offline
I figured it out. I copied the fixed file to the www install that I can see. In command line, this would be /config/www. The command to overwrite the file from piwigo’s console was
cp -f /config/www/functions_metada.inc.php /app/www/public/include/functions_metada.inc.php
Thanks for everyone’s help.
Last edited by piwigoaus (2024-07-04 08:11:25)
Offline
Hi Piwigoaus,
I have the same issue using docker.
Can you explain step by step how to solve it?
Thanks
Offline