I was recently forced to reinstall Piwigo (I tried both version 14.3.0 and 14.4.0; with PHP 8.3 and mysql81-server, on Apache 2.4, on FreeBSD 14.1). It used to work perfectly, but I now get an error "Class "MultiView" not found in /usr/local/www/apache24/data/piwigo/plugins/AdminTools/main.inc.php:23".
My stack trace is:
#0 /usr/local/www/apache24/data/piwigo/include/functions_plugins.inc.php(350): include_once()
#1 /usr/local/www/apache24/data/piwigo/include/functions_plugins.inc.php(441): load_plugin()
#2 /usr/local/www/apache24/data/piwigo/include/common.inc.php(151): load_plugins()
#3 /usr/local/www/apache24/data/piwigo/index.php(11): include_once('...')
#4 {main} thrown in /usr/local/www/apache24/data/piwigo/plugins/AdminTools/main.inc.php on line 23
Piwigo URL: https://photos.rossfinlayson.com/
Is there something obvious that I'm missing (like a missing library)?
Offline
Hi :-)
Desactivate plugin admintools on database
Offline
But how do I do this "Deactivate plugin admintools on database" if I don't have web access? Are you asking me to use a command-line database client (like "mysql") and somehow figure out how to do this manually??
It would be better to know exactly why my installation has broken - i.e., where "Class MultiView" is supposed to be defined, and install/fix/replace this in the PHP scripts.
Offline
OK, I have at least partially figured out the problem; the file permissions on the "include" files were wrong. (It would have been nice if PHP had thrown an error here, rather than silently failing to include the file.)
I have the site working a lot more now...
Offline
After "manual update" from piwigo 16.0 to 16.1 failed i Tried a total reinstall following the instructions but I get the same issue :
Fatal error: Uncaught Error: Class "MultiView" not found in /web/htdocs/www.fable.it/home/piwigo/plugins/AdminTools/main.inc.php:23 Stack trace
How can I solve it ? Thanks.
Offline
finlayson wrote:
OK, I have at least partially figured out the problem; the file permissions on the "include" files were wrong. (It would have been nice if PHP had thrown an error here, rather than silently failing to include the file.)
Can you be more specific about the file permissions? How were they before you changed them? What are they now you changed them?
Offline
fablepd wrote:
After "manual update" from piwigo 16.0 to 16.1 failed i Tried a total reinstall following the instructions but I get the same issue :
Fatal error: Uncaught Error: Class "MultiView" not found in /web/htdocs/www.fable.it/home/piwigo/plugins/AdminTools/main.inc.php:23 Stack trace
How can I solve it ? Thanks.
Did you check file permissions as suggested by finlayson?
Offline
Thanks. I put 755 permissions on all files, but nothing changed :/
Offline
Make sure traversal permissions on directories are set as well, i.e. the 'x' bit on the AdminTools/include directory. (and 755 on files is unnecessary, they don't need the execute permission bit). Whether 755 was actually the right decision on your system is also unknown, it depends on if the user the web server runs as also owns the files, and likely the 'other' users don't need access at all. If so, then this
chmod -R a-x,u=rwX,g=rX,o= piwigo/
chmod ug+x piwigo/tools/*.{pl,sh}sets 750 on directories and 640 on files (except piwigo/tools/*.{pl,sh} where also the x bit is set for 750). Replace piwigo/ with the actual directory of your Piwigo installation.
See also [Forum, post 180666 by erAck in topic 28678] Http Error 500.
Offline
Thanks but my piwigo is not on a self-host server so I must use an FTP application (Transmit for Mac) in my case, can't do chmod ....
Now the last error is : Fatal error: Uncaught --> Smarty: Unable to load 'file:menubar.tpl' <-- thrown in /web/htdocs/www.fable.it/home/piwigo/include/smarty/src/Template.php on line 159
what happened with this manual update... I alwyas did the automatic update... why wasn't available this time for upgrading from 16.0 to 16.1 ?
Last edited by fablepd (2025-12-08 17:17:52)
Offline