Updated php to 8.1 from 7.4, Had to disable HTML Purifier

9 views
Skip to first unread message

Angus

unread,
Feb 12, 2026, 2:28:25 PMFeb 12
to gallery...@googlegroups.com
Was at PHP 7.4 but gallery didn’t work at PHP 8.1
So…updated Gallery from 3.1.2 to 3.1.5 today (although now listed as 3.0+)
And gallery still didn’t work at PHP 8.1

Narrowed it down to 2 plug-ins. Custom Menus and HTML Purifier.

Almost all of the Gallery works with those 2 plug-ins deactivated. I would like to keep these plug-ins activated, especially HTML purifier.

I suspect this issue has risen before but I can’t locate details of suggested fix.

Cheers
Angus


Adrian London

unread,
Feb 12, 2026, 6:22:51 PMFeb 12
to Gallery 3 Users
Hi Angus,

If you check the version of the HTML Purifier you have, it's probably 4.2.0.

I upgraded mine to 4.15.0 which fixes the issues with PHP 8.x

You can check the version in : .../purifier/vendor/HTMLPurifier/HTMLPurifier.php

You can get the latest 4.15.0 version here:

You want to replace the vendor/HTMLPurifier directory with the contents of the "library" directory in the 4.15.0 download.  Take a backup first!

-- 
Adrian


Angus

unread,
Feb 12, 2026, 6:58:37 PMFeb 12
to gallery...@googlegroups.com
Wonderful Adrian,
Great to get this sorted so quick.
The remaining issues are relatively minor and can wait for another day.

Tag Albums and Custom Menu.

Cheers
Angus



--
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 visit https://groups.google.com/d/msgid/gallery-3-users/88a71a90-cade-442f-818b-e8a8e33d9d51n%40googlegroups.com.

Adrian London

unread,
Feb 12, 2026, 7:02:38 PMFeb 12
to Gallery 3 Users
I don't use either of those, so can't help.  Sometimes, the logs will show something useful. 

My G3 is running well under PHP 8.5.    I posted some general error fixing for those going from PHP 7 to PHP 8 here, in case your logs show those errors for those two modules:

-- 
Adrian



Reply all
Reply to author
Forward
0 new messages