Media loading forever

When I try to access the website Media the loading icon is there forever and the media never loads.

This happened while I was working on the website out of nowhere. I have tried reverting the latest changes but the issue remains.
When using the Elementor page builder I get a “Server Error”.

I tried updating all plugins and theme and got a

"Local Router Error

Our apologies for the inconvenience. The Local router is not able to connect to the site you requested.

We suggest you try the following:

Restart Site - Go to the Local by Flywheel app and restart the site you are attempting to access."

Even though after restarting website all of the plugins were updated.

I also stopped / ran the website several times, restarted Local, restarted the PC and did a few combinations of those but no luck.

This all just came out of nowhere and at the same time so I am sure all of these symptoms are connected.

Does anyone have any insight on this? Thank you in advance for the attention and advice, much love.

It turns out, the thing which was messing up the entire website and that I overlooked was a little extra/repeated


at the end of the functions.php file.

issue solved.