When I use drush to enable a module, I get the following errors:
Illegal string offset 'bundle' conditional_fields.features.inc:108 [warning]
Illegal string offset 'entity' conditional_fields.features.inc:122 [warning]
Illegal string offset 'bundle' conditional_fields.features.inc:122 [warning]
Illegal string offset 'dependee' conditional_fields.features.inc:123 [warning]
Illegal string offset 'dependent' conditional_fields.features.inc:124 [warning]
Illegal string offset 'options' conditional_fields.features.inc:125 [warning]
PHP Fatal error: Unsupported operand types in /conditional_fields/conditional_fields.module on line 1384fieldable_panels_panearray_key_exists() expects parameter 2 to be array, string given [warning]
conditional_fields.features.inc:102fieldable_panels_paneIllegal string offset 'entity' conditional_fields.features.inc:108 [warning]
I put in the following code to see what did not have a '$field':
//sng
if(!array_key_exists('entity',$field))
{
print_r('<pre>');
print_r($field);
print_r('</pre>');
}
Comment | File | Size | Author |
---|---|---|---|
#16 | 2724415_conditional_fields_fatal_error_unsup_operand_types_16.patch | 850 bytes | pavel.zheldak |
|
Comments
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis is connected:
https://www.drupal.org/node/2637740
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedAfter looking further it is not fieldable_panel_panes.
Instead this commit breaks conditional fields: https://www.drupal.org/commitlog/commit/4894/187a1386916dc1d5f1539ec65a7...
I can create a feature just fine with the dev version with the commit.
But when I enable the feature with conditional fields on a new install I get the following:
the line
foreach($item as $field) {
returns $field as a string not an array.Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #6
Mschudders CreditAttribution: Mschudders as a volunteer commentedHello,
Does anyone have an update about this ?
I am having this issue aswel.
Investigating now.
Comment #7
Mschudders CreditAttribution: Mschudders as a volunteer commentedDear
I have resolved the fatal error, features reverting etc works properly, however there are still a lot of notices.
patch attached.
Comment #8
Mschudders CreditAttribution: Mschudders as a volunteer commentedComment #9
fizk CreditAttribution: fizk commentedYou need to re-export your features, because this commit changed the export format.
Attaching a patch to better explain this error when it happens.
Comment #10
fizk CreditAttribution: fizk commentedFix whitespace.
Comment #11
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedDrush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function Exception() in modules/all/conditional_fields/conditional_fields.module, line 1394
i think the patch should be 'throw new Exception'
http://php.net/manual/en/language.exceptions.php
Comment #12
delacosta456 CreditAttribution: delacosta456 commentedhi @ SocialNicheGuru
I am facing this issue too ..
i applied the patch 10 but still encountering the error message in drush ..
Please have you found a solution ?
thanks
Comment #13
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI had to totally redo all my conditional fields
Comment #14
pavel.zheldak CreditAttribution: pavel.zheldak commentedThere were a problem with patch #10 as there should be "throw new Exception" as it was mentioned in #11. Uploading fixed version.
Comment #15
pavel.zheldak CreditAttribution: pavel.zheldak as a volunteer and at Myplanet commentedComment #16
pavel.zheldak CreditAttribution: pavel.zheldak as a volunteer and at Myplanet commented