I’m wanting to upgrade from 6.0.15 to 6.2.8 and running into problems with the site afterwards.
Because it was a point upgrade, I assume it was just a matter of replacing the core directory and running ?updateApp=[your-app-key]. Is this not correct?
The problem I’m running into is:
The TYPENAME argument passed to the getWebskins function is not of type string.
Has anyone experienced any errors with this before? Am I doing something wrong? I’ve updated the app a number of times, and restarted CF a number of times too. I even double checked the upgrade of the files by doing it all again.
I didn’t realise 6.3.x was available actually. It’s not mentioned on the FarCry downloads page.
As for 7.0.x, not ready for that step with this client just yet. Will get there soon, but simply wanted to unlock the tablet, mobile specific website functionality…
Hmm… I’ll have to dig deeper and work out what is going on.
Seems like a strange error… For typename to not be a string when passed to getWebskins(), there must be something weird happening with the metadata that is returned for the component…
Can you find this line that calls coapiadmin getWebskins() and just before it log the value of the “componentname” variable to a log file?
Then you can check the log and see if there are any funky values in there (or see if it crashes with something else).
The component name simple comes from the last part of the component path in fourq getTypeName(), so if the above log file doesn’t turn anything up, you could try dumping the data returned by the call to getMetadata() in that method: https://github.com/farcrycore/core/blob/p620/packages/fourq/fourq.cfc#L1148
P.S. In general for upgrades within the same minor version (6.0.x to a newer 6.0.x tag) it should only require an updateapp, but upgrades to a newer minor version (from 6.0.x to 6.1.x/6.2.x) may require a COAPI deploy as well.
I went further up the stack trace and output various things. One particular type CFC seemed to be coming up all the time. After investigating that, I found that someone had overridden getTypename and returned a query