I am getting the following error when trying to import an xml file to nodes:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /sitename/batch?id=29&op=do StatusText: Service unavailable (with message) ResponseText: Recoverable fatal error: Argument 2 passed to token_replace() must be an array, null given, called in C:\xampp\htdocs\sitename\modules\file\file.field.inc on line 581 and defined in token_replace() (line 76 of C:\xampp\htdocs\sitename\includes\token.inc).
When I go to the error page, the debugging is green and checked as good.
* context:
o '<clothing> <!--Required fileds--> <title>$5 dollar shirts</title> <link>http://www.sitename/shirts</link> <description><![CDATA[Quality cotton shirts for only $5.]]></description> <guid>shirt-156</guid> <details> <color>red and blue</color> <material>cotton</material> </details> <category>shirts</category><category>cotton</category> </clothing>'
* querypathparser:0:
o '$5 dollar shirts'
* querypathparser:1:
o 'http://www.sitename/shirts'
* querypathparser:2:
o 'Quality cotton shirts for only $5.'
* querypathparser:3:
o 'shirt-156'
* querypathparser:4:
o 'red and blue'
* querypathparser:5:
o 'cotton'
* querypathparser:6:
o 'shirts'
o 'cotton'
Thanks for the guidance.
Comments
Comment #1
Lythimus commentedSimilar error:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /?q=batch&id=3&op=do StatusText: Internal Server Error ResponseText:
Is this possibly because I'm testing on localhost? The same thing is happening with beta2. This happens when I create an Xpath XML Parser and import, even when using your examples which I manually tested in command line via xpath.
Comment #2
twistor commented@hellomobe, It looks to be an issue with token and/or filefield. I'll need more info about your setup.
@Nattosoup, It shouldn't be because you're on localhost. Is this Querypath Parser related?
Comment #3
twistor commentedComment #4
twistor commentedComment #5
twistor commented