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

Files: 
CommentFileSizeAuthor
#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 ]

Comments

Assigned:Unassigned» StryKaizer

Will submit a patch

Status:Active» Patch (to be ported)
StatusFileSize
new543 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.

+1 for porting this to the module.

Thanks StryKaizer!

Status:Patch (to be ported)» Needs review

Status:Needs review» Needs work

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

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

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

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

Patch was applied to 7.x-1.x

Status:Closed (fixed)» Fixed

Status:Fixed» Closed (fixed)

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

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 ?

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.

Cheers,
Sebas.

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.

Cheers,
Sebas.

Thanks Sebas.

Resolved my problem :-)