New Storage Error
Posted: Mon Mar 30, 2020 10:39 pm
Upon attempting to add a new storage location on my 1.35.1 instance, I'm getting an error about the Storage class not being found.
My install is on Ubuntu Server 18.04 LTS, with Zoneminder 1.35.1
Error follows:
This error is referring to this line in the skin:
https://github.com/ZoneMinder/zoneminde ... ge.php#L32
Are there any work arounds for this? Is it possible for me to manually add the storage place to my MySQL DB directly?
This might not appear in the default ZM install, I deleted the original storage space before I noticed this error.
===FIX===
I've found a fix. Changing the referenced line in to fixed it for me.
My install is on Ubuntu Server 18.04 LTS, with Zoneminder 1.35.1
Error follows:
Code: Select all
==> /var/log/apache2/error.log <==
[Mon Mar 30 22:36:44.359565 2020] [php7:error] [pid 1695] [client 10.0.0.200:59990] PHP Fatal error: Uncaught Error: Class 'Storage' not found in /usr/share/zoneminder/www/skins/classic/views/storage.php:32\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(284): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/storage.php on line 32, referer: http://10.0.0.240/zm/?view=options&tab=storage
==> /var/log/apache2/access.log <==
10.0.0.200 - - [30/Mar/2020:22:36:44 +0000] "GET /zm/?view=storage&id=0&popup=1 HTTP/1.1" 500 396 "http://10.0.0.240/zm/?view=options&tab=storage" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.121 Safari/537.36 Vivaldi/2.8.1664.44"
https://github.com/ZoneMinder/zoneminde ... ge.php#L32
Are there any work arounds for this? Is it possible for me to manually add the storage place to my MySQL DB directly?
This might not appear in the default ZM install, I deleted the original storage space before I noticed this error.
===FIX===
I've found a fix. Changing the referenced line in
Code: Select all
storage.php
Code: Select all
$newStorage = new ZM\Storage();