Has anyone else has this problem: SearchCustomField is an abstract type and cannot be instantiated
when using the php toolkit?
p
Paul L
08/19/2019, 9:31 PM
I don't use webservices too much, but took a little look and it doesn't seem to be created as an abstract class.
Is there any possibility that there's a duplicate definition for SearchCustomField? It's just I did notice that the NetSuiteService.php will only create the class "it's way" if it doesn't already exist
if (!class_exists("SearchCustomField")) // then creates class...
Can you navigate to definition and see what that shows?
j
Josh Whiddett
08/20/2019, 2:14 PM
Sorry, im fairly new to this not sure what you mean by navigate to definition?
Hi Josh,
Sorry for the delayed response. I've been a bit busy lately.
Ah, that's not quite what I meant.
I guess you're using an IDE like visual studio code or webstorm?
Within those, you can usually select SearchCustomField and press something like F12 (vscode and visual studio) or CTRL+B (webstorm) and it will take you to where that class has been created.