Announcement

#16 2024-05-09 13:52:26

OHappyDay
Member
2023-02-08
71

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

You have to apply the patch directly on the server where your piwigo installation is located. Connect to your server (by ssh, that is what I do) and follow the instructions to apply the patch on the command line.

Offline

 

#17 2024-05-09 21:17:23

digitography
Member
2016-10-27
49

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

Thanks for the reply.

I think SSH to the webserver is beyond my expertise.

Sync works, just throws up that error, hopefully will get  fixed in next version.

Offline

 

#18 2024-05-10 02:34:02

erAck
Only trying to help
2015-09-06
2075

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

You can apply the patch on your local copy (if current) and copy only that one changed file include/functions_metadata.inc.php to the hosting web server's installation.


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

Offline

 

#19 2024-05-10 19:30:08

digitography
Member
2016-10-27
49

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

I downloaded the include folder files to my local copy then performed the patch from the command line, worked a treat.
No More error messages.

Offline

 

#20 2024-05-16 18:30:41

FotofuchsWW
Member
2019-02-11
6

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

Hello,
same issue here.

I tried to run the patch command, in the /html directory, but it didn't work. I got the following reply:

Code:

MY@NAS:/.../piwigo/html$ curl https://github.com/Piwigo/Piwigo/commit/e8090d4149bb83289f6aa2d1d971a420ecdd706f.patch | patch -p1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0-sh: patch: command not found
100  1075  100  1075    0     0   3974      0 --:--:-- --:--:-- --:--:--  3981
curl: (23) Failed writing body

My Installation is running on a Synology NAS. Did I use the correct directory?

I would be happy about any help. I'm pretty much a novice when it comes to these things.

Thanks in advance - Daniel

Offline

 

#21 2024-05-16 18:38:57

digitography
Member
2016-10-27
49

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

Can you download to a local copy of the include/functions_metadata.inc.php file to my PC, then from a terminal window ran the patch, then FTPd the file back to the server, worked fine.

Offline

 

#22 2024-05-17 16:07:40

FotofuchsWW
Member
2019-02-11
6

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

Thanks for the tip! That worked for me! ;-)

Offline

 

#23 2024-05-17 19:17:43

digitography
Member
2016-10-27
49

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

Glad it worked

Offline

 

#24 2024-06-06 13:14:26

JAK
Member
2013-07-07
64

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

Is it possible to download the updated include/functions_metadata.inc.php file please and overwrite the existing one?
This would seem simpler and safer than playing around with SSH.
Thanks.

Offline

 

#25 2024-06-06 13:20:44

OHappyDay
Member
2023-02-08
71

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

That should do it.

Offline

 

#26 2024-06-06 14:34:15

erAck
Only trying to help
2015-09-06
2075

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

Make sure to download the correct 14.x branch's file, i.e. this
https://github.com/Piwigo/Piwigo/raw/14 … ta.inc.php


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

Offline

 

#27 2024-06-07 01:21:51

JAK
Member
2013-07-07
64

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

Thanks. Seems to have resolved it for me.

Offline

 

Board footer

Powered by FluxBB

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