Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Wiredtiger Support - Undefined index: fileSize #208

Open
henryoswald opened this issue Jul 5, 2015 · 10 comments
Open

Wiredtiger Support - Undefined index: fileSize #208

henryoswald opened this issue Jul 5, 2015 · 10 comments
Labels

Comments

@henryoswald
Copy link

Hi,

we are running 2.3.11 with the driver mongo 1.6.10 stable and have found that the new wiredtiger engine is not running correctly. The error we get is "PHP error: Undefined index: fileSize"

Are there plans to support wiredtiger?

@bobthecow
Copy link
Owner

Thanks for bringing this up. I just fixed it in the develop branch. Feel free to use that version until a new release ships!

@bobthecow bobthecow added the bug label Jul 5, 2015
@henryoswald
Copy link
Author

Thanks Bob,

i've upgraded and the server can see the mongo servers now but its displaying an unknown error. Do you have any idea when a new release will be out?

Thanks a lot for this tool we use it a lot internally.

@bobthecow
Copy link
Owner

Sorry, I don't know when a new release will be out yet.

Any idea what the unknown error is? I've only got a very simple test database on WiredTiger to play with, so it's entirely possible I'm missing some glaring incompatibility :)

@henryoswald
Copy link
Author

Hey thanks for being so responsive.

I spun up a new box with a local wiredtiger instance and the issue seems to be to specifying the db name so mongodb://localhost:27017 will work, mongodb://localhost:27017/mydatabase will fail

@henryoswald
Copy link
Author

Hey Bob,

We would be happy to sponsor work on fixing this if it would possibly help? I am a bit out of my comfort zone with PHP. I've tried getting genghis-dev.php running but hit my head on mustache InvalidArgumentException errors.

FYI When specifying the db name in the connection string the response code sent back is a 404.

@bobthecow
Copy link
Owner

I'm completely unable to reproduce this. With the develop branch, I'm able to connect to a WiredTiger mongo server, both with and without a db name specified, both with and without authentication, and Genghis isn't throwing any errors.

Can you give me more info about your setup so I can try to reproduce it?

@henryoswald
Copy link
Author

Thanks Bob.

I am using the latest genghis-develop branch, running genghis.php using nginx. If i specify mongodb://localhost:27017/mydatabase I am able to click though and see the collections, unknown errors are shown throughout and documents are not visable.

If it can help I have a box with this issue I can give you access to. just need to ping me your public key.

@cookandy
Copy link

cookandy commented Aug 5, 2015

I am also having the same problem. I am using the latest genghis php file and am getting the same error as @henryoswald.

Genghis automatically creates a 'localhost' entry which doesn't work for me (because I have authentication turned on).

I create a database called "test", owned by a user called "test", and when I add test:password@localhost/test to genghis and hover over it I see the error:

PHP error: Undefined index: fileSize

However, if I add the connection admin:password@localhost:27017/admin, everything works and I can see the databases (including the test database).

I'm happy to provide any additional details if needed.

@henryoswald
Copy link
Author

Hey guys, has anyone had any luck with this issue yet? Im out of my depth on this code base as I know basically 0 php.

@Celelibi
Copy link

This bug is more than a year old. Merging the develop branch and releasing the fix would be nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants