Forgot password?
Welcome to our site!
Or Join with FTTF

Error after Installation


I installed everything to get LampCMS up and running but when I visit index.php I get the following error:

Exception class: MongoException
Message:size of BSON doc is 83 bytes, max is 0
 in file: /home/username/
 line: 155
 trace: #0 /home/username/ MongoCollection->ensureIndex(Array)
#1 /home/username/ Lampcms\Cache\Mongo->__construct(Object(Mongo), 'LAMPCMS', 'C_Cache')
#2 /home/username/ Lampcms\Cache\Mongo::factory(Object(Lampcms\Registry))
#3 /home/username/ Lampcms\Cache\Cache->__construct(Object(Lampcms\Registry))
#4 /home/username/ Lampcms\{closure}(Object(Lampcms\Registry))
#5 /home/username/ Lampcms\{closure}(Object(Lampcms\Registry))
#6 /home/username/ Lampcms\Registry->__get('Cache')
#7 /home/username/ Lampcms\{closure}(Object(Lampcms\Registry))
#8 /home/username/ Lampcms\{closure}(Object(Lampcms\Registry))
#9 /home/username/ Lampcms\Registry->__get('Tr')
#10 {main}

This is using the zip distribution off of the website.

(I also tried to use the dev version off of GitHub but there appears to be some errors in the !inc.php file. I haven't tried to sort them out yet because they are in the debug functions so the error trace takes you in circles.)


Ok, some more investigating shows the following error in my server error log.

[error] File does not exist: /home/username/{ _DIR_ }, referer:

Of course, username and both have valid values. I've stripped them here for privacy. It looks like that url part is not being resolved correctly.


After fighting for a while, I decided to try out MongoHQ DB hosting to see if Mongo was the problem. Using MongoHQ I now get a brand new error:

Error: unauthorized db:ws_lampcms ns:ws_lampcms.C_Cache lock type:0

I'm using !config.ini settings like the following:

server = "mongodb://<user>:<password>"
db = "ws_lampcms"
; If you already have existing
; Mongo Database with existing collections
; you may want to set the prefix
; all collections used by this program will
; be prefixed with this word.
; For example you may set prefix to "Lampcms"
; then collection USERS will become LampcmsUSERS
; This will take care of possible name collisions with
; existing collections
prefix = "Lampcms"

; good option to use the same db as in "MONGO" section
db = "ws_lampcms"
collection = "C_Cache"

Edited Sep 1, 2012 06:26 PM
added new information
asked August 28, 2012 at 1:17 PM

I've added a space in the url part because the forum is stripping the contents of the curly braces.
Aug 29, 2012 09:45 AM
This error unauthorized db:ws_lampcms is not native mongo error. I guess it's generetad by a MongoHQ. Most likely you now using password OR maybe they don't like something about the connection? Have you asked them about this error?
Sep 1, 2012 06:50 PM
I have not contacted them yet. I am able to connect with these settings using MongoVUE so I think it's fair to assume that the credentials are ok.
Sep 1, 2012 07:15 PM

1 Answer

This is unusual error. It may have to do with the mongo server.
What version of MongoDB are you using? Also are you on some type of virtual server?
The error message about file does not exist is not related to mongo error. I am not sure what file it was actually looking for, but that's a different error.
answered August 29, 2012 at 7:18 PM
I'm not sure how to check the Mongo version. I'm running this on a Dreamhost VPS. As for the file error, it's trying to find a file named "{ DIR }". It looks like a url part in the PHP is not getting replaced properly.
Aug 29, 2012 09:19 PM won't let me type the's looking for "curly underscore DIR underscore curly"
Aug 29, 2012 09:20 PM
did you install mongodb or did dreamhost? In the terminal enter mongo and you should see something like MongoDB shell version: 2.0.6 connecting to: test >
Aug 30, 2012 02:40 AM
Dreamhost installed it. It's running version 1.6.2
Aug 30, 2012 02:10 PM
I Googled for this error, basically I found one similar discussion in which case it was somewhat outdated version of Mongo and also was hosted on server that uses virtualization package. Can you upgrade Mongo?
Aug 30, 2012 06:57 PM
Let me see what I can do.
Sep 1, 2012 02:01 PM
Dreamhost cannot upgrade Mongo right now. As an alternative I tried to use MongoHQ's free db hosting. Please see my edit above.
Sep 1, 2012 06:28 PM

Your answer

Join with account you already have