1
votes

I recently updated WordPress 4.9.6 and suddenly the Media Library stopped showing my media. I am not able to upload files either.

I started researching the possible reasons and I found out that the one and only cause is my custom theme. I logged php and javascript and fixed every issue and warning. Still, the media library won't work. What are the possible reasons behind it?

Here is the blog

1
no PHP errors? maybe you can try debuggingjjj
I did. No problems at all. This is confusing.user7259161
Did you have a custom functions.php file? Any specifics functions?jjj
@jjj You saved my day. Read my answer.user7259161

1 Answers

1
votes

Thanks to jjj's comment I found out what the issue was.

I wrote a custom plugin ... in functions.php (not clever). This led me to think that the problem lies in my custom theme (which partly was right cause the issue was in functions.php, even though the plugin had no reason to be in there).

I removed it, and now everything works fine. I am still not sure why nothing showed in the php error log though.

Thank you.