What are the steps required to reproduce the bug?
https://www.drupal.org/project/custom_node_write/issues/3022249
Modify an existing install file and add a description in the field:
Before:
$schema ['xx_table'] = array(
'fields' => array(
'block_id' => array(
'type' => 'serial',
'not null' => true,
),
'nid' => array(
'type' => 'int',
'not null' => true
),
),
'indexes' => array(
'nid' => array(
'nid',
),
),
'primary key' => array('block_id'),
'auto increment' => 1
);
After:
$schema ['xx_table'] = array(
'description' => 'xx_table',
'fields' => array(
'block_id' => array(
'type' => 'serial',
'not null' => true,
'description' => 'The primary key',
),
'nid' => array(
'type' => 'int',
'not null' => true
),
),
'indexes' => array(
'nid' => array(
'nid',
),
),
'primary key' => array('block_id'),
'auto increment' => 1
);
What behavior were you expecting?
No changes expected on drupal interface since no functional changes done.
The site should run normally.
What happened instead?
The site crashed with the following error:
Fatal error: Cannot unset string offsets in\includes\common.inc on line 7208
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal-crashes-with-error-cannot-unset-string-offset-*-2981959-3.patch | 684 bytes | ajaybmishra |
Comments
Comment #2
avinashHDM commentedComment #3
ajaybmishra commentedHello avinashHDM,
As you not commented anything from your side on this issue from last 6 months, so tried to give corrected patch for this error.
Please check and review it.
Comment #5
ajaybmishra commentedChanged the status to Needs Review.
Comment #6
ajaybmishra commentedChanged the assignment to myself.
Comment #7
ajaybmishra commentedAdded company name in comments.