-
Notifications
You must be signed in to change notification settings - Fork 164
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
Debug output shows non-existent Doctrine index type YES_NO being referenced #43
Comments
Are you using the latest version of OSS-Framework? It is defined at: Do a |
I had already done a I had already typed the below diagnostics as requested, but I doubt they are needed now. Anyway, I add them just for reference. In case it's enlightening, I should mention that there are several other bugs I am working through, but didn't mention them here, to not confuse this issue. However they may be indicative of what the underlying version problem is...? If you want me to mention some of them here I will do so in a following comment. Otherwise I will bring them up as new issues. Here are a few example glitches, with appropriate irrelevant bits [SNIP]ed:
etc... |
It looks like you've definitely got a submodule issue. I presume you installed the libraries with The correct refs for all submodules are currently:
The OSS-Framework library for IXP Manager currently points to the head of its master branch. Can you try:
Closing this off as it is not a bug / issue but will continue to respond to any updates. |
I just now followed this sequence to get the submodule up-to-date:
I know that a month or two ago I followed the ChangeLog instructions about transitioning from the old way of including modules to the new one (which definitely included both
so I guess something unusual behind the scenes reverted it to a non-checked-out state. After the checkout it was fine. I will now proceed to do the same for all the sub-modules because I suspect that may be the cause of some of my other bugs. If you want me to try anything else to help diagnose how and when that sub-module managed to revert itself to a non-checked-out state let me know. If it helps, the problem seemed to start after the commit which introduced reseller stuff (and several of my remaining warnings are about things like entities having non-existent fields like |
No, this is normal. Submodules are typically detached heads pointing to a specific version / commit. |
Ah. That explains why I had to checkout out all of the sub-modules to Thanks for your help. Also, even after git-pulling all the sub-modules' master branches there remain two more Doctrine-esque warnings (which I can find), quoted loosely below:
Should I:
? |
It'll probably bite you in the ass later. You should try and reset your submodules. Possibly by removing them and re-initialising them. Google for the best procedure for this.
It looks like you're missing schema changes from the v3.2.0 changelog. |
"Try to solve it through our comment-thread here" is fine for now. |
Regarding the "YES_NO" type problem: I removed and reinitialised all nine submodules (after doing
I fixed it manually by:
but then that causes this:
diff --git a/library/OSS-Framework.git b/library/OSS-Framework.git
index 0c02f4d..be4e32c 160000
--- a/library/OSS-Framework.git
+++ b/library/OSS-Framework.git
@@ -1 +1 @@
-Subproject commit 0c02f4deaa212c9a53237ccfcc841acaf0bae938
+Subproject commit be4e32c714d61b5ca1f3ac9a3d53523416b7af97 Regarding the reseller schema problem: I had followed all CHANGELOG schema change instructions including 3.2.0, but I just reconfirmed anyway by doing |
Following up on the end of my last comment, I removed all the columns, indexes and foreign keys mentioned in the CHANGELOG v3.2.0 instructions, and re-added them as specified, and double-checked that the entries in the config file are as specified there too. The problem still persists, whether From what little I've been able to cram-read about Doctrine since yesterday, I suspect maybe the problem is not with the entries in the database, but in the relevant "entity" definitions for Doctrine? That is just the the wild guess of a desperate Doctrine-n00b though... |
Sorry @rowanthorpe - I'm upto my neck right now. Will address this over the weekend or Monday. |
OK, thanks @barryo for letting me know. Will try to post on mailinglist to get more eyes on it in the meantime too. |
I suspect only I will be able to help with this particular issue. |
When "debug" is on the following URLs show varying between one and ~hundred repeats of the following warning:
Notice: Undefined index: YES_NO in /[PATH]/[XX].php on line [X]
From scanning the code it seems YES_NO is not defined where other similarly used index types are, but I don't know Doctrine well enough to fix it myself.
Although these are apparently "warnings", I believe that what is causing them is also breaking other things in a less obvious way for me, so diagnosing this might also fix those...
I think the problem is where $FE_COL_TYPES is defined in:
library/OSS-Framework.git/OSS/Controller/Action/Trait/Doctrine2Frontend.php
, if that helps...The text was updated successfully, but these errors were encountered: