You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tourvista

Intermediate

  • "Tourvista" started this thread

Posts: 259

Location: Leicester UK

  • Send private message

1

Wednesday, August 14th 2013, 11:54am

Updated krpano and now I get "WARNING: unknown action: [object kinterface_layerarray]"

Hello all!

I'm trying to get some fresh air to an old project updating the krpano.swf flie to the latest version.

The previous version the virtual tour was using is (1.0.8.14 (build 11/05/20)
And the new version I'm trying is 1.16.5 (build 2013/07/09)

The virtual tour loads OK, but there is the following error in the console:

Source code

1
WARNING: unknown action: [object kinterface_layerarray]


i haven't been able to find anything about "kinterface_layerarray" at all in Google.

Any ideas?

Kind regards,

Rafael

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Thursday, August 15th 2013, 12:07am

Yesterday when preparing one of the examples for the guys on forum I got exactly the same error. That was obvious code mistake. Tried today, but can't reproduce it now. As I was doing some wrong hotspot access via index it must be related to some similar thing in your code. I learned also that naming in arrays is not supported anymore so try to also in that direction as I expect that you are talking about the same code that worked in previous version. You can always share the code with us....

3

Friday, August 16th 2013, 4:10pm

Hi,

the reason for this error message can be only invalid xml code - it happens when trying to call a 'layer' element (like <layer>, <plugin> or <hotspot>) as action.

e.g. the 'plugin' object is internally a object of the class 'kinterface_layerarray',
normal access to it in the xml would be either accessing the array attribute count or accessing an item,
e.g. trace(plugin.count); trace(plugin[0].name);
but when doing invalid things like 'plugin();' you will get an error like yours.

Best regards,
Klaus

Tourvista

Intermediate

  • "Tourvista" started this thread

Posts: 259

Location: Leicester UK

  • Send private message

4

Wednesday, August 21st 2013, 11:47am

Aha!

Thanks for your reply!
It seems that I need to spend a couple of hours debugging my xml file :-)

The hotspots don't show when I get this error, so that's a starting point.

Thank you very much for your help!!!

Cheers,

Rafael