File Name Changed, MV Throwing Error [Solved]

Engine/Version: RPG Maker MV, version 1.5.0
I changed a .ogg file's name recently, then went to the map that is supposed to play that .ogg file and told it to look for the new name rather than the old one. However, when I start up the game, it throws an error, saying it can't load the old file name.
I've tried telling the map to load no music file, and the error still appears.
I've turned off all plugins, and this error still appears.
I also tried changing the name to include underscores (since I've heard that technically, file names shouldn't have spaces in them, though I haven't had a file-related problem until now so I hadn't thought it too much of a problem), and the error still appears.
The error report:
mv_error2_by_natfromgamefire-dbg3x0e.png

(The old name was "Nat's Playground", the new name is "A Mysterious Place")
The map Properties for the map:
mverror3_by_natfromgamefire-dbg3xfc.png

(The things in the notebox are for a couple of plugins I'm using, though even with those plugins turned off I still get this error.)
I'm honestly quite confused as to why it's throwing this error, since I thought telling the map to look for the new file name would keep it from trying to look for the old one.
I'm hoping this is a simple fix and I'm just being my usual full-of-user-errors self.
Thank you in advance to everyone who looks at this thread and offers their help/advice.
For that to be occurring, it is not transferring you to that map (map ID 18). Check the transfer event and make sure it is transferring you to that map and not say an old version of the map.
I just checked the transfer event, it looked like it was sending me to the right map, but just in case I clicked on the same space in the same map. Still got the same error.
Should I try deleting the old command and re-inputting it?
There are a couple other things that could be happening.

1: You have an event somewhere still calling the old file name, most likely an autorun or a parallel process on the map you're transferring to.

2: Somehow you are not really transferring to that map, but another map called ???. Check and make sure it is sending you to map ID 18 (it should say in the transfer map command the id).
I was having issues with an earlier version, where changes I'd made in a project weren't being reflected when I test played. I think someone suggested it might be a caching issue. When you get the error, try hitting Shift + F5 (or Control + F5?) to force a refresh/reload and see if the same thing happens?

Also, when the error happens, in the console, type $gameMap._mapId and press enter and see it it outputs 18. I don't have MV with me right now, but hopefully that's the correct variable name.
@bgillisp 1. I've checked over the events relating to that map, there's nothing calling the old name.
2. Would that problem occur if there's two maps with the same name? (The two maps' names are "???" because the player character doesn't know where they are, and I have a HUD that shows the map name.) I have a few maps with generic names (like "House" or "Smithy"), since the map names are supposed to be from the perspective of the player character, who doesn't know anything about the place they're in.
Or, would naming a map "???" confuse the game because that's also what it uses to say that it can't find the map?
@Shaz I tried hitting fn+f5 (that's the key combination my laptop uses), and still got the error.
Typing in $gameMap._mapId does indeed output 18, though.
oh - are you starting a new game and going to that map, or did you resume a game you'd previously saved? If the latter, it would be loading the map info from the save file, not from the database.

The "brute force" solution might be to copy the map and paste it so you get the same map with a different map id, then make your transfers go to the new map instead.
I am starting a new game. (I always start a new game when I playtest, especially after changing something plugin-related. The only times I've ever created a save file during testing was to test out the saving system, to make sure it was working.)
I shall try that solution, then.
Edit: I copied and pasted the map, then edited the transfer command to send the player to the new map. Still got the error.
Would this error still occur if the copied map is a "child" of the original? Or should that have no effect on whether this error occurs or not?
I had this problem earlier with actor sprites, the game tried to load Harold, etc. even though my game wasn't using them anymore. The solution was to copy the files back and when the game got happy, I deleted the files after few days with no problems.
I tried doing that, and it seemed to work for the time being. However, removing the original-name file brings the error back again.
When you deleted the files, was that after closing out of MV?
I deleted the files several days after the incident happened, to make sure the engine remembers that it isn't used anymore.

I wonder about one thing though, are there events still referencing the ogg file? It sounds unlikely, but... Still asking 😀
What about the notetag inside the map notes field?
I just tried removing the old file, and it still threw the error.
And to answer your questions (sorry for not answering them sooner, apparently I don't get notifications for when posts are updated), no, there aren't any events referencing this file, nor do the notetags in the map notes.
The problem is, there is *something* calling it. Files don't get called out of the blue. So you will need to check everything (and I mean everything) and make sure. It could even be a plug-in that is calling the file, so you will also need to check the settings.
I've checked the events on the map before the map that's triggering the error, the events on the map where the error is triggered, and the events on the map that's supposed to come after that map. No references to the file there.
I've checked the notes sections for those maps as well. No references there either.
I tried turning off any audio-related plugins I could. Error still got thrown.
I tried turning off all plugins. Error still got thrown.
So I'm really confused now.
There are several things that are involved here.

1) that error is not caused by the engine itself, but by the browser being unable to find a file when it was called.
Which means that somewhere in your progject that audiofile is still called, that is a technical requirement of that error.

So if you haven't found the place where it is called, that means you have forgotten to look in one place. That error message cannot be given without the file being called somewhere in your project.
You now need to think on where you might have forgotten to look for it.

One advice: if you absolutely cannot find it on your own, download a text editor with multifile-search-options (for example textpad) and open all json files in it, then search for the name over all files - you will find at least one file where it is used (if you really opened all files at the same time, including the plugin file for plugin configuration and all map files), and then you can have the name of that file point you to where that place is in the editor.

2) Both filenames (the old and the new) will cause you problems in the long run, so I suggest you rename again.
All MV-filenames need to conform to networking rules, which means no spaces and no non-latin letters (and a few other rules).
Windows has an override that allows you to use those files if the override works, but it will cause you problems on deployment because neither html5 nor mobile nor MacOS has the same override.

You can even see that in your own error message, where the space is replaced by %20 exactly because the engine has a problem with spaces in the filenames. That also goes for the directory name of the project if you have spaces there (it's blacked in the error screenshot so I can't tell)
Well, I feel quite unobservant.
I checked through several .json files and found a map data file that pointed to the old file. I looked at the properties of the map the file corresponds to, and there it is, staring me in the face.
I could've sworn I'd gotten rid of that setting a long time ago, so I suppose I forgot about it being there.
Thank you. I'll be sure to glance through the .json files when/if I get this error again.

Original thread: https://forums.rpgmakerweb.com/threads/file-name-changed-mv-throwing-error-solved.81227/