KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Frugalware-Art.org Artwork for Frugalware Linux 
 Arch-Stuff.org Artwork and Stuff for Arch Linux 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
Ubuntu-Art.org - Artwork for Ubuntu

 Aug 29 2016  
 Not logged in  
 Home    Add Artwork   Forum   Groups   Knowledge   Events   Jobs   Users   Register   Login-


- Content .- Fans (1) . 
Go back to the overview page to see other entries
Back to overview

click to vote up

ClamAV integration not working with latest OC version?

Application - Oct 17 2012
Question:I'm using the latest OC Version and also files_antivirus.

I tried both modes, daemon and executable and they produce the same error message:

Warning: require_once(/var/www/owncloud/files_antivirus/lib/clamav.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/owncloud/lib/base.php on line 79

Fatal error: require_once() [function.require]: Failed opening required '/var/www/owncloud/files_antivirus/lib/clamav.php' (include_path='/var/www/owncloud/lib:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/base.php on line 79

Is there any known solution?

Failed opening required '/var/www/owncloud/files_antivirus/lib/clamav.php'

I may be wrong but this path seems invalid to me?
Shouldn't it access clamav.php via

thereby adding the "apps" between "owncloud" and "files_antivirus" in the URL.

By the way, I get the same error as you do. Maybe the app's dev can shed some light on this, I certainly love the idea of making use of ClamAV for ownCloud!


Please note: I'm not the developer!

It seems that the OC_App::getAppPath class in files_antivirus/appinfo/app.php is not including the apps/ directory. It seems that by successfully editing the two OC::$CLASSPATH lines in the files_antivirus/appinfo/app.php file, things work again. Here is what I've changed them to:

OC::$CLASSPATH['OC_Files_Antivirus'] = 'apps/files_antivirus/lib/clamav.php';
OC::$CLASSPATH['OC_Files_Antivirus_BackgroundScanner'] = 'apps/files_antivirus/lib/scanner.php';

Edit answer

Back to overview
Add comment

Do you have a question?
Post your question here


Copyright 2007-2016 Ubuntu-Art.org Team  Legal Notice
All rights reserved. Ubuntu-Art.org is not liable for any content or goods on this site.
You can find our FAQ here.
All contributors are responsible for the lawfulness of their uploads.
Please send us a notice if you spot an ABUSE of the website.
Information about advertising in Ubuntu-Art.org.
Developers can use our public webservice interface. More information here: public api
For further information or comments on this site, please send us a message
Ubuntu is a registered trademark of Canonical Ltd.
Content RSS   
Events RSS