简体   繁体   English

其他用户在后端与主题相关的 WSOD

[英]Theme related WSOD in backend for other users

After trying out all typical solutions for wordpress wsods, I am out of ideas.在尝试了 wordpress wsods 的所有典型解决方案之后,我失去了想法。

I migrated my website from wordpress.com to a self-hosted solution using all-in-one-wp-migration, which looked to work fine, until a coworker wanted to use the backend and got wsod.我使用一体式 wp 迁移将我的网站从 wordpress.com 迁移到自托管解决方案,看起来工作正常,直到一位同事想要使用后端并获得 wsod。

After going through all the suggestions for fixing wsods and a few of my own, namely:在阅读了修复 wsods 的所有建议和我自己的一些建议之后,即:

  • checking every single plugin used检查使用的每个插件
  • checking memory (980m should be enough?)检查 memory(980m 应该够了吧?)
  • deleting and reinstating all saved accounts删除和恢复所有已保存的帐户
  • scrubbing the database off of old wordpress.com entries or deprecated urls从旧的 wordpress.com 条目或弃用的 url 中清除数据库
  • running debug mode and not getting any logs from the wsod运行调试模式并且没有从 wsod 获取任何日志

I of course landed on my self made theme as the issue.我当然把自己制作的主题作为问题。 I went over the functions.php file to remove and clean up all custom additions that are not necessary for functionality.我检查了 functions.php 文件以删除和清理所有功能不需要的自定义添加项。 I used a theme check plugin to help me weed out most of the issues that come from being a beginner at this, but nothing looks to be related at all to backend.我使用了一个主题检查插件来帮助我排除作为初学者的大部分问题,但看起来与后端没有任何关系。

Especially irritating is the part where it works fine for me while using my pc, but any other device, like smartphone, tablet or other pcs can't seem to get into the wp-admin version of the site while my theme is activated.特别令人恼火的是它在我使用我的电脑时对我来说工作正常的部分,但是当我的主题被激活时,任何其他设备,如智能手机、平板电脑或其他电脑似乎无法进入网站的 wp-admin 版本。

PS: while the theme is active, backend functionalities like searching for new plugins or changing settings seem to not work right or lead to wsod even for me. PS:虽然主题处于活动状态,但搜索新插件或更改设置等后端功能似乎无法正常工作,甚至对我来说也会导致 wsod。

For anyone running into a simillar issue, the solution given by online guides always mentions making sure the END of the functions.php file does not have any empty space there, but they neglect to mention that there can't be any empty line anywhere in the whole file, even within the code.对于遇到类似问题的任何人,在线指南给出的解决方案总是提到确保函数的结尾。php 文件在那里没有任何空白,但他们忽略了在任何地方都不能有任何空行整个文件,甚至在代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM