New Storage Error

Forum for questions and support relating to 1.35.x development only.
Post Reply
DeathCamel57
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 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"
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

Code: Select all

storage.php
to

Code: Select all

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

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

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