I updated to PHP 8.1 FastCGI. I now periodically get this error:
Fatal error: Uncaught mysqli_sql_exception: Unknown column 'user_agent' in 'field list' in /home/ketchemr/rrkphoto.com/include/dblayer/functions_mysqli.inc.php:132 Stack trace: #0 /home/ketchemr/rrkphoto.com/include/dblayer/functions_mysqli.inc.php(132): mysqli->query('\nINSERT INTO `...') #1 /home/ketchemr/rrkphoto.com/include/dblayer/functions_mysqli.inc.php(550): pwg_query('\nINSERT INTO `...') #2 /home/ketchemr/rrkphoto.com/include/functions.inc.php(625): mass_inserts('piwigo_activity', Array, Array) #3 /home/ketchemr/rrkphoto.com/include/functions_user.inc.php(1009): pwg_activity('user', 1, 'login') #4 /home/ketchemr/rrkphoto.com/include/functions_user.inc.php(1033): log_user('1', true) #5 /home/ketchemr/rrkphoto.com/include/user.inc.php(28): auto_login() #6 /home/ketchemr/rrkphoto.com/include/common.inc.php(178): include('/home/ketchemr/...') #7 /home/ketchemr/rrkphoto.com/index.php(11): include_once('/home/ketchemr/...') #8 {main} thrown in /home/ketchemr/rrkphoto.com/include/dblayer/functions_mysqli.inc.php on line 132
A page reload works and the page loads fine.
Piwigo URL: http://www.rrkphoto.com
Any ideas?
Thanks,
Randy
Offline
The same error shows up in the admin panel, so I suspect it is not related to any extensions, plugins, or theme.
Offline
Make sure you actually have a field user_agent in table piwigo_activity, see install/db/164-database.php for its parameters.
Offline
Thank you, @erAck. That helped. It gave an error when trying to open a newly uploaded image (I did not capture the text, but it was pertaining to user permissions), so I had to then run "Repair and optimize database", but it seems to have worked. I will watch it for a few days and report back here.
Offline
Error has been resolved. Thank you again.
Offline