When I'm programatically creating nodes using the code found here I keep getting the following errors:
Warning: Illegal offset type in isset or empty in pathauto_cleanstring() (line 180 of .../sites/all/modules/pathauto/pathauto.inc).
Warning: Illegal offset type in pathauto_cleanstring() (line 223 of .../sites/all/modules/pathauto/pathauto.inc).
I have tried providing a default $node->path value, not including a value, setting the value myself using pathauto_cleanstring(), but nothing seems to work. I find it odd that I'm getting the error twice too :s
The solution to this question didn't help either unfortunately :(
Any help on this would be greatly appreciated!
So, the problem had to do with the data that I was using to create the path. I'm loading an XML file using simplexml_load_file. The value I was using for the node title was a SimpleXMLElement
SimpleXMLElement Object (  => Node Title )
Which needed to be cast as a string before saving it as the nodes title. Thank you all for your help!