Skip to main content
Participant
December 19, 2015
Question

Advanced Actions fail after publishing

  • December 19, 2015
  • 2 replies
  • 679 views

I have researched the issue in the community and have only found one related post here, which is still unanswered.

Since that one was from 2011 and I am running Cp 9.0.0.223 I figured I would start fresh and hopefully have better luck.

I'm using a MacBook Pro Retina late 2015 running OS X 10.10.5. I've tested my published project in the latest versions of Safari, Chrome, and Firefox (all sharing the same "behavior"). I've also tested whether or not my variables are incrementing properly and they all do. Factors which I am unable to test or am still unsure of include the use of a web development server location and altering browser settings (e.g., pop up blockers). Here is a description of what I'm experiencing:

  1. I have multiple slides containing Advanced Actions which all work fine in Preview mode within Cp and none work once published and tested on the server
    • These Actions range from basic Show/Hide text boxes to prompt users to do something specific on that slide before advancing to
    • Actions that increment multiple variables and when added together will make an object appear on a specific slide denoting course-section completion
  2. Again, everything in the project works fine in Preview but the Actions are not responding on my local, nor web dev once published
    • I've tried SWF/HTML5 together and HTML5 alone. Same result.

Any help here would be great! I thought I was in the clear and am preparing to demo this project to a client in two days. I'm in a major bind here if I can't determine what the problem is and solve it ASAP.

Again, ANY help would be super.

Cheers,

Jesse

This topic has been closed for replies.

2 replies

Jordster1
Participating Frequently
December 21, 2015

Open up the developer's console on your browser (hit F12 then select the Console option, sometimes its hidden so click on the >> at the end of the list of text tabs) when running the course and try all your slides with the Actions that are failing, watching for messages in that console.

If anything pops up there, especially after interacting with a slide that should do something and it isn't, shoot us a screengrab!

-Jord

Participant
December 21, 2015

Hey Jord,

Thanks for the tip! I've attached a section of the error console as a screenshot. It seems there are a bunch of errors occurring. Am I to understand that I can edit the project.txt file to fix these? Or is this code "living" somewhere else? When I open that file in a text editor it only exists on Line 1 and makes it near impossible to find the points at which I need to correct.

Thank you so much for pointing out the idea of using the browser's console. (The error below is probably appearing due to an Advanced Action to show images of stars for completion of a section of the course I am developing).

Best,

Jesse

Jordster1
Participating Frequently
December 21, 2015

Hmmm...for it to not like the '.' dot notation after the object reference 'cp' (which is altogether incredibly common) I feel like maybe there's a syntax error in a code window somewhere that's throwing off the eval of the native calls, making it think that 'cp' variable is a key to a data value instead of an object/function reference. Basically, the actual cause of the error might not be with this call itself but something that cascaded until it hit this point.

Double-check your Actions, make sure there isn't an errant JS execution somewhere, and that all the variables you're using in actions still exist in the variables table. Maybe something was deleted but an Action wasn't updated? Captivate has shown a disconnect sometimes for me between when I update scripts and what it shows in preview. I'll be CERTAIN I changed something and yet when I inspect the script from the preview location its from hours previous. Somewhere around the forum is a thread about deleting Captivate's cache, I would definitely try that as well and republish/repreview the project, inspecting the console while interacting and see if you can get the errors to pop up in the preview window.

I'm definitely opening the door here for someone else to chime in to help troubleshoot - has anyone else seen similar behavior when debugging frame actions?

-Jord

BDuckWorks
Inspiring
December 21, 2015

I would suggest testing on another server, such as Scorm Cloud at http://scorm.com/

I'd also ask if you're publishing to an LMS using a SCORM package, or just posting the published output to a directory on a webserver.

In either event, verify the permission settings, size and date of ALL FILES in the published files folder from Cp and on the server.