#1 2025-11-27 13:08:28

Michael_56
Member
2025-11-27
18

Fatal error when editing (rotating) image

Hello/Hi/Greetings,

Hello,
I have uploaded some jpg files to my website. I wanted to edit or rotate these images in Oiwigo as an administrator. When I use the pen to edit, I get the following message:

Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /var/www/virtual/mc-weber.de/htdocs/admin/include/functions_metadata.php:195 Stack trace: #0 /var/www/virtual/mc-weber.de/htdocs/admin/include/functions_metadata.php(292): get_sync_metadata(Array) #1 /var/www/virtual/mc-weber.de/htdocs/admin/picture_modify.php(74): sync_metadata(Array) #2 /var/www/virtual/mc-weber.de/htdocs/admin/photo.php(68): include('/var/www/virtua...') #3 /var/www/virtual/mc-weber.de/htdocs/admin.php(407): include('/var/www/virtua...') #4 {main} thrown in /var/www/virtual/mc-weber.de/htdocs/admin/include/functions_metadata.php on line 195

Unfortunately, I don't know what to do with this. Does anyone have any ideas?

I hope I'm in the right place in the forum.

Thanks,
Michael

Addendum: I am using version 16.0.

Piwigo URL: http://mc-weber.de

Offline

 

#2 2025-11-27 13:21:02

moberley
Member
2025-11-10
90

Re: Fatal error when editing (rotating) image

Assuming you are using PHP 7.4 then there is currently an issue with Piwigo 16 on PHP 7.4 and the use of the built-in function str_starts_with() as shown in the error message. I expect it will be fixed in an update but in the meantime if you are not able to switch to a higher version, then you can also use a polyfill in the personal plugin to fix this problem.

https://piwigo.org/forum/viewtopic.php? … 80#p193380

Offline

 

#3 2025-11-27 13:23:55

Linty
Piwigo Team
2023-11-03
72

Re: Fatal error when editing (rotating) image

You are probably using PHP 7.4. You can try the solution proposed in this post while waiting for version 16.1.0 to be released: [Forum, post 193380 by moberley in topic 34552] Can't upload photos since update to v16..


“An adventure between passion and logic.”

Offline

 

#4 2025-11-27 13:25:50

Michael_56
Member
2025-11-27
18

Re: Fatal error when editing (rotating) image

Thanks for your help, you're right of course, I'm using PHP 7.4.
Installiert auf 16. März 2021, vor 4 Jahren 8 Monaten 1 Woche 3 Tage
Betriebssystem: Linux (Container)
PHP: 7.4.33 (Info anzeigen) [2025-11-27 13:22:59]
MySQL: 5.5.5-10.11.15-MariaDB-deb12 [2025-11-27 13:22:59]
Grafikbibliothek: Externe ImageMagick 6.9.11-60 Größe des Caches 0 Mo berechnet vor 3 Monaten Aktualisieren

Last edited by Michael_56 (2025-11-27 13:27:13)

Offline

 

#5 2025-11-27 14:04:05

Michael_56
Member
2025-11-27
18

Re: Fatal error when editing (rotating) image

Hello,
I just saw that I could select a PHP version for my homepage.
Which version should I choose: 8.1, 8.2, 8.3, or 8.4?

Best regards, Michael

Offline

 

#6 2025-11-27 14:15:28

moberley
Member
2025-11-10
90

Re: Fatal error when editing (rotating) image

I am using PHP 8.4 with Piwigo 16 so the highest available there should work fine as far as I know.

Environment
Piwigo 16.0.0 Check for upgrade
Installed on November 6, 2025, 2 weeks 6 days ago
Operating system: Linux
PHP: 8.4.11 (Show info) [2025-11-27 07:13:26]
MySQL: 11.8.3-MariaDB-0+deb13u1 from Debian [2025-11-27 07:13:26]
Graphics Library: External ImageMagick 7.1.1-43

Last edited by moberley (2025-11-27 14:15:52)

Offline

 

Board footer

Powered by FluxBB