New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RC3] Cannot redeclare class OC_Search_Provider at /var/www/owncloud/lib/private/search/provider.php#5 #9726
Comments
@butonic What do you think? |
Maybe a duplicate of owncloud-archive/search_lucene#17. I am preparing a new version of search lucene. The stable7 branch has the ocsid already merged and I think @icewind1991 and have been polishing it for quite some time now. I only need to make sure it works with the latest patches to the session and user api in core/stable7. I then plan on releasing the new version via the appstore as soon as I get final testing done. |
Unable to reproduce on Debian variant with SQLite and oC 7.0.0 RC3. Running PHP 5.4. |
adding a simple "x" in provider.php#5 (/lib/private/search/provider.php) solved the problem for me. According to other posts, this is a conflict betwen OC & Zend FreeBSD 9.2-RELEASE-p10, PHP 5.4.30, MySQL 5.5.37 |
I am currently moving the codebase to the composer autoloader. That should resolve class loading as @DeepDiver1975 already pointed out. The fix you posted will break ALL search providers, and will give you class not found exceptions whenever using the search. No matter if search_lucene is involved or not, because all search results are derived from I'll post an update when a version with composer is available. |
true...true... |
Hi, I have same problem, I had OC6 where search was working and today I upgraded to OC7 and search stopped work |
The same problem here after upgrade to OC 7 stable. |
Same problem here |
@SilFoiera @marfig2005 @merlin2004 @sjswarts85 How exactly did you update? I am asking because the release tarball does not contain a @DeepDiver1975 @karlitschek now that I am reading the docs, simply overwriting the old code and not extracting into an empty directory is not supported as an upgrade path. The documentation is clearly wrong there. Otherwise loft over classes, as in this case will be picked up twice by the autoloader. For anyone who has run into this problem: simply delete For completeness sake: I misinterpreted this issue with loading zend classes because they might have been installed system wide. |
@butonic G'day mate, I cheat a little and maybe it is the packager's issue. I use cPanel hosting with Installatron. When I updated through the Web interface I was greeted with that error. Googling it led me here, so if you think its a problem with the package maintainer I will contact them directly and post back. |
@sjswarts85 Please open a ticket with Installatron so that they update their upgrade procedure :) |
@oparoz ok will do |
@butonic: |
I updated the documentation accordingly. Have a look at owncloud-archive/documentation#464 and give a quick 👍 If you think it makes sense. |
The documentation has been fixed accordingly, closing this. |
👍 |
@butonic This was a fresh install though... |
@enoch85 The release tarball does not contain a You can just delete |
@butonic No, I don´t have I always install via package. Anyway, now I get this instead:
(And now I have 7.0.1) |
@butonic PING |
Removing the two left over files mentioned here did the job for me! Thanks! |
@enoch85 please stay on topic of the original issue. |
great! Thank you for this solution. remove ... |
Steps to reproduce
Expected behaviour
No error
Actual behaviour
Error PHP Cannot redeclare class OC_Search_Provider at /var/www/owncloud/lib/private/search/provider.php#5 Shows up in log.
Server configuration
Ubuntu Server 14.04
Database:
MySQL latest
PHP version:
PHP 5.5.9-1ubuntu4.3 (cli) (built: Jul 7 2014 16:36:58)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
ownCloud version: (see ownCloud admin page)
7.0 RC3
Updated from an older ownCloud or fresh install:
Fresh install
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Client configuration
Browser:
Chrome Version 34.0.1847.131 m
Operating system:
Windows 8.1
Logs
Web server error log
ownCloud log (data/owncloud.log)
Just a bunch of these:
Error PHP Cannot redeclare class OC_Search_Provider at /var/www/owncloud/lib/private/search/provider.php#5
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: