By lordg on
Hi Guys,
I have a custom nodapi function for performing additional opporations when a type of content type is inserted. However, I've had the following error occur "Warning in test1\includes\common.inc on line 3538.". I've tracked this down several times to being an encoding issue.
However, what I don't get is even though the query fails, nodeapi still gets called and I get a blank nid. This also causes other inserts to fail because nid and vid are 0 or null.
I understand that the causing issue is the encoding, but I don't understand why Drupal still runs nodeapi if the node insert (I believe) is failing and no nid or vid is produced.
Any help would be appreciated.
Greg.
Comments
Anyone have any ideas on
Anyone have any ideas on this?
This is really an issue in my
This is really an issue in my opinion. I don't understand how a product can still continue to call the nodeapi's when the node/update insert failed. Unless I am seriously misunderstanding something if it is intentional.
Can ANYONE please shed some light on this?
Thanks.