Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript error on create AB test page #84

Open
vdboor opened this issue Jul 24, 2024 · 2 comments
Open

JavaScript error on create AB test page #84

vdboor opened this issue Jul 24, 2024 · 2 comments

Comments

@vdboor
Copy link

vdboor commented Jul 24, 2024

On creating the AB test, the following error happens:

wagtail-ab-testing.js?v=afb7bfd0:2 Uncaught ReferenceError: abTestingTabProps is not defined
    at HTMLDocument.<anonymous> (wagtail-ab-testing.js?v=afb7bfd0:2:397058)

I'm running Wagtail 6.0.5, wagtail-ab-testing 0.10 on Python 5.0.7, Python 3.10

Edit: I just checked, and it seems the script is only needed for the actual edit page?
As the main script is also loaded on /cms/abtests/add/##/ it gives this error as no action menu is there.

@vdboor vdboor changed the title Unable to select "Visit Page" goal. JavaScript error on create AB test page Jul 24, 2024
@helenb
Copy link

helenb commented Jul 25, 2024

I am seeing this same error. In addition, when I try to select the page for the test I get the following error:

vendor.js?v=747de67f:2 Uncaught TypeError: Cannot read properties of undefined (reading 'pageChooser')
    at onClick (wagtail-ab-testing.js?v=747de67f:2:391532)
    at Object.u (vendor.js?v=747de67f:2:682083)
    at p (vendor.js?v=747de67f:2:682226)
    at vendor.js?v=747de67f:2:682372
    at v (vendor.js?v=747de67f:2:682458)
    at ot (vendor.js?v=747de67f:2:697926)
    at rt (vendor.js?v=747de67f:2:697736)
    at it (vendor.js?v=747de67f:2:698092)
    at ft (vendor.js?v=747de67f:2:699299)
    at P (vendor.js?v=747de67f:2:796051)

I'm on wagtail 6.1.2

Screenshots of the error messages in the console:

Screenshot 2024-07-25 at 12 04 58

Screenshot 2024-07-25 at 12 05 05

@mgax
Copy link
Contributor

mgax commented Aug 4, 2024

In addition, when I try to select the page for the test I get the following error:

This is a separate issue, which should be fixed by #85.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants