After uninstalling mongodb module, the field_storage_default variable isnt set back to the default field_sql_storage value.

Manually executing variable_set('field_storage_default', 'field_sql_storage'); seems to fix the issue

#6 remove_variable_field_storage-1144398-2.patch488 bytesMiSc
#2 mongodb.fieldstoragedefault.patch543 bytesStryKaizer
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in mongodb.fieldstoragedefault.patch. View
Members fund testing for the Drupal project. Drupal Association Learn more


StryKaizer’s picture

Assigned: Unassigned » StryKaizer

Will submit a patch

StryKaizer’s picture

Status: Active » Patch (to be ported)
543 bytes
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in mongodb.fieldstoragedefault.patch. View

This patch will remove the field_storage_default variable again after disabling the module
This will make the default storage type active again.

Donaldd’s picture

+1 for porting this to the module.

Thanks StryKaizer!

univate’s picture

Status: Patch (to be ported) » Needs review

Status: Needs review » Needs work

The last submitted patch, mongodb.fieldstoragedefault.patch, failed testing.

MiSc’s picture

Status: Needs work » Patch (to be ported)
488 bytes

A problem with formatting of the patch, corrected it, and applied it.

MiSc’s picture

Status: Patch (to be ported) » Closed (fixed)

Patch was applied to 7.x-1.x

MiSc’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Ferrari’s picture

This problem still persists.
Apply the patch above but still did not work. :-(
I disabled and uninstalled the module after the patch and still the error persisted.

Tried to find in another place but I could not =/

Can Anyone to help me ?

sebas5384’s picture

That patch doesn't resolve anything, because that variable is being set in every boot of the Drupal.

So now i cant create new fields when i disable+uninstall the mongodb_field_storage module, because the default field_storage is still mongodb.

The question is, how the mongodb_field_storage did to persist always even if i disable+uninstall the module?

This is some core bug? or the field_storage_default is being set in the wrong way.

Please some help! this really ruined my project.


sebas5384’s picture

I resolved the problem.

When you install the mongodb_field_storage, must remove this line from the settings.php:

$conf['field_storage_default'] = 'mongodb_field_storage';

Doing that resolve all my problems :)

I think this must be a warning in some place in the README file or some warning message, i don't know which is the better approach.


Ferrari’s picture

Thanks Sebas.

Resolved my problem :-)

couloir007’s picture

Issue summary: View changes

Old post I know, but curious, is there a way to disable MongoDB and bring data back into MySQL?