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
I don't know how you "reset back" to PHP 7.4 but you may need to install the package php7-json
Offline
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
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
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
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
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
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
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
Ran the manual update - all good now
Thank you
Offline