dongze8698 2015-06-10 16:28
浏览 38
已采纳

站点移动后WordPress帖子/页面内容空白在后端

After moving a WordPress website from one server to another I have encountered an odd issue. Everything works great, until I go edit any post or page and I am presented with an empty content box on the backend. (see image).

The empty content box.

All of the posts and pages are displayed properly on the front end except that there are strange characters in the content (see image).

Strange characters

If I try to republish a post, then the empty content saves over the hidden content and the post becomes empty on the front end.

I disabled all plugins and switched themes which changed nothing.

Did I corrupt my database on transfer or is there some other reason that might have caused this?

Has anyone else run into this?

  • 写回答

1条回答 默认 最新

  • duaijiao0648 2015-06-10 18:59
    关注

    The problem turned out to be that DB_CHARSET and DB_COLLATE were both set to '' (empty string) in wp-config.php. I updated them to the following values and all issues were resolved:

    define('DB_CHARSET', 'utf8');
    
    define('DB_COLLATE', 'utf8_general_ci');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度