Announcement

#31 2024-07-02 23:42:20

piwigoaus
Member
2024-07-02
5

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

 

#32 2024-07-03 01:01:21

erAck
Only trying to help
2015-09-06
2123

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

It's in your Piwigo's installation include/functions_metadata.inc.php


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

Offline

 

#33 2024-07-03 07:32:32

piwigoaus
Member
2024-07-02
5

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

 

#34 2024-07-03 09:50:25

J0nny
Member
2017-12-15
35

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

 

#35 2024-07-03 17:54:57

piwigoaus
Member
2024-07-02
5

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

 

#36 2024-07-03 19:57:19

erAck
Only trying to help
2015-09-06
2123

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

Code:

docker exec -it piwigo find /app -name functions_metadata.inc.php

or

Code:

docker exec -it piwigo find /www -name functions_metadata.inc.php

or brutally with a big club

Code:

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.


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

Offline

 

#37 2024-07-04 06:09:51

piwigoaus
Member
2024-07-02
5

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

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

Code:

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

 

#38 2024-07-10 15:25:49

doc32
Member
2024-07-10
1

Re: 14.4.0: fatal error: Cannot redeclare strip_html_in_metadata()

Hi Piwigoaus,

I have the same issue using docker.
Can you explain step by step how to solve it?
Thanks

Offline

 

Board footer

Powered by FluxBB

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