WordPress 页面无法为少数用户正确呈现
我帮助一位朋友在她的 WordPress 驱动的网站上进行一些开发 - http://fulltwist.net/
我们安装了一个新主题大约 3 个月前,从那时起,她收到了不到 5% 的访问者的反馈,称该网站无法正确呈现。
他们所有人都说,当查看单个帖子时,页面上只显示徽标和评论框 - 没有其他内容。许多人说他们使用手机查看它,因为他们无法在桌面上查看。
我尝试过加载不同的计算机,但无法复制该问题。我已要求他们清除缓存(硬刷新),但这没有帮助。
我想深入研究代码,但我只是不知道我在寻找什么。不同的浏览器能否以不同的方式呈现 PHP?我以为这纯粹是服务器端?
任何人都知道什么可能导致此错误渲染?我应该采取哪些诊断工具或方法?
任何正确方向的观点将不胜感激。
I help a friend with some dev on her wordpress powered site - http://fulltwist.net/
We installed a new theme about 3 months ago and since then she gets feedback from less than 5% of visitors saying the site doesn't render properly.
All of them say that, when viewing a single post, only the logo and the comment box show on the page - nothing else. Many say they use their phone to view it because they can't on the desktop.
I've tried load of different computers but I can't replicate the problem. I've asked them to clear their cache (hard refresh) and that hasn't helped.
I want to dig into the code but I just don't know what I'm even looking for. Can different browsers render PHP differently? I thought it was purely server side?
Anyone have any idea what could be causing this to render incorrectly? What diagnostic tools or approaches should I take?
Any points in the right direction would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
浏览器不渲染 PHP,而是渲染从服务器发回的 HTML。
寻找那些有问题的人之间的共同点。浏览器、浏览器版本、操作系统。该网站是否需要某些插件可能没有或可能阻止的插件?在禁用 JavaScript 的情况下它是否可以正确呈现(并且抱怨用户禁用了 JavaScript/您的 JavaScript 在他们的浏览器版本上运行时是否没有错误)?
如果您没有看到用户之间的共性,您可以使用 Gomez 之类的服务在多个浏览器上测试您的页面。
Browsers don't render PHP, they render the HTML sent back from the server.
Look for any commonality among those with problems. Browser, browser version, operating system. Does the website require a plugin that some may not have or may block? Does it render correctly with JavaScript disabled (and are complaining users disabling JavaScript / does your JavaScript run error free on their browser versions)?
You can use a service like Gomez to test your page on multiple browsers if you don't see commonality among the users.