Wordpress:媒体库网格模式无限加载 [英] Wordpress: media library grid mode infinite loading

查看:34
本文介绍了Wordpress:媒体库网格模式无限加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这个问题很奇怪,因为对我来说 Wordpress 管理菜单中的 Wordpress 媒体库仅在网格模式下不起作用,这是非常奇怪的问题,因为这个问题只发生在 1 个帐户上/那将是我昨天尝试的同一个帐户将一堆图片上传到媒体库,但出现错误:

<块引用>

稍后再试...

因为我尝试了很多东西,但除了使用其他帐户登录之外,没有任何帮助.

  1. 尝试通过 wordpress 管理面板重新安装 wordpress
  2. 尝试禁用所有插件,将主题更改为默认 wordpress
  3. 尝试检查 elemet 是否有 JS 错误,除了

<块引用>

upload.php?mode=grid:46 考虑使用 'dppx' 单位,如 CSS 'dpi'表示每 CSS 英寸点数,而不是每物理英寸点数,所以不是对应于屏幕的实际dpi".在媒体查询表达式中:打印,不是全部,(-webkit-min-device-pixel-ratio: 1.25),(最小分辨率:120dpi)

  1. 尝试在主题函数中包含我在互联网上找到的一堆代码没有帮助.(我现在没有它们,因为没有任何帮助,我没有保存它们抱歉......)

  2. 尝试刷新缓存、代理、不同的计算机、不同的操作系统(最大、Windows)、平板电脑在该特定帐户上仍然没有任何内容媒体网格视图不起作用

    我看到的视图是这样的:

我不明白出了什么问题,为什么在 1 个特定帐户上它不起作用我什至尝试刷新 Wordpress 缓存,但在我收到上面显示的错误后它不起作用.有人知道我该如何解决这个问题吗?提前致谢!

解决方案

在旋转滑块上也遇到了完全相同的问题和一些 ajax 错误,经过长时间的搜索,我解决了我的问题.

这只是子主题的functions.php中的HTML注释,删除后,一切对我来说都很完美.

function.php 中的空格同样有问题,不要在 php 标签之间用空格剪切你的代码

So this problem is very strange because for me doesn't work Wordpress media library in Wordpress admin menu only grid mode, its very strange problem because this problem occurs ONLY on 1 account/ That would be same account that yesterday i was trying upload bunch of pictures to media library and it gave error:

Try again later...

Since that i have tried many things but besides logging with other account nothing helped.

  1. Tried reninstall wordpress via wordpress admin panel
  2. Tried disabling all plugins, changed theme to default wordpress
  3. Tried inspect elemet for JS errors nothing there except

upload.php?mode=grid:46 Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)

  1. Tried include in theme functions bunch of codes that i found on internet didn't helped.(i don't have them now since nothing helped and i didn't saved them sorry...)

  2. Tried flushing cache, proxy, different computers, different operating systems(max,windows), tablet nothing still on that particular account media grid view doesn't work

    View that 'm seeing is this:

I don't understand whats wrong, why on 1 particular account it doesn't work i even tried flushing Wordpress cache but it doesn't work after i received that error which i showed above. Did somebody know how can i solve this? Thanks in advance!

解决方案

Got exactly the same problem and some ajax error on revolution slider too, and after searching for long time i resolved my problem.

It was just an HTML comment in functions.php on child theme, after remove it, everything work perfectly for me.

Same problem with space in function.php don't cut your code with space between php tag

这篇关于Wordpress:媒体库网格模式无限加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆