[Userscript] Attempt to Eliminate Phantom Entries

Thanks for the reply.
Both forms of the answer do not appear in the database. In other words, I do not see the erroneous items in the database.
My guess is that Memrise creates a table separate from the database which holds all the multiple choice answers. Maybe from this table the review items and multiple choice answers are selected.
I expect this table is rebuilt when running the script. If that is true, then this table should be deleted and regenerated from scratch.
Just a guess…

Hi Eli,

Thank you very much for your straightforward solution.

I was able to run the code and all words appear in green however I did not know how to see if still there is phantoms.

All the best
Mohammad

Hi Mohammad,

You’re welcome!

I don’t think there’s an easy way to check if all of the phantoms are really gone, sorry. If the script worked, then you should just no longer see phantoms while reviewing or studying.

1 Like

The phantoms were not removed. I decided to create my own program to replace Memrise. The way I have done it there will be no phantoms.

Thanks for your help.

Dave

I ran the script on my course. The phantom entries were not removed.

notice the bottom 2 entries in the right hand column. They are identical except for the capitalization. The bottom entry is not in the database

1 Like

Hi Eli,

I have just seen phantoms again. Apparently, the code does not work.

All the best
Mohammad

@Havaledar and @swigartd, Thanks for letting me know. I haven’t used this script lately, so I’m not sure if it still works or not, sorry.

Is anyone else seeing this problem?

Hello @neoncube, thank you for building this script.

It did not work for me either. I installed it via Tampermonkey on Firefox.

When I run it, it takes a while to start (where the browser allows me to kill the tab or wait), and then it starts highlighting one by one all the items inside each level until it reaches the bottom of the last level.

However, at the end of it the database remains intact, and I can see the tens of phantom items still there.

I personally decided to spend two hours cleaning up so now I don’t have any phantom entries anymore, but I thought I would leave feedback here anyway.

Thanks, @ferranglez; that’s good to know :slight_smile:

When you say “the database remains intact”, do you mean that you can see entries in the course’s Database tab that aren’t supposed to be there?

Yes, that is why I meant, sorry for the confusion. I expected that the entries from the database that were not used in the course would be removed using this script, but they were not removed.

No worries! :slight_smile: Sorry for the confusion.

This script tries to fix “phantom entries”, which is a different issue (although it can be related to having unused entries in the course’s database). I do have a different script that removes unused entries in the database, if you’re interested, although it sounds like you’ve already fixed the issue manually.

1 Like

After deleting entries from the database, some words still appear as answers in my quizzes, actually. Is that what is referred to as phantom entries? I will try the script again when I have a moment (it takes a while because the course has some 10k words), and get back to you!

Yep, that’s what phantom entries are! :slight_smile:

Hopefully the script works. It’s been a while since I ran it. I guess let us know either way :slight_smile:

It’s been more than a week now since I ran it, and I haven’t come any of the phantom words so far! Will come back here if I spot any in the future, but so far so good. Thanks:)

The new script did not remove my problem entries.-

@ferranglez Good to hear! And you’re welcome :slight_smile:

@swigartd Hmm… Honestly, I don’t really know what’s going on in your case. It does seem like the script is working for other people’s courses.

I know I already checked, but are you sure that the phantom entry isn’t in the database?

It is not in the database. Does the script recognize the difference between upper and lower case letters?

@swigartd No, I don’t think the script looks at the value of the entries at all, sorry. It just reposts all of the entries to Memrise, to try to force Memrise to reprocess them.

I suppose you could try to manually fix one of the phantom entries and see how it goes. To do so, just add a single character, such as ‘i’, to the end of the column with a phantom entry, tab to a different entry, and then go back and remove the ‘i’ again.

The only time that I see the phantom entries is during testing. I can’t change anything then