I just wanna cry and scream cause I have tried to battle this problem for over a month now.
I have a local server with Linux Mint installed that has the newest wordpress, apache and mysql.
I made a popup that comes up when you click on a link. But this error interferes with the popup.
Loading failed for the <script> with source “[http://localhost/wordpress/wp-content/themes/astra/js/age-verification.js?ver=1.0](http://localhost/wordpress/wp-content/themes/astra/js/age-verification.js?ver=1.0%E2%80%9D)
It took me a long while before I found out it tried to load 2 of the same scripts. So I removed that script completely by deleting all the code involving it and even the file is gone from the PC.
So it is still to this day trying to load that old script. Also it says in the inspector and in the network tab that the old age-verification.js file is over 100kb. But the old file was only 2.5kb. I know this cause I even checked the recycle bin for the old file.
I know this is probably too much to ask, but I have really exhausted all options. What can I do? I have thought of formatting my PC, but it all feels like a chore and honestly I dont think I have to go that far.
What I have done so far:
* Cleared dns cache
* cleared web cache/history
* Tried a different browser
* deleted all code from my page and just kept the link
* made a different link and a different page
* disabled all plugins in wordpress
* checked the database
* cleared any servercache
* disabled opcache in php.ini
* trying default theme in wordpress
* tried enabling debug.log to see if there were any errors there = no errors
* made a fresh installation of wordpress again
* ~~tried to kill myself~~

So… using a default theme with all plugins disabled *still* causes an error when clicking on a link that loads a popup? What’s the code in the actual link?
Just wanna add that I also have tried to change name of the image link, changed name on the pages, changed name on the image class and it is still trying to load that old script. Even deleting the entire page and making a new one with completely different names and it will load that effin script. :'(
I would load notepad++ and use it to search all files (asterisk.asterisk) in your entire WP directory for “verification”. It’s kind of a brute force approach but it should find any references to it in the code.
Looks like you’re changing the wrong place. Any chance what you are saying is “localhost” is actually an url somewhere else, actually pointing to a completely different WP install? Things like that had happened to me too, when I finally realized I was updating the wrong installation (I use the same urls locally as in stage/live, and switch between them in the hosts file).
Is this by any chance a wsl mint install?