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

Uncaught TypeError: result.data is undefined #98

Open
capoaira opened this issue Apr 22, 2021 · 6 comments
Open

Uncaught TypeError: result.data is undefined #98

capoaira opened this issue Apr 22, 2021 · 6 comments
Assignees

Comments

@capoaira
Copy link
Contributor

grafik

        // VGPS form
        if (IsSettingEnabled('showVGPS')) {
            GM.xmlHttpRequest({
                method: "GET",
                url: pgcApiUrl + 'GetExistingVGPSLists?gccode=' + gccode,
                onload: function(response) {
                    var result = JSON.parse(response.responseText),
                        vgpsLists = result.data.lists, // here is result.data not defined
                        selected = result.data.selected,
                        existsIn = result.data.existsIn,
                        selectedContent,
                        existsContent,
                        html = '<li><img width="16" height="16" src="https://cdn2.project-gc.com/images/mobile_telephone_32.png"> <strong>Add to VGPS</strong><br />',
                        listId;
@rteitelman
Copy link
Contributor

I don't see this error message at this time. and the 'Add to VGPS' window/menu on the cache page is showing all my lists in the window. Case closed?

@magma1447
Copy link
Owner

Taking a guess here. Maybe it triggers a bug if no VGPS exists on the geocaching account. I can try to reproduce this next week. I will however need to use an alternative account since I don't want to remove the VGPS's I have myself.

@magma1447 magma1447 self-assigned this Aug 27, 2022
@capoaira
Copy link
Contributor Author

Taking a guess here. Maybe it triggers a bug if no VGPS exists on the geocaching account. I can try to reproduce this next week. I will however need to use an alternative account since I don't want to remove the VGPS's I have myself.

Yes, that makes sense. I've never really used the vgps

@rteitelman
Copy link
Contributor

does the GM script run if you don't have a paid membership with Project-GC? ????? I thought the script only ran if you were a paid member.

@magma1447
Copy link
Owner

It does run without. Most features don't work though, because they depend on server side things that depends on a paid membership.

The script knows if the user is a paying member, if it isn't it should not show Vgps stuff. I can't say if it does though, currently only on my phone.

@capoaira
Copy link
Contributor Author

If it depends on the membership, we may be able to handel it client side.
I am a non-paying member too.

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