Media Doesn't Load in Wordpress Admin

Hello there. I try to load images. Images loaded. I can see them in …\app\public\wp-content\uploads\2025\01

But i cannot see them in wordpress UI. Check the SS below.

Error in the SS is turkish and it says, “An error occurred while loading. Please try again later.”

I don’t get it why. Please help. Thanks advance.



System Details

  • Local Version: Version 9.2.0+6762

  • Operating System (OS) and OS version: Windows 11


Hi @Ruobian

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user, that you don’t have any security blockers, and that Local has access to update your Hosts file.

You might also check through our performance guide here in case you’re running into anything like timeout or resource issues.

Hi @Nick-B
Thanks for responding.

I read both of the guides and I did everything they say. It doesn’t work but I realize something. Actually I realized it before. I have 2 PC and other one is on Windows 10. And this one is Windows 11.
I installed on Windows 10 first. It works well and always ask me permissions. But this Windows 11 PC doesn’t. However my host folder is not read only. And windows defender is OK. I don’t have anti-viruses but windows.

So, I still don’t know why but I can’t get any permission pop-up. :slight_smile:

Does your user on this machine have administrator privileges?

Are you running Local as an admin?

Yes to both.

Aside from this media error are you otherwise able to create, start and access sites without any issues on this device?

Actually I started new. This happen before. My PC user account had special character as “ı”. And local wp even didn’t start. I change it and there is no problem about special characters. But this permissions problem happens from the begining.

I adjust windows user account control settings to max. But still, whenever I change the site domain it only send me this notification:

But doesn’t ask me any permission. This is really wierd.

Even, I uncheck the “Local Sites” folder Read only box. But it re-check itself again. Idk why.

Btw I do almost everything well. It just happened like this. When I published the Wordpress pages or saved the changes I made, it was giving a JSON error. But the change I made was actually happening. It was just showing up as an error. Since I thought this was a glitch in the Local WP application, I wrote a code in function.php to change the Wordpress page editor to the old standard version and I did not get this error anymore.

So are things working normally for you now @Ruobian or what problem(s) are you still having?

Still, media doesn’t load in wordpress media lib. Nothing changed.

If you create a new, blank site in Local and try to load an image there does it work? Or do you get the same error?

Yes. I tried that. It works well. There is no problem. What can it be. I deleted standart twenty-whatever themes. Can it be releated with that?

What about plugins? Do you have any plugins on the site where it’s not working? You might try disabling all of those and see if it works.

We fixed it. Thanks you Nick.

**SOLUTION: There was a comment line in function.php as before <?php line. I moved the comment line under the <?php as //blabla. Sorry it was complately my fault :smiley: **

Detailed: I don’t have any plugin. actually my main purpose is creating a plugin-free theme.

Now. I deleted my local site. And i exported my theme before that. I created same domain again. I copied my theme files again and activated it. It does again. I can’t see my medias. When i switch theme to twenty-five it works well.

While I type these reply, i was trying whatever i think.

I deleted half of the theme files until it works well. So it solved when i deleted function.php. I was thinking about comment line was html. I knew something is wrong with that. Actually i am not a webdesigner. So I’m sorry to bother you and take up your time.

Take care.

1 Like

No trouble at all @Ruobian! I’m glad you were able to uncover the culprit. Thank you for coming back and sharing your resolution!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.