Forum Academy Marketplace Showcase Pricing Features

[New plugin] Create a product tour for your app 🚩

Hello! First of all, great plugin! I was able to test it and it’s amazing :slight_smile:

I tried to create a new tour and now the error below is being shown:
Action Start Step1FeatureOnboarding.productTour - The plugin “A+ Onboarding” - Product tour / action Start a Product Tour threw the following error: TypeError: Cannot read property ‘options’ of undefined
at eval (PLUGIN_-A–Onboarding----Product-tour-element_action–Product-Tour-Start-.js:9:32)
at (please report this to the plugin author)

Could you help me, please?

Thanks a lot!


Just found out that the error message is shown only on the first time I “Start a Product Tour”. If I try to start it again, it will work, but every time I click the button, the product tour runs all the steps as many times I click the button.

As an example, in a product tour of 2 steps, If I click the button to start tour for the first time, the error appears. If I click on it again, the steps are shown, but not only the 2 steps because I’ll see the same 2 steps added to the end of the second step (4 steps total). And every time the button is clicked, the loop starts again with 2 more steps at the end.

Well, maybe I was just not following instructions as needed, but since there may be other lazy people like me, I’ll comment what was happening hahaha If you put the steps on the page load APART from the workflow that “Starts the tour”, no error occurs. Don’t know exactly why but these functions need to be put on separate workflows to work correctly. :slight_smile:

Think about the action that you’re doing when you push the button. If every time you run a workflow that adds steps and then starts the tour it might not be clearing the previous tours steps.

So, if you don’t clear the previous tours steps and every time you run the workflow action it adds more steps then starts a tour again Then it would make sense to see the tour run double or triple or quadruple times. Cause it was told to add the same steps to a list of steps again.

** this isn’t my plug-in so I’m just kind of assuming this is what happens here. I have a similar plug-in on the marketplace that creates tours based on steps that the user sets up. I’ve run into the same issue with mine

1 Like

Hey @luiz1, glad you like the plugin! :slight_smile:

I think you try to start the tour before defining the steps in it.

Usually, people use this setup to load a tour:

  1. When page loads → Add steps
  2. When user clicks on the demo button → Start the tour (but don’t add the steps or it will do it at each execution)

Feel free to share a screenshot of your workflow or a reproduction link :slight_smile:

1 Like

Thanks @jared.gibb and @nocodejungle!

Now I configured all the tours to run on page load (with some rules) and it’s working perfectly!

Thanks a lot for the help! :love_you_gesture:

Yay :call_me_hand:
Let me know if you have other questions or suggestions!