module 'Exif Data' and php8

47 views
Skip to first unread message

tlahuizcalpantecutli

unread,
Mar 16, 2022, 10:41:48 AM3/16/22
to Gallery 3 Users
I am not sure if the vision of the revival team and of this group include care of third party modules as well, but in case of interest, the 'Exif Data' module failed in my php8 installation due to a php5/php8 incompatibility: use of strings as numbers which was allowed in php5, frowned upon but still permitted in php7, but verboten in php8.

Not having experience or vocation to investigate the source code deeply, I just applied a patch recommended in the internet at the point of failure: placed "(int)" in front of the string reference, and it worked, at least in this case.  Probably similar failures lurk ahead, but for now, we survived to keep flying another day, like Cpt. Reynolds and his Firefly.

Best,

t

J.R.

unread,
Mar 16, 2022, 2:12:01 PM3/16/22
to gallery...@googlegroups.com
Thanks for the heads up. Brad and others what they can with old modules to get them working in the PHP 7 to 8 environment -- which sometimes isn't much -- but we do need to know when something goes boing.

-- J.R.
--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/d08f9a66-1856-4184-8e96-f27b29f0ccean%40googlegroups.com.

Brad Dutton

unread,
Mar 16, 2022, 3:47:13 PM3/16/22
to Gallery 3 Users
Which exif module is this exactly? The bundled one or an addon module? If it's an addon module can you provide a link to it? I've tried to keep any modules up to date with PHP syntax changes, this is the list of modules I'm working from:

Gerardo L. Cahn

unread,
Mar 16, 2022, 4:43:07 PM3/16/22
to gallery...@googlegroups.com

As before (dupcheck case), I would not know where to download this module from.  Attached please find the zipped folder, which I believe is an add-on, not sure.

Page Admin/Modules states:

"Exif Data, version 1, Extract Exif data and display it on photo pages."

In case you dig in it, please be aware that I added "(int)" in front of "$data/100" about midways of line 232 in "/usr/share/gallery3-3.1.5/modules/exif/lib/makers/nikon.php"... which worked because the Lord is very generous with me.  You may want to start by deleting my patch, to have a fresh copy.

Best,

t

To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/e8d5cf64-21af-4c7d-a502-36265e28b4ffn%40googlegroups.com.
-- 
// Gerardo L. Cahn <ger...@niuk.org>
//  linux, mac ... and, well, yes,
//        ((windows too)).
exif.zip

Brad Dutton

unread,
Mar 16, 2022, 6:01:32 PM3/16/22
to Gallery 3 Users
That's the built in exif module. I copied your changed into gallery.

Thanks,
Brad
Reply all
Reply to author
Forward
0 new messages