Fatal error: Cannot unset string offsets in ..

wflohr - March 13, 2007 - 09:56
Project:Import / Export API
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Importing "Input Formats" using XML will produce the following error

Fatal error: Cannot unset string offsets in xxx\sites\all\modules\importexportapi\engines\importexportapi_xml_get.inc on line 62

AttachmentSize
importexportapi_xml_get.inc_.patch1.06 KB

#1

xjm - October 9, 2009 - 17:19

I get the same error in 6.x-1.x-dev trying to import user roles; hacking engines/importexportapi_xml_get.inc as above fixes it.

#2

earnie - October 12, 2009 - 14:27
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:needs review» postponed (maintainer needs more info)

This patch doesn't make since to me in regard to the error. Can you tell me why you would check for !is_array instead of !isset?

 
 

Drupal is a registered trademark of Dries Buytaert.