Closed (fixed)
Project:
MongoDB
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Dec 2010 at 20:21 UTC
Updated:
3 Jan 2014 at 02:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cpc commentedYeah, it's confusing, but read the readme.txt file in the module's directory.
There are no configuration screens. You have to update your settings.php file.
Also, you might want to use the Dev version, since there's a lot more code...
Comment #2
jspapas commentedThere is no readme.txt in beta1, but found it on CVS. Thanks!
Comment #3
jthomasbailey commentedNothing in the readme about settings.php...
Comment #4
jthomasbailey commentedSeems to be working though. Nevermind.
Comment #5
dawehnerFeel free to provide a better README.txt
Comment #6
chx commentedComment #7
droplet commentedYes. confusing.
after enable modules. I don't know what i should do.
It looks working and saving some watchdog message but no session or other entries.
Comment #8
ddiakopoulos commentedI've written a new README with many additional examples and some additional pointers targeted at people who may like to experiment with the module but aren't MongoDB experts.
Comment #9
kurtzhong commented@ddiakopoulos: Thanks for you documentation, it's really clean and helpful.
Comment #10
drupizzle commented@ddiakopoulos +1 Thanks!
Comment #11
makara commentedOne mistake.
mongodb_itemsshould bemongodb_watchdog_itemsComment #12
misc commentedMade a patch from the above README with some formatting and the correction from #11.
Comment #14
JulienD commentedI would also add a missing variable watchdog_limit. This variable define the maximum level of severity to save into mongodb
In the following example, only errors more critical than WATCHDOG_CRITICAL status will be saved into mongodb (WATCHDOG_EMERGENCY, WATCHDOG_ALERT, WATCHDOG_CRITICAL)
Example :
$conf['watchdog_limit'] = WATCHDOG_CRITICAL;Comment #15
JulienD commentedI did a new patch based on the latest version of the README.txt and the patch done on comment #12. I've also added the comment #14 and followed conventions of README.txt found here.
Comment #17
JulienD commentedIt seems that the bot failed because of a problem on tests. I renamed my patch as "patch.txt" to mark it as "need review".
Comment #18
langworthy commentedI was unable to install Drupal without adding
include_once('./path/to/mongodb/mongodb_cache/mongodb_cache.inc');Without this I received an error that the class DrupalMongoDBCache was not found in includes/cache.inc
Comment #19
langworthy commentedIf I add
$conf['field_storage_default'] = 'mongodb_field_storage';to my settings.php then during a drush install I get the following errorWD php: FieldException: Attempt to create a field with unknown storage type mongodb_field_storage. in field_create_field() (line 122 of [error]
.../public_html/modules/field/field.crud.inc).
Cannot modify header information - headers already sent by (output started at /usr/local/Cellar/drush/4.5/includes/drush.inc:917) bootstrap.inc:1221 [warning]
FieldException: Attempt to create a field with unknown storage type mongodb_field_storage. in field_create_field() (line 122 of .../public_html/modules/field/field.crud.inc).
Drush command terminated abnormally due to an unrecoverable error.
Comment #20
misc commentedlangworthy, what have your two questions to do with writing a better README.txt?
Comment #21
langworthy commentedMiSc, following the instructions in the README patch produced the the problems listed above
Comment #22
misc commentedThat has nothing to do with this issue. Please create a new issue about that.
Comment #23
langworthy commentedMiSc, I'm confused. If this issue is about updating the README and the additions to the README are incomplete and cause problem, how is reporting those problems not part of this issue? For example to fix the problem in #18 the README just needs another line including mongodb_cache.inc.
Comment #24
misc commentedAs I see it, this issue is about fixing the README,txt, nothing else.
Comment #25
langworthy commentedMiSc. I agree completely.
I can see that my comment in #19 is probably a separate issue.
Regarding #18, when following the instructions of the patched README I could not install Drupal. I had to add an extra line to settings.php.
Here is an updated patch with the extra required line
include_once('./sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc');Comment #26
langworthy commentedComment #27
misc commentedlangworthy, I looked into it and you totally right about that
include_once('./sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc')(or where ever you have yourmongodb_cache.inc) like that in the settings.php, and that should really be in the README.txt.But this is not how it should work - mongodb_chache should use the settings in
$conf['cache_backends']but does not. That conf seems not to be doing nothing right now. I create an new issue on that, I suggest we remove$conf['cache_backends']from the README.txt right now - because it is confusing to write the same stuff in two places.Comment #28
misc commentedComment #29
misc commentedPatch applied to latest dev of 7.x-1.x.
Comment #30
misc commented