Closed (duplicate)
Project:
Version Control API -- Git backend
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2011 at 07:12 UTC
Updated:
21 Mar 2011 at 17:45 UTC
Exception: Invalid class 'VersioncontrolRepository' specified by VersioncontrolBackend backend for requested type 'repo' when attempting to build a Versioncontrol entity; class does not implement VersioncontrolEntityInterface. in VersioncontrolBackend->buildEntity() (line 149 of /var/www/drupal/sites/all/modules/versioncontrol/includes/VersioncontrolBackend.php).
versioncontrol_git 6.x-2.x-dev
versioncontrol 6.x-2.x-dev
Drupal 6.20
Comments
Comment #1
sdboyer commentedWe've seen this before. A similar problem on d.o, in fact.
However, I need a HELL of a lot more information. That error is "wrong" in that
VersioncontrolRepository*does* implementVersioncontrolEntityInterface. So I need to know when this error occurs, if it always occurs or if its intermittent...as much context as you can give me. If it's intermittent, it could be related to the problem we're having on d.o itself.Comment #2
sdboyer commentedOhhh wait. Sorry, it says 'on cron' in the title.
Well, still - please provide me some background on your vcapi install - do you have any repositories set up? How many? Are they all valid? etc. etc.
Comment #3
fizk commentedI traced the problem to
buildEntity()inversioncontrol/includes/VersioncontrolBackend.phpThe errors stop when I made this change (i.e. change VersioncontrolRepository to VersioncontrolGitRepository, etc):
I find it funny that in both places, theres a big FIXME comment :)
Basically, the code should be supplying
buildEntity()with the Git version of all those 6 functions.Comment #4
fizk commentedIt seems the problem is in
versioncontrol_git/includes/VersioncontrolGitBackend.phpI think this is the right fix:
Comment #5
fizk commentedThe change was made in this commit:
http://drupalcode.org/project/versioncontrol.git/blobdiff/70e29814c38b17...
Comment #6
sdboyer commentedYeah, as I said in the other issue, you need to be using 6.x-2.x, not master; all these issues you're reporting are out of date because master is defunct. I'll kill it now.
Comment #7
sdboyer commentedBut, yeah. They're FIXMEs because I'm pretty stringent about the architecture being up to snuff, and those are somewhat hacky/pain points. They work though (once you get on the right branch), so they could probably be reduced to TODOs.
Comment #8
fizk commentedYou're right, I was using master............... Sorry Sam :)
I don't have any errors now.
Comment #9
sdboyer commentedNo worries at all. I'm SUPER excited that you're doing this level of consistent checking and bug reporting...I'm just sorry we didn't clear that up better so that all your effort thus far had to go to waste. Here's hoping you'll continue the diligence on 6.x-2.x, and keep coming up with good points and ideas :)