New Storage Error

Forum for questions and support relating to 1.35.x development only.
Post Reply
Posts: 1
Joined: Mon Mar 30, 2020 10:32 pm

New Storage Error

Post by DeathCamel57 » 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:

Code: Select all

==> /var/log/apache2/error.log <==
[Mon Mar 30 22:36:44.359565 2020] [php7:error] [pid 1695] [client] 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:

==> /var/log/apache2/access.log <== - - [30/Mar/2020:22:36:44 +0000] "GET /zm/?view=storage&id=0&popup=1 HTTP/1.1" 500 396 "" "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"
This error is referring to this line in the skin: ... 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.

I've found a fix. Changing the referenced line in

Code: Select all


Code: Select all

$newStorage = new ZM\Storage();
fixed it for me.

User avatar
Posts: 1129
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto

Re: New Storage Error

Post by iconnor » Tue Mar 31, 2020 12:55 pm

Yup. Fix merged, new packages building.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests