I'm trying to copy configuration from my local test site to my remote production site. However, when importing into my production site, I get the following errors:
* Unable to read configuration.
* Warning: Illegal string offset 'version' in hansel_export_import_form_validate() (line 130 of /path/to/drupal/sites/all/modules/hansel/export/hansel_export.module).

The issue is that the form_validate callback is not setting $config correctly. Line 124 of hansel_export.module should be if (!$config = @unserialize($config)) { instead of if (!@unserialize($config)) {.

CommentFileSizeAuthor
#1 hansel_export_1990144-1.patch729 bytescolorfulcoder

Comments

colorfulcoder’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new729 bytes

Thank you for this! I wrote a patch for this in D6. I kindly request a review.