#1 2025-12-02 11:28:01

mx5
Member
2023-01-22
15

Updated PHP and now the site won't load

Hello/Hi/Greetings,

I logged onto my site today and it said there were some plugins that needed updating but it said it needed to update php first

As my WP site reported a similar issue I decoded it was time to act

I did the update via my hosting sites control panel to the latest version they had on offer,. The WP site is fine but the pwigo site but showed lots of errors so I tried to reset the php back to 7.4 on that and now all it shows is this


Fatal error: Uncaught --> Smarty: Plugin 'json_encode' not callable <-- thrown in /home/mxyorksh/photos.mx5yorkshire.co.uk/include/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php on line 50



Piwigo URL: http://photos.mx5yorkshire.co.uk


I took a full back up of all the photos beforehand so I can rebuild the site if necessary

Tks
Dave

Offline

 

#2 2025-12-02 13:20:54

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14087

Re: Updated PHP and now the site won't load

I don't know how you "reset back" to PHP 7.4 but you may need to install the package php7-json

Offline

 

#3 2025-12-02 13:52:04

mx5
Member
2023-01-22
15

Re: Updated PHP and now the site won't load

It was just an option on my hosts control panel

How would I go about doing what you suggest - assume I'm at level one dumb as ...

Tks

Offline

 

#4 2025-12-02 13:55:52

mx5
Member
2023-01-22
15

Re: Updated PHP and now the site won't load

Just put it back to 8.4 and the site now loads again but lists lots of errors

I'd rather fix those that try get it working on the older version

You should be able to see them on https://photos.mx5yorkshire.co.uk/

example
Deprecated
: Smarty_Internal_Data::getTemplateVars(): Implicitly marking parameter $_ptr as nullable is deprecated, the explicit nullable type must be used instead in
/home/mxyorksh/photos.mx5yorkshire.co.uk/include/smarty/libs/sysplugins/smarty_internal_data.php
on line
193

Offline

 

#5 2025-12-02 16:15:31

OHappyDay
Member
2023-02-08
199

Re: Updated PHP and now the site won't load

These are only warnings about deprecated functions.

To suppress these warnings enter the following into the Local Files Plugin:

$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED  & ~E_WARNING;

See also this post: https://piwigo.org/forum/viewtopic.php?pid=180778

Offline

 

#6 2025-12-02 17:06:49

mx5
Member
2023-01-22
15

Re: Updated PHP and now the site won't load

Thank you - that stopped the warnings appearing on the home / user page but when I hit the admin button I get this

Fatal error: Uncaught Error: Call to undefined function mb_substr() in /home/mxyorksh/photos.mx5yorkshire.co.uk/admin/intro.php:333 Stack trace: #0 /home/mxyorksh/photos.mx5yorkshire.co.uk/admin.php(406): include() #1 {main} thrown in /home/mxyorksh/photos.mx5yorkshire.co.uk/admin/intro.php on line 333

Offline

 

#7 2025-12-02 17:29:32

moberley
Member
2025-11-10
90

Re: Updated PHP and now the site won't load

I'm not sure but I think some of these errors might be because your Piwigo is not upgraded to version 16 to be fully compatible with PHP 8.4. Maybe you have to do the manual update?

Offline

 

#8 2025-12-02 17:37:11

mx5
Member
2023-01-22
15

Re: Updated PHP and now the site won't load

Thats a bit aukward !   

This morning it said there was a new version available but it wouldn't let me install cos i was on an older php

I updated php and now I can't run or update the app

Seems the dog is chasing its own tail atm


How can I do a manual update please ?

Offline

 

#9 2025-12-02 18:50:06

moberley
Member
2025-11-10
90

Re: Updated PHP and now the site won't load

You will need to remove some files/folders (and keep others) and upload the new versions via FTP or perhaps your hosting services' file manager.

There is a guide here:

https://piwigo.org/guides/update/manual

Hope this helps.

Last edited by moberley (2025-12-02 19:18:25)

Offline

 

#10 2025-12-03 14:02:35

mx5
Member
2023-01-22
15

Re: Updated PHP and now the site won't load

Ran the manual update - all good now

Thank you

Offline

 

Board footer

Powered by FluxBB